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 + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT DISTINCT col0 DIV + ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1
SELECT DISTINCT col0 / + ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 + 72 AS col0 FROM tab0 AS cor0
----
106
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 10 col1 FROM tab0 AS cor0
----
-23
-72
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT ALL - col2 DIV + 88 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - col2 / + 88 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col1 * col1 + ( - col0 ) FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 + - 47 AS col1 FROM tab1 AS cor0
----
-1087
-125
-687
query I rowsort
SELECT + col1 + - 99 FROM tab0 cor0
----
-13
-2
-8
query I rowsort
SELECT ALL + col2 + 95 FROM tab1 cor0
----
149
152
191
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-1
-262134
-511987
query I rowsort
SELECT 58 + col1 AS col1 FROM tab0
----
144
149
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-11
SELECT DISTINCT ( col1 ) DIV col1 - col1 * col1 FROM tab2 cor0
----
-288
-3480
-960
skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT ( col1 ) / col1 - col1 * col1 FROM tab2 cor0
----
-288
-3480
-960
query I rowsort
SELECT - col1 * - ( col0 ) - 52 FROM tab0 AS cor0
----
2012
3343
8047
query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-14
SELECT ALL + CAST( + col1 AS SIGNED ) * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + CAST ( + col1 AS INTEGER ) * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col2 - 91 * + cor0.col1 FROM tab2 AS cor0
----
-1509
-2794
-5343
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 56 * - 64 * col2 AS col2 FROM tab1 AS cor0
----
-193536
-204288
-344064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-18
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 FROM tab2 cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col1 * - col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col0 * + 87 FROM tab1 AS cor0
----
55680
6786
90480
query I rowsort
SELECT DISTINCT + cor0.col1 + - 12 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT ALL - 58 - + col2 AS col0 FROM tab0 AS cor0
----
-140
-59
-91
query I rowsort
SELECT DISTINCT + col1 * 3 - + col1 * - col2 AS col2 FROM tab2 AS cor0
----
1711
697
930
query I rowsort
SELECT DISTINCT 72 * + 96 AS col0 FROM tab1 cor0
----
6912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-25
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 47 + col1 AS col1 FROM tab0 AS cor0
----
133
138
144
query I rowsort
SELECT ALL 0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL - col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL ( col1 ) + 17 AS col2 FROM tab2 AS cor0
----
34
48
76
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 + + col2 + col0 + 91 col1 FROM tab2 AS cor0
----
125
195
208
query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 AS cor0
----
72
query I rowsort
SELECT - col0 - - col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL - 66 FROM tab1, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT ALL - ( 61 * tab0.col2 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9a216571f7bf3ea746c3bb23fc9f4a0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-38
SELECT - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-38
SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + col1 * 82 + col0 - cor0.col0 FROM tab0 AS cor0
----
7052
7462
7954
query I rowsort
SELECT ALL cor0.col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT ALL col1 DIV - ( col1 ) + + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-42
SELECT ALL col1 / - ( col1 ) + + col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL - col1 + cor0.col2 * - 65 FROM tab2 AS cor0
----
-1749
-1786
-2487
query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT - col0 + ( col0 ) * col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + + col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-49
SELECT ALL CAST( NULL AS DECIMAL ) / - 31 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-49
SELECT ALL CAST ( NULL AS REAL ) / - 31 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + ( + col2 ) + col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 41 + col1 col1 FROM tab1 AS cor0
----
-15
-28
-31
query I rowsort
SELECT + 3 + col2 AS col2 FROM tab1 cor0
----
57
60
99
query I rowsort
SELECT DISTINCT 88 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT ALL 24 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT 57 * + col0 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT DISTINCT 57 - + cor0.col0 FROM tab1 AS cor0
----
-23
-7
54
query I rowsort
SELECT - 76 FROM tab1 cor0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT cor0.col2 * cor0.col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - - col2 + + col0 * - col0 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + - col2 * 25 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT - col2 + + 14 * col1 FROM tab2 AS cor0
----
200
407
800
query I rowsort
SELECT + ( col2 ) * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + 14 AS col1 FROM tab0
----
14
14
14
query I rowsort
SELECT ALL + 34 * + col0 FROM tab2
----
238
2652
2686
query I rowsort
SELECT ALL 73 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + col2 * - 53 FROM tab1 cor0
----
-2862
-3021
-5088
query I rowsort
SELECT DISTINCT col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT ( - cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL + 28 FROM tab0, tab2 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
onlyif mysql # use DIV operator for integer division
query I rowsort label-74
SELECT + 50 DIV + tab0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 3c49f161b828ef2c94dfcbe524ec2c0e
skipif mysql # not compatible
query I rowsort label-74
SELECT + 50 / + tab0.col2 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 3c49f161b828ef2c94dfcbe524ec2c0e
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - col1 * 63 AS col0 FROM tab1
----
-1638
-630
-819
query I rowsort
SELECT + col1 + 59 * + col2 FROM tab1
----
3212
3373
5677
query I rowsort
SELECT + 1 FROM tab1
----
1
1
1
query I rowsort
SELECT 34 * - col0 FROM tab0
----
-1190
-3026
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT DISTINCT ( - 68 ) DIV - col1 AS col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT ( - 68 ) / - col1 AS col1 FROM tab2
----
1
2
4
query I rowsort
SELECT DISTINCT + col2 * + col0 * + col0 AS col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT - tab2.col1 + - tab2.col1 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT + col1 + + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + col2 * - col2 * + col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + ( - col0 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT 24 * ( col0 + 77 ) FROM tab1
----
1920
3384
3768
query I rowsort
SELECT + 73 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT + - cor0.col0 + col2 * + col0 * 53 AS col0 FROM tab0 AS cor0
----
1820
386705
41952
query I rowsort
SELECT col2 + col0 * cor0.col1 AS col0 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT + - 60 * col0 * col2 + - col1 AS col0 FROM tab0 cor0
----
-2197
-437971
-47606
query I rowsort
SELECT col2 + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 86 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT col0 + - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - cor0.col2 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab1
----
50
query I rowsort
SELECT ALL 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL - + col0 - - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL - ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT 10 * col0 + col0 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0, tab0 cor0
----
31
query I rowsort
SELECT ALL - 63 * + col1 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT ALL - - 56 + col1 FROM tab1 AS cor0
----
66
69
82
query I rowsort
SELECT ALL + col2 * col2 + - col1 + col2 FROM tab1 AS cor0
----
2944
3296
9299
query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT - ( col0 ) FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 + col1 * col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL + + cor0.col0 + - col0 * 18 FROM tab1 AS cor0
----
-1088
-1360
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT ALL 73 * + col1 + - col1 DIV + col0 FROM tab1 AS cor0
----
1890
730
949
skipif mysql # not compatible
query I rowsort label-113
SELECT ALL 73 * + col1 + - col1 / + col0 FROM tab1 AS cor0
----
1890
730
949
query I rowsort
SELECT - 75 AS col0 FROM tab1 AS cor0
----
-75
-75
-75
query I rowsort
SELECT ALL - col2 * - col2 + - col0 * col1 AS col2 FROM tab0 cor0
----
-1375
-3394
-975
onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT DISTINCT ( - 89 ) * + col2 + ( + tab2.col2 ) * col2 DIV + ( + col1 ) FROM tab2
----
-2303
-2380
-3298
skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT ( - 89 ) * + col2 + ( + tab2.col2 ) * col2 / + ( + col1 ) FROM tab2
----
-2303
-2380
-3298
onlyif mysql # use DIV operator for integer division
query I rowsort label-117
SELECT col1 DIV + 82 - + col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-117
SELECT col1 / + 82 - + col2 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT DISTINCT + col1 * 99 DIV + col2 + - 14 AS col2 FROM tab1
----
-1
3
33
skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + col1 * 99 / + col2 + - 14 AS col2 FROM tab1
----
-1
3
33
query I rowsort
SELECT - 36 - col2 AS col0 FROM tab1
----
-132
-90
-93
query I rowsort
SELECT - 10 + - 34 AS col1 FROM tab2
----
-44
-44
-44
query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) + - col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - 46 FROM tab0 AS cor0
----
-46
query I rowsort
SELECT 2 AS col1 FROM tab2
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-124
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-124
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * col0 - 46 FROM tab1 AS cor0
----
-37
4050
6354
query I rowsort
SELECT ALL + col0 * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort
SELECT - - col2 * CAST ( + 66 AS REAL ) + - cor0.col0 - + ( col0 ) FROM tab2 AS cor0
----
1560
1768
2350
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * CAST ( + col2 + col2 AS REAL ) FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT - col1 * 93 + col1 FROM tab1 cor0
----
-1196
-2392
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-130
SELECT + col2 + cor0.col0 DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-130
SELECT + col2 + cor0.col0 / col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + - col2 * 21 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT - col1 * - ( 52 ) AS col1 FROM tab1 cor0
----
1352
520
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT DISTINCT - tab0.col2 DIV - tab0.col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-133
SELECT DISTINCT - tab0.col2 / - tab0.col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT col0 + + 43 + col0 FROM tab1 AS cor0
----
171
203
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT DISTINCT - col2 DIV ( + 82 ) col1 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT - col2 / ( + 82 ) col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 + ( + cor0.col0 ) FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT col0 * tab1.col0 DIV col1 AS col2 FROM tab1
----
0
409
492
skipif mysql # not compatible
query I rowsort label-138
SELECT col0 * tab1.col0 / col1 AS col2 FROM tab1
----
0
409
492
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT - - cor0.col1 * + col1 + ( col0 ) * ( + cor0.col0 ) + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-139
SELECT - - cor0.col1 * + col1 + ( col0 ) * ( + cor0.col0 ) + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 61 - + cor0.col0 * + 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d7dd28af8f5bf03ea1c0c7b9112dd8a9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT + 13 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL - 63 * + col1 * - col1 AS col1 FROM tab2 AS cor0
----
18207
219303
60543
query I rowsort
SELECT ALL - + col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT + col1 DIV cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-146
SELECT + col1 / cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-147
SELECT + 23 / + col0 + col2 * + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-147
SELECT + 23 / + col0 + col2 * + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT 16 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT - col1 * 30 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + 97 * - col0 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT ALL - + col0 * - 78 * - col1 AS col0 FROM tab1 AS cor0
----
-49920
-6084
-81120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 + - col2 * + 65 col0 FROM tab0 AS cor0
----
-12792
-162
-4983
query I rowsort
SELECT ALL + 98 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1346
-578
-631
query I rowsort
SELECT ALL - + ( - col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + ( + col1 ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab0.col0 col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 25 col2 FROM tab0
----
111
116
122
query I rowsort
SELECT DISTINCT 14 * 90 * tab0.col2 FROM tab0, tab1 AS cor0
----
103320
1260
41580
query I rowsort
SELECT DISTINCT col1 + col0 + - col2 AS col1 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL + col0 - + 5 AS col1 FROM tab1
----
-2
59
75
query I rowsort
SELECT ALL col0 + + col1 + 79 FROM tab0
----
189
211
259
query I rowsort
SELECT ALL col1 * + ( - 54 * + col0 ) + 61 FROM tab1
----
-34499
-4151
-56099
query I rowsort
SELECT + ( col0 ) * col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-167
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 + col2 * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT ( 28 ) * - col0 DIV cor0.col0 col0 FROM tab0 cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-169
SELECT ( 28 ) * - col0 / cor0.col0 col0 FROM tab0 cor0
----
-28
-28
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT ALL + 53 DIV + cor0.col0 + col0 * ( col0 * + col0 ) FROM tab0 AS cor0
----
13826
42876
704969
skipif mysql # not compatible
query I rowsort label-170
SELECT ALL + 53 / + cor0.col0 + col0 * ( col0 * + col0 ) FROM tab0 AS cor0
----
13826
42876
704969
query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * col0 col0 FROM tab0 AS cor0
----
1416
2065
5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-173
SELECT + - 75 DIV col1 + col0 FROM tab1 AS cor0
----
1
57
75
skipif mysql # not compatible
query I rowsort label-173
SELECT + - 75 / col1 + col0 FROM tab1 AS cor0
----
1
57
75
query I rowsort
SELECT ALL - col1 * + 67 FROM tab0 cor0
----
-5762
-6097
-6499
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 * + col1 col2 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT - 99 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT col1 * + 3 AS col1 FROM tab2
----
177
51
93
query I rowsort
SELECT DISTINCT 44 FROM tab0 AS cor0
----
44
query I rowsort
SELECT - cor0.col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-180
SELECT + + col0 DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-180
SELECT + + col0 / col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + 76 FROM tab0 cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - - 0 + col0 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-184
SELECT - - ( col1 ) DIV 4 FROM tab0 AS cor0
----
21
22
24
skipif mysql # not compatible
query I rowsort label-184
SELECT - - ( col1 ) / 4 FROM tab0 AS cor0
----
21
22
24
query I rowsort
SELECT + col2 + 33 * + col1 FROM tab1 cor0
----
387
525
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT col2 DIV + ( - ( col2 ) ) AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-186
SELECT col2 / + ( - ( col2 ) ) AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - col1 + + tab2.col2 * + 17 AS col0 FROM tab2
----
383
428
629
query I rowsort
SELECT DISTINCT + col1 * tab0.col1 + 39 FROM tab0
----
7435
8320
9448
query I rowsort
SELECT ALL - 89 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT DISTINCT col2 * 35 + - col0 FROM tab1 AS cor0
----
1887
1931
3280
query I rowsort
SELECT + col2 - 97 FROM tab0 AS cor0
----
-15
-64
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-192
SELECT DISTINCT - cor0.col1 * CAST( NULL AS DECIMAL ) + - col1 * col0 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT - cor0.col1 * CAST ( NULL AS REAL ) + - col1 * col0 col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 79 * + col1 FROM tab0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL 68 AS col1 FROM tab1
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT + cor0.col1 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col0 * col0 * col2 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-200
SELECT ALL + 72 DIV - 65 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-200
SELECT ALL + 72 / - 65 AS col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL cor0.col0 + cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3
query I rowsort
SELECT - 78 * + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-109512
-44460
-97344
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT cor0.col1 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-203
SELECT cor0.col1 / col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + - 69 * col0 AS col1 FROM tab1 AS cor0
----
-207
-4416
-5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col0 FROM tab2
----
27
27
27
query I rowsort
SELECT + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-207
SELECT ALL + CAST( tab2.col1 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif mysql # not compatible
query I rowsort label-207
SELECT ALL + CAST ( tab2.col1 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * col2 col2 FROM tab0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * ( 70 * col0 ) + + col1 + col0 * + col2 col0 FROM tab1 cor0
----
48458
5648
80493
query I rowsort
SELECT DISTINCT - - col2 + + 70 FROM tab1 AS cor0
----
124
127
166
query I rowsort
SELECT - col2 * 52 - col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT DISTINCT - cor0.col2 * - 88 + + cor0.col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-246
-9
66
query I rowsort
SELECT + - col1 + + ( col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - cor0.col2 + - 34 * - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-124089
-261216
-5562
query I rowsort
SELECT - + col0 * col0 + + ( col2 ) FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT - col0 * 83 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT - col1 * - col0 + cor0.col2 * + col0 + cor0.col2 FROM tab1 AS cor0
----
294
4345
8816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * col2 * col1 + tab1.col2 + col2 * - tab1.col0 FROM tab1
----
112224
28899
75708
query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab0
----
164
2
66
query I rowsort
SELECT tab1.col0 * col2 - - col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col1 * tab2.col1 + - tab2.col2 * col1 FROM tab2
----
-357
124
1947
query I rowsort
SELECT + + col2 * + col1 - + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 * + col2 + + col2 * + col1 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0 WHERE col2 BETWEEN NULL AND col1 + col1
----
query I rowsort
SELECT cor0.col1 + - col0 + cor0.col1 FROM tab0 cor0
----
148
159
93
query I rowsort
SELECT col0 * + col0 FROM tab1 AS cor0 WHERE col1 - col1 IN ( - col1 )
----
query I rowsort
SELECT col2 + + col2 / col1 + - cor0.col1 FROM tab0 AS cor0 WHERE NOT col2 * col2 < NULL
----
query I rowsort
SELECT ALL + cor0.col0 - - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
query I rowsort
SELECT ALL cor0.col0 + cor0.col2 FROM tab0, tab0 AS cor0 WHERE NOT ( cor0.col2 ) < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT - col1 DIV col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-234
SELECT - col1 / col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT + col1 + + col2 * cor0.col1 + - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 + - col1 * - col0 * col0 AS col1 FROM tab0 cor0
----
118922
49622
720902
query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * col2 * col2 FROM tab0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT tab1.col0 DIV tab1.col2 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-240
SELECT tab1.col0 / tab1.col2 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT + - col1 * col0 + - cor0.col1 * + col1 FROM tab2 cor0
----
-1178
-1632
-8083
query I rowsort
SELECT ALL col1 + col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT - - col0 DIV col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-243
SELECT - - col0 / col2 + + col1 AS col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT DISTINCT + - col1 * col0 + - cor0.col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + tab0.col2 - tab0.col2 * - col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL col0 * + col1 * + col0 - col1 AS col2 FROM tab0
----
118728
49450
720720
query I rowsort
SELECT - col1 - + col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab2.col2 * - col1 + col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - col0 + - ( - 95 ) * cor0.col2 FROM tab1 AS cor0
----
5127
5351
9040
onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL + col1 DIV col0 + col1 col2 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + col1 / col0 + col1 col2 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 31 col1 FROM tab1 AS cor0
----
1674
1767
2976
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT DISTINCT + col1 + + tab0.col0 * 93 DIV col0 AS col2 FROM tab0
----
179
184
190
skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT + col1 + + tab0.col0 * 93 / col0 AS col2 FROM tab0
----
179
184
190
query I rowsort
SELECT col1 + col1 * col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT 69 AS col2 FROM tab1
----
69
69
69
query I rowsort
SELECT DISTINCT - 94 + col2 FROM tab1
----
-37
-40
2
query I rowsort
SELECT DISTINCT + + col1 + 94 * + 27 AS col1 FROM tab2 AS cor0
----
2555
2569
2597
query I rowsort
SELECT DISTINCT + 51 + 43 FROM tab2, tab1 AS cor0
----
94
query I rowsort
SELECT + + col2 * 95 + col0 * + col0 FROM tab2 cor0
----
2614
8554
9851
query I rowsort
SELECT DISTINCT col0 * ( - col2 + + col2 ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT col0 * + ( col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT tab2.col0 * col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - col2 + + 58 AS col2 FROM tab1 AS cor0
----
-38
1
4
query I rowsort
SELECT 43 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 11a927ddc5e1ba6dfc925f9aae63ec9c
query I rowsort
SELECT ALL col1 + + 22 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT DISTINCT col1 + 14 AS col2 FROM tab2 AS cor0
----
31
45
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT ALL - cor0.col1 DIV + col0 AS col1 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - cor0.col1 / + col0 AS col1 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT + col0 * - 17 AS col2 FROM tab1 AS cor0
----
-1088
-1360
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-269
SELECT DISTINCT + cor0.col0 + - CAST( NULL AS SIGNED ) * - 62 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT + cor0.col0 + - CAST ( NULL AS INTEGER ) * - 62 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 59 FROM tab1
----
59
query I rowsort
SELECT + + 37 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT DISTINCT + col0 + + ( + col2 + - 92 ) FROM tab0 AS cor0
----
-35
-56
79
query I rowsort
SELECT ( + cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 49 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ALL cor0.col0 + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * col2 * col0 + - cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-208036
-737449
-9424
query I rowsort
SELECT DISTINCT - - ( + 9 ) * - col1 FROM tab0 AS cor0
----
-774
-819
-873
query I rowsort
SELECT ALL - col2 + - ( + cor0.col1 * 33 ) FROM tab0 cor0
----
-2871
-3085
-3202
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT col2 DIV + cor0.col0 + + col0 FROM tab0 cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-280
SELECT col2 / + cor0.col0 + + col0 FROM tab0 cor0
----
25
35
89
query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * + col1 * - col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
query I rowsort
SELECT ALL - col1 * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 59 + col2 FROM tab1 AS cor0
----
113
116
155
query I rowsort
SELECT ALL + col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT + 69 DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
69
skipif mysql # not compatible
query I rowsort label-285
SELECT + 69 / col2 AS col2 FROM tab0 AS cor0
----
0
2
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * - col2 + - 27 col1 FROM tab1 AS cor0
----
-5103
-5385
-9051
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col2 - 23 * col1 col1 FROM tab1 AS cor0
----
-4269
-553
-6603
query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 46 + + col0 AS col0 FROM tab1 AS cor0
----
-43
18
34
query I rowsort
SELECT cor0.col2 * - col0 + + col2 AS col1 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT + - 92 * - col1 - + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-52
350
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - 76 * - col1 * col2 FROM tab1 AS cor0
----
106704
43320
94848
onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT tab2.col1 DIV ( - col0 ) FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-294
SELECT tab2.col1 / ( - col0 ) FROM tab2
----
-4
0
0
query I rowsort
SELECT + col0 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-296
SELECT DISTINCT - col1 + - cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - col1 + - cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-297
SELECT DISTINCT + cor0.col1 DIV - col2 + 30 col2 FROM tab1 AS cor0
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT + cor0.col1 / - col2 + 30 col2 FROM tab1 AS cor0
----
30
query I rowsort
SELECT + 18 FROM tab0 cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 - col2 col0 FROM tab1 AS cor0
----
-4
-46
-7
query I rowsort
SELECT + col1 * + col0 + col0 * - col2 * - col1 FROM tab2 AS cor0
----
124254
52377
6076
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT 40 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT ALL + cor2.col1 * cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to c3f564963c20aff92bd0f88b9f3e9e2a
query I rowsort
SELECT DISTINCT + - col1 + - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - ( col0 * 87 ) + col2 AS col1 FROM tab0
----
-2055
-3044
-7661
query I rowsort
SELECT DISTINCT tab2.col2 + - tab2.col0 AS col0 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT - 64 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-307
SELECT - 64 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + col2 * col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT ( + col0 ) * 44 FROM tab2 cor0
----
308
3432
3476
query I rowsort
SELECT 26 + col2 AS col0 FROM tab2 AS cor0
----
52
53
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 * + cor0.col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - col0 - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-316
SELECT + + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-316
SELECT + + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL tab1.col1 * + col1 + col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT DISTINCT 64 + - tab2.col1 DIV 71 FROM tab2
----
64
skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT 64 + - tab2.col1 / 71 FROM tab2
----
64
query I rowsort
SELECT ALL col2 * col1 + - ( ( - col1 ) ) * - col2 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-321
SELECT col2 * tab0.col0 * - CAST( + col0 AS SIGNED ) + + col1 * + tab0.col2 FROM tab0
----
-1128
-16170
-642060
skipif mysql # not compatible
query I rowsort label-321
SELECT col2 * tab0.col0 * - CAST ( + col0 AS INTEGER ) + + col1 * + tab0.col2 FROM tab0
----
-1128
-16170
-642060
query I rowsort
SELECT + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL + - 98 AS col2 FROM tab2 cor0
----
-98
-98
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 97 * cor0.col1 + cor0.col1 + - 2 col2 FROM tab2 AS cor0
----
-1634
-2978
-5666
query I rowsort
SELECT + col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT ALL col0 DIV - 77 - + col2 * - 27 FROM tab1 AS cor0
----
1458
1539
2591
skipif mysql # not compatible
query I rowsort label-327
SELECT ALL col0 / - 77 - + col2 * - 27 FROM tab1 AS cor0
----
1458
1539
2591
query I rowsort
SELECT ALL - 20 * - col0 - - col2 AS col2 FROM tab0 AS cor0
----
1862
513
701
query I rowsort
SELECT + + ( col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 6 + + col1 FROM tab1 AS cor0
----
16
19
32
query I rowsort
SELECT ALL - - col2 + - 14 AS col1 FROM tab2 AS cor0
----
12
13
24
query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2 AS cor0
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 27 * cor0.col2 col2 FROM tab0 cor0
----
-197046
-21384
-945
query I rowsort
SELECT + cor0.col0 * + 7 FROM tab2 cor0
----
49
546
553
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + ( col2 ) * + col1 + - col2 - - col1 FROM tab2 AS cor0
----
1567
625
841
query I rowsort
SELECT DISTINCT + - col1 * - col0 + col0 - + ( + col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 * col2 + - tab0.col1 AS col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT + tab2.col2 - col0 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT DISTINCT - col2 + + col0 DIV col0 + col1 AS col0 FROM tab1
----
-27
-46
-82
skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - col2 + + col0 / col0 + col1 AS col0 FROM tab1
----
-27
-46
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab2.col2 + col0 * col1 col0 FROM tab2
----
406
4345
6630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-342
SELECT col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-342
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-343
SELECT DISTINCT col0 * CAST( + ( + col2 ) AS SIGNED ) + col0 FROM tab0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT col0 * CAST ( + ( + col2 ) AS INTEGER ) + col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL - col1 + 65 AS col2 FROM tab1
----
39
52
55
query I rowsort
SELECT - col1 + + cor0.col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + - 14 AS col2 FROM tab0 AS cor0
----
-14
-14
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT DISTINCT + col0 DIV - ( - tab1.col2 * col2 ) + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT + col0 / - ( - tab1.col2 * col2 ) + col2 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-348
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) * - tab1.col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) * - tab1.col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - ( + 38 ) col2 FROM tab0
----
-14
-3
51
query I rowsort
SELECT DISTINCT - 22 FROM tab1
----
-22
onlyif mysql # use DIV operator for integer division
query I rowsort label-351
SELECT DISTINCT - 32 DIV + 99 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT - 32 / + 99 FROM tab0 cor0
----
0
query I rowsort
SELECT + ( - col1 ) * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-353
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 69 FROM tab0
----
69
69
69
query I rowsort
SELECT + col1 + col2 * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - - 56 + + col2 AS col1 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT + col2 * 74 + - ( + col1 * + 35 + col2 ) FROM tab2
----
-167
2179
886
query I rowsort
SELECT + col2 + - ( col1 + - col1 ) * - tab2.col0 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT tab2.col1 * - 79 FROM tab2
----
-1343
-2449
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-361
SELECT DISTINCT - col0 DIV - tab0.col0 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT - col0 / - tab0.col0 AS col1 FROM tab0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + col0 col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-363
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-363
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 38 AS col0 FROM tab0
----
-38
-38
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2, tab1 cor0, tab1, tab0 AS cor1
----
0
query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - col1 ) col0 FROM tab2
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT col0 + 82 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
6
72
86
skipif mysql # not compatible
query I rowsort label-371
SELECT col0 + 82 / cor0.col1 AS col1 FROM tab1 AS cor0
----
6
72
86
query I rowsort
SELECT DISTINCT 38 + + tab0.col1 * - 53 AS col1 FROM tab0
----
-4520
-4785
-5103
query I rowsort
SELECT col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-374
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-374
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
NULL
query I rowsort
SELECT tab1.col2 * + 55 AS col1 FROM tab1
----
2970
3135
5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT col2 DIV col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-376
SELECT col2 / col1 AS col2 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT - col0 DIV - 67 + col1 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-377
SELECT - col0 / - 67 + col1 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT + col1 * - col0 * col0 + col1 AS col1 FROM tab0 cor0
----
-118728
-49450
-720720
query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col0 * + col2 + - col2 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT - col1 * cor0.col0 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col1 * ( - ( col1 ) ) + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL col1 - - col0 AS col0 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-385
SELECT - CAST( col0 AS SIGNED ) + col0 * + 32 * + col1 col1 FROM tab0 AS cor0
----
108605
259079
66024
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-385
SELECT - CAST ( col0 AS INTEGER ) + col0 * + 32 * + col1 col1 FROM tab0 AS cor0
----
108605
259079
66024
query I rowsort
SELECT DISTINCT col0 * col1 * - col1 + col2 + col1 * - col2 AS col0 FROM tab0
----
-180309
-329411
-744389
query I rowsort
SELECT - 6 FROM tab1
----
-6
-6
-6
query I rowsort
SELECT 92 + 12 FROM tab1 cor0
----
104
104
104
query I rowsort
SELECT DISTINCT + ( 28 ) * col1 + 78 AS col2 FROM tab0 AS cor0
----
2486
2626
2794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-390
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-390
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-391
SELECT CAST( NULL AS SIGNED ) - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-391
SELECT CAST ( NULL AS INTEGER ) - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-393
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col2 * - col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-397
SELECT + col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-397
SELECT + col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 + 19 * col1 FROM tab0 AS cor0
----
1658
1818
1878
query I rowsort
SELECT ALL - col2 + + col2 + 71 * + col0 * col2 FROM tab2 cor0
----
13419
143988
213142
query I rowsort
SELECT ALL 49 AS col2 FROM tab0
----
49
49
49
query I rowsort
SELECT cor1.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 13 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab2
----
-50
query I rowsort
SELECT + col0 * 28 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT - - col1 + - cor0.col1 * + col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + + 80 * col1 AS col2 FROM tab2 cor0
----
1360
2480
4720
query I rowsort
SELECT DISTINCT - + ( - col2 ) * - 59 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT - + col0 * + col1 - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + - 61 AS col1 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT + + 27 FROM tab2 AS cor0
----
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 - + tab0.col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL tab1.col0 * col2 - - col2 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT col2 DIV + col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-415
SELECT col2 / + col0 FROM tab1
----
0
1
18
query I rowsort
SELECT + col1 * - col0 + - col1 AS col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL tab0.col1 + - 95 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8949df65eeeb033acaca32d37eeb6aed
query I rowsort
SELECT DISTINCT + tab1.col2 + col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + 87 + - cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e988cbff94e71eb80a941c46958dbdba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT - 94 + - col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-420
SELECT - 94 + - col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 89 * - col2 + - col2 FROM tab0
----
-2970
-7380
-90
query I rowsort
SELECT + - col1 * + col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 + + col2 * 96 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT + + cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT ALL - col2 DIV + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - col2 / + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * col1 col1 FROM tab2
----
1326
2418
4602
query I rowsort
SELECT + 44 + - col1 AS col1 FROM tab2 AS cor0
----
-15
13
27
query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) <> NULL
----
query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) = col1
----
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT col0 * col2 FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN ( - col1 ) AND - col1
----
query I rowsort
SELECT - col0 + - col2 + - tab0.col1 * - col0 AS col1 FROM tab0
----
2007
3359
7928
onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT DISTINCT col2 + + col0 * col0 DIV + col1 AS col1 FROM tab1
----
466
54
588
skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT col2 + + col0 * col0 / + col1 AS col1 FROM tab1
----
466
54
588
query I rowsort
SELECT DISTINCT + col0 + tab1.col2 * col1 * + col2 AS col0 FROM tab1
----
119888
32554
75819
query I rowsort
SELECT col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col1 * + tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - tab0.col0 * - tab0.col1 + tab0.col0 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab2 WHERE + col0 NOT IN ( col1 + tab2.col1 )
----
-21
33
4
query I rowsort
SELECT DISTINCT + col1 * + col1 + + tab0.col2 AS col0 FROM tab0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT col2 + - tab0.col2 DIV + col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-441
SELECT col2 + - tab0.col2 / + col1 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col1 FROM tab2
----
118
34
62
query I rowsort
SELECT col2 + tab2.col0 AS col1 FROM tab2 WHERE NULL IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2 WHERE - col0 BETWEEN col2 * col2 AND NULL
----
query I rowsort
SELECT DISTINCT col1 + - col2 * - col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col1 + col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 * col2 AS col2 FROM tab0 WHERE ( - col0 ) IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT ALL + col1 + - tab0.col1 DIV col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + col1 + - tab0.col1 / col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL + tab1.col2 + + col0 * col0 * col2 FROM tab1
----
233529
540
614496
query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN ( col1 + col2 ) AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col2 + - col2 AS col2 FROM tab2
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col1 * col1 <= + col1 + - col0
----
query I rowsort
SELECT ALL col1 + - col0 FROM tab0
----
2
62
62
query III rowsort
SELECT * FROM tab0 WHERE + col2 / col2 NOT IN ( + tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - 17 FROM tab1, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT DISTINCT - tab0.col0 * col2 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT ALL col2 DIV col2 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-458
SELECT ALL col2 / col2 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL 35 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT + - ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-461
SELECT ALL - CAST( 6 AS SIGNED ) * col1 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7912
-8827
-9991
skipif mysql # not compatible
query I rowsort label-461
SELECT ALL - CAST ( 6 AS INTEGER ) * col1 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7912
-8827
-9991
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT DISTINCT - col0 DIV - 53 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT - col0 / - 53 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT - 88 - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to bf8dd0ad32bcd25918ae572e8ff09194
query I rowsort
SELECT col2 + + 48 * col0 FROM tab0 AS cor0
----
1185
1681
4354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-465
SELECT DISTINCT + CAST( - 91 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT + CAST ( - 91 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-91
query I rowsort
SELECT ALL col0 * + cor0.col0 + col2 AS col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT col1 - col0 * + col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL ( 56 ) AS col1 FROM tab0 AS cor0
----
56
56
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 66 * col2 AS col1 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 + ( col1 ) FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT ALL + cor0.col1 DIV col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + cor0.col1 / col0 col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT - - 30 AS col1 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT ALL col1 + - col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - col0 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 11 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
11440
7040
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT DISTINCT - - col1 DIV col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - - col1 / col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col1 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT ALL + col2 + 11 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT DISTINCT col1 - 93 FROM tab1 AS cor0
----
-67
-80
-83
query I rowsort
SELECT + col0 * cor0.col1 + - col0 * col0 * col0 AS col0 FROM tab0 cor0
----
-11760
-39480
-696870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-484
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 * 21 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT ALL + - col0 * 45 + - 63 * - col1 FROM tab2 AS cor0
----
-2484
1638
207
query I rowsort
SELECT + + cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-493
SELECT cor0.col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-493
SELECT cor0.col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - cor0.col0 + ( col0 + col1 ) FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col2 AS col0 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT - - col1 * - cor0.col2 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL - col2 + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + cor0.col0 + - ( col2 + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL col1 * col2 * col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + 79 AS col0 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab0 cor0
----
13
query I rowsort
SELECT + ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col2 + 9 FROM tab0
----
-24
-73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT ALL - col2 + - col1 DIV - col0 AS col0 FROM tab1
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - col2 + - col1 / - col0 AS col0 FROM tab1
----
-46
-57
-96
query I rowsort
SELECT ALL 96 AS col1 FROM tab1
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - - col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col1 * col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col0 * col0 + col0 * col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT + + col1 + cor0.col2 DIV col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-512
SELECT + + col1 + cor0.col2 / col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT col1 * ( cor0.col0 ) * cor0.col0 + col1 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT DISTINCT 29 FROM tab0
----
29
query I rowsort
SELECT 57 * - tab2.col0 AS col0 FROM tab2
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - col0 * 83 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL 21 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * tab1.col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT + 29 + + col2 AS col0 FROM tab2
----
55
56
67
query I rowsort
SELECT + + col0 + 44 FROM tab0 AS cor0
----
133
68
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT ALL - 41 * - 20 FROM tab0 AS cor0
----
820
820
820
query I rowsort
SELECT - ( + 41 ) AS col0 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ALL - col2 * - col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - - 57 + col0 AS col0 FROM tab2 AS cor0
----
135
136
64
query I rowsort
SELECT - + col2 + col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - col2 - col0 * - col1 AS col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 + 77 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 941165c8423ac305a6a0066f40747e79
query I rowsort
SELECT 0 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 28 * col2 + ( col1 * col2 + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
222
3848
9849
onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT + ( - col2 ) + - 57 DIV col0 - col1 * ( col2 * + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-3397
-664200
-68147
skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT + ( - col2 ) + - 57 / col0 - col1 * ( col2 * + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-3397
-664200
-68147
query I rowsort
SELECT ALL + + 38 AS col1 FROM tab0 cor0
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT col1 + + col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + + col0 + col0 * col0 FROM tab0 cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 col0 FROM tab1 cor0
----
-86
-86
-86
query I rowsort
SELECT ALL - - col0 + col1 * + ( 52 ) FROM tab1 AS cor0
----
1355
584
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT DISTINCT col2 DIV col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT col2 / col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL - 82 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
2132
2214
3116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * ( col0 ) col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + - ( - col1 ) * 4 AS col1 FROM tab1 cor0
----
104
40
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col0 * - ( col2 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + tab2.col2 + - col0 + col2 * col2 FROM tab2
----
1403
624
749
query I rowsort
SELECT 44 - - col1 FROM tab1
----
54
57
70
query I rowsort
SELECT DISTINCT - 51 - col1 * col0 AS col2 FROM tab2
----
-1394
-268
-4653
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + - 50 + + col1 * 72 FROM tab0 AS cor0
----
6142
6502
6934
query I rowsort
SELECT 11 * + col0 AS col0 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT - cor0.col1 * col2 + ( + ( col1 ) ) FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT col1 * - ( + 17 ) AS col0 FROM tab0
----
-1462
-1547
-1649
query I rowsort
SELECT - + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + + col1 * + 86 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT col1 * - 40 AS col2 FROM tab2
----
-1240
-2360
-680
onlyif mysql # use DIV operator for integer division
query I rowsort label-558
SELECT ALL - tab2.col0 DIV + col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-558
SELECT ALL - tab2.col0 / + col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL - 97 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT + col1 * + col1 - + col2 * ( col0 ) AS col1 FROM tab0
----
6604
9374
983
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + col2 + col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + - ( + col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - + 29 AS col1 FROM tab0 AS cor0
----
-29
-29
-29
query I rowsort
SELECT + ( - 18 ) * - col2 + - cor0.col1 * + 40 * + col1 + cor0.col1 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-11522
-140306
-38791
query I rowsort
SELECT ALL - - col1 + - 24 + + cor0.col1 * col1 FROM tab2 AS cor0
----
282
3516
968
query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT ALL + - col1 * 10 + + 71 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-130
-237
-99
skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + - col1 * 10 + + 71 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-130
-237
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 * ( col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 + col2 + ( - col1 + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL col1 - - col1 * cor0.col0 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col0 * ( col0 ) + 19 * col2 * col2 FROM tab1 AS cor0
----
181600
55467
65884
query I rowsort
SELECT DISTINCT - col0 * - 60 - col1 FROM tab1 cor0
----
154
3830
4787
query I rowsort
SELECT cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + - col0 * col1 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-582
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-582
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - - 13 FROM tab0 AS cor0
----
13
query I rowsort
SELECT ALL ( 28 ) * col0 AS col0 FROM tab1 cor0
----
1792
2240
84
query I rowsort
SELECT - 98 * + col1 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT + col1 + cor0.col2 DIV + cor0.col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-586
SELECT + col1 + cor0.col2 / + cor0.col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ALL - 69 + ( col0 * col1 ) FROM tab1 AS cor0
----
571
9
971
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor1.col1 * - 54 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-4644
-4914
-5238
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col0 FROM tab2, tab0 AS cor0, tab2 cor1, tab2 cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab0, tab0 AS cor0
----
-17
query I rowsort
SELECT ALL + - ( col2 ) + - col1 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2 AS cor0
----
48
query I rowsort
SELECT ALL 79 + + col0 AS col0 FROM tab0 AS cor0
----
103
114
168
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1
onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT + + col0 DIV col2 + 23 AS col2 FROM tab0 AS cor0
----
23
24
58
skipif mysql # not compatible
query I rowsort label-596
SELECT + + col0 / col2 + 23 AS col2 FROM tab0 AS cor0
----
23
24
58
query I rowsort
SELECT - 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT - 81 + col2 * + col2 FROM tab0 AS cor0
----
-80
1008
6643
onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT - 91 DIV 27 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
skipif mysql # not compatible
query I rowsort label-599
SELECT - 91 / 27 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT ALL - col1 * col1 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
query I rowsort
SELECT col1 + - col0 * 16 AS col2 FROM tab1 cor0
----
-1014
-1267
-22
query I rowsort
SELECT DISTINCT - 64 + + col2 * + col0 AS col0 FROM tab2
----
125
1964
2938
query I rowsort
SELECT ALL - + 20 AS col0 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL - cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - tab1.col0 + + col0 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-606
SELECT - col0 + col1 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-606
SELECT - col0 + col1 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 28 + - col2 FROM tab2
----
-10
1
2
query I rowsort
SELECT 25 AS col2 FROM tab1
----
25
25
25
query I rowsort
SELECT ALL + col0 * tab1.col1 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * col1 col1 FROM tab1
----
380
494
988
query I rowsort
SELECT + 22 AS col1 FROM tab1
----
22
22
22
query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + col2 * + cor0.col1 + 17 * col2 * - col1 AS col2 FROM tab2 cor0
----
-10336
-13392
-24544
skipif mysql # not compatible
query I rowsort
SELECT - col1 + + CAST ( col1 AS REAL ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 5986d1260195c81da622c6c47a971169
query I rowsort
SELECT - + col1 * 44 FROM tab1 AS cor0
----
-1144
-440
-572
query I rowsort
SELECT ALL - tab0.col0 * - 89 AS col1 FROM tab0
----
2136
3115
7921
query I rowsort
SELECT DISTINCT 56 FROM tab2, tab1 AS cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT + col1 + + 29 AS col1 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT - col0 + ( + col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + col2 * tab1.col0 FROM tab1
----
-1536
-2754
399
query I rowsort
SELECT DISTINCT col0 + - col0 * - col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL - 26 + - ( col0 ) FROM tab0
----
-115
-50
-61
query I rowsort
SELECT col1 + - col0 * col1 * + col0 + tab2.col0 AS col1 FROM tab2
----
-106001
-1481
-358819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-626
SELECT DISTINCT cor0.col2 / CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT cor0.col2 / CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - + col2 * - 99 + col1 * + col2 * col0 FROM tab1 AS cor0
----
109344
42123
9558
query I rowsort
SELECT DISTINCT 57 + + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-112
-43
-619
query I rowsort
SELECT - + 31 FROM tab2 AS cor0
----
-31
-31
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT col0 + 3 DIV col0 FROM tab1 AS cor0
----
4
64
80
skipif mysql # not compatible
query I rowsort label-631
SELECT col0 + 3 / col0 FROM tab1 AS cor0
----
4
64
80
query I rowsort
SELECT DISTINCT + 34 FROM tab2 AS cor0
----
34
query I rowsort
SELECT - ( col0 ) * col0 AS col1 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + col2 + col1 * 27 col2 FROM tab0
----
2386
2570
2651
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + col0 * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - - cor0.col2 * col1 * col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - + 61 * col1 AS col1 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT + - col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 19 * - tab0.col1 AS col2 FROM tab0
----
-1634
-1729
-1843
query I rowsort
SELECT + 35 * + col1 AS col2 FROM tab2
----
1085
2065
595
query I rowsort
SELECT - + col0 * + col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - cor0.col2 + col2 * col0 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT + col2 * + col2 + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-646
SELECT + col2 * + col2 + cor0.col0 / - col0 FROM tab0 AS cor0
----
0
1088
6723
query I rowsort
SELECT 60 + - col1 FROM tab2 cor0
----
1
29
43
query I rowsort
SELECT + col2 + + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 97 col2 FROM tab1 cor0
----
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-650
SELECT - + col2 / cor0.col2 - + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-650
SELECT - + col2 / cor0.col2 - + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + - col0 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col2 * col1 AS col0 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 47 AS REAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - col2 * + 6 AS col1 FROM tab1 AS cor0
----
-324
-342
-576
query I rowsort
SELECT col0 + col1 * - 51 FROM tab0 AS cor0
----
-4362
-4552
-4912
query I rowsort
SELECT 76 + - 59 FROM tab2 cor0
----
17
17
17
query I rowsort
SELECT - + 58 + col2 - - col2 AS col0 FROM tab2 AS cor0
----
-4
-6
18
query I rowsort
SELECT + 30 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT ALL cor0.col0 * 15 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 260b4f8a220ff2817550bd2426156b7e
query I rowsort
SELECT + 90 + + col2 FROM tab2
----
116
117
128
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT + 53 DIV + col0 + cor0.col2 + col2 FROM tab2 cor0
----
52
61
76
skipif mysql # not compatible
query I rowsort label-662
SELECT + 53 / + col0 + cor0.col2 + col2 FROM tab2 cor0
----
52
61
76
query I rowsort
SELECT - 48 AS col1 FROM tab0 AS cor0
----
-48
-48
-48
query I rowsort
SELECT + col1 + col1 - col2 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT col2 * cor0.col2 + - cor0.col0 + + col1 FROM tab2 cor0
----
1382
657
753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) + + col2 col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT + 29 + col1 * col2 - col0 DIV + 33 FROM tab1 AS cor0
----
1275
1433
598
skipif mysql # not compatible
query I rowsort label-667
SELECT + 29 + col1 * col2 - col0 / + 33 FROM tab1 AS cor0
----
1275
1433
598
query I rowsort
SELECT ALL + - 82 FROM tab0 AS cor0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col2 FROM tab1 AS cor0
----
27
27
27
query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - ( col1 ) + ( 58 ) * - col0 FROM tab2 AS cor0
----
-437
-4583
-4599
onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT - ( + col2 ) DIV - col2 + ( - col0 + CAST( + col2 AS SIGNED ) * col1 ) AS col0 FROM tab0 AS cor0
----
2815
63
7374
skipif mysql # not compatible
query I rowsort label-674
SELECT - ( + col2 ) / - col2 + ( - col0 + CAST ( + col2 AS INTEGER ) * col1 ) AS col0 FROM tab0 AS cor0
----
2815
63
7374
query I rowsort
SELECT DISTINCT col0 - col2 * + 79 AS col1 FROM tab2 AS cor0
----
-1976
-2126
-2923
query I rowsort
SELECT + + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 48 + - cor0.col1 FROM tab2, tab0 AS cor0
----
-38
-43
-49
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT + + col0 * col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-679
SELECT + + col0 * col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
query I rowsort
SELECT col1 + + 80 AS col1 FROM tab2 AS cor0
----
111
139
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT ALL - - col2 * - col1 + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - - col2 * - col1 + col1 / + col1 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT DISTINCT + + col1 - - col2 DIV col0 col2 FROM tab0 AS cor0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-683
SELECT DISTINCT + + col1 - - col2 / col0 col2 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT - - col2 * + 45 * + col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
30394
32778
64942
query I rowsort
SELECT col2 * 25 FROM tab0 AS cor0
----
2050
25
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 20 * col0 col1 FROM tab2 AS cor0
----
3780
40560
60040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + ( cor0.col2 ) + col2 col1 FROM tab1 AS cor0
----
105
112
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT DISTINCT + cor0.col2 DIV + 44 - - col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + cor0.col2 / + 44 - - col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col1 * - 7 AS col1 FROM tab0 AS cor0
----
602
637
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-690
SELECT DISTINCT + CAST( 99 AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + CAST ( 99 AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
99
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b3ea820890445d59f3f7464a1521d42d
query I rowsort
SELECT DISTINCT ( col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-693
SELECT DISTINCT - col2 + + col0 DIV cor0.col1 + col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT - col2 + + col0 / cor0.col1 + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - cor0.col0 * cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc
query I rowsort
SELECT ( cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + 51 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-29376
-403971
-62475
onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT DISTINCT - col2 DIV col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT - col2 / col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - 45 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8adf746867728a18b3ecd447f0d1eb0
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 IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
17
31
59
query I rowsort
SELECT ALL ( + ( - col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + 78 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - 31 + - col0 AS col0 FROM tab0
----
-120
-55
-66
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT - - cor0.col1 * col2 * - 41 + + col2 AS col1 FROM tab0 AS cor0
----
-116325
-305860
-3976
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 37 + - col2 * - 9 FROM tab0 AS cor0
----
334
46
775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-711
SELECT ALL + 98 * + col0 + CAST( NULL AS SIGNED ) * + ( col2 + 58 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-711
SELECT ALL + 98 * + col0 + CAST ( NULL AS INTEGER ) * + ( col2 + 58 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 54 FROM tab2, tab2 AS cor0
----
-54
query I rowsort
SELECT col2 + - 44 AS col1 FROM tab1
----
10
13
52
query I rowsort
SELECT - col2 - col1 FROM tab1
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + - col2 + col2 col0 FROM tab2 AS cor0
----
61
61
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT ( ( col1 ) ) + + 12 DIV - 79 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-716
SELECT ( ( col1 ) ) + + 12 / - 79 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - cor0.col1 + + col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 + - 61 * + col0 * 22 AS col2 FROM tab0 AS cor0
----
-119527
-32232
-47005
query I rowsort
SELECT DISTINCT + - col0 - 92 * col2 * ( col1 * col2 + col1 ) FROM tab1 AS cor0
----
-11137232
-3041584
-7104243
query I rowsort
SELECT + 71 + col2 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT ALL + 66 * + cor0.col1 FROM tab0 cor0
----
5676
6006
6402
onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT DISTINCT - + col2 DIV - 45 + col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - + col2 / - 45 + col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col2 * + ( - col1 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT 84 FROM tab1 AS cor0
----
84
query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 39 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
-22230
-48672
-54756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - 80 + + col1 * + 33 * col0 AS col2 FROM tab1 AS cor0
----
21040
2494
34240
query I rowsort
SELECT DISTINCT 36 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT ALL + 81 * + col2 * col1 AS col2 FROM tab1 cor0
----
101088
113724
46170
query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0
----
46
46
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-732
SELECT ALL + + col2 + + col0 * + CAST( + 2 AS SIGNED ) FROM tab1 cor0
----
185
256
60
skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + + col2 + + col0 * + CAST ( + 2 AS INTEGER ) FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT - - 18 DIV col2 FROM tab0 AS cor0
----
0
0
18
skipif mysql # not compatible
query I rowsort label-734
SELECT - - 18 / col2 FROM tab0 AS cor0
----
0
0
18
query I rowsort
SELECT DISTINCT + 69 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1656
2415
6141
onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT - - col1 * col0 + 68 DIV - cor0.col2 FROM tab1 AS cor0
----
1040
639
77
skipif mysql # not compatible
query I rowsort label-736
SELECT - - col1 * col0 + 68 / - cor0.col2 FROM tab1 AS cor0
----
1040
639
77
query I rowsort
SELECT DISTINCT col0 * + col2 + + col1 + - col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT DISTINCT col1 + 93 DIV cor0.col1 FROM tab2 AS cor0
----
22
34
60
skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT col1 + 93 / cor0.col1 FROM tab2 AS cor0
----
22
34
60
query I rowsort
SELECT col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 72 AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL 35 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT + col2 DIV ( + col1 ) - + col1 DIV - col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-745
SELECT + col2 / ( + col1 ) - + col1 / - col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + + col1 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT + col2 * + 55 + + ( - cor0.col2 ) FROM tab0 AS cor0
----
1782
4428
54
query I rowsort
SELECT ALL col1 * 68 * col2 - - col1 FROM tab0 AS cor0
----
193070
507507
6693
query I rowsort
SELECT ALL + col0 + + 6 AS col2 FROM tab0 AS cor0
----
30
41
95
query I rowsort
SELECT DISTINCT - col1 + 53 AS col0 FROM tab0 AS cor0
----
-33
-38
-44
query I rowsort
SELECT - ( - 66 ) * col0 + - 21 AS col2 FROM tab2 cor0
----
441
5127
5193
query I rowsort
SELECT ALL - col1 * 65 AS col0 FROM tab1 AS cor0
----
-1690
-650
-845
query I rowsort
SELECT ALL - 98 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL - 29 AS col0 FROM tab1 AS cor0
----
-29
-29
-29
query I rowsort
SELECT + ( - cor0.col0 ) + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 67 * - cor0.col1 AS col1 FROM tab0 cor0
----
5762
6097
6499
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + col2 + + 35 AS col0 FROM tab1 cor0
----
1379
1493
662
query I rowsort
SELECT ALL + 38 AS col0 FROM tab2 AS cor0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT ALL - tab1.col2 * col2 * - col2 + + col0 DIV 23 AS col1 FROM tab1
----
157464
185195
884739
skipif mysql # not compatible
query I rowsort label-760
SELECT ALL - tab1.col2 * col2 * - col2 + + col0 / 23 AS col1 FROM tab1
----
157464
185195
884739
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2, tab0, tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT + 74 DIV - col1 + - col0 * - col2 FROM tab2 AS cor0
----
187
2027
2998
skipif mysql # not compatible
query I rowsort label-762
SELECT + 74 / - col1 + - col0 * - col2 FROM tab2 AS cor0
----
187
2027
2998
query I rowsort
SELECT DISTINCT 37 * + col2 * - col1 FROM tab0 AS cor0
----
-105006
-276094
-3589
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT ALL - col0 + col0 DIV cor0.col1 + col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-765
SELECT ALL - col0 + col0 / cor0.col1 + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 + ( + col1 ) * col0 FROM tab0 AS cor0
----
1375
3394
975
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT + 34 - + col2 * + col2 * col1 FROM tab0 AS cor0
----
-611850
-63
-93620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 + col2 col0 FROM tab1 AS cor0
----
124
134
205
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 66d12da55ea14263893cfc3170a3c57e
query I rowsort
SELECT + + 55 - + col2 FROM tab1 AS cor0
----
-2
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) * + col0 + col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-773
SELECT + ( col2 ) * col2 + - CAST( + col2 AS SIGNED ) + col0 FROM tab1
----
2865
3256
9200
skipif mysql # not compatible
query I rowsort label-773
SELECT + ( col2 ) * col2 + - CAST ( + col2 AS INTEGER ) + col0 FROM tab1
----
2865
3256
9200
query I rowsort
SELECT 0 + ( + col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT - tab2.col1 + + col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) * - col1 AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col1 * - col1 + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
15579
8188
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + col0 col0 FROM tab1 cor0
----
133
149
72
query I rowsort
SELECT + - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 50 + col0 AS col2 FROM tab2
----
-43
28
29
query I rowsort
SELECT ALL 10 AS col1 FROM tab0
----
10
10
10
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab1
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-785
SELECT CAST( col1 AS SIGNED ) * col0 * col1 AS col2 FROM tab0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-785
SELECT CAST ( col1 AS INTEGER ) * col0 * col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL - 20 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT col0 * col1 + tab0.col2 + + ( col1 ) AS col0 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT ALL 61 FROM tab0
----
61
61
61
query I rowsort
SELECT + col0 * col2 * - 22 AS col0 FROM tab2 AS cor0
----
-4158
-44616
-66044
query I rowsort
SELECT 35 + col0 AS col1 FROM tab0
----
124
59
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * col1 + + 80 * + 9 col2 FROM tab2
----
1009
1681
4201
query I rowsort
SELECT DISTINCT col1 + - col2 * 58 AS col0 FROM tab1 AS cor0
----
-3106
-3296
-5555
query I rowsort
SELECT ALL + 19 * col1 FROM tab1
----
190
247
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 * - 12 + 87 col2 FROM tab0
----
507
87663
9591
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0, tab0 cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT ALL 35 * tab2.col0 FROM tab2
----
245
2730
2765
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + ( - ( col2 ) ) col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - ( + 11 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT ALL - - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-800
SELECT ALL - + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-800
SELECT ALL - + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col2 * - ( col2 + - col2 ) AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * + col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT ALL - col2 * ( col0 ) DIV + col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - col2 * ( col0 ) / + col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 50 AS col1 FROM tab0
----
50
50
50
query I rowsort
SELECT ALL col1 * col1 + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - - col0 - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ( + 38 ) FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - col1 * - col1 - col1 * + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + ( + col0 + - col2 ) AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab2
----
81
query I rowsort
SELECT ALL tab0.col0 * - 1 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT + cor0.col0 + col2 DIV + 24 FROM tab0 AS cor0
----
25
35
92
skipif mysql # not compatible
query I rowsort label-815
SELECT + cor0.col0 + col2 / + 24 FROM tab0 AS cor0
----
25
35
92
query I rowsort
SELECT col0 * col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - + col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT 31 + col2 * - col0 FROM tab2 AS cor0
----
-158
-1997
-2971
query I rowsort
SELECT ALL 25 * + 46 FROM tab0
----
1150
1150
1150
query I rowsort
SELECT ALL + 75 AS col1 FROM tab0
----
75
75
75
query I rowsort
SELECT tab0.col2 * - tab0.col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT 68 DIV 44 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-822
SELECT 68 / 44 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT 27 * + col0 + 36 FROM tab0 AS cor0
----
2439
684
981
query I rowsort
SELECT + + col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - 31 * - col1 AS col1 FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT + col2 * - col0 + ( - col0 ) FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 65 + col1 AS col2 FROM tab1 AS cor0
----
75
78
91
query I rowsort
SELECT ( - col2 ) + ( + 39 ) * - col2 AS col1 FROM tab1
----
-2160
-2280
-3840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 68 + col2 AS col0 FROM tab1
----
122
125
164
query I rowsort
SELECT - 72 + col0 * cor0.col2 FROM tab1 AS cor0
----
3576
7608
90
query I rowsort
SELECT col2 + + col0 * 91 + col2 FROM tab1
----
381
5938
7472
query I rowsort
SELECT col0 + - tab2.col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 + + col2 + + col2 * + tab0.col1 * col1 AS col2 FROM tab0
----
244125
679213
9445
onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT DISTINCT + col2 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + col2 + col2 / col1 AS col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL - col2 * ( - cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-840
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-840
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT cor0.col0 * ( - 68 ) * col2 AS col2 FROM tab0 AS cor0
----
-2380
-496264
-53856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474
query I rowsort
SELECT DISTINCT - col0 + + ( - ( col2 ) ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col0 * - cor0.col2 + 31 + col2 AS col0 FROM tab0 AS cor0
----
67
7411
856
query I rowsort
SELECT ALL - col1 + - col2 * - col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT col0 * col1 * col2 + + col2 * ( + cor0.col2 * + cor0.col1 ) FROM tab1 AS cor0
----
219648
68970
80028
query I rowsort
SELECT ALL - + col2 * ( + col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + - col0 * - 3 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT + col0 + 13 AS col1 FROM tab2 AS cor0
----
20
91
92
query I rowsort
SELECT ALL + + col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-853
SELECT + col1 + - CAST( + 56 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-30
-43
-46
skipif mysql # not compatible
query I rowsort label-853
SELECT + col1 + - CAST ( + 56 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT ALL col1 * - ( col2 + - col0 ) * - 52 FROM tab1 AS cor0
----
-3640
10816
68952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 22 + 45 AS col1 FROM tab2 AS cor0
----
67
query I rowsort
SELECT DISTINCT + - col2 + col2 + col0 * - 52 AS col0 FROM tab0 cor0
----
-1248
-1820
-4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-858
SELECT ALL + - CAST( NULL AS DECIMAL ) * 80 + col2 * + ( + 17 ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + - CAST ( NULL AS REAL ) * 80 + col2 * + ( + 17 ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT DISTINCT + - cor0.col1 * - cor0.col1 - col2 DIV CAST( + col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
166
675
98
skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + - cor0.col1 * - cor0.col1 - col2 / CAST ( + col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
166
675
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-861
SELECT + col2 - + col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-861
SELECT + col2 - + col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 98 + + col2 FROM tab2 cor0
----
124
125
136
query I rowsort
SELECT ALL - - col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 19 + - col0 * + col0 FROM tab2 AS cor0
----
-6103
-6260
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT DISTINCT col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT col0 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + - 50 + + col2 * - col0 * + col0 AS col2 FROM tab2 cor0
----
-1373
-158234
-237208
query I rowsort
SELECT ALL col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL col0 - 86 FROM tab0
----
-51
-62
3
query I rowsort
SELECT ALL + col2 - + 11 * col2 AS col2 FROM tab2
----
-260
-270
-380
query I rowsort
SELECT DISTINCT - 4 FROM tab0
----
-4
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 AS col0 FROM tab1 WHERE NOT NULL IN ( + col1 + col1 * col0 - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT DISTINCT col2 DIV col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT col2 / col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT tab2.col0 + - tab2.col2 + col0 * - col2 FROM tab2
----
-1976
-209
-2961
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT DISTINCT + col2 DIV + col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT + col2 / + col0 FROM tab0
----
0
1
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 + col1 * + col2 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT + col0 - col0 FROM tab2
----
0
query I rowsort
SELECT col0 - - col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - col0 + + col0 AS col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col0 - col2 * - col1 col1 FROM tab2
----
1054
1989
6136
query I rowsort
SELECT + tab0.col2 * col2 + + col0 AS col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL - col0 + + col0 * + col1 * tab1.col0 + col2 * - col2 FROM tab1
----
-2685
37647
73904
query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab1.col0 + tab1.col2 * + col1 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( col1 + + col0 * col0 * + col0 ) > NULL
----
query I rowsort
SELECT + col1 * col2 + col1 AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - col1 + tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * - col1 FROM tab1
----
-1248
-1404
-570
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT tab2.col2 * col0 - - tab2.col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col2 * col1 * + col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - col0 + - col2 FROM tab1 WHERE NOT col0 BETWEEN col1 AND - col2
----
-121
-176
-57
query I rowsort
SELECT col1 * - tab0.col2 + col0 AS col0 FROM tab0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 * col1 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col0 - - col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 * + col0 AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * col0 col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL IN ( - col2 )
----
query I rowsort
SELECT ALL tab0.col2 + + col1 AS col1 FROM tab0 WHERE NOT - col0 NOT IN ( - tab0.col0 - col1 * - col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT col0 * - col2 + tab2.col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT + col2 + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT - col0 - tab1.col1 AS col0 FROM tab1
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NULL = NULL
----
query I rowsort
SELECT + col1 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT ALL - - col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-912
SELECT ALL - - col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + - col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col2 AS col2 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + - col1 * - col1 + col0 col0 FROM tab1 AS cor0
----
1289
757
804
query I rowsort
SELECT ALL col0 + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 - - col0 * - col1 )
----
query I rowsort
SELECT DISTINCT col2 + + col0 * col0 AS col2 FROM tab0
----
1226
609
8003
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col2 ) AND NULL
----
query I rowsort
SELECT cor0.col1 + col0 + - col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT DISTINCT + col2 DIV col0 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + col2 / col0 FROM tab0 cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT col2 DIV cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-923
SELECT col2 / cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col2 + col2 - col0 AS col0 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL 49 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462
query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ALL 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
7
78
79
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * cor0.col0 * cor0.col0 FROM tab2 cor0
----
106114
1550
359015
query I rowsort
SELECT - ( cor0.col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT cor0.col1 - - 54 FROM tab2 AS cor0
----
113
71
85
query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col2 + col0 * col1 - + col1 AS col2 FROM tab1 cor0
----
106
1123
687
query I rowsort
SELECT DISTINCT col1 * - col0 * tab1.col0 + + col0 FROM tab1
----
-231
-40896
-83120
query I rowsort
SELECT - + 49 + col1 * + col1 - + 21 FROM tab1 AS cor0
----
30
606
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT col2 * + ( col0 ) + - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
182
1950
2923
skipif mysql # not compatible
query I rowsort label-940
SELECT col2 * + ( col0 ) + - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + - ( col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - + col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - 59 * - col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE tab0.col1 + col2 * + col2 NOT BETWEEN - col1 + col1 AND ( NULL )
----
query I rowsort
SELECT + col2 + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - col1 * - col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col0 * 4 FROM tab1 cor0
----
-12
-256
-320
query I rowsort
SELECT ALL 79 AS col2 FROM tab2
----
79
79
79
query I rowsort
SELECT col0 + - tab0.col2 * col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT + col0 + - ( - cor0.col2 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 87 + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-52
705
7211
query I rowsort
SELECT col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-955
SELECT - CAST( 57 AS SIGNED ) FROM tab0 AS cor0
----
-57
-57
-57
skipif mysql # not compatible
query I rowsort label-955
SELECT - CAST ( 57 AS INTEGER ) FROM tab0 AS cor0
----
-57
-57
-57
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + 28 + 75 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to ecf8639d8d45f60ceb1f0b2da4453a21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT DISTINCT col1 + col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT col1 + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - + 14 * col0 * + col0 + - 15 FROM tab2 cor0
----
-701
-85191
-87389
onlyif mysql # use DIV operator for integer division
query I rowsort label-961
SELECT - 97 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-961
SELECT - 97 / - col1 AS col2 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT + - col2 + col0 * 43 AS col1 FROM tab1 AS cor0
----
2695
3344
75
query I rowsort
SELECT ALL - - cor0.col1 + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
23
query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1
----
-91
query I rowsort
SELECT - 2 * col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - + 34 FROM tab1 cor0
----
-34
-34
-34
query I rowsort
SELECT ALL + 38 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT col2 * + col2 + + ( - col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
2609
2838
8176
query I rowsort
SELECT DISTINCT + 61 - - col1 AS col1 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - 0 AS col1 FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT + col1 * 14 FROM tab1
----
140
182
364
query I rowsort
SELECT + ( col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT - cor0.col2 * cor0.col1 * ( + col2 * - cor0.col2 ) - col0 FROM tab0 AS cor0
----
3090558
50174399
62
query I rowsort
SELECT col0 + - 70 AS col1 FROM tab1 AS cor0
----
-6
-67
10
query I rowsort
SELECT + - col0 * col2 + + col1 + col2 FROM tab2 AS cor0
----
-131
-1943
-2947
query I rowsort
SELECT + + col2 - - 2 AS col0 FROM tab1 AS cor0
----
56
59
98
query I rowsort
SELECT + tab2.col2 + 79 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 188d19e577d242e7173c43bd8e9fd1cc
query I rowsort
SELECT ALL + ( + col2 ) + + col2 * - col0 * col1 AS col1 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT tab0.col2 + - col0 * + ( tab0.col2 ) * tab0.col1 AS col0 FROM tab0
----
-3394
-664036
-68079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-983
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT + + col2 - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 * - 67 AS col2 FROM tab0
----
2211
5494
67
query I rowsort
SELECT - col0 * - 52 FROM tab0
----
1248
1820
4628
query I rowsort
SELECT - 61 FROM tab2, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + cor0.col2 + + col2 - col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col0 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - col2 * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-994
SELECT - + CAST( NULL AS SIGNED ) * col1 + col1 * cor0.col0 * - col0 + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-994
SELECT - + CAST ( NULL AS INTEGER ) * col1 + col1 * cor0.col0 * - col0 + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT + + 52 DIV col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-995
SELECT + + 52 / col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT - - 47 AS col2 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT ALL ( ( col2 ) ) FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT - col2 DIV + col1 + col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-998
SELECT - col2 / + col1 + col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT DISTINCT + 93 * col2 + col0 + - col2 FROM tab1 AS cor0
----
4971
5308
8912
query I rowsort
SELECT ALL - col1 - 83 FROM tab2
----
-100
-114
-142
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col0 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1002
SELECT - CAST( NULL AS SIGNED ) + tab0.col0 + + tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1002
SELECT - CAST ( NULL AS INTEGER ) + tab0.col0 + + tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 + tab0.col2 - + col0 AS col2 FROM tab0
----
63
84
95
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab2 cor0, tab2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT + tab1.col2 + col1 AS col1 FROM tab1
----
109
67
80
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00
query I rowsort
SELECT DISTINCT ( 93 ) FROM tab0 AS cor0
----
93
query I rowsort
SELECT - 58 * 24 * col2 + ( 18 ) FROM tab2 AS cor0
----
-36174
-37566
-52878
onlyif mysql # use DIV operator for integer division
query I rowsort label-1009
SELECT + ( 81 ) DIV + col0 AS col2 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-1009
SELECT + ( 81 ) / + col0 AS col2 FROM tab0 AS cor0
----
0
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1010
SELECT ALL - CAST( col2 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL - CAST ( col2 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1011
SELECT CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1011
SELECT CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col2 * col1 * 98 AS col0 FROM tab0 AS cor0
----
278148
731365
9541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 7 * + col2 col0 FROM tab0 AS cor0
----
255
42
663
query I rowsort
SELECT ALL + 52 FROM tab2 AS cor0
----
52
52
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1015
SELECT - CAST( NULL AS SIGNED ) + 83 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1015
SELECT - CAST ( NULL AS INTEGER ) + 83 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 21 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1423
655
708
query I rowsort
SELECT - 82 AS col0 FROM tab1 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL + col2 * ( 37 ) + col2 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT - col2 DIV - 69 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1020
SELECT - col2 / - 69 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - 16 col2 FROM tab1 AS cor0
----
-1024
-1280
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-1022
SELECT - col0 + CAST( col1 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-1022
SELECT - col0 + CAST ( col1 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT - cor2.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4
query I rowsort
SELECT DISTINCT - - cor0.col1 * 67 AS col0 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT - col0 * 84 AS col2 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT ALL col1 * col1 + - 4 AS col1 FROM tab1 AS cor0
----
165
672
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1027
SELECT + + col2 DIV CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1027
SELECT + + col2 / CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL - 87 + col1 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT + ( - col1 ) - + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * - col2 * col1 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT - - 40 + col0 * - 86 FROM tab0 AS cor0
----
-2024
-2970
-7614
query I rowsort
SELECT ALL + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - col1 * - col1 + col1 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
13689
2704
6500
query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - + col0 + - col1 * - 30 FROM tab0 AS cor0
----
2556
2641
2875
query I rowsort
SELECT - + cor0.col1 * + col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL + - col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - - col1 + col2 * - 33 FROM tab0 AS cor0
----
-1003
-2615
64
query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + ( col2 ) + + col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 57 FROM tab2
----
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1044
SELECT DISTINCT + col1 DIV col0 + col2 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT + col1 / col0 + col2 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT ALL 63 * col1 - - col2 FROM tab1 AS cor0
----
1692
687
915
query I rowsort
SELECT DISTINCT - - ( col0 ) * - 93 AS col1 FROM tab2 AS cor0
----
-651
-7254
-7347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT ALL + ( + col0 ) * CAST( NULL AS SIGNED ) + 73 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL + ( + col0 ) * CAST ( NULL AS INTEGER ) + 73 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 77 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT - col2 * col1 + ( ( col1 ) ) * col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + 17 * - col2 + 87 DIV + ( col1 ) FROM tab2
----
-441
-457
-641
skipif mysql # not compatible
query I rowsort label-1050
SELECT + 17 * - col2 + 87 / + ( col1 ) FROM tab2
----
-441
-457
-641
query I rowsort
SELECT - 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL - cor0.col0 + + 2 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2be2ef06d7e40d6af63bdf272bc045a9
query I rowsort
SELECT DISTINCT + + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
59
query I rowsort
SELECT + 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT 19 AS col0 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT + 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 cor3
----
243 values hashing to 651d73b1d4aaebc5a692f9febc779292
query I rowsort
SELECT ALL tab0.col1 * - col0 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT 64 FROM tab1 AS cor0
----
64
query I rowsort
SELECT - col2 * + col0 * - col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT - 43 AS col0 FROM tab2 cor0
----
-43
-43
-43
query I rowsort
SELECT - ( - col0 ) * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - ( - 70 ) * + col0 AS col1 FROM tab1 AS cor0
----
210
4480
5600
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT ALL col0 DIV - col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL col0 / - col2 FROM tab1
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1065
SELECT ALL + - CAST( - 10 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
100
130
260
skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL + - CAST ( - 10 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT + col0 * 76 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT ALL 16 * ( col0 ) * ( + col1 * col0 ) FROM tab2 AS cor0
----
1697552
24304
5743296
query I rowsort
SELECT 98 AS col1 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - + 80 * 58 AS col2 FROM tab0 cor0
----
-4640
query I rowsort
SELECT cor1.col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1071
SELECT DISTINCT + + 40 * 32 + - col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT + + 40 * 32 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT col1 * - 30 FROM tab1 cor0
----
-300
-390
-780
query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + + ( - col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT - col1 DIV cor0.col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-1075
SELECT - col1 / cor0.col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col1 * col0 col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT 97 FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col2 * col0 * 84 FROM tab2 AS cor0
----
-15876
-170352
-252168
query I rowsort
SELECT cor0.col1 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 9 AS col1 FROM tab2
----
9
9
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT DISTINCT col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT - 78 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
query I rowsort
SELECT ALL + 91 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT + + col1 * cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT 23 + - col2 DIV + 90 AS col0 FROM tab1 cor0
----
22
23
23
skipif mysql # not compatible
query I rowsort label-1088
SELECT 23 + - col2 / + 90 AS col0 FROM tab1 cor0
----
22
23
23
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 cor0, tab2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT + - col2 + - 18 + 54 AS col0 FROM tab2 AS cor0
----
-2
10
9
query I rowsort
SELECT ALL col2 + - 96 AS col2 FROM tab1 AS cor0
----
-39
-42
0
query I rowsort
SELECT col0 * 17 * + col1 FROM tab0
----
137683
35088
57715
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 - + cor0.col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col2 - + col0 * + cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - + col2 + ( + col1 ) AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT - + cor0.col2 * + 13 + + 15 * col0 FROM tab2 AS cor0
----
-246
691
832
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c
query I rowsort
SELECT ALL + - col2 + - col2 AS col1 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT ALL col0 + + col0 * - 37 * col2 FROM tab0 cor0
----
-1260
-269937
-29280
query I rowsort
SELECT ALL 91 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT - 47 + + col1 + col0 FROM tab2 AS cor0
----
-9
49
90
query I rowsort
SELECT DISTINCT ( 96 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT - 53 * 28 FROM tab2 AS cor0
----
-1484
-1484
-1484
query I rowsort
SELECT DISTINCT - 73 + col2 AS col1 FROM tab2 AS cor0
----
-35
-46
-47
query I rowsort
SELECT ( 20 ) * col0 + col0 AS col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-262087
-511904
27
query I rowsort
SELECT ALL + 74 + col2 AS col2 FROM tab2 cor0
----
100
101
112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col0 ) ) * col2 col1 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col1 + 72 FROM tab0
----
158
163
169
query I rowsort
SELECT + 80 * + col1 AS col1 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT - - ( - col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - ( col1 ) + - 29 + + ( col1 ) FROM tab2 AS cor0
----
-29
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT + col2 DIV - col2 + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1114
SELECT + col2 / - col2 + col0 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT - col1 + + 52 + + ( + cor0.col0 ) FROM tab2 cor0
----
114
28
71
query I rowsort
SELECT + + col0 + - 7 AS col1 FROM tab1 AS cor0
----
-4
57
73
query I rowsort
SELECT - col1 + - ( + col2 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col2 * col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + tab1.col2 + - col0 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT + col1 DIV 45 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1121
SELECT + col1 / 45 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * + 97 - + 36 col0 FROM tab0 AS cor0
----
8306
8791
9373
query I rowsort
SELECT DISTINCT col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT + + col1 * 15 DIV col1 + + col0 AS col0 FROM tab1 AS cor0
----
18
79
95
skipif mysql # not compatible
query I rowsort label-1124
SELECT + + col1 * 15 / col1 + + col0 AS col0 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT DISTINCT - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT ALL + cor0.col0 * ( - col1 + cor0.col1 ) DIV - ( col1 + col1 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL + cor0.col0 * ( - col1 + cor0.col1 ) / - ( col1 + col1 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT - col2 * ( col0 ) + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-1127
SELECT - col2 * ( col0 ) + col2 / + col1 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT + ( col1 ) DIV col0 - - ( col2 + - tab0.col2 ) DIV + ( tab0.col0 ) FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1128
SELECT + ( col1 ) / col0 - - ( col2 + - tab0.col2 ) / + ( tab0.col0 ) FROM tab0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1129
SELECT CAST( col0 + col1 AS SIGNED ) FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-1129
SELECT CAST ( col0 + col1 AS INTEGER ) FROM tab2
----
137
38
96
query I rowsort
SELECT ALL ( - 13 ) AS col0 FROM tab1
----
-13
-13
-13
query I rowsort
SELECT 6 AS col1 FROM tab0
----
6
6
6
query I rowsort
SELECT + ( - 27 ) * col1 FROM tab2 AS cor0
----
-1593
-459
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * + col2 col0 FROM tab1 cor0
----
-2970
-3306
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1134
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT + col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1135
SELECT + col0 / - col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + + cor0.col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT col0 - - col0 DIV + 21 col1 FROM tab2 AS cor0
----
7
81
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT col0 - - col0 / + 21 col1 FROM tab2 AS cor0
----
7
81
82
query I rowsort
SELECT 10 AS col0 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT - - col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + col1 + + cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - + 86 + col2 AS col2 FROM tab1 AS cor0
----
-29
-32
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1143
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1143
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - + ( col2 ) * + 52 AS col0 FROM tab0 cor0
----
-1716
-4264
-52
query I rowsort
SELECT ALL + - col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT ALL + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) * + col0 col2 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT - col1 - + col1 * - 27 AS col1 FROM tab2
----
1534
442
806
query I rowsort
SELECT ALL + - col1 + + col2 * - 97 * cor0.col1 FROM tab2 AS cor0
----
-148857
-62679
-81220
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 47 col1 FROM tab2 AS cor0
----
-31
-32
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1153
SELECT DISTINCT - col2 DIV 2 FROM tab0 AS cor0
----
-16
-41
0
skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - col2 / 2 FROM tab0 AS cor0
----
-16
-41
0
query I rowsort
SELECT DISTINCT + col0 * + col0 - col1 AS col2 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT + col1 * col1 - - 15 * + col0 FROM tab0 cor0
----
7756
9616
9934
query I rowsort
SELECT ALL - col1 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL + 36 FROM tab0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab0
----
-51
-51
-51
query I rowsort
SELECT DISTINCT ( 15 ) + col1 AS col1 FROM tab0 AS cor0
----
101
106
112
query I rowsort
SELECT - ( - cor0.col1 ) + col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 75 col1 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT + + 49 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT ALL - ( col0 ) * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT ( - 78 ) AS col0 FROM tab1 AS cor0
----
-78
query I rowsort
SELECT ALL + + ( col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 * col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL 85 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 86 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT col2 * col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + + 10 * + col1 + col2 FROM tab2 AS cor0
----
208
337
616
query I rowsort
SELECT - col2 * col2 + 84 * col2 - + 66 * + ( tab1.col0 + - col2 ) FROM tab1
----
-96
1077
4986
query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab0, tab1 AS cor0
----
-81
query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT col1 + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL + + 25 + col0 * - cor0.col2 FROM tab0 AS cor0
----
-10
-7273
-767
query I rowsort
SELECT DISTINCT col0 - ( col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 76 * col1 AS col0 FROM tab0 AS cor0
----
6536
6916
7372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1184
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1184
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0, tab2 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL - col1 * + col0 * 98 AS col0 FROM tab2
----
-131614
-21266
-450996
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 23 * + col2 col0 FROM tab0 AS cor0
----
-74
1795
673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + cor1.col2 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 579f07b4e4622f66a8051905a3d6c988
query I rowsort
SELECT DISTINCT col0 + 31 FROM tab2 cor0
----
109
110
38
query I rowsort
SELECT ALL + col0 * ( + ( col2 ) + - cor0.col0 ) FROM tab0 AS cor0
----
-1190
-623
216
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT - col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT - cor0.col1 * 47 DIV - col1 FROM tab0 AS cor0
----
47
47
47
skipif mysql # not compatible
query I rowsort label-1195
SELECT - cor0.col1 * 47 / - col1 FROM tab0 AS cor0
----
47
47
47
query I rowsort
SELECT col2 + 7 * col0 AS col0 FROM tab1 AS cor0
----
505
656
75
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) + + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - - 73 * cor0.col0 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 + 0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + - cor0.col0 * - 87 AS col2 FROM tab1 AS cor0
----
261
5568
6960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT col0 DIV ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1202
SELECT col0 / ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1203
SELECT ALL CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col0 FROM tab1 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - col1 / - col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + 66 + cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-1998
-3329
-8033
onlyif mysql # use DIV operator for integer division
query I rowsort label-1207
SELECT + + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1207
SELECT + + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + col0 * + 44 FROM tab2 AS cor0
----
308
3432
3476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * + col2 col1 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT - 64 FROM tab0 AS cor0
----
-64
-64
-64
query I rowsort
SELECT col2 * 19 FROM tab1 cor0
----
1026
1083
1824
query I rowsort
SELECT - col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col2 col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * + col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 * ( 80 * + col0 ) AS col2 FROM tab0 AS cor0
----
1520640
51961760
98000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col1 FROM tab2 AS cor0
----
-21
query I rowsort
SELECT ALL + - 60 * col1 + + 95 AS col2 FROM tab0 AS cor0
----
-5065
-5365
-5725
query I rowsort
SELECT - cor0.col0 + col0 + + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 14 col2 FROM tab0 AS cor0
----
-14
query I rowsort
SELECT ALL - col0 + col2 - col1 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 * - 63 FROM tab0 AS cor0
----
-2108
-459683
-49810
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col0 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + - ( col1 ) + ( 1 ) AS col1 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT + + 82 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - - 65 + cor0.col2 FROM tab0 AS cor0
----
147
66
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1229
SELECT ALL - + col2 * - col0 + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - + col2 * - col0 + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT ALL + - col1 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL + - col1 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + + col1 * col1 + ( col0 ) * - col2 FROM tab2 cor0
----
-2713
1453
772
query I rowsort
SELECT + cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + - col2 + col1 * 6 AS col1 FROM tab2 AS cor0
----
159
328
64
query I rowsort
SELECT ALL + - col0 * 54 FROM tab0 AS cor0
----
-1296
-1890
-4806
query I rowsort
SELECT ALL 95 * + col2 AS col1 FROM tab2
----
2470
2565
3610
query I rowsort
SELECT col1 * - col1 + 41 AS col1 FROM tab1 AS cor0
----
-128
-59
-635
query I rowsort
SELECT + col0 * + ( 12 ) FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT + col1 + - col0 * col2 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab0 AS cor0
----
54
57
96
query I rowsort
SELECT col0 + + 18 AS col1 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT + col2 * ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 * - tab2.col0 * + ( ( + col0 ) ) FROM tab2
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1245
SELECT ALL CAST( NULL AS SIGNED ) + col1 * + col2 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-1245
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - - col0 * cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1249
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1249
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT - + col1 + cor0.col1 * col1 - cor0.col1 FROM tab2 AS cor0
----
255
3363
899
query I rowsort
SELECT + col2 * col1 + - 33 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
-1247
-1840
-375
query I rowsort
SELECT ALL 20 AS col2 FROM tab0, tab2 AS cor0, tab1, tab0 cor1
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8
query I rowsort
SELECT ALL - col1 * col0 + 81 * col1 AS col0 FROM tab2 cor0
----
177
2294
34
query I rowsort
SELECT ( tab2.col2 ) * col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - - ( + 87 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + 50 * cor0.col0 - 75 * col2 AS col1 FROM tab1 AS cor0
----
-1075
-3200
-3900
query I rowsort
SELECT - - 8 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1526
-638
-829
query I rowsort
SELECT - col2 + + col0 * + col2 * + 28 AS col0 FROM tab1 AS cor0
----
102087
214944
4482
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT - 6 + col2 * - col1 DIV col1 AS col2 FROM tab1 cor0
----
-102
-60
-63
skipif mysql # not compatible
query I rowsort label-1261
SELECT - 6 + col2 * - col1 / col1 AS col2 FROM tab1 cor0
----
-102
-60
-63
query I rowsort
SELECT 36 FROM tab0 cor0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT col2 DIV col1 - + col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1263
SELECT col2 / col1 - + col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL ( - tab1.col0 ) - col2 AS col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT - col2 * - col1 + + tab2.col0 + - col0 * - col0 AS col1 FROM tab2
----
6966
7696
893
query I rowsort
SELECT ALL ( + col2 ) - - col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + 48 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT DISTINCT col1 - 5 DIV col2 col0 FROM tab0
----
86
91
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT col1 - 5 / col2 col0 FROM tab0
----
86
91
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 + 48 col1 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT - col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1271
SELECT - CAST( NULL AS SIGNED ) + + 40 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1271
SELECT - CAST ( NULL AS INTEGER ) + + 40 * + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 * col1 col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col2 * - tab1.col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 * - col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 3 * col1 FROM tab2
----
177
51
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 15 * col1 + ( cor0.col0 ) + - col1 col2 FROM tab2 AS cor0
----
-193
-489
-866
query I rowsort
SELECT + col2 + col0 * ( cor0.col0 ) + col2 FROM tab0 AS cor0
----
1227
642
8085
query I rowsort
SELECT + - 36 FROM tab0 cor0
----
-36
-36
-36
query I rowsort
SELECT - - 92 + - col1 AS col2 FROM tab2 AS cor0
----
33
61
75
query I rowsort
SELECT - 51 FROM tab0
----
-51
-51
-51
query I rowsort
SELECT + cor0.col2 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col1 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col0 * tab1.col1 AS col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT + - cor0.col2 DIV 88 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1286
SELECT + - cor0.col2 / 88 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 * col1 * col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col0 * col2 + col1 * col2 FROM tab2
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT col0 + - col1 DIV tab2.col1 AS col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1289
SELECT col0 + - col1 / tab2.col1 AS col0 FROM tab2
----
6
77
78
query I rowsort
SELECT - tab0.col1 + col0 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT DISTINCT col1 * + col1 DIV cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT col1 * + col1 / cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - - col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - col1 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT DISTINCT - col1 DIV + col1 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT - col1 / + col1 FROM tab2 cor0
----
-1
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 + - col0 * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 + col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col2 + - col0 * - col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - + col2 + - cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT col0 - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * col2 - col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - col1 + col0 * col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL + col1 * cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col1 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + + col1 + - col2 * col1 * col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
query I rowsort
SELECT ALL col2 + col1 * + cor0.col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + + 29 - - col0 AS col1 FROM tab1 AS cor0
----
109
32
93
query I rowsort
SELECT DISTINCT + 51 * col2 * col1 + col0 * col0 * + col0 + + cor0.col1 FROM tab0 cor0
----
1085622
158648
47919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col2 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT + 40 + col1 AS col2 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT col2 * + col2 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
18432
5832
6498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col1 * + 98 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT 11 FROM tab0
----
11
11
11
query I rowsort
SELECT col1 * + col2 + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-3068
-697
620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col1 FROM tab1 AS cor0
----
68
query I rowsort
SELECT DISTINCT - 86 + - col1 FROM tab0 cor0
----
-172
-177
-183
query I rowsort
SELECT ALL col1 * col0 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT - col1 * col2 * col1 + cor0.col2 AS col1 FROM tab1 cor0
----
-16128
-36450
-5643
query I rowsort
SELECT ALL col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - ( col1 ) - + col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL ( col0 ) * col1 * col1 + - col2 + col1 AS col2 FROM tab1 AS cor0
----
13437
2000
6353
onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT 78 + - col1 DIV col0 FROM tab1
----
70
78
78
skipif mysql # not compatible
query I rowsort label-1333
SELECT 78 + - col1 / col0 FROM tab1
----
70
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1334
SELECT ALL - col1 * col2 DIV + col0 FROM tab1 AS cor0
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - col1 * col2 / + col0 FROM tab1 AS cor0
----
-15
-468
-8
query I rowsort
SELECT + - 64 + + col1 AS col2 FROM tab1 AS cor0
----
-38
-51
-54
query I rowsort
SELECT col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col2 * - col2 + + tab1.col1 * tab1.col0 AS col0 FROM tab1
----
-2609
-2838
-8176
query I rowsort
SELECT ALL col1 + + col0 * col1 + col2 AS col0 FROM tab2
----
1398
275
4687
query I rowsort
SELECT DISTINCT 98 * + col1 * + col0 FROM tab1
----
101920
62720
7644
query I rowsort
SELECT - col1 * ( col2 * - col1 ) AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - - 76 AS col2 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT col2 + - 77 AS col1 FROM tab2
----
-39
-50
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1343
SELECT + CAST( col1 AS SIGNED ) + col1 * tab0.col2 AS col2 FROM tab0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-1343
SELECT + CAST ( col1 AS INTEGER ) + col1 * tab0.col2 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT tab2.col0 + 30 AS col2 FROM tab2
----
108
109
37
query I rowsort
SELECT 94 * 17 - - col1 * + 77 FROM tab1
----
2368
2599
3600
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 32 + + cor0.col2 FROM tab1, tab2 AS cor0
----
58
59
70
query I rowsort
SELECT col1 * 89 FROM tab1
----
1157
2314
890
onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT ( - col2 ) * col2 * - col1 + 21 DIV - col1 AS col1 FROM tab0
----
611884
93654
97
skipif mysql # not compatible
query I rowsort label-1349
SELECT ( - col2 ) * col2 * - col1 + 21 / - col1 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL cor0.col0 + cor0.col1 - col2 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-2887
-3175
-9123
query I rowsort
SELECT ALL col1 + col0 * + 35 + ( - col0 ) FROM tab1 AS cor0
----
128
2186
2733
query I rowsort
SELECT ALL - - 56 + - col2 AS col2 FROM tab1 AS cor0
----
-1
-40
2
query I rowsort
SELECT col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT col2 + col1 * - 13 FROM tab0 AS cor0
----
-1085
-1101
-1260
query I rowsort
SELECT DISTINCT - + col0 * col2 + 45 AS col2 FROM tab0 cor0
----
-7253
-747
10
query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + + col1 * - cor0.col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1358
SELECT DISTINCT + + col1 + cor0.col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT + + col1 + cor0.col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + cor0.col0 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1360
SELECT + col2 * col0 + - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1360
SELECT + col2 * col0 + - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * 80 + 77 + col1 FROM tab1
----
1130
2183
887
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 AS col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT - col2 * col2 + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-3349
-3592
-9385
query I rowsort
SELECT DISTINCT + + col1 + ( - col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col2 + 7 AS col2 FROM tab0 cor0
----
-26
-75
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT ALL col0 / - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL col0 / - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * cor0.col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + cor0.col1 + + 31 AS col0 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT DISTINCT col1 * + col2 + - col1 * + col1 * col0 AS col2 FROM tab1 AS cor0
----
-12272
-5830
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT DISTINCT + - col2 DIV - col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT + - col2 / - col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + col0 - + 19 AS col2 FROM tab2 AS cor0
----
-12
59
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1373
SELECT + - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1373
SELECT + - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + cor0.col2 * - col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - cor0.col1 + - 60 AS col2 FROM tab1 AS cor0
----
-70
-73
-86
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT ALL col0 * - ( - col0 ) + + col1 AS col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT + 52 * - ( + col1 ) FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT - + ( + col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ( col2 ) + col2 + + col1 FROM tab2 AS cor0
----
111
85
93
skipif mysql # not compatible
query I rowsort
SELECT + col1 * - col2 + + col0 * + CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT + + 45 + 80 * col1 AS col2 FROM tab1 AS cor0
----
1085
2125
845
query I rowsort
SELECT + ( - col2 ) * - col0 - - col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT - - col1 - + col0 AS col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT 96 + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
3012
3345
9312
query I rowsort
SELECT - - col1 + + 50 FROM tab2 AS cor0
----
109
67
81
query I rowsort
SELECT - + ( + col0 ) * 8 FROM tab2 cor0
----
-56
-624
-632
query I rowsort
SELECT DISTINCT + 16 + + cor0.col0 FROM tab1, tab0 AS cor0
----
105
40
51
query I rowsort
SELECT col1 + - 10 * - 41 AS col0 FROM tab2 AS cor0
----
427
441
469
query I rowsort
SELECT - col1 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 13 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT DISTINCT - 19 * + col0 AS col1 FROM tab2
----
-133
-1482
-1501
query I rowsort
SELECT - tab0.col1 + col1 * col0 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT col2 + - tab2.col1 + col0 AS col0 FROM tab2
----
100
3
45
query I rowsort
SELECT + col1 * col2 + ( + col1 ) AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL - col0 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT DISTINCT + + col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col2 * - 17 + + col1 AS col0 FROM tab0 AS cor0
----
-1303
-475
80
query I rowsort
SELECT col2 + - 37 FROM tab0 AS cor0
----
-36
-4
45
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
86
91
97
query I rowsort
SELECT - col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 43 + col2 col1 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT - - col2 * 66 AS col2 FROM tab2 AS cor0
----
1716
1782
2508
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * 42 * - col1 col1 FROM tab0 AS cor0
----
142590
340158
86688
query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col1 col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + col2 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1412
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 + 95 * + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-231
-6023
-7504
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT - - col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col1 + ( + cor0.col0 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
134
163
65
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + - CAST ( + col2 + + col1 AS REAL ) FROM tab2 AS cor0
----
-111
-85
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1419
SELECT + CAST( + ( col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1419
SELECT + CAST ( + ( col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - cor0.col0 + + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + + col2 * + col2 col1 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT DISTINCT + ( + col2 ) * col2 + ( col0 ) DIV + col2 + - col0 AS col1 FROM tab0 AS cor0
----
1
1065
6636
skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + ( + col2 ) * col2 + ( col0 ) / + col2 + - col0 AS col1 FROM tab0 AS cor0
----
1
1065
6636
query I rowsort
SELECT + 52 + + 66 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6b4d3df0dcb1d629d28745add31be2b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT ALL col2 DIV tab0.col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL col2 / tab0.col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL 46 * + col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT ALL + + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) + + 37 * col1 col2 FROM tab0 AS cor0
----
3149
3285
3588
query I rowsort
SELECT ( - 12 ) * + col0 FROM tab1
----
-36
-768
-960
query I rowsort
SELECT - 14 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + col1 col0 FROM tab0
----
172
182
194
query I rowsort
SELECT - 55 + col0 AS col1 FROM tab2
----
-48
23
24
query I rowsort
SELECT ALL + col0 + tab1.col1 * - ( + col1 + + col2 ) * - tab1.col2 AS col0 FROM tab1
----
112323
136112
38254
query I rowsort
SELECT + 30 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT DISTINCT 21 + - col1 AS col0 FROM tab0
----
-65
-70
-76
skipif mysql # not compatible
query I rowsort
SELECT col0 / col2 + + CAST ( 67 AS REAL ) AS col1 FROM tab1
----
67
67
68
query I rowsort
SELECT col0 + + tab2.col2 * col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL - 74 * + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3b084a6f8a3c3d8271dd7bc25155f582
query I rowsort
SELECT DISTINCT - col2 * + ( 84 + col2 ) AS col1 FROM tab1 AS cor0
----
-17280
-7452
-8037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * 73 col2 FROM tab2 AS cor0
----
1162
2256
4229
query I rowsort
SELECT + col1 * 66 FROM tab0 AS cor0
----
5676
6006
6402
query I rowsort
SELECT DISTINCT - 53 + + col0 * col2 AS col1 FROM tab0
----
-18
7245
739
query I rowsort
SELECT tab1.col0 * col1 * - col2 + + col2 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT - 97 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT ALL + cor0.col1 + - 98 * col1 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT - - cor0.col1 * 36 + - col0 AS col2 FROM tab2 AS cor0
----
1109
2046
533
query I rowsort
SELECT DISTINCT - - col0 * + 44 + 14 FROM tab2 AS cor0
----
322
3446
3490
query I rowsort
SELECT - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - cor0.col1 + 12 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 754b8a3788c28749f72b2cfce138d951
onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT DISTINCT + + col0 DIV - ( col0 * col0 ) - + col2 DIV 79 AS col2 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT + + col0 / - ( col0 * col0 ) - + col2 / 79 AS col2 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT + 20 FROM tab2, tab2 cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - ( - col0 + 28 ) col2 FROM tab0
----
150
20
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 * - col0 - - col0 col1 FROM tab2
----
287
3198
3239
query I rowsort
SELECT ALL - col1 * - ( + col1 ) - 22 * col1 FROM tab1
----
-117
-120
104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL - + col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
10
13
26
query I rowsort
SELECT - + 58 * + 53 FROM tab2 AS cor0
----
-3074
-3074
-3074
query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + - 53 AS col0 FROM tab1 AS cor0
----
-53
-53
-53
query I rowsort
SELECT + - col0 + - col0 - - col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT col1 * col1 + 54 DIV cor0.col2 FROM tab1 AS cor0
----
100
169
677
skipif mysql # not compatible
query I rowsort label-1465
SELECT col1 * col1 + 54 / cor0.col2 FROM tab1 AS cor0
----
100
169
677
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + ( col2 ) FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1468
SELECT - cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT + col0 DIV + col1 col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1469
SELECT + col0 / + col1 col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL - + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort
SELECT - col0 + - col1 - CAST ( 91 * col2 AS REAL ) FROM tab1 AS cor0
----
-4943
-5261
-8829
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT - ( + cor0.col1 ) * CAST( NULL AS SIGNED ) + col1 * + col0 - - 49 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1472
SELECT - ( + cor0.col1 ) * CAST ( NULL AS INTEGER ) + col1 * + col0 - - 49 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab2.col0 * + tab2.col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - ( + col1 ) * col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL 92 - + 74 AS col1 FROM tab1
----
18
18
18
query I rowsort
SELECT col1 + col1 * ( - 93 ) AS col0 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT DISTINCT + col1 + - col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1478
SELECT - col0 DIV cor0.col1 - - 28 FROM tab2 AS cor0
----
24
27
28
skipif mysql # not compatible
query I rowsort label-1478
SELECT - col0 / cor0.col1 - - 28 FROM tab2 AS cor0
----
24
27
28
query I rowsort
SELECT - cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT cor0.col1 * - 57 - col2 * col2 FROM tab2 AS cor0
----
-2413
-2496
-4039
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b
query I rowsort
SELECT + ( col2 ) + - cor0.col1 * + col1 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT - + ( - ( + col0 ) ) + + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT + cor0.col0 DIV + 49 + + col0 AS col0 FROM tab2 cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-1485
SELECT + cor0.col0 / + 49 + + col0 AS col0 FROM tab2 cor0
----
7
79
80
query I rowsort
SELECT ALL - - col0 - col1 * cor0.col1 * 32 FROM tab1 AS cor0
----
-21629
-3136
-5328
query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 + col2 * col2 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + col0 + 5 * col0 FROM tab0
----
144
210
534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1490
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1490
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab2.col2 + + col0 AS col2 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1492
SELECT CAST( + 77 AS SIGNED ) * col0 FROM tab2
----
539
6006
6083
skipif mysql # not compatible
query I rowsort label-1492
SELECT CAST ( + 77 AS INTEGER ) * col0 FROM tab2
----
539
6006
6083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT - CAST( 83 AS SIGNED ) * col1 * 92 FROM tab1
----
-198536
-76360
-99268
skipif mysql # not compatible
query I rowsort label-1493
SELECT - CAST ( 83 AS INTEGER ) * col1 * 92 FROM tab1
----
-198536
-76360
-99268
query I rowsort
SELECT + 33 + col0 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT - col1 * + 6 AS col2 FROM tab0
----
-516
-546
-582
query I rowsort
SELECT + col1 + - col0 * col1 * col1 AS col1 FROM tab2 cor0
----
-22814
-271459
-6696
query I rowsort
SELECT + - col0 * + 80 AS col1 FROM tab2 AS cor0
----
-560
-6240
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab1
----
26
26
26
query I rowsort
SELECT + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab2
----
27
27
27
query I rowsort
SELECT DISTINCT + col0 * col2 + + 93 FROM tab2
----
2121
282
3095
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 9a8c5b685ae97f053cdce34c34044cb4
query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1, tab0 cor0
----
-47
query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab2, tab1 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT DISTINCT col1 - 61 DIV + 7 AS col2 FROM tab1 cor0
----
18
2
5
skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT col1 - 61 / + 7 AS col2 FROM tab1 cor0
----
18
2
5
query I rowsort
SELECT DISTINCT + - col2 + - 41 * - col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT DISTINCT col2 * 11 - + 27 FROM tab2 AS cor0
----
259
270
391
query I rowsort
SELECT ALL col1 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col1 + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT col0 * + cor0.col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT + col0 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col2 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1 AS cor0
----
81
query I rowsort
SELECT - - col2 - - cor0.col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - col2 * + 64 AS col1 FROM tab0 AS cor0
----
-2112
-5248
-64
query I rowsort
SELECT 1 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT - + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 * ( + col2 + col0 ) AS col0 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT - col0 + - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col2 * col2 + - col0 * + ( col0 ) FROM tab2 cor0
----
-4797
-5408
680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1523
SELECT + - CAST( NULL AS DECIMAL ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1523
SELECT + - CAST ( NULL AS REAL ) * col2 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - tab0.col1 FROM tab0
----
0
query I rowsort
SELECT - 47 FROM tab2
----
-47
-47
-47
query I rowsort
SELECT - 99 FROM tab1, tab1 cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT + col2 * + col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1528
SELECT - col0 - + col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-1528
SELECT - col0 - + col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT - 35 - col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1569
-681
-872
query I rowsort
SELECT ( ( col2 ) ) * + 7 + cor0.col2 AS col1 FROM tab1 AS cor0
----
432
456
768
query I rowsort
SELECT + 52 * + col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
2328
2341
3744
query I rowsort
SELECT ( - 74 ) AS col0 FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col2 + + 59 FROM tab1 AS cor0
----
1307
1463
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT ALL + - col0 * + col1 + + ( + 63 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-1040
-639
-77
skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + - col0 * + col1 + + ( + 63 ) / col2 AS col0 FROM tab1 AS cor0
----
-1040
-639
-77
query I rowsort
SELECT 49 + - col0 + + ( - cor0.col1 ) FROM tab1 AS cor0
----
-25
-44
20
query I rowsort
SELECT - col2 * + cor0.col1 + + 37 AS col0 FROM tab0 AS cor0
----
-2801
-60
-7425
query I rowsort
SELECT - + 53 * - col0 AS col2 FROM tab0 cor0
----
1272
1855
4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-1538
SELECT ALL + + ( + col1 ) * ( - col2 + + col2 ) DIV CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL + + ( + col1 ) * ( - col2 + + col2 ) / CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 9 AS col0 FROM tab0 AS cor0
----
-9
-9
-9
query I rowsort
SELECT + + ( - col1 ) + 21 AS col0 FROM tab1 cor0
----
-5
11
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1541
SELECT DISTINCT CAST( NULL AS SIGNED ) / 30 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 30 FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
25
query I rowsort
SELECT - 47 + + 2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT DISTINCT + col1 DIV 22 + col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + col1 / 22 + col0 FROM tab2
----
79
8
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1545
SELECT - col2 + + col2 + + col0 / CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1545
SELECT - col2 + + col2 + + col0 / CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col0 + col2 + + 14 FROM tab0 AS cor0
----
50
7394
839
query I rowsort
SELECT - + ( 61 ) * - col0 + - col1 * col1 * - col2 FROM tab2 AS cor0
----
15801
26374
95264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col1 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT DISTINCT + - col1 + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + - col1 + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT cor0.col0 DIV - 12 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e
skipif mysql # not compatible
query I rowsort label-1552
SELECT cor0.col0 / - 12 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e
query I rowsort
SELECT ALL + - col2 + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + 95 AS col0 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT ALL 96 AS col2 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT ( - 25 + col0 ) FROM tab1
----
-22
39
55
query I rowsort
SELECT - tab0.col0 + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2a75c695d49d6bdaea4ddf1c172bb5ca
query I rowsort
SELECT DISTINCT - col2 * tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + ( - 3 ) * - col1 AS col2 FROM tab2
----
177
51
93
query I rowsort
SELECT DISTINCT + 16 * col0 AS col2 FROM tab1
----
1024
1280
48
query I rowsort
SELECT + col2 * 3 + cor0.col2 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT DISTINCT - col2 + + 39 * + col1 AS col0 FROM tab0 AS cor0
----
3321
3467
3782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1565
SELECT ALL col0 * + col2 + col2 * col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL col0 * + col2 + col2 * col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT DISTINCT + col2 * col2 + cor0.col2 DIV + col1 + ( ( + col1 ) * col0 ) FROM tab2 cor0
----
2789
5278
946
skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + col2 * col2 + cor0.col2 / + col1 + ( ( + col1 ) * col0 ) FROM tab2 cor0
----
2789
5278
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab1.col2 col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + col2 * 91 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT ALL + 7 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + + col1 + 67 AS col0 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT - + col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - 15 + col2 AS col0 FROM tab2 AS cor0
----
41
42
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT - - ( 38 ) + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
38
38
39
skipif mysql # not compatible
query I rowsort label-1573
SELECT - - ( 38 ) + col2 / + col0 AS col2 FROM tab0 AS cor0
----
38
38
39
query I rowsort
SELECT ALL col2 * + 53 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT DISTINCT - col1 * col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col2 - + col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 15 col1 FROM tab0
----
1335
360
525
query I rowsort
SELECT + 51 + tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ef0fa4dc0fd2aa2f1174d219c395eff1
query I rowsort
SELECT ALL - ( col1 ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + ( + col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + 59 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT - ( col1 ) - - cor0.col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - 39 FROM tab1, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT DISTINCT - CAST( 47 AS SIGNED ) * col1 DIV cor0.col2 FROM tab0 AS cor0
----
-122
-4559
-52
skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT - CAST ( 47 AS INTEGER ) * col1 / cor0.col2 FROM tab0 AS cor0
----
-122
-4559
-52
query I rowsort
SELECT col1 * 21 + - col2 FROM tab2 AS cor0
----
1213
319
624
query I rowsort
SELECT ALL - col0 + - 34 AS col2 FROM tab2 AS cor0
----
-112
-113
-41
query I rowsort
SELECT col0 * 98 + + col0 FROM tab0
----
2376
3465
8811
query I rowsort
SELECT ALL - + ( col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT col2 DIV + 57 + - col1 FROM tab1
----
-12
-26
-9
skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT col2 / + 57 + - col1 FROM tab1
----
-12
-26
-9
query I rowsort
SELECT + col2 + + 14 + col2 * - 48 AS col2 FROM tab2
----
-1208
-1255
-1772
query I rowsort
SELECT ALL + 64 + - 19 FROM tab2
----
45
45
45
query I rowsort
SELECT tab1.col0 * - col0 + col1 FROM tab1
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1594
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - col1 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - col1 col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1595
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 * col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 * col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1596
SELECT ALL - col1 * col0 + - cor0.col0 + - CAST( + col0 * col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-243
-4352
-8800
skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - col1 * col0 + - cor0.col0 + - CAST ( + col0 * col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-243
-4352
-8800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT DISTINCT + col1 DIV + 83 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT + col1 / + 83 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 66 + col1 FROM tab1 AS cor0
----
76
79
92
query I rowsort
SELECT ALL + + ( 70 ) + - col1 AS col0 FROM tab2 AS cor0
----
11
39
53
query I rowsort
SELECT - ( 83 ) - + col0 AS col2 FROM tab2 AS cor0
----
-161
-162
-90
query I rowsort
SELECT DISTINCT - ( col2 ) - + col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - 25 * col0 * + col2 + col2 AS col0 FROM tab2
----
-4698
-50674
-75012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col1 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT + col1 DIV col0 AS col1 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1604
SELECT + col1 / col0 AS col1 FROM tab1
----
0
0
8
query I rowsort
SELECT 15 AS col1 FROM tab1
----
15
15
15
query I rowsort
SELECT 19 * + col2 - + tab2.col2 AS col0 FROM tab2
----
468
486
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT - - 54 + + col0 DIV cor0.col0 + - col2 col0 FROM tab1 AS cor0
----
-2
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1607
SELECT - - 54 + + col0 / cor0.col0 + - col2 col0 FROM tab1 AS cor0
----
-2
-41
1
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - tab1.col0 * + cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to dc69da44d5a43e91816c3670493ea5ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT - col2 DIV - ( 29 + - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-1610
SELECT - col2 / - ( 29 + - col2 ) AS col2 FROM tab1 AS cor0
----
-1
-2
-2
query I rowsort
SELECT ALL + - col2 - 51 * col1 FROM tab0 AS cor0
----
-4419
-4723
-4948
query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2, tab2 AS cor0
----
26
query I rowsort
SELECT ALL - 33 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT ALL 33 FROM tab2, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + + col1 * + 7 * + col2 FROM tab1 cor0
----
3990
8736
9828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT DISTINCT - col0 DIV + ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT - col0 / + ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - + col1 + + 9 FROM tab2 AS cor0
----
-22
-50
-8
query I rowsort
SELECT cor0.col1 + 69 * - col1 AS col1 FROM tab1 cor0
----
-1768
-680
-884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1622
SELECT + col0 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-1622
SELECT + col0 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - cor0.col0 + ( + 21 ) * cor0.col0 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 19 * col2 AS col0 FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT ALL - - col0 * col2 + - 7 AS col0 FROM tab0 AS cor0
----
28
7291
785
query I rowsort
SELECT ALL 80 FROM tab0 AS cor0
----
80
80
80
query I rowsort
SELECT ( - tab1.col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * - col1 + col0 AS col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT 16 * tab0.col1 AS col0 FROM tab0
----
1376
1456
1552
query I rowsort
SELECT ALL - - 99 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to aa91a59559437f741c639d28c6832662
query I rowsort
SELECT + 29 AS col1 FROM tab0 cor0
----
29
29
29
query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL cor0.col1 * + col1 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT DISTINCT 53 DIV + col1 + ( + 52 ) AS col1 FROM tab0 AS cor0
----
52
skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT 53 / + col1 + ( + 52 ) AS col1 FROM tab0 AS cor0
----
52
query I rowsort
SELECT - col2 + ( col2 + + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * + ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT cor0.col1 - - 48 * 32 FROM tab0 AS cor0
----
1622
1627
1633
query I rowsort
SELECT col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT ALL tab0.col1 DIV col1 + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1640
SELECT ALL tab0.col1 / col1 + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 77 AS REAL ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-77
query I rowsort
SELECT ALL - 6 * col0 + 99 * col0 AS col2 FROM tab1
----
279
5952
7440
query I rowsort
SELECT - 49 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT ALL col1 + col2 + - 47 FROM tab0
----
126
51
72
query I rowsort
SELECT + tab2.col2 * - tab2.col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT DISTINCT + col0 DIV col2 AS col1 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1646
SELECT DISTINCT + col0 / col2 AS col1 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + 67 FROM tab1 AS cor0
----
67
query I rowsort
SELECT + col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - col0 * - 27 AS col2 FROM tab0 AS cor0
----
2403
648
945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1651
SELECT CAST( NULL AS SIGNED ) * col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1651
SELECT CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col1 * col2 + col2 + cor0.col0 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT 20 AS col1 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1656
SELECT ALL CAST( NULL AS SIGNED ) + - col0 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-1656
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 95 - ( - col2 ) * ( + col1 ) FROM tab0 AS cor0
----
192
2933
7557
query I rowsort
SELECT ALL - cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * - col1 - ( + col1 ) * - cor0.col1 FROM tab2 AS cor0
----
1922
578
6962
query I rowsort
SELECT + 63 AS col1 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT col0 * - col0 * cor0.col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-370
-474578
-493077
onlyif mysql # use DIV operator for integer division
query I rowsort label-1662
SELECT - col2 DIV col1 + col1 AS col2 FROM tab2
----
15
31
59
skipif mysql # not compatible
query I rowsort label-1662
SELECT - col2 / col1 + col1 AS col2 FROM tab2
----
15
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1663
SELECT ALL + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT - cor0.col2 + 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe671d9088b89519c2580adef9e3eb4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + col0 ) col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - + 25 AS col2 FROM tab2 AS cor0
----
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) * cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + ( 88 ) * - col0 AS col1 FROM tab1 cor0
----
264
5632
7040
query I rowsort
SELECT DISTINCT + ( + 81 ) * - col2 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-178
-2759
-6733
query I rowsort
SELECT ( tab0.col1 + + col0 ) FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT 68 + + col0 DIV col0 FROM tab2
----
69
69
69
skipif mysql # not compatible
query I rowsort label-1673
SELECT 68 + + col0 / col0 FROM tab2
----
69
69
69
query I rowsort
SELECT 22 AS col0 FROM tab0 AS cor0
----
22
22
22
query I rowsort
SELECT col1 * - col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT ALL + ( 69 ) * col2 * col1 FROM tab2
----
105846
44574
57753
query I rowsort
SELECT ALL - col1 * - col0 * + col2 FROM tab1
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT DISTINCT CAST( 87 AS SIGNED ) AS col2 FROM tab0
----
87
skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT CAST ( 87 AS INTEGER ) AS col2 FROM tab0
----
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1679
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - col1 ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 23 AS col0 FROM tab1 AS cor0
----
23
23
23
query I rowsort
SELECT ALL col1 * - col2 * col1 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - col1 col2 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT + col1 * + 36 + - col0 DIV col1 col2 FROM tab2 AS cor0
----
1116
2123
608
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1686
SELECT + col1 * + 36 + - col0 / col1 col2 FROM tab2 AS cor0
----
1116
2123
608
query I rowsort
SELECT ALL - - col2 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT - cor0.col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1688
SELECT - cor0.col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + col2 + - 64 FROM tab1 AS cor0
----
-10
-7
32
query I rowsort
SELECT DISTINCT + col0 * - col0 * - ( col2 ) FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col2 * + ( col1 * - col0 + col1 ) AS col1 FROM tab1
----
-2808
-35910
-98592
query I rowsort
SELECT - col2 * + 98 FROM tab1
----
-5292
-5586
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col2 + + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT ( 58 ) FROM tab2 AS cor0
----
58
query I rowsort
SELECT ALL - cor0.col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col2 + + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT + 84 + col1 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT 12 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
query I rowsort
SELECT + + ( col1 ) + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col1 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col2 * - 36 FROM tab1
----
-20520
-44928
-50544
query I rowsort
SELECT + 26 FROM tab0
----
26
26
26
query I rowsort
SELECT DISTINCT - col1 - ( col2 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - - col0 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col0 * + ( col1 ) - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT + - col0 - - ( - col1 * col1 ) AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT + col0 * col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + + cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT DISTINCT col0 + + col0 DIV + 73 FROM tab0 AS cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT col0 + + col0 / + 73 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT col2 * col2 + - ( + col1 ) * cor0.col2 FROM tab2 AS cor0
----
-108
-858
798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1713
SELECT DISTINCT + + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT + + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 - - tab1.col1 AS col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT 95 DIV col1 AS col1 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1715
SELECT 95 / col1 AS col1 FROM tab0
----
0
1
1
query I rowsort
SELECT ALL col0 - + col1 AS col0 FROM tab2
----
-24
19
62
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419
query I rowsort
SELECT DISTINCT + col0 + 5 FROM tab2
----
12
83
84
query I rowsort
SELECT ALL + col1 * + col2 * col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT ALL col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - - col1 * + 57 FROM tab1 AS cor0
----
1482
570
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT ALL - col0 + col2 DIV 56 AS col2 FROM tab1 AS cor0
----
-3
-63
-79
skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL - col0 + col2 / 56 AS col2 FROM tab1 AS cor0
----
-3
-63
-79
query I rowsort
SELECT - - col1 * col1 + col2 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT ALL + 97 FROM tab0
----
97
97
97
query I rowsort
SELECT 80 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT + - cor0.col1 + + col0 * col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT ( + col0 ) + + col1 * - col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT 95 * col0 AS col1 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT + - ( - col2 ) + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT cor0.col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1730
SELECT cor0.col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + tab0.col1 - col0 FROM tab0
----
2
62
62
query I rowsort
SELECT - 80 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
1984
3315
8019
onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT ALL - - cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - - cor0.col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 8 + - col2 FROM tab1 cor0
----
-46
-49
-88
query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1736
SELECT DISTINCT + col1 + - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + col1 + - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col0 * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - cor0.col0 * col1 - - 36 * - 42 AS col2 FROM tab2 AS cor0
----
-1729
-2855
-6114
query I rowsort
SELECT ALL + col0 + + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT DISTINCT - col1 DIV col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT - col1 / col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + - 75 * - col2 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT + col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * col2 col1 FROM tab1 AS cor0
----
-162
-171
-288
onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1744
SELECT - col2 / - col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 61 FROM tab2 AS cor0
----
61
query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - 72 * col2 AS col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT + col0 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - 93 FROM tab1 cor0
----
-93
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col1 col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL col2 * + col0 * col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT - col1 * + col0 * col1 + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-13427
-1999
-6326
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL >= NULL
----
query I rowsort
SELECT ALL 44 * - col0 FROM tab1
----
-132
-2816
-3520
query I rowsort
SELECT ALL + cor0.col2 - - 56 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col0 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 79 + + 35 FROM tab1 AS cor0
----
-44
query I rowsort
SELECT DISTINCT - col1 - + ( col0 ) AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col1 + + col2 FROM tab1 cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1765
SELECT ALL CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col2 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * ( col0 + - col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
127488
36138
75978
query I rowsort
SELECT 9 FROM tab1, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT 34 + 38 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab1
----
-60
query I rowsort
SELECT - col1 + + tab1.col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL 90 AS col1 FROM tab1
----
90
90
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT CAST( - col1 AS SIGNED ) + - col2 AS col0 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-1774
SELECT CAST ( - col1 AS INTEGER ) + - col2 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + 43 + 48 * tab1.col2 AS col0 FROM tab1
----
2635
2779
4651
query I rowsort
SELECT ALL ( ( col1 ) ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL 45 AS col1 FROM tab0
----
45
45
45
query I rowsort
SELECT DISTINCT + 76 * + col2 AS col0 FROM tab0 cor0
----
2508
6232
76
query I rowsort
SELECT + ( - col0 ) + + col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + col2 + - 75 AS col2 FROM tab2
----
-37
-48
-49
query I rowsort
SELECT DISTINCT ( 34 ) AS col0 FROM tab0, tab2 AS cor0
----
34
query I rowsort
SELECT ALL col0 * + ( - col0 ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
-77
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - 53 * + 25 FROM tab1
----
-1325
query I rowsort
SELECT + - ( + 25 ) * + col0 AS col2 FROM tab2 cor0
----
-175
-1950
-1975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT DISTINCT - CAST( 94 AS SIGNED ) FROM tab0 cor0
----
-94
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - CAST ( 94 AS INTEGER ) FROM tab0 cor0
----
-94
query I rowsort
SELECT ALL 11 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
query I rowsort
SELECT 84 * col0 FROM tab0
----
2016
2940
7476
query I rowsort
SELECT DISTINCT col1 * tab1.col0 AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-10
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 tab2.col1 * col2 * 47 FROM tab2
----
30362
39339
72098
query I rowsort
SELECT cor0.col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col1 + col1 * + cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - 27 + col1 FROM tab2 AS cor0
----
-10
32
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT + + 7 DIV col1 + ( cor0.col0 ) * col2 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-1799
SELECT + + 7 / col1 + ( cor0.col0 ) * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - + col1 * col2 + + cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
-1088
-1398
-442
query I rowsort
SELECT + 87 AS col2 FROM tab2 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT + col1 + - 49 AS col0 FROM tab2 AS cor0
----
-18
-32
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col1 + - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - + col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 * + 15 AS col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT 44 * col2 AS col2 FROM tab2
----
1144
1188
1672
query I rowsort
SELECT - col2 * col1 + - col0 + col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 65 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT 44 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT + col1 + CAST( NULL AS SIGNED ) * 82 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1811
SELECT + col1 + CAST ( NULL AS INTEGER ) * 82 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT col1 * - CAST( 74 * - col0 AS SIGNED ) + col2 AS col1 FROM tab1
----
47417
5826
77056
skipif mysql # not compatible
query I rowsort label-1812
SELECT col1 * - CAST ( 74 * - col0 AS INTEGER ) + col2 AS col1 FROM tab1
----
47417
5826
77056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col1 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col1 + + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col0 + + ( 11 * + tab2.col2 ) AS col1 FROM tab2
----
304
364
497
query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT ALL - CAST( NULL AS SIGNED ) + - 7 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - CAST ( NULL AS INTEGER ) + - 7 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - cor0.col0 * 82 + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1794
-357
-5135
query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT ALL col0 + - col0 DIV col1 col0 FROM tab1 AS cor0
----
3
58
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL col0 + - col0 / col1 col0 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT - + 61 * col0 AS col2 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 * col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + - col2 * + ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col2 + - col0 + - col2 * + ( - col1 * + col1 ) FROM tab1 AS cor0
----
16240
36555
5693
onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT DISTINCT - col1 DIV 22 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT - col1 / 22 FROM tab1 cor0
----
-1
0
query I rowsort
SELECT DISTINCT 45 FROM tab2, tab1 AS cor0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + + col1 col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + col2 * col0 - - col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 71 + - col0 AS col0 FROM tab0 AS cor0
----
-106
-160
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + col2 col1 FROM tab1 AS cor0
----
120
123
162
query I rowsort
SELECT col2 * 7 FROM tab0
----
231
574
7
query I rowsort
SELECT tab2.col1 * + tab2.col1 * - col0 AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - 27 + - 89 AS col0 FROM tab1
----
-116
-116
-116
query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT col0 - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 - + cor0.col2 * + 11 FROM tab0 AS cor0
----
-10
-330
-820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 * col0 * col0 + col0 col1 FROM tab0 AS cor0
----
-112665
-52968
-728643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) - + ( col0 ) col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + 65 + + col0 - - col2 FROM tab2 AS cor0
----
169
182
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - 52 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT - + ( col2 ) * 1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + cor0.col2 * col0 + - col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL 10 + col0 - + 34 FROM tab0 AS cor0
----
0
11
65
query I rowsort
SELECT - 44 AS col1 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL - col1 * cor0.col2 + + col2 AS col0 FROM tab1 cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1850
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-1850
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1851
SELECT CAST( 9 * col2 AS SIGNED ) col2 FROM tab2
----
234
243
342
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1851
SELECT CAST ( 9 * col2 AS INTEGER ) col2 FROM tab2
----
234
243
342
query I rowsort
SELECT ALL - ( + cor0.col0 ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1, tab0, tab2 AS cor0
----
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1855
SELECT ALL + col2 - + col0 * CAST( col2 AS SIGNED ) FROM tab0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + col2 - + col0 * CAST ( col2 AS INTEGER ) FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT - 64 AS col2 FROM tab0
----
-64
-64
-64
query I rowsort
SELECT col0 + + col1 * - col1 AS col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + - 12 * + 98 FROM tab0 AS cor0
----
-1176
-1176
-1176
query I rowsort
SELECT - + col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 39 * cor0.col2 col1 FROM tab2 AS cor0
----
1014
1053
1482
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - cor0.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 246e6bd1f54abce09af69c8c2b1d7f59
query I rowsort
SELECT + cor0.col0 * 29 * + col0 AS col0 FROM tab2 cor0
----
1421
176436
180989
query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT col1 * col0 + + col1 DIV + 92 FROM tab0
----
2064
3396
8099
skipif mysql # not compatible
query I rowsort label-1864
SELECT col1 * col0 + + col1 / + 92 FROM tab0
----
2064
3396
8099
query I rowsort
SELECT - ( + tab0.col0 ) * - col1 - + ( ( + col0 ) ) * + col1 * + col1 AS col1 FROM tab0
----
-175440
-325920
-728910
query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - col0 + - 93 * col0 AS col1 FROM tab2
----
-658
-7332
-7426
query I rowsort
SELECT tab2.col1 - 68 FROM tab2
----
-37
-51
-9
query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0, tab2 cor0
----
-65
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * - ( - col0 ) FROM tab2 AS cor0
----
-620
3068
697
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 + 11 col1 FROM tab0 cor0
----
11
11
11
query I rowsort
SELECT ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT ALL + 60 DIV 64 col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL + 60 / 64 col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1876
SELECT 97 DIV + 82 + col2 + col2 FROM tab0 AS cor0
----
165
3
67
skipif mysql # not compatible
query I rowsort label-1876
SELECT 97 / + 82 + col2 + col2 FROM tab0 AS cor0
----
165
3
67
query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - + ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - - col1 + 15 * col1 FROM tab1 AS cor0
----
160
208
416
query I rowsort
SELECT + 12 + + col1 * + col0 + col1 AS col0 FROM tab0 cor0
----
2162
3504
8202
query I rowsort
SELECT ALL - col2 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT + 22 * col1 + - col2 AS col0 FROM tab1
----
163
190
518
query I rowsort
SELECT DISTINCT - 9 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
17
18
29
query I rowsort
SELECT ALL col2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1885
SELECT - col2 DIV - cor0.col2 col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1885
SELECT - col2 / - cor0.col2 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + 55 + col2 AS col1 FROM tab2 AS cor0
----
-17
-28
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT + + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1887
SELECT + + col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + - cor0.col1 * - col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + ( + col0 ) - - col1 * 54 AS col1 FROM tab1
----
1407
604
782
query I rowsort
SELECT ALL tab0.col1 * + 84 AS col2 FROM tab0
----
7224
7644
8148
query I rowsort
SELECT + cor0.col0 * cor0.col2 AS col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1892
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT col2 DIV + CAST( col0 AS SIGNED ) FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1896
SELECT col2 / + CAST ( col0 AS INTEGER ) FROM tab1
----
0
1
18
query I rowsort
SELECT - col1 + 33 FROM tab1 AS cor0
----
20
23
7
query I rowsort
SELECT DISTINCT + - col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col1 + - ( - col1 ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col0 * + col0 - + col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL - col1 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col2 - - col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + + cor0.col2 + ( 36 ) * col0 AS col0 FROM tab0 AS cor0
----
1261
3286
897
query I rowsort
SELECT DISTINCT - col2 * - col1 + + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT ALL + col2 * ( + col2 ) + - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + col2 * ( + col2 ) + - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - + 84 + + col1 AS col1 FROM tab1 AS cor0
----
-58
-71
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT DISTINCT - 34 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-33
skipif mysql # not compatible
query I rowsort label-1908
SELECT DISTINCT - 34 + col0 / col0 AS col1 FROM tab0 AS cor0
----
-33
query I rowsort
SELECT ALL 81 AS col1 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT ALL + + col2 * 67 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT + 78 + - col1 + + col0 FROM tab1 AS cor0
----
132
145
55
query I rowsort
SELECT DISTINCT - ( 43 ) AS col0 FROM tab2 AS cor0
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1913
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + 10 * - col0 FROM tab1 AS cor0
----
-697
-84
-896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1915
SELECT - + CAST( NULL AS SIGNED ) * col1 * + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1915
SELECT - + CAST ( NULL AS INTEGER ) * col1 * + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col0 * col1 col1 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT ALL col2 DIV col0 + - col0 FROM tab0 AS cor0
----
-23
-35
-89
skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL col2 / col0 + - col0 FROM tab0 AS cor0
----
-23
-35
-89
query I rowsort
SELECT ALL col1 * col1 + - tab1.col2 * col2 FROM tab1
----
-2240
-3149
-9047
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT ALL col2 * + CAST( col0 AS SIGNED ) + col2 * + 57 + col0 AS col1 FROM tab1
----
13232
3243
6961
skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL col2 * + CAST ( col0 AS INTEGER ) + col2 * + 57 + col0 AS col1 FROM tab1
----
13232
3243
6961
query I rowsort
SELECT ALL col2 + - ( + col0 * col1 ) FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT ALL col1 + 40 + - 25 DIV tab1.col2 FROM tab1
----
50
53
66
skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL col1 + 40 + - 25 / tab1.col2 FROM tab1
----
50
53
66
query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 WHERE NULL NOT IN ( tab0.col1 )
----
query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1 WHERE NULL >= - col0
----
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT - tab0.col1 * col1 + + col0 * - col2 AS col1 FROM tab0
----
-15579
-8188
-9444
query I rowsort
SELECT + col0 - + col0 * col2 AS col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + tab1.col0 - + tab1.col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - col1 + col1 FROM tab0 WHERE NOT - col0 > NULL
----
query I rowsort
SELECT - col1 - - col1 FROM tab2
----
0
0
0
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - col0 + - col1 / + tab0.col2 AS col1 FROM tab0 WHERE NULL > col1
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( col1 + + col1 / col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL - col0 + + col2 + + col2 FROM tab2
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT + col1 * col0 DIV col1 + + col0 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-1939
SELECT + col1 * col0 / col1 + + col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT DISTINCT + col1 * col2 DIV col2 + + col0 AS col2 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT + col1 * col2 / col2 + + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 + col0 FROM tab2
----
-175
-1872
-2844
query I rowsort
SELECT ALL + col0 * tab0.col2 + col1 FROM tab0
----
132
7389
878
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 / - col2 + - col1 ) AND ( col1 ) <> NULL
----
query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT + + col0 * col0 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT ALL - col2 * col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT ALL - cor0.col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - cor0.col1 + col1 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT + col1 + col2 DIV col1 + col1 AS col2 FROM tab2
----
118
36
62
skipif mysql # not compatible
query I rowsort label-1949
SELECT + col1 + col2 / col1 + col1 AS col2 FROM tab2
----
118
36
62
query I rowsort
SELECT - col1 + col2 + - col1 * - col0 * + col0 AS col1 FROM tab1
----
262
41007
83283
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT + col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col0 * - col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT + col0 DIV col2 + col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1958
SELECT + col0 / col2 + col1 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL - + col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col0 * - cor0.col0 + col0 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + 21 * - col1 - - ( col1 + col0 ) FROM tab2
----
-1102
-261
-613
query I rowsort
SELECT + col0 * col1 + 34 FROM tab1 AS cor0
----
1074
112
674
query I rowsort
SELECT + 97 + + col0 FROM tab1 cor0
----
100
161
177
query I rowsort
SELECT - col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col1 + + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - + col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT col1 + 81 * col2 FROM tab1 AS cor0
----
4400
4627
7789
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( col1 AS REAL ) + - cor0.col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + 59 AS col1 FROM tab2
----
59
59
59
query I rowsort
SELECT - - col1 + + 26 * col0 FROM tab1 AS cor0
----
104
1674
2093
onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT + tab0.col1 DIV + col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1972
SELECT + tab0.col1 / + col0 AS col1 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT col1 + - col0 AS col0 FROM tab0
----
2
62
query I rowsort
SELECT ALL + col2 / + col2 + col0 FROM tab0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT + col1 * col0 AS col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT col0 + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col1 NOT IN ( col0 )
----
query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT ALL - col2 DIV col0 AS col2 FROM tab0 WHERE NOT col2 IN ( col1 )
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - col2 / col0 AS col2 FROM tab0 WHERE NOT col2 IN ( col1 )
----
-1
0
0
query I rowsort
SELECT + col1 + col2 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col0 + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col0 - + col2 AS col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col2 * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1 WHERE ( NULL ) > - col2 * + col1 * + tab1.col0
----
query I rowsort
SELECT DISTINCT + col1 / - col0 FROM tab2 WHERE NOT NULL = NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) IN ( tab1.col2 )
----
query I rowsort
SELECT tab0.col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + + cor0.col0 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
119
130
184
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT - col2 + col2 * + col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT ALL col1 * - col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT + cor0.col0 - + col0 * 88 DIV - col0 AS col2 FROM tab2 AS cor0
----
166
167
95
skipif mysql # not compatible
query I rowsort label-1993
SELECT + cor0.col0 - + col0 * 88 / - col0 AS col2 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT col2 * tab2.col1 + col0 AS col2 FROM tab2 WHERE NOT NULL = NULL
----
query I rowsort
SELECT DISTINCT - col1 - col1 * col1 AS col1 FROM tab1 WHERE NOT + col0 * col2 / + col2 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + tab1.col0 / - col0 AS col1 FROM tab1 WHERE NULL > col2 + col0 - + col2
----
query I rowsort
SELECT + col1 + + tab2.col0 FROM tab2
----
137
38
96
query I rowsort
SELECT col2 * col1 + 7 AS col1 FROM tab0
----
104
2845
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-1999
SELECT - col1 * + col0 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1999
SELECT - col1 * + col0 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT col0 DIV 46 + 14 AS col0 FROM tab2
----
14
15
15
skipif mysql # not compatible
query I rowsort label-2000
SELECT col0 / 46 + 14 AS col0 FROM tab2
----
14
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-2001
SELECT + col2 * + col1 DIV tab2.col1 + col2 DIV 1 AS col0 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-2001
SELECT + col2 * + col1 / tab2.col1 + col2 / 1 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT + + cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col2 * ( - cor0.col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT - col0 * 12 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT - 38 + cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e9162c4f12413240cb0d4f7a593bc149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * + col0 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - col2 * 51 AS col0 FROM tab0 AS cor0
----
-1683
-4182
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT + + col1 DIV col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2011
SELECT + + col1 / col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 2 * - ( col1 ) + - col2 FROM tab2 cor0
----
-4
35
92
query I rowsort
SELECT ALL - 87 AS col2 FROM tab0 cor0
----
-87
-87
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + ( col2 ) * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab2 AS cor0
----
2
query I rowsort
SELECT DISTINCT - 97 FROM tab0 AS cor0
----
-97
query I rowsort
SELECT DISTINCT - 65 FROM tab0 AS cor0
----
-65
query I rowsort
SELECT ALL + - cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col2 * 14 AS col2 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT ALL col0 * + 5 FROM tab0
----
120
175
445
query I rowsort
SELECT ALL + 79 + col1 AS col1 FROM tab1 AS cor0
----
105
89
92
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT + col2 * col0 * ( col1 ) + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2026
SELECT ALL - col1 + - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - col1 + - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 * + col2 - 15 AS col1 FROM tab0 AS cor0
----
-1104
-16
-6739
query I rowsort
SELECT ALL - col1 * col2 + - col0 + 96 AS col2 FROM tab1 AS cor0
----
-1232
-1311
-538
query I rowsort
SELECT - col0 + col0 + col1 * col1 * - col0 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col1 * + col0 + - ( col1 ) * - col2 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT - 54 * col0 AS col2 FROM tab1 cor0
----
-162
-3456
-4320
query I rowsort
SELECT ALL 48 * 57 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d593df34466d6c036e257f6b2fb1c5a5
query I rowsort
SELECT - tab1.col0 * + 44 * tab1.col2 AS col1 FROM tab1
----
-160512
-337920
-7128
query I rowsort
SELECT - col2 + col0 * 84 AS col0 FROM tab1 cor0
----
198
5319
6624
query I rowsort
SELECT - ( - col0 ) * + col0 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
106059
1492
358930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT DISTINCT ( + col0 ) DIV col1 - + col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT ( + col0 ) / col1 - + col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 * col0 * + col1 - + 7 AS col2 FROM tab1 cor0
----
227
40953
83193
query I rowsort
SELECT ALL 33 AS col0 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT + + col0 - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 * - 23 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 13 FROM tab1 AS cor0
----
13
query I rowsort
SELECT ALL + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - - col2 * + col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT - ( + col2 ) * CAST( 5 * + col0 AS SIGNED ) FROM tab1
----
-18240
-38400
-810
skipif mysql # not compatible
query I rowsort label-2046
SELECT - ( + col2 ) * CAST ( 5 * + col0 AS INTEGER ) FROM tab1
----
-18240
-38400
-810
query I rowsort
SELECT DISTINCT - 15 * col0 + col0 FROM tab1
----
-1120
-42
-896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT DISTINCT + col2 DIV 96 + cor0.col0 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-88
skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + col2 / 96 + cor0.col0 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-36
-673
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT DISTINCT - + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT - + col0 / col1 AS col0 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT - - col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT DISTINCT - + col2 * 26 + + col2 DIV col0 FROM tab2 cor0
----
-676
-699
-988
skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT - + col2 * 26 + + col2 / col0 FROM tab2 cor0
----
-676
-699
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col1 + ( + col1 ) AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT col0 * col0 * 23 FROM tab2
----
1127
139932
143543
query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - 65 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT + 26 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL - col0 + - 99 FROM tab1 AS cor0
----
-102
-163
-179
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2063
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) / + col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT + col0 * ( + 67 ) + - col1 DIV + 14 AS col1 FROM tab0 AS cor0
----
1602
2339
5957
skipif mysql # not compatible
query I rowsort label-2064
SELECT + col0 * ( + 67 ) + - col1 / + 14 AS col1 FROM tab0 AS cor0
----
1602
2339
5957
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2065
SELECT ALL col1 * CAST( - col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL col1 * CAST ( - col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - col1 * 67 + 24 FROM tab1 AS cor0
----
-1718
-646
-847
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL 36 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT col1 * - tab1.col0 * - col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL col2 * 62 + - col0 * col1 FROM tab1 AS cor0
----
2894
3270
4912
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT CAST( NULL AS SIGNED ) + 36 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2073
SELECT CAST ( NULL AS INTEGER ) + 36 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2074
SELECT + ( - col0 ) * - CAST( NULL AS DECIMAL ) * col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2074
SELECT + ( - col0 ) * - CAST ( NULL AS REAL ) * col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * 27 * col0 FROM tab0 AS cor0
----
-15552
-213867
-33075
query I rowsort
SELECT DISTINCT + col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - + 72 FROM tab1 AS cor0
----
-72
query I rowsort
SELECT ALL + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - + col1 * col0 + - col1 - - cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1061
-1466
-3491
query I rowsort
SELECT + - col0 + + col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - - 46 AS col2 FROM tab0 AS cor0
----
46
query I rowsort
SELECT ALL - + col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT - tab1.col0 * + col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2086
SELECT + cor0.col1 - - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2086
SELECT + cor0.col1 - - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT DISTINCT col2 * + col0 - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT col2 * + col0 - col0 / col0 AS col2 FROM tab0 AS cor0
----
34
7297
791
onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT ALL - ( + col2 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - ( + col2 ) / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + - 50 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-109
-67
-81
query I rowsort
SELECT - + col1 * col2 - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ( - 98 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2092
SELECT ALL - CAST( NULL AS SIGNED ) * - 37 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL - CAST ( NULL AS INTEGER ) * - 37 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * + ( + col1 ) + - cor0.col2 AS col1 FROM tab1 cor0
----
-157
-265
-730
query I rowsort
SELECT + col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + ( col2 ) * + col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - 74 * - tab0.col1 AS col0 FROM tab0
----
6364
6734
7178
query I rowsort
SELECT 37 - col1 FROM tab2 AS cor0
----
-22
20
6
query I rowsort
SELECT - - 13 + + col0 FROM tab0 AS cor0
----
102
37
48
query I rowsort
SELECT + ( col2 ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 * + cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 92 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT 61 * + col2 + + ( - col0 ) AS col0 FROM tab2 AS cor0
----
1508
1640
2239
query I rowsort
SELECT col0 * col2 * + col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL col2 + ( - col1 * - col2 ) FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT - tab0.col0 * col0 + tab0.col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT - 35 + - 42 FROM tab2, tab0 AS cor0
----
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT col2 DIV + col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2110
SELECT col2 / + col2 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT col2 * + 8 FROM tab1
----
432
456
768
query I rowsort
SELECT ALL + col2 + col2 * 90 FROM tab1
----
4914
5187
8736
query I rowsort
SELECT 92 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 * 75 + col2 AS col2 FROM tab2 cor0
----
552
5876
5963
query I rowsort
SELECT ALL - 63 * + col1 - col2 AS col2 FROM tab0 cor0
----
-5451
-5815
-6112
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT DISTINCT - col2 * col2 + - col1 DIV 95 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - col2 * col2 + - col1 / 95 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
-51
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6
query I rowsort
SELECT ALL + + 33 * + col0 + col1 - 52 AS col2 FROM tab0 cor0
----
1200
2976
826
onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT ALL + 17 DIV 64 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + 17 / 64 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 30 - 13 AS col2 FROM tab0
----
17
query I rowsort
SELECT ALL - 71 - 33 FROM tab0
----
-104
-104
-104
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + col1 * ( 35 ) AS col0 FROM tab1
----
286
375
907
query I rowsort
SELECT ( - col1 + - col1 ) AS col0 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT + col0 * col0 - col1 FROM tab2
----
18
6025
6224
query I rowsort
SELECT + - cor0.col1 + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col2 - + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 - col1 * col0 AS col1 FROM tab1
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT ALL CAST( NULL AS SIGNED ) * col1 - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL CAST ( NULL AS INTEGER ) * col1 - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + 32 + cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to f70a25793fa854e3fb343b0c0a0213f3
query I rowsort
SELECT ALL 81 * + col1 * - ( tab0.col1 + - col2 ) FROM tab0
----
-369198
-66339
-754272
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
41
query I rowsort
SELECT ALL + col0 * - col1 * col2 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + col0 * col0 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col0 - col0 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT tab2.col0 * tab2.col1 * - col1 AS col2 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + 55 + - tab0.col1 * 65 * col0 FROM tab0
----
-134105
-220620
-526380
query I rowsort
SELECT - - col0 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - col1 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - col1 + - 65 AS col0 FROM tab0 AS cor0
----
-151
-156
-162
query I rowsort
SELECT DISTINCT - col1 - 52 * + 91 AS col0 FROM tab1 AS cor0
----
-4742
-4745
-4758
query I rowsort
SELECT DISTINCT - + col2 - col1 * - col0 AS col2 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT - - col2 + ( - col1 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col2 * ( col2 + - col2 ) * - 27 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * 49 AS col0 FROM tab2 AS cor0
----
1519
2891
833
query I rowsort
SELECT + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 43 col2 FROM tab2
----
102
60
74
query I rowsort
SELECT ALL 30 + - ( col2 ) + 73 AS col0 FROM tab0
----
102
21
70
query I rowsort
SELECT ALL + 74 AS col2 FROM tab1
----
74
74
74
query I rowsort
SELECT ALL col0 * 92 AS col0 FROM tab2
----
644
7176
7268
query I rowsort
SELECT DISTINCT - 3 FROM tab2, tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab0 cor0
----
26
27
38
query I rowsort
SELECT col0 * 56 + col1 FROM tab1 AS cor0
----
194
3594
4493
query I rowsort
SELECT ALL - - 1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - 71 AS col1 FROM tab1
----
-71
-71
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT ALL - col0 + - 75 + - col0 * col2 DIV - col0 AS col0 FROM tab2
----
-116
-127
-55
skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - col0 + - 75 + - col0 * col2 / - col0 AS col0 FROM tab2
----
-116
-127
-55
query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - - col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - 22 AS col1 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + col1 * - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + - col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT tab2.col0 * col0 * + CAST( NULL AS DECIMAL ) + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2166
SELECT tab2.col0 * col0 * + CAST ( NULL AS REAL ) + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 35 * cor0.col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT DISTINCT + - col2 - + col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + cor0.col1 * cor0.col0 + - 49 AS col1 FROM tab1 AS cor0
----
29
591
991
onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT - - cor0.col0 DIV col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-2170
SELECT - - cor0.col0 / col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 * + col2 FROM tab2 AS cor0
----
22572
24510
39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 * col2 + 22 col0 FROM tab0 AS cor0
----
-1595
-27
-3996
query I rowsort
SELECT - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab2
----
-29
query I rowsort
SELECT + 91 * col0 FROM tab1 cor0
----
273
5824
7280
query I rowsort
SELECT DISTINCT - 59 * col2 FROM tab2 cor0
----
-1534
-1593
-2242
query I rowsort
SELECT DISTINCT - col0 - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - + col2 + + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * - col2 + cor0.col1 * - col1 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT + 86 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + - 72 * col2 + col0 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-134
-2438
-5906
query I rowsort
SELECT - col0 - col2 * + col1 AS col0 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT tab2.col0 * col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col1 - col2 * - cor0.col1 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 3 col0 FROM tab2 AS cor0
----
20
34
62
skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * CAST ( col2 * - col2 AS REAL ) - col1 * 98 * - cor0.col2 AS col2 FROM tab1 cor0
----
23370
2496
61776
query I rowsort
SELECT - + col2 * col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col0 * col0 col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col1 * 34 FROM tab1 AS cor0
----
-340
-442
-884
query I rowsort
SELECT ALL - col2 * ( col0 ) + col1 + + col2 * - col1 FROM tab1 cor0
----
-1540
-4208
-8915
query I rowsort
SELECT ALL + col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2194
SELECT + CAST( NULL AS DECIMAL ) * 90 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2194
SELECT + CAST ( NULL AS REAL ) * 90 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2196
SELECT DISTINCT - - col0 + ( col2 + CAST( col0 AS SIGNED ) * col1 ) AS col0 FROM tab1 AS cor0
----
1216
135
761
skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - - col0 + ( col2 + CAST ( col0 AS INTEGER ) * col1 ) AS col0 FROM tab1 AS cor0
----
1216
135
761
query I rowsort
SELECT + col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2198
SELECT ALL - CAST( NULL AS DECIMAL ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - CAST ( NULL AS REAL ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 86 * - ( col0 ) FROM tab2 AS cor0
----
602
6708
6794
query I rowsort
SELECT ALL + ( + col1 ) * + col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - 15 * col0 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT - - ( 45 ) * col1 - col2 FROM tab2 AS cor0
----
1368
2629
727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + ( + tab1.col1 ) col2 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT ALL tab1.col1 - - 7 FROM tab1
----
17
20
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT DISTINCT + cor0.col1 DIV col1 AS col1 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-2205
SELECT DISTINCT + cor0.col1 / col1 AS col1 FROM tab0 cor0
----
1
query I rowsort
SELECT col1 * + 82 - col0 FROM tab1 AS cor0
----
2129
756
986
onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT ALL + ( col2 ) * col2 DIV - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL + ( col2 ) * col2 / - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2208
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 - + col0 / 65 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 - + col0 / 65 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 47 * 10 + - col0 * 17 FROM tab2 AS cor0
----
-1796
-1813
-589
query I rowsort
SELECT - - ( - 97 ) - - col0 * + ( 25 ) * - col1 AS col1 FROM tab1 AS cor0
----
-16097
-2047
-26097
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col2 * col1 col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2212
SELECT - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2212
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + - 85 * col0 * 17 AS col0 FROM tab2 AS cor0
----
-10088
-112684
-114117
query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 + - ( + col0 ) * + 81 AS col1 FROM tab1 AS cor0
----
-240
-5120
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 - col1 col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - col1 * col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT ALL - ( + col0 ) DIV + col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - ( + col0 ) / + col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL col0 - + col0 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 + col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL 50 AS col2 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 + col0 * col0 FROM tab2 AS cor0
----
-168
1482
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT ( - col0 ) DIV col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2223
SELECT ( - col0 ) / col0 FROM tab1 AS cor0
----
-1
-1
-1
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8
query I rowsort
SELECT DISTINCT col2 + col0 * col1 * + col2 AS col1 FROM tab0
----
3396
664200
68145
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82
query I rowsort
SELECT - col0 + col2 * cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ( + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + 18 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT DISTINCT + ( - 58 ) FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-2232
SELECT DISTINCT CAST( 67 AS SIGNED ) DIV tab2.col1 + ( - col0 ) + + col0 FROM tab2
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2232
SELECT DISTINCT CAST ( 67 AS INTEGER ) / tab2.col1 + ( - col0 ) + + col0 FROM tab2
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2233
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * 11 FROM tab0 cor0
----
11
363
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT DISTINCT - col2 DIV col1 + col2 DIV cor0.col2 col2 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - col2 / col1 + col2 / cor0.col2 col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + col1 + - col1 + + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort
SELECT ALL - - cor0.col2 + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT - col1 - + col2 AS col1 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT col1 + col2 DIV col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2240
SELECT col1 + col2 / col2 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col2 + col1 ) col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - - col2 * + ( - 58 ) + col1 FROM tab0 AS cor0
----
-1828
-4665
39
query I rowsort
SELECT ALL - cor0.col2 + cor1.col0 + cor0.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2b5015f039c7b7201c4e11d962016928
query I rowsort
SELECT ALL col1 * + 3 * col0 AS col2 FROM tab1
----
1920
234
3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2246
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col1 + - col0 * + col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * 84 FROM tab1, tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT - col1 + col2 * - 85 * 71 AS col0 FROM tab2 AS cor0
----
-156969
-162976
-229347
query I rowsort
SELECT DISTINCT + 31 * col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT 11 + col1 AS col0 FROM tab2 AS cor0
----
28
42
70
query I rowsort
SELECT DISTINCT - 84 * col1 FROM tab0 AS cor0
----
-7224
-7644
-8148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT cor0.col1 * - ( 99 ) + col1 - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1704
-3065
-5808
query I rowsort
SELECT col2 + - ( - col2 * - col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - - col1 * - col0 * cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
-177418
-329218
-736918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT + col2 + - CAST( col1 AS SIGNED ) - - col2 AS col0 FROM tab2 AS cor0
----
-7
23
59
skipif mysql # not compatible
query I rowsort label-2257
SELECT + col2 + - CAST ( col1 AS INTEGER ) - - col2 AS col0 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - 11 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * + 49 * - col1 col0 FROM tab1 AS cor0
----
19110
24843
49686
onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT - - 9 DIV - col1 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2264
SELECT - - 9 / - col1 col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2265
SELECT 64 DIV cor0.col0 FROM tab1 AS cor0
----
0
1
21
skipif mysql # not compatible
query I rowsort label-2265
SELECT 64 / cor0.col0 FROM tab1 AS cor0
----
0
1
21
query I rowsort
SELECT - + col0 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT - col0 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2267
SELECT - col0 / + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - - col0 + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + + 4 AS col1 FROM tab0 AS cor0
----
4
4
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT + col1 DIV cor0.col2 col0 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2271
SELECT + col1 / cor0.col2 col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL ( col1 ) * + col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + - 2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT 64 AS col2 FROM tab1
----
64
64
64
query I rowsort
SELECT DISTINCT + + ( cor0.col1 ) * - 95 AS col2 FROM tab1 AS cor0
----
-1235
-2470
-950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT DISTINCT - col1 + col1 + CAST( 17 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
17
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - col1 + col1 + CAST ( 17 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
17
query I rowsort
SELECT col1 + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2280
SELECT DISTINCT + + ( - col1 ) + + 19 / + cor0.col1 + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + + ( - col1 ) + + 19 / + cor0.col1 + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 81 * + col1 + 27 FROM tab1 AS cor0
----
1080
2133
837
query I rowsort
SELECT ALL 41 FROM tab2
----
41
41
41
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT - 1 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + + col1 + - col2 * + col1 + + col2 AS col2 FROM tab2 AS cor0
----
-1449
-591
-779
query I rowsort
SELECT 88 AS col0 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT ALL - - ( - tab1.col2 ) AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT 99 AS col2 FROM tab2
----
99
99
99
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 92 * + col0 - col1 AS col0 FROM tab0
----
2122
3123
8097
query I rowsort
SELECT 0 - - col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + 69 * + col0 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT 14 + + col2 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT col1 * 69 FROM tab0
----
5934
6279
6693
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2297
SELECT + - CAST( + ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2297
SELECT + - CAST ( + ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 * + col1 col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 * - 91 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT - + 77 + col2 * col1 AS col2 FROM tab0 AS cor0
----
20
2761
7385
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 35 ) + + cor0.col2 col0 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT + - col2 * 4 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-115
-182
-231
query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + 47 * + 36 - + col1 AS col0 FROM tab1 AS cor0
----
1666
1679
1682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 36 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 36 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - 10 - - col2 FROM tab1 AS cor0
----
106
64
67
query I rowsort
SELECT - + 97 FROM tab0 cor0
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col1 col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT col2 + + col1 * + col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 37 AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 37 AS col1 FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT + - CAST( - col2 AS SIGNED ) * + col0 DIV - ( - col0 ) + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
skipif mysql # not compatible
query I rowsort label-2312
SELECT + - CAST ( - col2 AS INTEGER ) * + col0 / - ( - col0 ) + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL + ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL col0 - col2 * - col0 AS col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + 70 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT - CAST( NULL AS SIGNED ) + col0 * col1 * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2316
SELECT - CAST ( NULL AS INTEGER ) + col0 * col1 * - col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 21 + 38 * col0 + ( + tab1.col1 ) FROM tab1
----
161
2463
3074
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT DISTINCT tab1.col0 DIV 56 + col0 + - 29 * 79 AS col0 FROM tab1
----
-2210
-2226
-2288
skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT tab1.col0 / 56 + col0 + - 29 * 79 AS col0 FROM tab1
----
-2210
-2226
-2288
query I rowsort
SELECT ALL col1 * col1 + - tab2.col0 FROM tab2
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-2320
SELECT 35 DIV col0 + col0 AS col1 FROM tab2 AS cor0
----
12
78
79
skipif mysql # not compatible
query I rowsort label-2320
SELECT 35 / col0 + col0 AS col1 FROM tab2 AS cor0
----
12
78
79
query I rowsort
SELECT ( col1 ) * col1 + col1 + - ( col1 ) * ( + col1 ) * tab2.col1 FROM tab2
----
-201839
-28799
-4607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2322
SELECT + CAST( NULL AS SIGNED ) * - cor0.col1 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2322
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col1 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - 36 * 98 + col1 FROM tab2 cor0
----
3545
3559
3587
query I rowsort
SELECT - 52 - col1 * - col1 FROM tab1 cor0
----
117
48
624
query I rowsort
SELECT DISTINCT 17 * col2 AS col2 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT DISTINCT ( col1 ) + col0 * col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL 26 FROM tab2
----
26
26
26
query I rowsort
SELECT col2 * - tab0.col0 + - ( col2 ) FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT - 95 FROM tab1
----
-95
-95
-95
query I rowsort
SELECT DISTINCT - 32 FROM tab2
----
-32
query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL + - col2 * + col0 - - col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + col0 + col1 - 63 AS col2 FROM tab1 AS cor0
----
-34
11
30
query I rowsort
SELECT ALL - 97 AS col2 FROM tab2
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * col2 col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 73 * - tab2.col0 FROM tab2
----
-511
-5694
-5767
query I rowsort
SELECT col1 + - tab2.col0 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col1 FROM tab2, tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL col0 + - 94 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
129
3126
7797
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT DISTINCT - col0 * 0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col2 * 43 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT DISTINCT col0 * + col0 + cor0.col2 * + col0 - - col0 * col0 FROM tab1 cor0
----
11840
180
20480
query I rowsort
SELECT ALL + - col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 44 FROM tab2, tab0 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT DISTINCT - col0 * col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f
query I rowsort
SELECT ALL + + col1 + ( + col2 ) FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - col2 * ( + col1 + + col1 ) FROM tab0 AS cor0
----
-14924
-194
-5676
query I rowsort
SELECT ALL 66 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2354
SELECT - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2354
SELECT - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 14 AS col2 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT + + 78 * + col0 AS col2 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2358
SELECT CAST( NULL AS SIGNED ) * 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2358
SELECT CAST ( NULL AS INTEGER ) * 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 44 AS col0 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT col2 + col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 33 col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL + col0 * - 63 AS col0 FROM tab2 AS cor0
----
-441
-4914
-4977
query I rowsort
SELECT col2 - col0 * col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - + col0 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + cor0.col2 * - 53 + - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT ALL 98 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT tab0.col1 + - ( - col1 * tab0.col0 ) AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col1 * - 97 + 95 * col2 FROM tab1
----
2608
4445
7859
query I rowsort
SELECT 71 * col2 AS col2 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT + - col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL cor0.col0 * + col1 + + ( col2 + cor0.col1 ) FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT ALL cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + ( - col0 ) + 68 * + col1 AS col1 FROM tab2 cor0
----
1077
2101
3934
query I rowsort
SELECT ALL + - col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - - 28 AS col0 FROM tab2 AS cor0
----
28
query I rowsort
SELECT DISTINCT - + col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - + col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - 13 + + col0 + col0 FROM tab1
----
-7
115
147
query I rowsort
SELECT ALL + - cor0.col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col2 * col2 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + - ( - cor0.col0 ) + + 63 AS col1 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT DISTINCT + + col1 + - col2 + - 3 AS col1 FROM tab0 AS cor0
----
50
6
93
query I rowsort
SELECT DISTINCT + - 84 + col2 FROM tab2 AS cor0
----
-46
-57
-58
query I rowsort
SELECT + + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * - col1 + + ( col1 + - col2 * col1 ) col0 FROM tab1
----
-1430
-1768
-710
query I rowsort
SELECT ALL - cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - tab2.col2 + + tab2.col1 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col0 FROM tab1
----
4096
6400
9
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( col1 + + col1 )
----
query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9
query I rowsort
SELECT tab0.col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT tab1.col1 + col0 * - col0 AS col2 FROM tab1 WHERE ( tab1.col0 ) <> NULL
----
query I rowsort
SELECT - + col2 + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT col1 + + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-2400
SELECT col1 + + col2 / + col1 AS col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT + + col1 DIV - col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2405
SELECT + + col1 / - col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 71 + - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1111
-149
-711
query I rowsort
SELECT - 97 + col1 AS col1 FROM tab0 AS cor0
----
-11
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 * - col1 + + col0 col1 FROM tab1 AS cor0
----
-136
-180
-517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 * col1 col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT - col0 + + col0 DIV + col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-2412
SELECT - col0 + + col0 / + col1 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT - col1 * - cor0.col2 + - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT 84 AS col2 FROM tab1
----
84
84
84
query I rowsort
SELECT DISTINCT - col0 * col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + col2 + tab2.col0 + - col2 * col0 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT ALL + col0 * + col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 + col1 + - col0 * - col1 AS col1 FROM tab1
----
107
1133
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + col2 * - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col1 * + col2 ) AND + col0 * + col1 + col1 * + col0
----
query I rowsort
SELECT ALL + col0 * + col2 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL - col2 * col2 AS col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT col2 DIV - tab1.col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2426
SELECT col2 / - tab1.col2 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL col2 - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col0 + + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - col0 * col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + col1 * - tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col2 * + col0 + - col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT col2 + col1 - col2 AS col1 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT ( - col1 ) DIV col1 + - 34 * + col1 AS col0 FROM tab0 cor0
----
-2925
-3095
-3299
skipif mysql # not compatible
query I rowsort label-2435
SELECT ( - col1 ) / col1 + - 34 * + col1 AS col0 FROM tab0 cor0
----
-2925
-3095
-3299
query I rowsort
SELECT ALL - col1 * + col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - 12 * col1 FROM tab0 AS cor0
----
-1032
-1092
-1164
query I rowsort
SELECT ALL + 16 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1024
1280
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT ALL col1 - col1 DIV + col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL col1 - col1 / + col1 FROM tab1
----
12
25
9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * + col1 col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query III rowsort
SELECT * FROM tab2 WHERE NULL > col1
----
query I rowsort
SELECT col0 * col0 - col1 AS col2 FROM tab0
----
1128
490
7830
query I rowsort
SELECT + col1 + + tab2.col2 FROM tab2
----
55
58
85
query I rowsort
SELECT - col0 + + col0 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT col2 - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2446
SELECT col2 - col1 / col1 AS col0 FROM tab2 AS cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col1 FROM tab0 cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT col0 DIV + col1 + + col2 * col2 AS col2 FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-2448
SELECT col0 / + col1 + + col2 * col2 AS col2 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT ALL col2 DIV + tab1.col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL col2 / + tab1.col0 AS col0 FROM tab1
----
0
1
18
query I rowsort
SELECT cor0.col2 * col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col1 + + col2 FROM tab0 AS cor0 WHERE NOT ( col2 + col2 ) NOT IN ( - cor0.col2 * col0 / - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT ALL col2 + - col2 DIV - cor0.col1 FROM tab1 cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL col2 + - col2 / - cor0.col1 FROM tab1 cor0
----
103
56
62
query I rowsort
SELECT DISTINCT - tab2.col2 * col1 + col1 * - col0 FROM tab2
----
-1054
-1989
-6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-2454
SELECT ALL + cor0.col0 * - col2 + + cor0.col0 DIV col1 + col0 FROM tab2 AS cor0
----
-182
-1949
-2919
skipif mysql # not compatible
query I rowsort label-2454
SELECT ALL + cor0.col0 * - col2 + + cor0.col0 / col1 + col0 FROM tab2 AS cor0
----
-182
-1949
-2919
query I rowsort
SELECT ALL + col0 + col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - col2 * - col0 + col1 * - col0 FROM tab1
----
3008
6640
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2459
SELECT DISTINCT tab1.col2 + + col0 DIV + col0 + col2 AS col0 FROM tab1
----
109
115
193
skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT tab1.col2 + + col0 / + col0 + col2 AS col0 FROM tab1
----
109
115
193
query I rowsort
SELECT ALL + tab0.col1 + col1 + col1 * col0 FROM tab0
----
2236
3589
8281
onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT DISTINCT col0 DIV + col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT col0 / + col0 FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2462
SELECT DISTINCT col0 DIV col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT col0 / col2 AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL col0 + col1 + + col0 FROM tab0
----
134
167
269
query I rowsort
SELECT tab1.col2 + - col2 * col2 AS col1 FROM tab1
----
-2862
-3192
-9120
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 + + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL tab0.col1 + - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 43 - + cor1.col2 * cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 311b768ea69c2a16d9ea8648f1892640
query I rowsort
SELECT - col2 * - col0 * 3 AS col1 FROM tab2 AS cor0
----
567
6084
9006
query I rowsort
SELECT + 32 AS col1 FROM tab1 cor0
----
32
32
32
query I rowsort
SELECT DISTINCT col0 * col0 * col1 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT - ( col1 + col0 ) AS col0 FROM tab2
----
-137
-38
-96
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 col1 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT - + col2 DIV + 32 AS col1 FROM tab1 AS cor0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-2476
SELECT - + col2 / + 32 AS col1 FROM tab1 AS cor0
----
-1
-1
-3
query I rowsort
SELECT 90 * + col1 + ( + 79 ) * - col2 FROM tab2
----
-1472
3256
657
query I rowsort
SELECT + + 90 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT + col0 + - col1 AS col0 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT - 78 + + col1 * + col1 DIV - col1 + col0 AS col2 FROM tab2
----
-102
-16
-59
skipif mysql # not compatible
query I rowsort label-2480
SELECT - 78 + + col1 * + col1 / - col1 + col0 AS col2 FROM tab2
----
-102
-16
-59
query I rowsort
SELECT + col2 + col2 - + col0 AS col2 FROM tab2 AS cor0
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT DISTINCT + col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-2482
SELECT DISTINCT + col2 / - col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT - cor0.col2 DIV 55 + 4 + - col2 AS col1 FROM tab0 AS cor0
----
-29
-79
3
skipif mysql # not compatible
query I rowsort label-2483
SELECT - cor0.col2 / 55 + 4 + - col2 AS col1 FROM tab0 AS cor0
----
-29
-79
3
query I rowsort
SELECT ALL + col2 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 * col0 * col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL ( col2 ) * - ( 98 ) AS col1 FROM tab2
----
-2548
-2646
-3724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT - col1 * + col2 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + 2 + 79 * + col1 AS col1 FROM tab1 AS cor0
----
1029
2056
792
query I rowsort
SELECT DISTINCT - 52 + + col0 * - col2 AS col2 FROM tab0 cor0
----
-7350
-844
-87
query I rowsort
SELECT ALL + + col2 * + col0 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + 53 - col1 * col0 * + col0 FROM tab0 AS cor0
----
-118772
-49483
-720758
query I rowsort
SELECT DISTINCT + + cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col0 + col0 * + col0 * ( - col0 ) FROM tab1 AS cor0
----
-24
-262080
-511920
query I rowsort
SELECT + + 67 * 11 + + col1 AS col1 FROM tab2 AS cor0
----
754
768
796
query I rowsort
SELECT col2 + + 89 AS col2 FROM tab1 AS cor0
----
143
146
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col2 col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 49 + - col1 FROM tab1 AS cor0
----
23
36
39
query I rowsort
SELECT ALL + ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col1 * - col1 - + 38 FROM tab1
----
-138
-207
-714
query I rowsort
SELECT col2 - + 21 * - col0 AS col0 FROM tab1
----
117
1401
1776
query I rowsort
SELECT DISTINCT + tab2.col1 + ( col2 ) * + col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL col1 + - ( + col0 ) FROM tab2
----
-19
-62
24
query I rowsort
SELECT - 89 FROM tab2, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2507
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2507
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 * + 74 FROM tab1
----
222
4736
5920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT col0 * CAST( col1 AS SIGNED ) - - col0 * 91 FROM tab2
----
11700
8532
854
skipif mysql # not compatible
query I rowsort label-2509
SELECT col0 * CAST ( col1 AS INTEGER ) - - col0 * 91 FROM tab2
----
11700
8532
854
query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT DISTINCT - 84 DIV + col0 AS col2 FROM tab1
----
-1
-28
skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - 84 / + col0 AS col2 FROM tab1
----
-1
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT - - col2 DIV - col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2512
SELECT - - col2 / - col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - + ( - 69 ) FROM tab2 cor0
----
69
query I rowsort
SELECT ALL - 37 + + col2 AS col1 FROM tab1 AS cor0
----
17
20
59
query I rowsort
SELECT DISTINCT 56 * ( col0 + col0 ) AS col0 FROM tab2 AS cor0
----
784
8736
8848
query I rowsort
SELECT + 5 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT + 71 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT + 81 * - 11 + col2 DIV tab2.col0 FROM tab2
----
-888
-891
-891
skipif mysql # not compatible
query I rowsort label-2520
SELECT + 81 * - 11 + col2 / tab2.col0 FROM tab2
----
-888
-891
-891
query I rowsort
SELECT + 8 + + 96 FROM tab1
----
104
104
104
query I rowsort
SELECT DISTINCT ( 53 ) * - col0 * - col1 AS col1 FROM tab2
----
11501
243906
71179
query I rowsort
SELECT ( - ( col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT 49 FROM tab1 AS cor0
----
49
49
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2525
SELECT - ( - 2 ) * col2 + CAST( - col1 AS SIGNED ) * col2 AS col0 FROM tab2
----
-1482
-570
-783
skipif mysql # not compatible
query I rowsort label-2525
SELECT - ( - 2 ) * col2 + CAST ( - col1 AS INTEGER ) * col2 AS col0 FROM tab2
----
-1482
-570
-783
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * tab1.col0 col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL tab0.col1 * col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + + col0 * - col0 + - col0 * col0 * col0 FROM tab1 AS cor0
----
-266240
-36
-518400
query I rowsort
SELECT DISTINCT + + col1 + - col1 * col1 - - col1 FROM tab0 AS cor0
----
-7224
-8099
-9215
query I rowsort
SELECT - 37 FROM tab1
----
-37
-37
-37
query I rowsort
SELECT 0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab1 AS cor0
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - 28 AS col1 FROM tab1 AS cor0
----
-28
query I rowsort
SELECT ALL - 20 AS col2 FROM tab1 cor0
----
-20
-20
-20
query I rowsort
SELECT - 13 * col1 FROM tab1 AS cor0
----
-130
-169
-338
query I rowsort
SELECT DISTINCT - ( - col2 ) * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT DISTINCT cor0.col2 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT cor0.col2 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + - 67 * col0 FROM tab1 cor0
----
-201
-4288
-5360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + - col0 col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT cor0.col1 + + 1 AS col1 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT - + cor0.col1 DIV - 34 + col2 FROM tab0 AS cor0
----
3
35
84
skipif mysql # not compatible
query I rowsort label-2548
SELECT - + cor0.col1 / - 34 + col2 FROM tab0 AS cor0
----
3
35
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col1 * 76 + - col1 FROM tab2 AS cor0
----
-1309
-2387
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT ALL - - cor0.col1 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - - cor0.col1 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT ALL - - col2 * CAST( NULL AS SIGNED ) * - 65 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - - col2 * CAST ( NULL AS INTEGER ) * - 65 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 30 AS col1 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT ALL col1 * ( col0 ) + + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL + col2 * + col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL - col0 * 61 AS col0 FROM tab2 AS cor0
----
-427
-4758
-4819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - 87 AS col1 FROM tab1 AS cor0
----
-87
-87
-87
query I rowsort
SELECT ALL - - ( + col1 ) * - col2 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + - col1 + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT 63 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT + col2 DIV - col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2564
SELECT + col2 / - col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 + - 59 FROM tab0 AS cor0
----
-148
-83
-94
query I rowsort
SELECT - col0 + - 76 + - 46 AS col2 FROM tab2 AS cor0
----
-129
-200
-201
query I rowsort
SELECT col0 * cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col1 * col1 * 46 FROM tab1
----
-31096
-4600
-7774
query I rowsort
SELECT 92 * + col2 * + col2 AS col0 FROM tab2
----
132848
62192
67068
query I rowsort
SELECT DISTINCT + 66 AS col0 FROM tab2
----
66
query I rowsort
SELECT + col2 + - col1 * col0 * col1 FROM tab1 AS cor0
----
-13424
-1974
-6343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 10 col2 FROM tab0 AS cor0
----
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT col0 DIV 77 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2573
SELECT col0 / 77 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab0.col2 ) + 7 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f07dee371f16a945170af4253759f7a5
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 FROM tab1
----
0
query I rowsort
SELECT - 51 + col2 AS col0 FROM tab1 AS cor0
----
3
45
6
query I rowsort
SELECT DISTINCT 50 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
150
3200
4000
query I rowsort
SELECT ALL + 73 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT 26 * + col1 * - col0 FROM tab1
----
-16640
-2028
-27040
query I rowsort
SELECT col1 + col1 * - col1 * tab1.col2 AS col0 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT 55 * col2 FROM tab1
----
2970
3135
5280
query I rowsort
SELECT - tab0.col2 * + col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT - cor0.col0 * col1 - + col0 DIV - cor0.col1 col0 FROM tab1 AS cor0
----
-1034
-634
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2584
SELECT - cor0.col0 * col1 - + col0 / - cor0.col1 col0 FROM tab1 AS cor0
----
-1034
-634
-78
query I rowsort
SELECT + ( col1 ) * 78 * cor0.col1 + col0 FROM tab2 AS cor0
----
22621
271596
74965
query I rowsort
SELECT DISTINCT - 13 * - col0 - 34 FROM tab1 AS cor0
----
1006
5
798
query I rowsort
SELECT ALL + col1 + col2 * - 33 AS col1 FROM tab2 AS cor0
----
-1237
-799
-860
query I rowsort
SELECT col0 + - col1 AS col2 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + ( col2 ) + - ( col2 + + col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - + 98 * - 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7c44dd4c278c4150b9e580e404654977
query I rowsort
SELECT col1 + cor0.col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + col0 * col1 - + col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 - + 85 col2 FROM tab0 AS cor0
----
-7481
-8366
-9494
query I rowsort
SELECT DISTINCT 17 - col2 * + ( - 96 ) AS col0 FROM tab1
----
5201
5489
9233
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab2 cor0
----
26
27
38
query I rowsort
SELECT + + col0 * cor0.col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2597
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT + col1 * + 90 + + col1 AS col0 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT ALL + col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - + col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 * + ( + col2 ) FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2602
SELECT + col0 * - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2602
SELECT + col0 * - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * 27 FROM tab2 cor0
----
-189
-2106
-2133
query I rowsort
SELECT - col2 - tab0.col0 * col1 AS col0 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT - 88 * col2 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT + 71 AS col0 FROM tab0
----
71
71
71
query I rowsort
SELECT - + col1 * col1 * cor0.col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - col2 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + 45 + + col2 + + col2 FROM tab0 AS cor0
----
111
209
47
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + 84 FROM tab2 AS cor0
----
84
query I rowsort
SELECT cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * - col0 + cor0.col1 * - 82 * col1 FROM tab2 AS cor0
----
-25041
-290044
-79019
query I rowsort
SELECT DISTINCT - 49 * col1 FROM tab0
----
-4214
-4459
-4753
query I rowsort
SELECT + 69 * - col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT ALL - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT col2 + + col2 * col2 AS col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT + col2 - col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - + col0 * 1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col0 + + col0 + 9 * - col2 * + 90 AS col2 FROM tab2 AS cor0
----
-21060
-21870
-30780
query I rowsort
SELECT ALL - + cor0.col2 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT - ( + 94 ) FROM tab2, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT DISTINCT - col0 * 93 AS col2 FROM tab1 cor0
----
-279
-5952
-7440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + ( + 82 ) AS col1 FROM tab2 AS cor0
----
82
query I rowsort
SELECT ALL - ( - 36 ) * col0 * ( col0 ) + - col2 * - 33 FROM tab2 AS cor0
----
219882
225930
2655
query I rowsort
SELECT 80 * 39 + col1 FROM tab2 AS cor0
----
3137
3151
3179
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94
query I rowsort
SELECT + 23 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT ALL - ( + 11 ) + col1 FROM tab2 AS cor0
----
20
48
6
query I rowsort
SELECT DISTINCT ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 85 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT + - 90 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT ALL ( 19 ) AS col1 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT - col0 * col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT col1 + + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT 6 + - col2 * col0 * - col0 AS col1 FROM tab2
----
1329
158190
237164
query I rowsort
SELECT DISTINCT - + ( - col1 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL 20 * col0 AS col1 FROM tab1 cor0
----
1280
1600
60
query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT cor0.col0 * + 71 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 17333d4137b43afc4eab639234ff6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab2, tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col1 * + cor0.col1 + - 46 FROM tab0 AS cor0
----
7350
8235
9363
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2646
SELECT ALL - col1 DIV col1 + + 39 AS col0 FROM tab2 AS cor0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL - col1 / col1 + + 39 AS col0 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT + 79 + cor0.col2 FROM tab2 AS cor0
----
105
106
117
query I rowsort
SELECT - - 54 AS col0 FROM tab1 cor0
----
54
54
54
query I rowsort
SELECT + + col0 * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 + - ( - col0 ) * col2 * col0 AS col1 FROM tab2 cor0
----
1354
158243
237175
query I rowsort
SELECT ALL + + col0 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - col1 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT DISTINCT - + col0 DIV 67 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - + col0 / 67 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT + - col1 + ( - col0 ) FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - + col0 * col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 * 28 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * - ( + col0 ) * + cor0.col2 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT ALL - col2 * - ( col0 ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT ALL + - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + - col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col2 * - col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 + col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2666
SELECT ALL + col2 * tab0.col1 + ( col0 ) DIV col1 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + col2 * tab0.col1 + ( col0 ) / col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 27 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0259a67676b131a4843853be4811b775
query I rowsort
SELECT + tab2.col2 * + 10 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to daf30803acc158430e9342e85963898a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + 90 * + col1 col1 FROM tab0 AS cor0
----
15136
16471
18139
query I rowsort
SELECT - cor0.col2 * 61 + - col0 * col0 FROM tab0 AS cor0
----
-1286
-12923
-2589
query I rowsort
SELECT + col1 + col0 + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT DISTINCT col2 * - col0 + + ( + 84 ) * col2 FROM tab1
----
1140
384
4374
query I rowsort
SELECT 54 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab1, tab1 cor0
----
22
query I rowsort
SELECT col0 + 12 AS col1 FROM tab2
----
19
90
91
query I rowsort
SELECT col0 * - col2 * + 50 FROM tab2
----
-101400
-150100
-9450
query I rowsort
SELECT col2 * ( + col0 ) + tab0.col2 + - col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - - ( col0 ) + col2 AS col1 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + 43 DIV - col2 + + col0 + + ( + col2 ) DIV + col2 FROM tab0 AS cor0
----
-7
24
90
skipif mysql # not compatible
query I rowsort label-2679
SELECT + 43 / - col2 + + col0 + + ( + col2 ) / + col2 FROM tab0 AS cor0
----
-7
24
90
query I rowsort
SELECT - tab0.col0 * + ( - col1 ) * + tab0.col1 AS col1 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ( col0 ) DIV col1 + - 84 col2 FROM tab0
----
-84
-84
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2681
SELECT ( col0 ) / col1 + - 84 col2 FROM tab0
----
-84
-84
-84
query I rowsort
SELECT + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT + - col1 + col2 DIV ( col1 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2683
SELECT + - col1 + col2 / ( col1 + + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ( 71 ) FROM tab0
----
71
71
71
query I rowsort
SELECT ALL 94 AS col2 FROM tab2
----
94
94
94
query I rowsort
SELECT - ( col2 ) * + col0 + + tab2.col1 * 14 FROM tab2
----
-1202
-2764
245
query I rowsort
SELECT col2 * - col0 + col2 FROM tab0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 27 * col1 col2 FROM tab1
----
15390
33696
37908
query I rowsort
SELECT DISTINCT tab2.col0 * - col1 + + tab2.col0 AS col2 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + 36 * + tab0.col2 FROM tab0
----
1188
2952
36
query I rowsort
SELECT + + col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - 26 AS col2 FROM tab2 cor0
----
26
26
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT ALL + col1 * + col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + col1 * + col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * col1 + - cor0.col1 - + col1 FROM tab2 AS cor0
----
1309
155
4484
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 27 + - col2 AS col0 FROM tab1 AS cor0
----
-27
-30
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT DISTINCT + col0 * cor0.col1 + col2 DIV - 84 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT + col0 * cor0.col1 + col2 / - 84 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + 92 col2 FROM tab2 AS cor0
----
1626
738
929
onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT ALL + + 19 * col1 DIV + ( ( - col1 ) ) AS col2 FROM tab1 cor0
----
-19
-19
-19
skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + + 19 * col1 / + ( ( - col1 ) ) AS col2 FROM tab1 cor0
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2700
SELECT DISTINCT + + cor0.col2 * - col2 + ( col1 + col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + + cor0.col2 * - col2 + ( col1 + col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2701
SELECT DISTINCT - + 84 + col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT - + 84 + col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + tab2.col1 * 20 FROM tab2
----
1180
340
620
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0, tab1 AS cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT - col1 DIV col0 AS col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-2704
SELECT - col1 / col0 AS col0 FROM tab2
----
-4
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-2705
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT 7 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL col0 - + 8 FROM tab2
----
-1
70
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 + ( col1 ) col2 FROM tab1 AS cor0
----
57
60
73
query I rowsort
SELECT - 80 * + col0 * cor0.col0 + col0 * + 28 * col2 - + 85 * - col0 AS col0 FROM tab0 AS cor0
----
-21864
-421771
-94045
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT + + 50 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-4
-46
-7
query I rowsort
SELECT + 90 + + col2 AS col1 FROM tab2 cor0
----
116
117
128
query I rowsort
SELECT - - 87 AS col0 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT - col2 * + col1 + + cor0.col0 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - 33 AS col2 FROM tab1
----
-33
-33
-33
query I rowsort
SELECT + + cor0.col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 98 AS col0 FROM tab1 AS cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 * + 3 AS col2 FROM tab0 AS cor0
----
105
267
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 43 col1 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT - col1 * + cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2726
SELECT + col1 + 77 * col0 - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2726
SELECT + col1 + 77 * col0 - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + 86 FROM tab0 cor0
----
86
86
86
query I rowsort
SELECT ALL + 41 * - col0 FROM tab2 AS cor0
----
-287
-3198
-3239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - 55 + col2 AS col0 FROM tab2 AS cor0
----
-17
-28
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * ( + col0 ) + + ( + ( - col2 ) * cor0.col2 ) col1 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT - col1 * - 32 + col2 AS col2 FROM tab1 AS cor0
----
377
512
886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + col1 + col2 + cor0.col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + ( + 56 ) + - col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
1304
1460
626
query I rowsort
SELECT DISTINCT - 46 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-156170
-372554
-94944
query I rowsort
SELECT DISTINCT - + 19 * + 15 + - col2 + col1 FROM tab1 AS cor0
----
-313
-332
-368
query I rowsort
SELECT DISTINCT - - col0 * - 40 FROM tab2 cor0
----
-280
-3120
-3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + col2 col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 + + 70 AS col0 FROM tab1 AS cor0
----
134
150
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT ALL - CAST( 82 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-3
-4
-75
skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL - CAST ( 82 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-3
-4
-75
query I rowsort
SELECT ALL - col0 * + col0 - col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT 11 * col2 + + col2 FROM tab0
----
12
396
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT ALL col0 DIV col0 - col0 * - col2 AS col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL col0 / col0 - col0 * - col2 AS col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT 97 + + ( col1 ) + col0 * col2 FROM tab0
----
229
7486
975
query I rowsort
SELECT + ( ( + cor0.col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT DISTINCT + 70 - - col0 DIV col2 FROM tab1
----
70
71
skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT + 70 - - col0 / col2 FROM tab1
----
70
71
query I rowsort
SELECT + 5 * - col1 FROM tab0
----
-430
-455
-485
query I rowsort
SELECT ALL + col2 + + ( - col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ALL - col1 * col1 + 13 FROM tab2 AS cor0
----
-276
-3468
-948
query I rowsort
SELECT ALL 1 * tab2.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col2 * col0 * col1 + tab1.col2 * + col1 + - col0 AS col1 FROM tab1
----
101008
36986
5613
query I rowsort
SELECT + col1 + col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 4 * col0 AS col0 FROM tab2
----
28
312
316
onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT col2 + + col1 DIV 58 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2757
SELECT col2 + + col1 / 58 FROM tab0
----
2
34
83
query I rowsort
SELECT - col1 - col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + tab2.col1 - + col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT col0 + 47 * - col1 AS col0 FROM tab0
----
-4018
-4188
-4524
query I rowsort
SELECT - - col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col2 * + col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT 49 + + col0 FROM tab1
----
113
129
52
query I rowsort
SELECT ALL - ( cor0.col0 ) + 9 * - 78 AS col2 FROM tab0 AS cor0
----
-726
-737
-791
query I rowsort
SELECT col0 * + col1 + col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-2766
SELECT DISTINCT col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT col0 / - col1 AS col1 FROM tab1 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT DISTINCT + 33 DIV - tab1.col2 + col1 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT + 33 / - tab1.col2 + col1 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col1 * tab2.col2 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT DISTINCT 16 DIV col0 col1 FROM tab2 cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT 16 / col0 col1 FROM tab2 cor0
----
0
2
query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - - 35 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT DISTINCT + + col1 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - ( - cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col0 + col2 * col2 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2776
SELECT col2 / CAST( NULL AS SIGNED ) + + col1 + + col2 * 34 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2776
SELECT col2 / CAST ( NULL AS INTEGER ) + + col1 + + col2 * 34 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 - - 69 FROM tab2
----
-10
-9
62
query I rowsort
SELECT DISTINCT + col2 - ( 96 ) AS col0 FROM tab0
----
-14
-63
-95
query I rowsort
SELECT col2 - col1 * col2 AS col1 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col1 - col1 * + col0 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT col0 * - 84 - col0 FROM tab0
----
-2040
-2975
-7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-2782
SELECT ALL + col0 DIV col2 - - col1 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + col0 / col2 - - col1 FROM tab1
----
11
13
26
query I rowsort
SELECT DISTINCT + col0 - + col1 AS col2 FROM tab2
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2784
SELECT col1 - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-2784
SELECT col1 - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT col0 * 41 + + col1 + col2 * + col0 * - 21 AS col1 FROM tab1
----
-157987
-3253
-73974
onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2786
SELECT col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL cor0.col2 + col1 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1208
6897
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT + + ( - col2 ) * + col0 + - col1 DIV + 80 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-2788
SELECT + + ( - col2 ) * + col0 + - col1 / + 80 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 36 * col1 FROM tab0 AS cor0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT + + cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab1 cor0
----
99
query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + 53 * 15 + - col0 AS col1 FROM tab0 AS cor0
----
706
760
771
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + - 19 * col0 + col1 FROM tab1 AS cor0
----
-1206
-1507
-31
query I rowsort
SELECT - - col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 + 17 + col1 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
-16194
-36461
-5673
query I rowsort
SELECT ALL - + col1 * - 46 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT + 16 * + 44 + - col1 FROM tab1 AS cor0
----
678
691
694
query I rowsort
SELECT DISTINCT col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col1 * + 55 + col1 AS col1 FROM tab1 cor0
----
-1404
-540
-702
query I rowsort
SELECT ALL + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - cor0.col0 - + ( + cor0.col2 ) * - col0 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + + cor0.col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 * - col0 + - col2 - + col0 * - 80 FROM tab0
----
-883
1311
1574
query I rowsort
SELECT col0 * ( tab1.col1 * + col0 ) + col2 * 27 FROM tab1
----
1692
42499
85792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT - col0 * col2 DIV + col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2807
SELECT - col0 * col2 / + col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT col0 - ( + col1 ) FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col0 * + 19 AS col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab0 AS cor0
----
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT ALL + col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab1 cor0
----
90
query I rowsort
SELECT cor0.col1 + - col0 - - col0 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - 67 FROM tab2 AS cor0
----
-67
-67
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2815
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2815
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT ALL CAST( + 34 AS SIGNED ) * + col0 AS col1 FROM tab2 cor0
----
238
2652
2686
skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL CAST ( + 34 AS INTEGER ) * + col0 AS col1 FROM tab2 cor0
----
238
2652
2686
query I rowsort
SELECT - + col0 * - cor0.col0 + col2 * col2 FROM tab1 AS cor0
----
15616
2925
7345
query I rowsort
SELECT DISTINCT - ( - 9 ) + col2 FROM tab0 AS cor0
----
10
42
91
query I rowsort
SELECT - 51 * - 37 AS col2 FROM tab2
----
1887
1887
1887
query I rowsort
SELECT ALL - 96 * + col0 AS col2 FROM tab1
----
-288
-6144
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab2
----
88
query I rowsort
SELECT - 56 FROM tab2, tab1 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT - 25 FROM tab0
----
-25
-25
-25
query I rowsort
SELECT ALL - + ( - ( - col1 ) ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT 84 * ( col0 * + col0 ) + col0 + - col2 AS col0 FROM tab0 AS cor0
----
102934
48375
665371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col2 + + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * col1 + + col1 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT - - col2 + + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - - col0 * col0 + + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
4196
6569
685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 * + col1 col2 FROM tab0 cor0
----
-3354
-3549
-3783
query I rowsort
SELECT 99 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT - 78 * + col2 + + col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT - col1 * cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT col1 DIV + 41 col0 FROM tab0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2837
SELECT col1 / + 41 col0 FROM tab0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 * - tab2.col1 ) + col2 * col0 + - col0 col0 FROM tab2
----
-655
2277
416
query I rowsort
SELECT DISTINCT + + col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + col2 + ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT col1 + - 40 DIV 71 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT col1 + - 40 / 71 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT col1 * - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2846
SELECT col1 * - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + + 58 FROM tab2 AS cor0
----
84
85
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + cor0.col2 * col2 col1 FROM tab0 AS cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 * col0 col0 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 63 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2852
SELECT - col0 / - col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2855
SELECT ALL col1 + + CAST( col1 AS SIGNED ) * col1 col1 FROM tab2 cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL col1 + + CAST ( col1 AS INTEGER ) * col1 col1 FROM tab2 cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2856
SELECT + CAST( NULL AS SIGNED ) + cor0.col1 col1 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-2856
SELECT + CAST ( NULL AS INTEGER ) + cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 5 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - col1 + ( + col2 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col0 * 41 * col2 - + col0 * + col1 * - col2 FROM tab2 AS cor0
----
13608
174116
202800
query I rowsort
SELECT DISTINCT + - col1 + 92 * col2 * col2 FROM tab1 AS cor0
----
268246
298898
847859
query I rowsort
SELECT ALL - col1 + - tab2.col1 * 92 FROM tab2
----
-1581
-2883
-5487
query I rowsort
SELECT ALL 67 + 5 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT 10 AS col2 FROM tab1
----
10
10
10
query I rowsort
SELECT ALL col1 * - col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT col2 * - 36 FROM tab2 cor0
----
-1368
-936
-972
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 AS cor0
----
86
91
97
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT cor0.col0 + 19 + 72 FROM tab2 cor0
----
169
170
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT col1 - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-2869
SELECT col1 - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col0 - ( col1 ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col2 * + ( + col0 ) * - col2 + cor0.col2 * + col2 FROM tab2 cor0
----
-112632
-4374
-52052
query I rowsort
SELECT ALL ( + 23 ) AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 col2 FROM tab1, tab2 AS cor0
----
24
query I rowsort
SELECT - 54 * col2 + col1 FROM tab1 AS cor0
----
-2890
-3068
-5171
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0 AS cor0
----
-46
query I rowsort
SELECT DISTINCT - col1 * col2 * - col2 AS col0 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT 34 FROM tab2, tab2 AS cor0
----
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2879
SELECT + CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 27 col2 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT - 36 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-114
-115
-43
query I rowsort
SELECT ALL + + 84 AS col2 FROM tab1 cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT ( - col0 ) + + col1 + - col2 * col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-71
50
62
skipif mysql # not compatible
query I rowsort label-2883
SELECT ( - col0 ) + + col1 + - col2 * col2 / + col1 AS col0 FROM tab0 AS cor0
----
-71
50
62
query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 * - col2 + - cor0.col0 + - 52 * - col2 FROM tab2 cor0
----
1586
3302
4899
query I rowsort
SELECT + 89 * cor0.col1 FROM tab0 AS cor0
----
7654
8099
8633
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT - 69 AS col0 FROM tab1 AS cor0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + 62 FROM tab2 AS cor0
----
62
query I rowsort
SELECT + - 48 AS col0 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 50 AS col1 FROM tab0 cor0
----
50
50
50
query I rowsort
SELECT ALL + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + 40 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT - + col2 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1 cor0
----
18
query I rowsort
SELECT + + 60 + - col1 + 25 AS col2 FROM tab0 cor0
----
-1
-12
-6
query I rowsort
SELECT ( tab2.col0 ) + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT + - 29 + col1 FROM tab1 AS cor0
----
-16
-19
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT - + col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2900
SELECT - + col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 70 FROM tab0 cor0
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2902
SELECT DISTINCT - + col1 * col0 * + CAST( NULL AS SIGNED ) + col0 * col0 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - + col1 * col0 * + CAST ( NULL AS INTEGER ) + col0 * col0 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + ( + col1 ) * ( + col1 * col2 ) FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT DISTINCT + + col1 DIV col2 + 44 FROM tab0 AS cor0
----
141
45
46
skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT + + col1 / col2 + 44 FROM tab0 AS cor0
----
141
45
46
query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 + col1 * - ( - col1 ) FROM tab0 AS cor0
----
7372
8192
9374
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col2 + + CAST ( + cor0.col1 AS REAL ) FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT DISTINCT + col0 DIV CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT + col0 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1
query I rowsort
SELECT - cor0.col2 * - 61 FROM tab2, tab2 cor0
----
9 values hashing to e60cda0771a75019f27e20322a1e8ba7
query I rowsort
SELECT DISTINCT + col1 * - 71 FROM tab0 AS cor0
----
-6106
-6461
-6887
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2913
SELECT ALL + CAST( NULL AS SIGNED ) + - 33 * + col2 * ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + CAST ( NULL AS INTEGER ) + - 33 * + col2 * ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2914
SELECT + CAST( col1 AS SIGNED ) * - col0 + col0 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1239
-3359
-719
skipif mysql # not compatible
query I rowsort label-2914
SELECT + CAST ( col1 AS INTEGER ) * - col0 + col0 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1239
-3359
-719
query I rowsort
SELECT + - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT tab2.col2 * + col2 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT ALL tab0.col2 DIV + col0 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL tab0.col2 / + col0 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL ( - col2 ) * - col1 + tab0.col1 FROM tab0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2920
SELECT ALL CAST( - 2 AS SIGNED ) AS col1 FROM tab2
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL CAST ( - 2 AS INTEGER ) AS col1 FROM tab2
----
-2
-2
-2
query I rowsort
SELECT col0 + + col2 * cor0.col1 + col1 FROM tab0 cor0
----
229
2948
7642
query I rowsort
SELECT - col2 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT DISTINCT + tab0.col0 + - 33 * + col1 AS col0 FROM tab0
----
-2814
-2914
-3166
query I rowsort
SELECT DISTINCT + col0 * + col0 + tab1.col2 FROM tab1
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT + col2 DIV col1 + + col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-2925
SELECT + col2 / col1 + + col0 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab2 AS cor0
----
25
query I rowsort
SELECT + - 96 + col0 FROM tab1 AS cor0
----
-16
-32
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT + 26 / - col2 + + cor0.col0 - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2928
SELECT + 26 / - col2 + + cor0.col0 - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 97 FROM tab1 AS cor0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT - 74 + 81 * col1 FROM tab1 AS cor0
----
2032
736
979
query I rowsort
SELECT - 38 + col0 * col1 FROM tab0 AS cor0
----
2026
3357
8061
query I rowsort
SELECT DISTINCT - col1 * 75 FROM tab1 AS cor0
----
-1950
-750
-975
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT + ( + col0 ) DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + ( + col0 ) / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + ( + col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - + 86 FROM tab1 cor0
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT col1 DIV + col0 + - 81 + tab1.col0 FROM tab1
----
-1
-17
-70
skipif mysql # not compatible
query I rowsort label-2936
SELECT col1 / + col0 + - 81 + tab1.col0 FROM tab1
----
-1
-17
-70
query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab1 AS cor0
----
-5
query I rowsort
SELECT ALL - + col0 + + ( + col1 ) * ( col1 ) FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT - col0 * 61 DIV col1 + cor0.col0 FROM tab0 AS cor0
----
13
30
7
skipif mysql # not compatible
query I rowsort label-2939
SELECT - col0 * 61 / col1 + cor0.col0 FROM tab0 AS cor0
----
13
30
7
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 70 col2 FROM tab1
----
-44
-57
-60
query I rowsort
SELECT ALL col0 + - col1 * col1 + col2 FROM tab1
----
-619
21
7
query I rowsort
SELECT - + cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + col2 + - 8 FROM tab2 AS cor0
----
18
19
30
query I rowsort
SELECT ALL + col1 + col0 * - 83 AS col1 FROM tab1 AS cor0
----
-223
-5302
-6627
query I rowsort
SELECT ALL col0 * + 52 AS col0 FROM tab0 cor0
----
1248
1820
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - col2 ) col0 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT - 83 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT DISTINCT 22 + + 79 FROM tab2, tab1 cor0
----
101
query I rowsort
SELECT DISTINCT tab0.col0 * ( ( col0 ) + + col2 ) * + col2 FROM tab0
----
1247958
1260
45144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2953
SELECT CAST( NULL AS DECIMAL ) * 36 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( NULL AS REAL ) * 36 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 + - ( - cor0.col0 + - col0 ) FROM tab0 AS cor0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + tab0.col2 * - col2 + - col1 * - tab0.col0 FROM tab0
----
1375
3394
975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 95 col1 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT DISTINCT + - col2 + + 84 AS col0 FROM tab2 AS cor0
----
46
57
58
query I rowsort
SELECT col0 + col0 * - cor0.col2 FROM tab0 cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT col0 DIV - col0 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2962
SELECT col0 / - col0 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT 34 AS col2 FROM tab1
----
34
34
34
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT + cor0.col0 - + 13 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 3f0fa0bb7a19f66efb033754d2217934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 73 col1 FROM tab1 cor0
----
73
73
73
query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab2
----
6
query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab0
----
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + - 85 FROM tab2, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL + cor0.col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col0 + + 8 * - col0 * + col1 FROM tab2 AS cor0
----
-10823
-1743
-36894
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + 73 * - col1 + ( col2 ) FROM tab2 cor0
----
-2647
-2965
-4957
query I rowsort
SELECT ALL - col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab2
----
-98
query I rowsort
SELECT - tab1.col1 * - col1 FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT - - col1 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-2978
SELECT - - col1 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + cor0.col0 * ( 48 ) * cor0.col0 FROM tab2 AS cor0
----
2352
292032
299568
onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT + col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2980
SELECT + col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 41 + col0 FROM tab1 AS cor0
----
105
121
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
39
query I rowsort
SELECT + 69 * - 32 AS col0 FROM tab0
----
-2208
-2208
-2208
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT ( col1 ) DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2985
SELECT ( col1 ) / col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT ALL + 59 DIV col0 AS col2 FROM tab1
----
0
0
19
skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + 59 / col0 AS col2 FROM tab1
----
0
0
19
query I rowsort
SELECT + 75 FROM tab0
----
75
75
75
query I rowsort
SELECT ALL - col0 + 42 FROM tab1 AS cor0
----
-22
-38
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * col2 col1 FROM tab1
----
3780
3990
6720
query I rowsort
SELECT ALL tab0.col2 * col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + ( + col0 * + col2 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2
----
49
query I rowsort
SELECT - 38 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT DISTINCT - - tab0.col1 + + cor0.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
172
177
182
183
188
194
query I rowsort
SELECT - col0 - col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - col2 + - 3 * 97 AS col2 FROM tab2
----
-317
-318
-329
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 52 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT ALL 84 AS col2 FROM tab0 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - col2 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col2 * tab1.col0 col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT - col0 * col2 * - 9 FROM tab0
----
315
65682
7128
query I rowsort
SELECT - 65 * - 91 FROM tab0, tab0 AS cor0
----
9 values hashing to 986b91a22df66bde3b0690f848ecb433
query I rowsort
SELECT tab1.col2 * + col2 * tab1.col2 AS col1 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT ALL col0 * + col0 * + 26 FROM tab2
----
1274
158184
162266
query I rowsort
SELECT - + ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 * + col2 AS col2 FROM tab0
----
-2838
-7462
-97
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
query I rowsort
SELECT - + col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - cor0.col0 + + 82 FROM tab0 AS cor0
----
-7
47
58
query I rowsort
SELECT 71 + 41 * cor0.col1 FROM tab2 AS cor0
----
1342
2490
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col1 FROM tab0 AS cor0
----
64
64
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT DISTINCT col2 + - tab1.col2 DIV + tab1.col2 AS col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT col2 + - tab1.col2 / + tab1.col2 AS col1 FROM tab1
----
53
56
95
query I rowsort
SELECT ALL + 40 + + col2 FROM tab0
----
122
41
73
query I rowsort
SELECT ALL - tab2.col2 + - col2 AS col1 FROM tab2
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab2.col2 + - col1 col0 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT col0 * col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + 54 + col1 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT + col0 * - col0 + col1 * col0 + + 75 AS col2 FROM tab1 cor0
----
-3381
-5285
144
query I rowsort
SELECT DISTINCT - col0 * - 95 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT 36 + + col1 * + col0 * + col0 FROM tab2
----
106133
1555
358992
query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 + + tab0.col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + - 6 * + col1 + 23 * col1 AS col0 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT DISTINCT + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col1 ) * - ( + cor0.col0 * col1 ) + cor0.col0 col0 FROM tab1 AS cor0
----
-13440
-2025
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - col0 + col1 col2 FROM tab1 cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL col2 DIV + col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL col2 / + col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col2 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col0 * + cor0.col0 + + 19 AS col0 FROM tab2 cor0
----
6103
6260
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT - cor0.col1 * + col1 + ( col2 + - cor0.col0 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-291
-3481
-961
skipif mysql # not compatible
query I rowsort label-3035
SELECT - cor0.col1 * + col1 + ( col2 + - cor0.col0 ) / col1 AS col0 FROM tab2 AS cor0
----
-291
-3481
-961
query I rowsort
SELECT ALL + col0 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + 27 + - col2 AS col2 FROM tab2 AS cor0
----
-11
0
1
query I rowsort
SELECT ALL - col1 * col2 + ( + 3 * col1 + col0 * 74 ) AS col1 FROM tab0 cor0
----
-603
-804
2784
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 26 * col1 + - ( - col0 ) * col1 FROM tab2 AS cor0
----
-589
3068
901
query I rowsort
SELECT ALL col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col1 * + col0 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + col0 + - col0 * + col2 * col2 FROM tab0
----
-26112
-598347
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT + col0 + CAST( NULL AS SIGNED ) * + 73 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3045
SELECT + col0 + CAST ( NULL AS INTEGER ) * + 73 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * - col2 + - col2 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1146
-37
-6895
query I rowsort
SELECT + tab1.col2 + - tab1.col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col0 * col0 * 34 AS col0 FROM tab1 AS cor0
----
139264
217600
306
query I rowsort
SELECT + col1 * 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT + + col1 DIV + 44 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3050
SELECT + + col1 / + 44 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col1 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col0 + + ( - col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3055
SELECT + cor0.col1 DIV col2 - + col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3055
SELECT + cor0.col1 / col2 - + col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - - cor0.col1 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + col0 * + 62 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT ALL + col0 * + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT DISTINCT - 56 * + 25 + - col0 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT - 56 * + 25 + - col0 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + - 46 AS col1 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 + ( - col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT 47 + - col2 FROM tab2 cor0
----
20
21
9
query I rowsort
SELECT DISTINCT col1 + col1 - cor0.col2 AS col2 FROM tab1 cor0
----
-2
-37
-70
query I rowsort
SELECT + cor0.col1 * cor0.col1 + col1 * - 75 FROM tab0 AS cor0
----
1456
2134
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) - - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) - - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT - 96 DIV cor0.col0 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 911f5c48719063d43cdfa81569cd88f7
skipif mysql # not compatible
query I rowsort label-3069
SELECT - 96 / cor0.col0 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 911f5c48719063d43cdfa81569cd88f7
query I rowsort
SELECT col2 - - col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL col2 - col2 * + tab2.col0 FROM tab2
----
-162
-2002
-2964
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT 31 FROM tab0 AS cor0
----
31
query I rowsort
SELECT - col1 * + col0 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 50 FROM tab1 cor0
----
-50
query I rowsort
SELECT ALL + - 44 * col0 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - ( - col2 + 18 ) AS col0 FROM tab0
----
-17
15
64
query I rowsort
SELECT - col1 + - tab0.col2 * + col1 * col0 FROM tab0
----
-3492
-664209
-68198
query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + - ( + col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT 66 + - col2 * col1 FROM tab2 AS cor0
----
-1468
-580
-771
query I rowsort
SELECT + col0 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - 60 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT - ( - col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - - col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - ( + col1 ) FROM tab0 cor0
----
-86
-91
-97
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT col0 * col1 - + 28 * cor0.col0 FROM tab1 AS cor0
----
-1152
-1200
-6
query I rowsort
SELECT DISTINCT - cor0.col2 - - ( cor0.col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - - col1 * col1 + - col0 + + col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - col1 * 89 + 96 * col1 FROM tab2 cor0
----
119
217
413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3097
SELECT DISTINCT - col1 * - CAST( - col0 AS SIGNED ) + col1 * + col1 FROM tab1 cor0
----
-540
-871
598
skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - col1 * - CAST ( - col0 AS INTEGER ) + col1 * + col1 FROM tab1 cor0
----
-540
-871
598
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT DISTINCT - + col2 - - col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 64 FROM tab1
----
-64
-64
-64
query I rowsort
SELECT - col0 * col0 + + 47 FROM tab0 AS cor0
----
-1178
-529
-7874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 80 + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5f79894c7f6c2ff63e1c4792039ff3c9
query I rowsort
SELECT + 37 + col2 * + col1 FROM tab0 AS cor0
----
134
2875
7499
onlyif mysql # use DIV operator for integer division
query I rowsort label-3105
SELECT - + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3105
SELECT - + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + 37 AS REAL ) AS col2 FROM tab0 AS cor0
----
-37
query I rowsort
SELECT ALL + + col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 + cor0.col1 + col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 16 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3110
SELECT ALL + - cor0.col2 * col0 DIV col2 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3110
SELECT ALL + - cor0.col2 * col0 / col2 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 73 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT - cor0.col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) * col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 35 + col1 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-119773
-32455
-75781
query I rowsort
SELECT ( + col0 ) * + tab1.col0 + tab1.col0 * - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 38 FROM tab2
----
38
query I rowsort
SELECT col1 + - 76 * - col2 * + col0 AS col2 FROM tab2
----
14395
154187
228169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab0
----
20
20
20
query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT - 75 + - col1 DIV + col1 FROM tab1 AS cor0
----
-76
-76
-76
skipif mysql # not compatible
query I rowsort label-3123
SELECT - 75 + - col1 / + col1 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT + - cor0.col0 * + cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 44803491445e7acb86e6f357a2a9151b
query I rowsort
SELECT + 67 * col0 AS col1 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT ALL 53 * - cor0.col0 FROM tab0 cor0
----
-1272
-1855
-4717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col1 * - 39 + col2 col0 FROM tab0 AS cor0
----
288477
323041
366952
query I rowsort
SELECT 9 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1525
-637
-828
query I rowsort
SELECT ( 24 ) FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT DISTINCT 82 - cor0.col2 * col2 FROM tab0 cor0
----
-1007
-6642
81
query I rowsort
SELECT - 34 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT ALL col1 + + 80 AS col1 FROM tab2
----
111
139
97
query I rowsort
SELECT DISTINCT - col2 + - ( - col2 + + tab0.col2 ) * + 49 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL + col0 + - col0 * + col1 AS col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL - tab2.col0 + ( + ( - col2 ) ) AS col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT tab0.col0 * 60 + col2 AS col2 FROM tab0
----
1473
2101
5422
query I rowsort
SELECT 19 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + col0 + col1 + col0 AS col1 FROM tab1 AS cor0
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 15 + + col0 * col0 col2 FROM tab2 AS cor0
----
6158
6273
95
query I rowsort
SELECT DISTINCT col0 * ( 97 ) FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT - cor0.col0 * 78 - + col2 AS col1 FROM tab2 AS cor0
----
-573
-6110
-6200
query I rowsort
SELECT ALL - col1 * + ( - col2 ) * - col1 + + col2 AS col2 FROM tab1 AS cor0
----
-16128
-36450
-5643
query I rowsort
SELECT - col0 + col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3145
SELECT + 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 DISTINCT - col0 * + cor0.col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3147
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 65 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 65 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT ALL + - cor0.col1 * 16 + col0 + CAST( NULL AS SIGNED ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + - cor0.col1 * 16 + col0 + CAST ( NULL AS INTEGER ) / cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT - cor0.col0 + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-3149
SELECT - cor0.col0 + col1 / + col1 AS col2 FROM tab2 AS cor0
----
-6
-77
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3150
SELECT + CAST( NULL AS SIGNED ) * col2 * col1 + col0 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3150
SELECT + CAST ( NULL AS INTEGER ) * col2 * col1 + col0 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT - col2 * col0 + + col2 DIV + col0 FROM tab1 AS cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-3151
SELECT - col2 * col0 + + col2 / + col0 FROM tab1 AS cor0
----
-144
-3648
-7679
query I rowsort
SELECT - + cor0.col1 * col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT + 5 * col1 + + col1 * - col0 FROM tab0 AS cor0
----
-1634
-2910
-7644
query I rowsort
SELECT col0 + - ( 97 ) FROM tab0 AS cor0
----
-62
-73
-8
query I rowsort
SELECT + col2 + col0 * + col2 + + col2 AS col1 FROM tab1 AS cor0
----
270
3762
7872
query I rowsort
SELECT - col2 * cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + col2 + 34 * + col1 * - col1 FROM tab1
----
-22930
-3343
-5650
query I rowsort
SELECT ALL col1 + 2 FROM tab0
----
88
93
99
query I rowsort
SELECT ALL col1 * + col1 + - col1 AS col2 FROM tab1
----
156
650
90
query I rowsort
SELECT + col0 * 74 FROM tab2 AS cor0
----
518
5772
5846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + ( ( col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col2 * - 96 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT ALL - + col0 + 45 * col2 AS col1 FROM tab2 AS cor0
----
1092
1208
1631
query I rowsort
SELECT - col2 * 24 FROM tab0 AS cor0
----
-1968
-24
-792
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col2 * + ( - 75 * + col1 ) FROM tab0
----
-212850
-559650
-7275
query I rowsort
SELECT + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + cor0.col0 - 57 FROM tab0 AS cor0
----
-22
-33
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + - col2 col0 FROM tab2 AS cor0
----
-19
-7
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT ALL - + col1 + + col0 DIV - col0 FROM tab1 cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - + col1 + + col0 / - col0 FROM tab1 cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT 14 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2902
-3235
-9202
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT 64 * - col0 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT DISTINCT + 9 * 6 * cor0.col0 AS col2 FROM tab0, tab0 cor0
----
1296
1890
4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT DISTINCT col1 * col0 DIV + 63 FROM tab1
----
1
10
16
skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT col1 * col0 / + 63 FROM tab1
----
1
10
16
query I rowsort
SELECT - col0 * + cor0.col2 - col1 * 97 AS col1 FROM tab0 AS cor0
----
-16125
-9134
-9444
query I rowsort
SELECT - - col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 86 - - col1 FROM tab1 cor0
----
-60
-73
-76
query I rowsort
SELECT + + 66 * + col2 + - col2 + - col0 AS col1 FROM tab0 AS cor0
----
2121
30
5241
query I rowsort
SELECT - 63 + - col2 + + ( + col0 ) * col1 FROM tab1 AS cor0
----
-39
520
881
onlyif mysql # use DIV operator for integer division
query I rowsort label-3184
SELECT - 5 DIV + col2 AS col1 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-3184
SELECT - 5 / + col2 AS col1 FROM tab0 AS cor0
----
-5
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + 3 FROM tab0
----
-21
-32
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * + col1 col2 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT - 49 + col1 AS col1 FROM tab1 cor0
----
-23
-36
-39
query I rowsort
SELECT col1 * col2 + 81 * col2 FROM tab0 AS cor0
----
14104
178
5511
query I rowsort
SELECT col0 * col2 * tab2.col2 AS col1 FROM tab2
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT DISTINCT col1 * CAST( - 25 AS SIGNED ) FROM tab1 AS cor0
----
-250
-325
-650
skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT col1 * CAST ( - 25 AS INTEGER ) FROM tab1 AS cor0
----
-250
-325
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col1 col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2
----
19
query I rowsort
SELECT + + col1 * 63 - 37 * + cor0.col1 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT ALL - - col1 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col2 * - ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT + + col1 + - cor0.col1 * 47 DIV + col1 col2 FROM tab1 AS cor0
----
-21
-34
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3200
SELECT + + col1 + - cor0.col1 * 47 / + col1 col2 FROM tab1 AS cor0
----
-21
-34
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + 6 * 59 FROM tab0 cor0
----
355
387
436
query I rowsort
SELECT - + col1 * ( - cor0.col0 ) + col0 AS col2 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT + col0 - col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab2
----
74
74
74
query I rowsort
SELECT 8 + col1 * 71 - col1 FROM tab0
----
6028
6378
6798
query I rowsort
SELECT col1 - + tab0.col1 * 74 AS col2 FROM tab0
----
-6278
-6643
-7081
query I rowsort
SELECT DISTINCT + col2 - + col0 AS col1 FROM tab2
----
-41
-52
20
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 70 + col2 col2 FROM tab0
----
6053
6452
6791
query I rowsort
SELECT DISTINCT + tab1.col2 + ( col0 ) * + col2 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + col2 * 11 AS col1 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT ALL + - col2 * col2 + col2 * col1 - + col2 AS col2 FROM tab2 AS cor0
----
-836
81
832
query I rowsort
SELECT col0 * 36 - - col1 AS col0 FROM tab0 AS cor0
----
1357
3295
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT + cor0.col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3217
SELECT + cor0.col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - col0 * + col0 - - col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - + col1 + 34 FROM tab2 AS cor0
----
-25
17
3
query I rowsort
SELECT + - 55 * - 76 AS col0 FROM tab1 AS cor0
----
4180
4180
4180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT - + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3223
SELECT - + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + cor1.col1 * 95 * 68 + - tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to 6afdcb1b300eeb3e4ae9230b18ccda7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col1 col2 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 * col1 + + col2 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
38775
558830
98
query I rowsort
SELECT + - col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + - ( col2 ) + - 59 FROM tab0 AS cor0
----
-141
-60
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0
----
14
query I rowsort
SELECT ALL - 21 * - col2 FROM tab2 AS cor0
----
546
567
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab2
----
82
82
82
query I rowsort
SELECT ALL - cor0.col2 * col2 + col2 * ( col1 ) * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-618608
-94743
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col0 col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - tab0.col1 + - 2 * col2 AS col0 FROM tab0
----
-152
-255
-99
query I rowsort
SELECT - - 80 AS col2 FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT - + ( - col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3238
SELECT col0 * - CAST( - 67 + col2 AS SIGNED ) FROM tab1
----
-2320
39
640
skipif mysql # not compatible
query I rowsort label-3238
SELECT col0 * - CAST ( - 67 + col2 AS INTEGER ) FROM tab1
----
-2320
39
640
query I rowsort
SELECT DISTINCT col0 * - 77 AS col2 FROM tab1
----
-231
-4928
-6160
query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - tab1.col0 + + 65 FROM tab1
----
-15
1
62
query I rowsort
SELECT - ( col1 ) AS col1 FROM tab0
----
-86
-91
-97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT 90 FROM tab2
----
90
90
90
query I rowsort
SELECT ALL col2 * - col2 + - col1 * col1 FROM tab1 AS cor0
----
-3349
-3592
-9385
query I rowsort
SELECT DISTINCT cor0.col0 * 15 * col2 FROM tab1 AS cor0
----
115200
2430
54720
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - - 0 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - 79 + col1 FROM tab1 cor0
----
4292
4513
7597
query I rowsort
SELECT ALL + ( - col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - - 62 FROM tab1 AS cor0
----
62
query I rowsort
SELECT ALL - 47 * - 39 * - col1 + + col2 * 53 + - col0 AS col2 FROM tab1 AS cor0
----
-15373
-18821
-44799
query I rowsort
SELECT DISTINCT + 20 * col0 FROM tab0 AS cor0
----
1780
480
700
query I rowsort
SELECT ALL col2 + 15 AS col0 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT ALL col0 * col0 + ( col0 + tab0.col1 ) AS col1 FROM tab0
----
1357
686
8101
query I rowsort
SELECT col1 + + col2 + - 53 FROM tab0
----
120
45
66
query I rowsort
SELECT DISTINCT + 2 + - col0 FROM tab2
----
-5
-76
-77
query I rowsort
SELECT DISTINCT tab1.col0 + + col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 68 * + col0 AS col2 FROM tab0 AS cor0
----
1632
2380
6052
query I rowsort
SELECT DISTINCT 83 * - col1 + + ( + col1 ) * col1 FROM tab2 AS cor0
----
-1122
-1416
-1612
onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT + - 6 DIV + col1 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3263
SELECT + - 6 / + col1 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + 34 AS col0 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT ALL cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col1 FROM tab1 AS cor0
----
-52
query I rowsort
SELECT - + col0 + - col0 * - 8 AS col1 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL col2 + col0 * col1 AS col2 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT ALL + - col2 DIV + col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + - col2 / + col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + + col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
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 col1 * col2 + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT col1 * col2 + col1 / + col2 AS col0 FROM tab0 AS cor0
----
194
2840
7463
query I rowsort
SELECT - col2 + - 14 FROM tab0 AS cor0
----
-15
-47
-96
query I rowsort
SELECT ALL tab1.col2 + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - - col0 * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3278
SELECT - + col2 + + CAST( 70 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
32
43
44
skipif mysql # not compatible
query I rowsort label-3278
SELECT - + col2 + + CAST ( 70 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
32
43
44
query I rowsort
SELECT - - col0 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 92 FROM tab0, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3282
SELECT + col1 * CAST( NULL AS SIGNED ) + col0 - - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3282
SELECT + col1 * CAST ( NULL AS INTEGER ) + col0 - - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - - col0 + ( - 65 ) AS col2 FROM tab2 AS cor0
----
-58
13
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT - col0 + - 40 DIV col0 FROM tab2 AS cor0
----
-12
-78
-79
skipif mysql # not compatible
query I rowsort label-3285
SELECT - col0 + - 40 / col0 FROM tab2 AS cor0
----
-12
-78
-79
query I rowsort
SELECT col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT + cor0.col0 * CAST( - col1 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-3287
SELECT + cor0.col0 * CAST ( - col1 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - cor0.col0 + - col1 * col2 * + col2 FROM tab1 AS cor0
----
-119888
-32554
-75819
query I rowsort
SELECT ( + cor0.col2 ) + col1 * + col1 AS col2 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT + cor0.col0 * - cor0.col2 FROM tab0, tab1 cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
query I rowsort
SELECT - 37 * - col0 AS col1 FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT + + col0 DIV + col0 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3292
SELECT + + col0 / + col0 AS col0 FROM tab1 cor0
----
1
1
1
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 - col2 * - col1 - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT 7 DIV + 41 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-3295
SELECT 7 / + 41 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col0 ) col2 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT - col2 DIV + col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3297
SELECT - col2 / + col2 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT ALL - tab1.col2 + col1 DIV - col2 + + ( tab1.col0 ) AS col1 FROM tab1
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL - tab1.col2 + col1 / - col2 + + ( tab1.col0 ) AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col0 + + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + col0 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - 20 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT + 23 * + col2 * + col0 FROM tab2
----
4347
46644
69046
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab2
----
81
81
81
query I rowsort
SELECT DISTINCT 32 * col0 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT 71 FROM tab0
----
71
71
71
query I rowsort
SELECT cor0.col1 + ( - col0 * col2 ) AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + col0 * cor0.col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - - col2 + - col0 + + ( + col2 ) AS col2 FROM tab1 cor0
----
105
112
50
query I rowsort
SELECT ALL 57 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT DISTINCT 52 * + tab2.col1 + col1 * - col0 FROM tab2
----
-1534
-459
1395
query I rowsort
SELECT - col1 + + col1 * col0 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT + + 14 * col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
1164
303
489
query I rowsort
SELECT ALL + - 30 * + cor0.col0 - 53 * + col0 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT ALL + 65 AS col0 FROM tab1 cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + - col1 * - col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - 36 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT ( col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col2 * col1 + col2 * + col1 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1710
3744
4212
query I rowsort
SELECT + col2 + + 55 AS col2 FROM tab2
----
81
82
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT - + col0 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-3322
SELECT - + col0 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( - col2 ) col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 94 + + col2 * col2 FROM tab1 AS cor0
----
2822
3155
9122
query I rowsort
SELECT + + 12 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-14
-15
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 54 + cor0.col0 col1 FROM tab2 cor0
----
-1326
-1451
-1973
query I rowsort
SELECT + - col0 * 46 + col2 * - 24 FROM tab2 AS cor0
----
-4212
-4546
-970
query I rowsort
SELECT ALL ( + 9 ) + col0 AS col2 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT + col1 + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + - 59 AS col0 FROM tab0 AS cor0
----
-59
-59
-59
query I rowsort
SELECT + ( + col1 ) - col1 * - col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + - 16 AS col1 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 53 - 4 AS col1 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT ALL - col2 * 29 * - col1 + + 96 * - col2 AS col0 FROM tab0 AS cor0
----
208526
2717
79134
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - col2 * - col0 AS col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * ( cor0.col1 * + ( col1 ) + + col0 ) col1 FROM tab1 AS cor0
----
23086
5576
8466
query I rowsort
SELECT DISTINCT col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 12 AS col2 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT + ( + 36 ) * col1 FROM tab0 cor0
----
3096
3276
3492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT DISTINCT - col1 * + 50 FROM tab2 cor0
----
-1550
-2950
-850
query I rowsort
SELECT DISTINCT - 36 * 53 * col0 FROM tab2
----
-13356
-148824
-150732
query I rowsort
SELECT ALL + 51 AS col1 FROM tab2
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3351
SELECT - CAST( - col0 AS SIGNED ) * col1 * + 11 FROM tab0 AS cor0
----
22704
37345
89089
skipif mysql # not compatible
query I rowsort label-3351
SELECT - CAST ( - col0 AS INTEGER ) * col1 * + 11 FROM tab0 AS cor0
----
22704
37345
89089
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3352
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 41 * 64 * cor0.col2 AS col1 FROM tab0 AS cor0
----
215168
2624
86592
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 + + 84 AS col2 FROM tab1 AS cor0
----
-556
-956
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT - col0 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3355
SELECT - col0 / + col0 FROM tab2 AS cor0
----
-1
-1
-1
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 42 * - 21 col2 FROM tab2
----
908
909
920
query I rowsort
SELECT col1 + cor0.col0 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3360
SELECT cor0.col0 DIV col1 - col1 AS col0 FROM tab1 cor0
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-3360
SELECT cor0.col0 / col1 - col1 AS col0 FROM tab1 cor0
----
-26
-4
-7
query I rowsort
SELECT 37 + 40 * col0 FROM tab2
----
3157
317
3197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - col1 col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + col2 + + cor0.col2 * ( + 44 ) FROM tab1 cor0
----
2430
2565
4320
query I rowsort
SELECT + col0 * col0 + col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
16111
2726
4717
query I rowsort
SELECT ALL - 43 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT - col2 + col0 + - ( 65 ) * col0 FROM tab0 AS cor0
----
-1569
-2241
-5778
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT + - ( col0 ) - - CAST( col1 + col1 AS SIGNED ) FROM tab1 AS cor0
----
-44
-54
49
skipif mysql # not compatible
query I rowsort label-3367
SELECT + - ( col0 ) - - CAST ( col1 + col1 AS INTEGER ) FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT DISTINCT - 46 - col2 * ( + col0 ) FROM tab0 AS cor0
----
-7344
-81
-838
query I rowsort
SELECT - + col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT col2 + - 58 - col1 * ( 62 + tab2.col1 ) * 96 FROM tab2
----
-128948
-276799
-685376
query I rowsort
SELECT DISTINCT ( 19 ) + + col2 FROM tab1
----
115
73
76
query I rowsort
SELECT - 68 + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4aff3c42878a3defcef8b934ddbbee37
query I rowsort
SELECT ALL - col1 * 92 FROM tab2
----
-1564
-2852
-5428
query I rowsort
SELECT DISTINCT + 44 + + cor0.col1 FROM tab2, tab1 AS cor0
----
54
57
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3375
SELECT CAST( - 97 AS SIGNED ) - + col1 * 69 AS col0 FROM tab1
----
-1891
-787
-994
skipif mysql # not compatible
query I rowsort label-3375
SELECT CAST ( - 97 AS INTEGER ) - + col1 * 69 AS col0 FROM tab1
----
-1891
-787
-994
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT ( col2 ) - + col0 * 19 FROM tab2
----
-106
-1456
-1463
onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT ALL col0 DIV + col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL col0 / + col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col1 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 * col0 * + cor0.col0 col1 FROM tab2 cor0
----
-106059
-1492
-358930
query I rowsort
SELECT - + col1 + ( 83 ) FROM tab1 AS cor0
----
57
70
73
query I rowsort
SELECT ALL col2 * ( - col1 * + col2 ) FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT DISTINCT + col2 DIV ( cor0.col2 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + col2 / ( cor0.col2 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) * + col1 + 36 AS col0 FROM tab2 AS cor0
----
119688
51070
5895
onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT ALL - col1 - + 9 DIV - 68 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - col1 - + 9 / - 68 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - col2 * + 95 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT col1 * - ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + 27 * 10 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 4f9b88e4a5b24ccc3c490929cfa0d556
query I rowsort
SELECT col2 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + col2 + - 45 FROM tab1 AS cor0
----
12
51
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT ALL + col2 DIV col0 col2 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + col2 / col0 col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col0 + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * 27 FROM tab0 AS cor0
----
2322
2457
2619
query I rowsort
SELECT - cor0.col1 + + col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT - col1 + CAST( 26 AS SIGNED ) FROM tab2 AS cor0
----
-33
-5
9
skipif mysql # not compatible
query I rowsort label-3397
SELECT - col1 + CAST ( 26 AS INTEGER ) FROM tab2 AS cor0
----
-33
-5
9
query I rowsort
SELECT + + col2 + ( - cor0.col2 ) * col1 * col2 + col0 FROM tab1 AS cor0
----
-119632
-32369
-75759
query I rowsort
SELECT DISTINCT cor0.col2 - + ( + cor0.col1 * + col0 ) FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - - cor0.col0 + - 0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + cor0.col0 * + col2 + + 38 + + col1 FROM tab1 AS cor0
----
226
3696
7731
query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3405
SELECT ALL - 36 * col2 + - col2 DIV + col1 FROM tab1
----
-1946
-2057
-3463
skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - 36 * col2 + - col2 / + col1 FROM tab1
----
-1946
-2057
-3463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL col2 + + col2 * + ( - col0 + - col1 ) FROM tab0
----
-131
-14678
-3597
query I rowsort
SELECT ALL + 2 FROM tab1, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT + col2 + col1 + + 52 FROM tab0 cor0
----
150
171
225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3410
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col0 + + 65 * + col1 FROM tab1 AS cor0
----
1693
714
925
query I rowsort
SELECT - + col1 * + 88 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT ALL + col0 * col0 * + ( - col0 ) + col2 FROM tab0 AS cor0
----
-13791
-42874
-704887
query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 + col1 * + ( - col0 ) FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - col0 * - col2 + col0 * + col1 + - col1 AS col2 FROM tab2
----
375
4328
6571
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT DISTINCT col2 DIV + col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT col2 / + col0 FROM tab1
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL col0 DIV - col0 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL col0 / - col0 AS col1 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT ALL tab2.col2 DIV + col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL tab2.col2 / + col1 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT ALL tab1.col0 DIV - col1 AS col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL tab1.col0 / - col1 AS col2 FROM tab1
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col1 * + tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + tab1.col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT tab2.col0 - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 + col2 - - tab2.col2 * + col1 FROM tab2
----
1638
763
871
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN col1 AND col0
----
78
59
26
79
17
38
query I rowsort
SELECT + 12 * - col1 AS col2 FROM tab0
----
-1032
-1092
-1164
query I rowsort
SELECT ALL - - cor0.col0 * + col0 + + 54 AS col2 FROM tab0 cor0
----
1279
630
7975
query I rowsort
SELECT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 83 * col2 + col0 + col1 FROM tab1 AS cor0
----
4511
4805
8061
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3434
SELECT + col2 + col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3434
SELECT + col2 + col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT DISTINCT - - col0 * col0 + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
4153
63
6496
skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - - col0 * col0 + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 13 + + col2 FROM tab0 cor0
----
14
46
95
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
2862
3192
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 + col0 * + col1 col2 FROM tab2 AS cor0
----
1349
223
4608
query I rowsort
SELECT - + col0 - - col0 * + 82 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 * - col1 + cor0.col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col0 - - col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col2 * col2 * col0 AS col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT + cor0.col2 * col0 * col0 AS col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - 52 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT - col2 + 39 FROM tab2 AS cor0
----
1
12
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3449
SELECT CAST( ( - tab0.col1 ) AS SIGNED ) + 34 FROM tab0, tab1 AS cor0
----
9 values hashing to ea3746da1aea0a7a411255461f44003b
skipif mysql # not compatible
query I rowsort label-3449
SELECT CAST ( ( - tab0.col1 ) AS INTEGER ) + 34 FROM tab0, tab1 AS cor0
----
9 values hashing to ea3746da1aea0a7a411255461f44003b
query I rowsort
SELECT - + col2 * col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3451
SELECT + col0 * CAST( + col2 AS SIGNED ) + col0 + 69 FROM tab0 cor0
----
139
7456
885
skipif mysql # not compatible
query I rowsort label-3451
SELECT + col0 * CAST ( + col2 AS INTEGER ) + col0 + 69 FROM tab0 cor0
----
139
7456
885
query I rowsort
SELECT ( + 81 ) AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT + col1 * CAST( + 68 AS SIGNED ) - col2 DIV - ( - col0 ) AS col2 FROM tab0 AS cor0
----
5847
6188
6596
skipif mysql # not compatible
query I rowsort label-3453
SELECT + col1 * CAST ( + 68 AS INTEGER ) - col2 / - ( - col0 ) AS col2 FROM tab0 AS cor0
----
5847
6188
6596
query I rowsort
SELECT 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + 57 * ( - cor0.col2 ) * - cor0.col2 FROM tab0 AS cor0
----
383268
57
62073
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query I rowsort
SELECT ALL - + 13 * col2 FROM tab1 AS cor0
----
-1248
-702
-741
query I rowsort
SELECT ALL - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + 50 * col1 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT - col0 * col1 * - 24 FROM tab2 AS cor0
----
110448
32232
5208
query I rowsort
SELECT + col2 + - cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT CAST( NULL AS SIGNED ) * + 18 + - tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3463
SELECT CAST ( NULL AS INTEGER ) * + 18 + - tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - 49 + col1 FROM tab2 cor0
----
-18
-32
10
query I rowsort
SELECT + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 cor0, tab2 AS cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee
query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab2, tab0 cor0
----
86
query I rowsort
SELECT ALL cor1.col0 * ( 18 ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d47a4b66c4f0a43c447c25a26e1bb27b
query I rowsort
SELECT ALL - 83 FROM tab2
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM tab0
----
45
45
45
query I rowsort
SELECT ( 15 ) AS col1 FROM tab2
----
15
15
15
query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 + cor0.col0 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 218174566e316faf7def1869e4f9f1b6
query I rowsort
SELECT ALL col0 + + col1 * + col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL col2 * col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col0 + + col0 - col1 AS col0 FROM tab1 AS cor0
----
-20
118
147
query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL 72 FROM tab1
----
72
72
72
query I rowsort
SELECT DISTINCT - col2 + col0 * col0 - col0 FROM tab2
----
15
5980
6124
query I rowsort
SELECT - tab2.col2 + col1 * - tab2.col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL col2 - - col2 AS col1 FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col2 * col0 * col2 + + col2 * col2 col2 FROM tab1
----
11655
207089
740096
onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT ALL + col2 * - col1 - tab1.col0 * col0 DIV col2 AS col1 FROM tab1
----
-1314
-1404
-641
skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + col2 * - col1 - tab1.col0 * col0 / col2 AS col1 FROM tab1
----
-1314
-1404
-641
query I rowsort
SELECT col2 + col1 * col2 * col0 - - col2 AS col2 FROM tab2
----
119704
51110
5913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 + col1 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col0 * - col0 - col1 AS col0 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT col2 * + tab2.col1 + tab2.col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT col1 * - tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col0 - col0 * col2 * - col0 FROM tab2
----
1330
158262
237237
query I rowsort
SELECT - cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3495
SELECT - cor0.col1 DIV + col0 + + col1 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-3495
SELECT - cor0.col1 / + col0 + + col1 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT DISTINCT + col0 * + tab2.col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL - 17 FROM tab2
----
-17
-17
-17
query I rowsort
SELECT 8 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + + 67 FROM tab2 AS cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 83 col1 FROM tab0 cor0
----
7138
7553
8051
query I rowsort
SELECT + col1 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - 29 + - col1 FROM tab0
----
-115
-120
-126
query I rowsort
SELECT - 7 FROM tab0 AS cor0
----
-7
-7
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + 55 * - col0 FROM tab0 AS cor0
----
-1320
-1925
-4895
query I rowsort
SELECT ALL 45 * + col1 + col2 - - col1 FROM tab2 AS cor0
----
1453
2740
820
query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0 cor0
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + + col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col2 col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + 3 AS col2 FROM tab0 AS cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT + - ( + col1 ) * col1 + col1 * + col0 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT tab1.col0 * col0 AS col2 FROM tab1
----
4096
6400
9
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 >= NULL
----
query I rowsort
SELECT col2 + col1 * - col2 * col0 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL IN ( - col2 + col1 * + col0 - - tab2.col2 )
----
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col2 + col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT - col2 + col1 + - col2 AS col2 FROM tab0
----
-73
20
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + col0 * col2 + col1 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
269
8171
9260
query I rowsort
SELECT + col2 / col2 FROM tab2 WHERE col2 NOT BETWEEN ( - col0 * col2 + + col2 ) AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col2 * - col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col1 + + col2 * + col2 * col1 + + col0 AS col0 FROM tab1
----
119875
32544
75793
query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 * col2 AS col0 FROM tab2
----
-357
124
1947
query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - tab1.col0 + col0 * - col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL - col1 * + col0 + + col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) NOT IN ( + col2 * col2 + - tab1.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT col2 + tab0.col2 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3532
SELECT col2 + tab0.col2 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - col2 + tab1.col2 FROM tab1
----
0
0
0
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 * tab1.col1 + + col2 + col2 * - col1 )
----
query I rowsort
SELECT - + col0 + - col0 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
-233536
-489
-614480
query I rowsort
SELECT ALL - col2 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 * col1 + cor0.col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + - col0 + - col2 * col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col1 * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * + col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 + - tab1.col1 AS col0 FROM tab1 WHERE NOT - col0 < NULL AND NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 + - col0 col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + + col0 + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - col1 * + col0 * tab0.col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT + col2 DIV + col0 - col0 AS col1 FROM tab1
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-3554
SELECT + col2 / + col0 - col0 AS col1 FROM tab1
----
-64
-79
15
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col1 * - col0 * col0 FROM tab2
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - tab1.col2 col0 FROM tab1
----
1152
1350
513
query I rowsort
SELECT tab2.col0 + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + tab2.col2 + + col2 * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL 5 FROM tab1
----
5
5
5
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 + + col1 AS REAL ) * col0 * col0 FROM tab2
----
2842
343255
517140
query I rowsort
SELECT DISTINCT + 74 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-1241
-2263
-4307
query I rowsort
SELECT cor0.col1 * 3 + col0 FROM tab0 AS cor0
----
282
326
362
query I rowsort
SELECT + 73 - + col1 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT + - cor0.col0 + 84 + col2 AS col0 FROM tab2 AS cor0
----
104
32
43
query I rowsort
SELECT ALL + 47 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3567
SELECT DISTINCT + 96 DIV cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
1
13
skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT + 96 / cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
1
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT ALL 17 DIV col1 FROM tab1 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL 17 / col1 FROM tab1 cor0
----
0
1
1
query I rowsort
SELECT ( - col2 ) + + col1 - 64 FROM tab2 AS cor0
----
-31
-60
-85
query I rowsort
SELECT col2 * col1 + - 78 AS col0 FROM tab0 AS cor0
----
19
2760
7384
query I rowsort
SELECT 40 + + col1 FROM tab0 AS cor0
----
126
131
137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + col0 col0 FROM tab1 AS cor0
----
0
61
77
query I rowsort
SELECT - ( + col2 ) + 15 FROM tab0 cor0
----
-18
-67
14
query I rowsort
SELECT ALL 3 + - col1 * + col0 AS col1 FROM tab0
----
-2061
-3392
-8096
query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 + + col0 * + 86 AS col1 FROM tab2
----
-359
3227
6505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT + col0 * - col0 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif mysql # not compatible
query I rowsort label-3578
SELECT + col0 * - col0 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL ( + col1 ) + col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT 61 AS col0 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT - 94 FROM tab2, tab2 AS cor0
----
-94
query I rowsort
SELECT DISTINCT cor0.col2 * 52 + - cor0.col2 FROM tab2 cor0
----
1326
1377
1938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 25 * + 83 col2 FROM tab2 AS cor0
----
2092
2106
2134
query I rowsort
SELECT col1 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - - cor0.col2 * 54 FROM tab2 AS cor0
----
1404
1458
2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3587
SELECT + col2 DIV ( col0 * cor0.col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3587
SELECT + col2 / ( col0 * cor0.col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col1 * + 9 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT ALL - col2 * + col0 + col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT 25 AS col0 FROM tab2
----
25
25
25
query I rowsort
SELECT - col2 * 8 FROM tab1 cor0
----
-432
-456
-768
query I rowsort
SELECT + col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2
----
80
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT - col2 * - 33 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT ALL col1 + cor0.col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - cor0.col0 + - 90 FROM tab2 AS cor0
----
-168
-169
-97
query I rowsort
SELECT DISTINCT col0 * - col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + + 72 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77
query I rowsort
SELECT + ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - 95 + + col1 FROM tab0 AS cor0
----
-4
-9
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT DISTINCT col1 DIV + col1 AS col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT col1 / + col1 AS col1 FROM tab0
----
1
query I rowsort
SELECT DISTINCT - + 62 AS col0 FROM tab1 AS cor0
----
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT - col2 DIV 77 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3606
SELECT - col2 / 77 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-3608
SELECT - col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3608
SELECT - col0 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 67 * 81 AS col1 FROM tab0, tab2 AS cor0
----
5427
query I rowsort
SELECT 19 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + 87 FROM tab2, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - + ( 68 ) FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT 42 FROM tab1
----
42
query I rowsort
SELECT ALL ( col2 * + tab1.col1 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 * + col1 * + ( ( - col0 ) ) FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab0 cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT DISTINCT - + 1 DIV + col1 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - + 1 / + col1 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + 38 + - col0 FROM tab1 AS cor0
----
-102
-118
-41
query I rowsort
SELECT ALL col1 * - ( col0 ) + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT + cor2.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT 63 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT cor0.col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col0 + col2 * + 87 * + col0 AS col0 FROM tab1 AS cor0
----
14097
317440
668240
query I rowsort
SELECT - col0 * col0 * col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + col1 * + cor0.col0 + 8 FROM tab0 AS cor0
----
2072
3403
8107
query I rowsort
SELECT DISTINCT 65 FROM tab0 AS cor0
----
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL col1 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT ALL + - col2 DIV col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + - col2 / col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + - cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT DISTINCT 76 DIV cor0.col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT 76 / cor0.col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT - ( col0 ) + + cor0.col1 * col2 FROM tab0 cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col0 * col2 col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT DISTINCT - col2 DIV - col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - col2 / - col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT - cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + cor0.col2 + + col2 * - col1 * col2 FROM tab0 cor0
----
-611802
-93621
-96
query I rowsort
SELECT DISTINCT + 59 FROM tab2, tab0 cor0, tab2 cor1
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT ALL + col1 DIV 86 + col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + col1 / 86 + col2 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT ALL + - col0 * + col1 - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-1040
-641
-78
skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL + - col0 * + col1 - col0 / cor0.col2 FROM tab1 AS cor0
----
-1040
-641
-78
query I rowsort
SELECT + col2 + - 22 FROM tab0 cor0
----
-21
11
60
query I rowsort
SELECT - col1 * - col1 - ( 81 ) * col2 FROM tab1
----
-3698
-4517
-7607
query I rowsort
SELECT DISTINCT - ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - 68 FROM tab2 AS cor0
----
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT - CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3647
SELECT - CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - 43 FROM tab2 AS cor0
----
-102
-60
-74
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3650
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97
query I rowsort
SELECT ALL - 80 * + 71 + tab2.col0 AS col0 FROM tab2
----
-5601
-5602
-5673
query I rowsort
SELECT DISTINCT + 73 + - col2 FROM tab2
----
35
46
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * col0 col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT - + 45 FROM tab1 cor0
----
-45
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) + tab1.col1 AS col0 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3657
SELECT DISTINCT col2 * col2 * col2 + CAST( 30 * col1 AS SIGNED ) AS col1 FROM tab0
----
2911
38517
554098
skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT col2 * col2 * col2 + CAST ( 30 * col1 AS INTEGER ) AS col1 FROM tab0
----
2911
38517
554098
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-3659
SELECT + CAST( 1 AS SIGNED ) * - col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3659
SELECT + CAST ( 1 AS INTEGER ) * - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 36 * col2 + 2 * + col2 * cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
3256
4755
6032
query I rowsort
SELECT 98 + col0 * - ( 51 ) FROM tab2
----
-259
-3880
-3931
query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
-53
query I rowsort
SELECT DISTINCT - ( col0 + col2 * col1 ) AS col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT 59 * - col1 FROM tab2
----
-1003
-1829
-3481
query I rowsort
SELECT - tab2.col0 * col0 + - col1 AS col1 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + 17 * + col1 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT - 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT - cor0.col0 * 77 FROM tab1, tab2 AS cor0
----
9 values hashing to f5a2387afd6ed30b1090cc1a754da6a5
query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT DISTINCT col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT col0 / col0 AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT col0 + col2 * + cor0.col2 * col1 + - col2 AS col0 FROM tab1 cor0
----
119792
32497
75765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3675
SELECT col1 * + cor0.col0 / CAST( NULL AS SIGNED ) + - 88 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3675
SELECT col1 * + cor0.col0 / CAST ( NULL AS INTEGER ) + - 88 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 31 + 29 FROM tab1
----
-1955
-2451
-64
query I rowsort
SELECT DISTINCT col0 + - 57 * col0 FROM tab2
----
-392
-4368
-4424
query I rowsort
SELECT ALL - col0 + + col1 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT col0 + col1 * + 98 + col2 AS col0 FROM tab0
----
8485
9089
9542
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 7 col0 FROM tab1
----
182
70
91
query I rowsort
SELECT ALL col1 * col2 - 64 AS col2 FROM tab0
----
2774
33
7398
query I rowsort
SELECT DISTINCT + + col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col1 FROM tab0, tab0 AS cor0
----
-58
query I rowsort
SELECT ALL - col1 * - col2 + col1 FROM tab1
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 * + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT DISTINCT + col2 * - CAST( + ( cor0.col0 ) AS SIGNED ) + - 95 col0 FROM tab0 AS cor0
----
-130
-7393
-887
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + col2 * - CAST ( + ( cor0.col0 ) AS INTEGER ) + - 95 col0 FROM tab0 AS cor0
----
-130
-7393
-887
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + + col1 * col0 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
1272
3360
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 - col1 col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - 48 * - cor0.col1 + + cor0.col2 + col1 * col1 FROM tab1 AS cor0
----
1978
637
889
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3691
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 50 + + 24 * col0 AS col0 FROM tab1 cor0
----
122
1586
1970
query I rowsort
SELECT DISTINCT - ( - 65 ) FROM tab1 AS cor0
----
65
query I rowsort
SELECT DISTINCT col1 + 97 AS col2 FROM tab1 AS cor0
----
107
110
123
query I rowsort
SELECT ALL - - col0 * col1 + col2 - 72 FROM tab2 AS cor0
----
1309
172
4556
query I rowsort
SELECT ALL - - col0 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + - ( - 87 ) * col2 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT ALL + + 36 + - 61 AS col2 FROM tab0 cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + col2 * + 75 - col1 FROM tab1 cor0
----
4024
4265
7187
onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT ALL - + 79 DIV + 62 - cor0.col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - + 79 / + 62 - cor0.col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT - + col0 * col1 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT DISTINCT col1 DIV - col1 - col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT col1 / - col1 - col1 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT col2 * - cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + col2 * - 44 * - 4 + col1 * ( col2 ) + + col0 FROM tab0
----
21983
308
8670
query I rowsort
SELECT DISTINCT col1 - + 46 * col2 * - col1 FROM tab0
----
130634
343343
4559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3706
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + col0 * cor0.col0 / 29 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col0 * cor0.col0 / 29 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col1 + - ( - col0 ) * + ( col1 ) FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - cor0.col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - ( + 98 ) - col1 FROM tab1 AS cor0
----
-108
-111
-124
query I rowsort
SELECT DISTINCT - ( col0 ) + col0 * ( - col1 ) + - col1 FROM tab0 AS cor0
----
-2174
-3527
-8279
query I rowsort
SELECT + 58 * col1 + + tab1.col2 AS col0 FROM tab1
----
1562
637
850
query I rowsort
SELECT ALL - 73 FROM tab2
----
-73
-73
-73
query I rowsort
SELECT + 10 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT - 32 + - col0 FROM tab1
----
-112
-35
-96
query I rowsort
SELECT + 56 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT - - ( col1 ) + + ( - 15 ) AS col1 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT + col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT 40 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3719
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT DISTINCT - col2 DIV + cor0.col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - col2 / + cor0.col0 + - cor0.col1 AS col2 FROM tab2 cor0
----
-17
-34
-59
query I rowsort
SELECT - + col2 + - ( + 78 ) * col0 AS col1 FROM tab1 AS cor0
----
-288
-5049
-6336
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 / CAST ( col2 AS REAL ) AS col2 FROM tab0 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT + col2 * cor0.col2 - + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
1
1088
6724
skipif mysql # not compatible
query I rowsort label-3723
SELECT + col2 * cor0.col2 - + cor0.col2 / + col0 FROM tab0 AS cor0
----
1
1088
6724
query I rowsort
SELECT DISTINCT - col2 - - col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT ALL col0 DIV ( + ( col1 ) + + CAST( - col2 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3725
SELECT ALL col0 / ( + ( col1 ) + + CAST ( - col2 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT + col2 * + 60 * + 47 + cor0.col2 + 36 * + col2 FROM tab2 AS cor0
----
108566
74282
77139
query I rowsort
SELECT DISTINCT - + cor0.col1 * ( - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 40 col1 FROM tab2 AS cor0
----
-13
-14
-2
query I rowsort
SELECT + col1 * - col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT 8 DIV + tab1.col0 + - col0 * col0 col2 FROM tab1
----
-4096
-6400
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3730
SELECT 8 / + tab1.col0 + - col0 * col0 col2 FROM tab1
----
-4096
-6400
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT - ( - col2 ) + CAST( col0 AS SIGNED ) FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-3731
SELECT - ( - col2 ) + CAST ( col0 AS INTEGER ) FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * col0 * col2 col1 FROM tab1
----
233529
540
614496
query I rowsort
SELECT - 27 * col0 + - ( col2 * + col1 ) FROM tab0
----
-1042
-3486
-9865
query I rowsort
SELECT - col0 * 66 AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT ALL - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col2 * + 62 FROM tab1 AS cor0
----
-3348
-3534
-5952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 * + col2 col0 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT - CAST( NULL AS SIGNED ) * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3738
SELECT - CAST ( NULL AS INTEGER ) * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 46 + - col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-46
-46
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 23 AS col0 FROM tab0 cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 4 AS REAL ) col0 FROM tab2 AS cor0
----
-4
query I rowsort
SELECT DISTINCT - col1 + 6 AS col1 FROM tab1 AS cor0
----
-20
-4
-7
query I rowsort
SELECT + + col1 + + 49 FROM tab2 AS cor0
----
108
66
80
query I rowsort
SELECT ALL + - col1 * - 48 + - col2 AS col0 FROM tab2 AS cor0
----
1461
2806
778
query I rowsort
SELECT ALL + col2 * ( col2 ) + col2 * - col1 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT ALL - + 12 * col2 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT DISTINCT + + 60 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1504
736
789
query I rowsort
SELECT ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - - col0 + 14 * + col0 AS col2 FROM tab0 AS cor0
----
1335
360
525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL 16 * col1 FROM tab2 AS cor0
----
272
496
944
query I rowsort
SELECT - col1 + 87 + col2 FROM tab2 AS cor0
----
108
54
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 + + 35 col0 FROM tab0 AS cor0
----
-15
query I rowsort
SELECT 2 * - col0 * col0 FROM tab0 AS cor0
----
-1152
-15842
-2450
query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - cor0.col2 * - 12 * col1 AS col2 FROM tab2 AS cor0
----
10044
18408
7752
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT + 71 * + col0 AS col1 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL + col0 * - col1 * + col1 AS col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1, tab0 cor0
----
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + - 6 AS col0 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT + col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + 15 + - col0 FROM tab0 cor0
----
-20
-74
-9
query I rowsort
SELECT - 88 * - col0 AS col2 FROM tab0 AS cor0
----
2112
3080
7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab2.col1 ) col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - ( col2 ) * + col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1
----
69
query I rowsort
SELECT cor0.col2 + + col1 + col1 FROM tab1 AS cor0
----
106
122
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT ( col0 ) + - CAST( NULL AS SIGNED ) + + 98 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3771
SELECT ( col0 ) + - CAST ( NULL AS INTEGER ) + + 98 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + + cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 52 col0 FROM tab0 AS cor0
----
-134
-53
-85
query I rowsort
SELECT ALL col0 * + col1 * col2 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + - col0 * - cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * 56 FROM tab1
----
-3024
-3192
-5376
query I rowsort
SELECT col1 * ( col0 ) * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT 86 * 25 * col0 AS col1 FROM tab1
----
137600
172000
6450
onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL - CAST( + 23 AS SIGNED ) DIV col0 FROM tab1
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL - CAST ( + 23 AS INTEGER ) / col0 FROM tab1
----
-7
0
0
query I rowsort
SELECT - ( + 53 * + tab2.col1 ) FROM tab2
----
-1643
-3127
-901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * col1 col1 FROM tab0
----
6794
7189
7663
query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 47 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL + - ( - col0 ) * - col0 * ( ( col2 ) ) FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + col1 - col0 AS col0 FROM tab1
----
-54
-67
23
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
query I rowsort
SELECT + - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT + 50 + cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to d73757bb22bdfac28d14bd7893f78943
query I rowsort
SELECT DISTINCT col0 + tab2.col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 col2 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT - + col0 + CAST( + col0 AS SIGNED ) * + col1 FROM tab0 cor0
----
2040
3360
8010
skipif mysql # not compatible
query I rowsort label-3794
SELECT - + col0 + CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 cor0
----
2040
3360
8010
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 - - 51 AS col1 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL - - ( 70 ) FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - 13 FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL + 41 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT DISTINCT - + col1 * col1 + col0 + col2 FROM tab2 AS cor0
----
-172
-3377
-927
query I rowsort
SELECT DISTINCT 99 * + cor0.col2 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT + 85 * 93 FROM tab0 AS cor0
----
7905
7905
7905
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3804
SELECT DISTINCT - + CAST( col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - + 72 + - col2 FROM tab2 AS cor0
----
-110
-98
-99
query I rowsort
SELECT + col1 * - cor0.col1 + col1 AS col0 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - col1 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2, tab1, tab2 AS cor0
----
61
query I rowsort
SELECT DISTINCT + - col2 + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 * col2 * cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - ( + tab2.col2 ) AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - 49 + + cor0.col0 - col2 AS col1 FROM tab0 cor0
----
-15
-42
-58
query I rowsort
SELECT DISTINCT col2 * col0 * + col0 FROM tab1
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * + col0 col0 FROM tab0
----
140
356
96
query I rowsort
SELECT + + col0 * + 32 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
1185
2817
5977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - - col2 * - ( 33 ) + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-297
2
4592
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) * - ( - col0 ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) * - ( - col0 ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 17 - + col0 FROM tab1
----
-47
-63
14
query I rowsort
SELECT + col0 - col0 * + ( + col2 ) AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL 85 + col0 * + tab2.col0 - tab2.col1 AS col1 FROM tab2
----
103
6110
6309
query I rowsort
SELECT 72 - + col0 FROM tab0
----
-17
37
48
query I rowsort
SELECT DISTINCT tab2.col2 - + col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL col0 * - tab0.col2 + tab0.col0 - + 42 FROM tab0
----
-42
-7251
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT + col2 DIV col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3825
SELECT + col2 / col2 FROM tab0
----
1
1
1
query I rowsort
SELECT 94 * col1 AS col0 FROM tab2
----
1598
2914
5546
onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT + - col0 - - col0 DIV col1 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3827
SELECT + - col0 - - col0 / col1 FROM tab0 cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 1 col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + - col2 - + col2 AS col0 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT + + col1 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col2 * col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT - col2 DIV 15 + + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-6
skipif mysql # not compatible
query I rowsort label-3832
SELECT - col2 / 15 + + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3833
SELECT ALL - col0 * col0 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL - col0 * col0 - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3834
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 * cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 * cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3835
SELECT col1 - col1 * - CAST( + ( - col0 ) AS SIGNED ) FROM tab2
----
-1326
-186
-4543
skipif mysql # not compatible
query I rowsort label-3835
SELECT col1 - col1 * - CAST ( + ( - col0 ) AS INTEGER ) FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 88 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT col2 + 49 * col0 AS col1 FROM tab0
----
1209
1716
4443
query I rowsort
SELECT ALL col0 + tab2.col1 + + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - col1 + - 38 AS col2 FROM tab1
----
-48
-51
-64
query I rowsort
SELECT ALL - col2 + 18 AS col1 FROM tab2 AS cor0
----
-20
-8
-9
query I rowsort
SELECT col1 * - ( - col2 ) - + col2 * + col2 * 26 AS col0 FROM tab2 AS cor0
----
-16042
-18117
-36898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ( + col0 ) DIV tab1.col1 + - ( col1 ) * tab1.col0 AS col1 FROM tab1
----
-1034
-634
-78
skipif mysql # not compatible
query I rowsort label-3843
SELECT ( + col0 ) / tab1.col1 + - ( col1 ) * tab1.col0 AS col1 FROM tab1
----
-1034
-634
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT DISTINCT col1 DIV col2 - col2 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT col1 / col2 - col2 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - 72 FROM tab1 AS cor0
----
-1112
-150
-712
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 AS col2 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + 99 + 56 FROM tab0
----
155
155
155
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-3850
SELECT - - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3850
SELECT - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 31 AS col1 FROM tab2
----
31
31
31
query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab0
----
68
query I rowsort
SELECT - - col1 * + col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 86 * col0 AS col0 FROM tab1 AS cor0
----
258
5504
6880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3855
SELECT + 47 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3855
SELECT + 47 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - tab1.col0 + col1 AS col1 FROM tab1
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2 AS cor0
----
-70
query I rowsort
SELECT ALL + col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 * col0 col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - + col1 + col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( col2 ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( + col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - + 2 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL + col1 + + col0 * cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - + ( - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT NULL IN ( col1 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3871
SELECT + - 76 DIV + col0 AS col1 FROM tab2 cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-3871
SELECT + - 76 / + col0 AS col1 FROM tab2 cor0
----
-10
0
0
query I rowsort
SELECT - col2 + + tab0.col2 * + tab0.col1 FROM tab0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL < NULL
----
query I rowsort
SELECT ALL + tab0.col1 + col1 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT 99 + + col2 DIV col0 FROM tab1
----
100
117
99
skipif mysql # not compatible
query I rowsort label-3877
SELECT 99 + + col2 / col0 FROM tab1
----
100
117
99
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + 50 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + col1 * col2 AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT + col0 DIV + col0 + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3882
SELECT + col0 / + col0 + col1 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT col0 DIV - col0 - - col0 AS col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-3883
SELECT col0 / - col0 - - col0 AS col0 FROM tab2
----
6
77
78
query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL tab1.col0 * tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col1 AS col0 FROM tab2 WHERE col0 * col2 + col0 IN ( col2 * - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab0.col2 col0 FROM tab0
----
164
2
66
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - col0 )
----
query I rowsort
SELECT ALL - col1 * - col1 * + tab1.col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col1 + tab2.col1 - col0 * + col1 FROM tab2
----
-1309
-155
-4484
query I rowsort
SELECT DISTINCT + tab0.col0 * - col2 AS col1 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( col0 * - col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT DISTINCT col0 * col0 * - col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab2 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 + - tab0.col0 + tab0.col1 * col2 AS col1 FROM tab0 WHERE NULL NOT IN ( col2 * col0 )
----
query I rowsort
SELECT ALL + col0 * tab1.col0 AS col2 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT DISTINCT col2 + cor0.col2 DIV col1 + - col1 FROM tab2 AS cor0
----
-33
-4
23
skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT col2 + cor0.col2 / col1 + - col1 FROM tab2 AS cor0
----
-33
-4
23
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL col1 + + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 + cor0.col0 * + col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col1 NOT IN ( - tab1.col2 + tab1.col1 )
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT ALL tab0.col0 * - col0 + col0 DIV col1 AS col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL tab0.col0 * - col0 + col0 / col1 AS col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + col1 + + col2 FROM tab1
----
109
67
80
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) <> NULL
----
query I rowsort
SELECT ALL + col1 * col1 + col1 AS col2 FROM tab2
----
306
3540
992
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + tab1.col1 + - col1 AS col0 FROM tab1 WHERE ( NULL ) < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * col1 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col2 - col0 AS col0 FROM tab1
----
-121
-176
-57
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + col2 - - col1 * + col1
----
query I rowsort
SELECT + tab0.col2 * col1 + - col2 * col1 + - col2 * col0 FROM tab0
----
-35
-7298
-792
query III rowsort
SELECT * FROM tab0 WHERE ( col0 / col0 + col2 ) NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT DISTINCT col2 * col2 + col2 * col1 + col0 DIV - col2 FROM tab1
----
10464
3818
4320
skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT col2 * col2 + col2 * col1 + col0 / - col2 FROM tab1
----
10464
3818
4320
query I rowsort
SELECT + tab2.col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col1 - - col0 * - tab2.col1 FROM tab2 WHERE col1 * col0 + col1 / col0 NOT IN ( col2 )
----
-1326
-186
-4543
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col2 * tab2.col0 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT tab1.col1 * col2 + + col0 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL + col1 * + tab1.col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL col0 + tab2.col0 + col0 FROM tab2
----
21
234
237
query I rowsort
SELECT DISTINCT - col1 - ( - col1 * + tab0.col1 ) FROM tab0
----
7310
8190
9312
query I rowsort
SELECT 9 * + col2 * + col1 AS col0 FROM tab2
----
13806
5814
7533
query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3928
SELECT DISTINCT CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + tab1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + 53 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + + col0 - - col2 * - cor0.col1 * col2 FROM tab0 cor0
----
-611795
-62
-93630
query I rowsort
SELECT + col2 * - col0 - col1 FROM tab0 cor0
----
-132
-7389
-878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3933
SELECT - CAST( NULL AS SIGNED ) * - col1 * tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3933
SELECT - CAST ( NULL AS INTEGER ) * - col1 * tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + 36 - cor0.col1 FROM tab1 AS cor0
----
-1970
-2062
-3469
query I rowsort
SELECT - - col1 * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - 24 AS col1 FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT ALL + + 13 * col2 + 59 FROM tab0 cor0
----
1125
488
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 + col2 + col1 col0 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT ALL - 65 + col2 FROM tab0 cor0
----
-32
-64
17
query I rowsort
SELECT DISTINCT + col2 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + 26 + col0 FROM tab1 AS cor0
----
106
29
90
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3943
SELECT - col2 + CAST( col2 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-3943
SELECT - col2 + CAST ( col2 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL tab0.col2 + + cor0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c4b3f256aed754fcefbf420423e5b6e1
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT 1 + 99 AS col0 FROM tab2 AS cor0
----
100
100
100
query I rowsort
SELECT DISTINCT - - 72 * + col0 AS col1 FROM tab1 AS cor0
----
216
4608
5760
query I rowsort
SELECT ALL + cor0.col0 * tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da
query I rowsort
SELECT 29 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT cor0.col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - 54 AS col1 FROM tab2 AS cor0
----
-54
-54
-54
query I rowsort
SELECT - col0 - col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + - col1 * + col1 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1922
-578
-6962
query I rowsort
SELECT ALL - ( col2 ) * + col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 + + col2 - col0 AS col0 FROM tab0
----
-33
42
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT tab2.col2 DIV col0 - col0 AS col0 FROM tab2
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-3956
SELECT tab2.col2 / col0 - col0 AS col0 FROM tab2
----
-4
-78
-79
query I rowsort
SELECT - cor0.col1 * col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + 72 + + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1516
748
801
query I rowsort
SELECT + ( ( + col0 ) * col0 + - col2 ) FROM tab0
----
1224
543
7839
query I rowsort
SELECT + col2 + - col0 + + col2 AS col0 FROM tab2
----
-26
-3
47
query I rowsort
SELECT - tab2.col0 * - col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * col2 - - tab1.col2 AS col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + 14 * - col0 FROM tab2
----
-1092
-1106
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * - col1 - + col1 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * - col1 - + col1 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + 88 + col2 FROM tab2
----
114
115
126
query I rowsort
SELECT DISTINCT - ( tab2.col2 ) + - col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + 78 * - col2 AS col2 FROM tab2
----
-2028
-2106
-2964
query I rowsort
SELECT - col2 + col1 + col0 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 + col2 * col1 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT - + col2 + + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - - ( col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col1 + cor0.col2 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157438
-185183
-884723
onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT + col2 * col1 DIV + col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3975
SELECT + col2 * col1 / + col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 + col1 * cor0.col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col1 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col2 + - 72 AS col1 FROM tab0 cor0
----
-105
-154
-73
query I rowsort
SELECT - col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 1 col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 86 - col0 FROM tab2 AS cor0
----
-164
-165
-93
query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 90 FROM tab1, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT ALL ( col0 ) * col1 + col0 * - col2 FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3988
SELECT DISTINCT - CAST( - 55 AS SIGNED ) * col0 + + col0 DIV - col1 FROM tab1 AS cor0
----
165
3514
4394
skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) * col0 + + col0 / - col1 FROM tab1 AS cor0
----
165
3514
4394
query I rowsort
SELECT + - 38 AS col1 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT ALL - + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 - - cor0.col2 col2 FROM tab2 AS cor0
----
101
89
90
query I rowsort
SELECT + col1 - 5 AS col0 FROM tab2 AS cor0
----
12
26
54
query I rowsort
SELECT ALL 92 + + cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-197
-3389
-869
query I rowsort
SELECT ALL + col1 + col0 * - col2 * col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL + col0 * col0 + - col0 * - col1 FROM tab0 AS cor0
----
16020
2640
4620
onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL - - col0 + col0 - + col1 * col0 DIV col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - - col0 + col0 - + col1 * col0 / col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL col2 DIV col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL col2 / col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col1 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - col0 + - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 - col0 FROM tab1 AS cor0
----
-64
-71
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT DISTINCT + + col2 - - col1 * col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-110
-18
35
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + + col2 - - col1 * col1 / - col0 AS col2 FROM tab2 AS cor0
----
-110
-18
35
query I rowsort
SELECT DISTINCT - col1 - cor0.col1 * + col0 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL cor0.col0 + + col2 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT - col1 * - col0 - cor0.col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 AS col0 FROM tab2, tab0 cor0
----
119
173
98
query I rowsort
SELECT col0 * - col1 - col2 * col0 AS col2 FROM tab0 cor0
----
-15397
-2856
-3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-4010
SELECT cor0.col2 * col1 DIV - cor0.col2 - col1 FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-4010
SELECT cor0.col2 * col1 / - cor0.col2 - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + cor0.col1 + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col1 - - cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - col2 col2 FROM tab2 AS cor0
----
-55
-58
-85
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( cor0.col2 * + col2 + - col1 )
----
query I rowsort
SELECT ALL col1 + col1 + col0 AS col1 FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT DISTINCT col2 - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT cor0.col1 - + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4018
SELECT tab1.col1 DIV - col2 + - col1 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4018
SELECT tab1.col1 / - col2 + - col1 / + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * cor0.col1 * + col0 - col1 AS col0 FROM tab0 cor0
----
118728
49450
720720
query I rowsort
SELECT ALL - col2 * col1 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + - col1 * col1 - + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT col1 * col0 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + - col2 * + col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT + col0 * col2 DIV cor0.col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4025
SELECT + col0 * col2 / cor0.col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 16 * - col2 + + col1 * - col0 AS col1 FROM tab0
----
-1536
-3379
-6787
query I rowsort
SELECT DISTINCT - col0 + - col1 * - col0 * + col1 + - col2 AS col2 FROM tab2
----
22714
271414
6693
query I rowsort
SELECT - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - col1 ) col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT + col1 * + cor0.col1 + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-4031
SELECT + col1 * + cor0.col1 + col0 / col0 AS col1 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT + + col2 * col2 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT - cor0.col0 * CAST( ( + col0 ) AS DECIMAL ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4033
SELECT - cor0.col0 * CAST ( ( + col0 ) AS REAL ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + + ( col0 ) * - col1 * - col1 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT + col1 + col0 * + 40 FROM tab1 cor0
----
146
2570
3213
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4036
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4036
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4037
SELECT col1 * 24 DIV 26 + - col1 AS col0 FROM tab0
----
-7
-7
-8
skipif mysql # not compatible
query I rowsort label-4037
SELECT col1 * 24 / 26 + - col1 AS col0 FROM tab0
----
-7
-7
-8
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) * + col2 + + cor0.col2 + col0 * + col0 FROM tab1 AS cor0
----
14176
225
7801
query I rowsort
SELECT + col1 * - ( col2 * tab1.col1 ) AS col0 FROM tab1
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - CAST ( + col2 AS REAL ) FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * - col0 col1 FROM tab1
----
12
4160
6480
query I rowsort
SELECT + col2 + cor0.col1 - - col2 AS col0 FROM tab1 cor0
----
124
134
205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4043
SELECT - col2 * col0 - CAST( 8 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-197
-2036
-3010
skipif mysql # not compatible
query I rowsort label-4043
SELECT - col2 * col0 - CAST ( 8 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-197
-2036
-3010
query I rowsort
SELECT - tab2.col1 - - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + cor0.col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + - col2 - - col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 43 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT ( ( + col2 ) + ( 64 ) ) FROM tab2
----
102
90
91
query I rowsort
SELECT DISTINCT - ( 17 + + tab1.col2 ) * col1 FROM tab1
----
-1469
-1846
-740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL - col2 * + col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 + + col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT + 70 DIV - col2 FROM tab0 AS cor0
----
-2
-70
0
skipif mysql # not compatible
query I rowsort label-4053
SELECT + 70 / - col2 FROM tab0 AS cor0
----
-2
-70
0
query I rowsort
SELECT ALL + col1 * + cor0.col1 + + col2 * - 31 FROM tab2 AS cor0
----
-889
124
2675
query I rowsort
SELECT + col1 + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 19 * + col0 AS col0 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT ALL - col0 * - col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT ALL + 91 * col1 DIV + 12 + cor0.col0 AS col2 FROM tab0 AS cor0
----
676
770
779
skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL + 91 * col1 / + 12 + cor0.col0 AS col2 FROM tab0 AS cor0
----
676
770
779
query I rowsort
SELECT DISTINCT + 19 FROM tab2
----
19
query I rowsort
SELECT + - col2 * col2 - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL + col1 * + col0 + 71 FROM tab1 cor0
----
1111
149
711
query I rowsort
SELECT ALL col2 + - 70 * + col1 FROM tab1 cor0
----
-1766
-643
-814
onlyif mysql # use DIV operator for integer division
query I rowsort label-4063
SELECT ALL - 35 DIV - col1 + - col0 col0 FROM tab1
----
-2
-61
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - 35 / - col1 + - col0 col0 FROM tab1
----
-2
-61
-78
query I rowsort
SELECT ALL + ( + tab1.col1 ) + - col2 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT ( tab2.col2 ) FROM tab2
----
26
27
38
query I rowsort
SELECT 98 + col2 FROM tab0
----
131
180
99
query I rowsort
SELECT col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - cor0.col1 + - 19 * - 73 FROM tab1 AS cor0
----
1361
1374
1377
query I rowsort
SELECT DISTINCT - col0 - + col0 * col0 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT tab1.col1 - ( + tab1.col0 * + tab1.col0 ) FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT - col1 + - 78 FROM tab1 AS cor0
----
-104
-88
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4074
SELECT ALL + col0 * - CAST( + 74 AS SIGNED ) + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + col0 * - CAST ( + 74 AS INTEGER ) + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 - 98 FROM tab2 AS cor0
----
-60
-71
-72
query I rowsort
SELECT - + col1 + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT col2 * - col2 + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT ALL 80 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT col2 * 57 AS col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT - col1 * 85 FROM tab0 cor0
----
-7310
-7735
-8245
query I rowsort
SELECT + - col2 + 2 * + col1 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT - ( col1 ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT + 48 FROM tab0 cor0
----
48
48
48
query I rowsort
SELECT - col0 * - col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4085
SELECT + CAST( col1 * col2 AS SIGNED ) FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4085
SELECT + CAST ( col1 * col2 AS INTEGER ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT cor1.col0 * 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9824bb722e221c0f2ae79c21d5a651d2
query I rowsort
SELECT - 34 + col1 AS col1 FROM tab1 AS cor0
----
-21
-24
-8
query I rowsort
SELECT + col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * - ( + 12 ) AS col2 FROM tab1 cor0
----
-62
-778
-973
query I rowsort
SELECT ALL - 55 FROM tab2, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - ( + col0 ) + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col2 * col2 + col0 + col2 FROM tab0 cor0
----
1146
37
6895
query I rowsort
SELECT + 64 FROM tab1 cor0
----
64
64
64
query I rowsort
SELECT DISTINCT ( - col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL ( 20 ) AS col2 FROM tab0 AS cor0
----
20
20
20
query I rowsort
SELECT 42 * + col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT DISTINCT - col0 * + col2 * col0 FROM tab1 cor0
----
-233472
-486
-614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT DISTINCT - 3 DIV - col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT - 3 / - col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4100
SELECT - CAST( NULL AS SIGNED ) * - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4100
SELECT - CAST ( NULL AS INTEGER ) * - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 * 89 + - col2 * col1 + cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-7505
-7640
-9916
query I rowsort
SELECT ALL - - 48 + - col0 FROM tab1 AS cor0
----
-16
-32
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4103
SELECT CAST( NULL AS SIGNED ) * + col0 + col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4103
SELECT CAST ( NULL AS INTEGER ) * + col0 + col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 9 * col0 FROM tab2 AS cor0
----
-63
-702
-711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT - + CAST( 57 AS SIGNED ) + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-28
17
36
skipif mysql # not compatible
query I rowsort label-4105
SELECT - + CAST ( 57 AS INTEGER ) + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-28
17
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 88 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 88 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + 9 * 62 + col0 FROM tab0 AS cor0
----
582
593
647
onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT + 89 DIV - col1 + + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-4108
SELECT + 89 / - col1 + + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL - 64 AS col1 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT + ( - 44 ) * col1 * col2 FROM tab2 AS cor0
----
-28424
-36828
-67496
query I rowsort
SELECT ALL + col0 + col0 + + col1 FROM tab2 AS cor0
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT ALL col2 DIV + col1 AS col2 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL col2 / + col1 AS col2 FROM tab2
----
0
0
2
query I rowsort
SELECT DISTINCT + + cor0.col2 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - col1 * 21 + + col1 * - 26 AS col2 FROM tab1 AS cor0
----
-1222
-470
-611
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT ALL - col0 * 77 AS col0 FROM tab2 AS cor0
----
-539
-6006
-6083
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT ALL col2 DIV col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL col2 / col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT + + col1 + col0 - col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT ALL 72 + col2 AS col2 FROM tab1
----
126
129
168
query I rowsort
SELECT ALL ( - tab0.col2 ) AS col0 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT DISTINCT + + col2 DIV col0 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + + col2 / col0 FROM tab0 cor0
----
0
1
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 58 * + col1 + col0 FROM tab1
----
-1505
-516
-674
onlyif mysql # use DIV operator for integer division
query I rowsort label-4124
SELECT DISTINCT col0 DIV + col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT col0 / + col2 FROM tab0
----
0
1
35
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT tab2.col1 * tab2.col0 - ( col0 ) * + col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 * + col1 + tab0.col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ( tab2.col1 ) * 68 + 32 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to f5b53556e010059569716af9b6a4624f
query I rowsort
SELECT col2 + tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT col0 * col1 + + col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + col0 * - 37 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT col2 * + 91 * col2 FROM tab0 AS cor0
----
611884
91
99099
query I rowsort
SELECT ALL + col1 * - 78 AS col2 FROM tab0 AS cor0
----
-6708
-7098
-7566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4134
SELECT ALL - - col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - - col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 73 * + 60 AS col1 FROM tab2 AS cor0
----
4406
4407
4418
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
5
query I rowsort
SELECT cor0.col1 * 52 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT + col1 * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4138
SELECT + col1 * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb
query I rowsort
SELECT - col1 + ( col1 ) * col1 AS col0 FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT - ( - cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col0 * - ( - col1 ) * col1 + 10 AS col0 FROM tab1 AS cor0
----
13530
2038
6410
query I rowsort
SELECT DISTINCT + + col2 * col2 - - ( col2 + - ( + col1 ) ) FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT ALL + col2 + 75 * 72 FROM tab0 AS cor0
----
5401
5433
5482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4146
SELECT - col1 + - CAST( + cor0.col1 * cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-104
-1053
-650
skipif mysql # not compatible
query I rowsort label-4146
SELECT - col1 + - CAST ( + cor0.col1 * cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL cor0.col2 + - 68 * - 15 AS col2 FROM tab1 AS cor0
----
1074
1077
1116
query I rowsort
SELECT DISTINCT + + col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col0 * - 88 AS col2 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab1 AS cor0
----
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col2 * 69 AS col2 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT ALL - 75 * - col1 AS col2 FROM tab1 AS cor0
----
1950
750
975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4155
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 36 + + col1 AS col2 FROM tab1 AS cor0
----
-10
-23
-26
query I rowsort
SELECT DISTINCT + - ( ( + col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT DISTINCT + cor0.col0 + + col1 DIV + col0 col0 FROM tab1 AS cor0
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT + cor0.col0 + + col1 / + col0 col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT DISTINCT + col2 + - col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 97 + col1 * - col1 FROM tab2 AS cor0
----
-192
-3384
-864
query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col2 * cor0.col2 + cor0.col2 * 44 FROM tab1 AS cor0
----
13440
5292
5757
query I rowsort
SELECT ALL - - 3 * - cor0.col2 - - col1 * - col1 FROM tab2 cor0
----
-1042
-3559
-403
query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT DISTINCT col1 DIV col0 col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT col1 / col0 col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT - col2 + + col0 * ( - col2 ) DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-421
-60
-686
skipif mysql # not compatible
query I rowsort label-4167
SELECT - col2 + + col0 * ( - col2 ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
-421
-60
-686
query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 * - col0 - - ( + col0 ) * + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + col1 * - col2 * - col0 - + col1 * + 20 * + col2 FROM tab2 AS cor0
----
-10874
38193
89050
query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0
----
62
query I rowsort
SELECT + ( col2 ) * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT ALL - - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4176
SELECT ALL - - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT DISTINCT + - cor0.col1 + ( + col2 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + - cor0.col1 + ( + col2 ) / - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + cor0.col0 * 82 FROM tab2 AS cor0
----
574
6396
6478
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4179
SELECT - col1 * CAST( + col0 AS SIGNED ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
-3298
-637
774
skipif mysql # not compatible
query I rowsort label-4179
SELECT - col1 * CAST ( + col0 AS INTEGER ) + col2 * col1 AS col2 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT DISTINCT col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - col2 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT ALL + + col1 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 29 * 50 col0 FROM tab1 AS cor0
----
1424
1437
1440
onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT DISTINCT col2 + col1 DIV col1 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT col2 + col1 / col1 FROM tab0 cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 70 * col2 col2 FROM tab1 AS cor0
----
-3754
-3980
-6707
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT ALL - col2 DIV + col1 + - col2 * + col1 FROM tab1
----
-1255
-1406
-575
skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - col2 / + col1 + - col2 * + col1 FROM tab1
----
-1255
-1406
-575
query I rowsort
SELECT DISTINCT + col0 + - col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL tab0.col2 + col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT col2 * col1 - + col2 * - 96 * + col1 AS col2 FROM tab2
----
148798
62662
81189
query I rowsort
SELECT tab0.col1 * ( - tab0.col1 * ( col1 ) + + col0 ) AS col1 FROM tab0
----
-633992
-745472
-909278
query I rowsort
SELECT DISTINCT 61 FROM tab1
----
61
query I rowsort
SELECT + - col2 * - cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + cor0.col0 + 25 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 59e54cb75dbf95e96586d48d3c33f721
query I rowsort
SELECT ALL col0 + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - 91 * + col0 + + col2 FROM tab0 AS cor0
----
-2151
-3184
-8017
query I rowsort
SELECT - col2 * + col2 + - col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT 43 + col1 AS col1 FROM tab1 AS cor0
----
53
56
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 + col2 col1 FROM tab0 AS cor0
----
128
47
79
query I rowsort
SELECT - ( + cor0.col1 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 + cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ALL - 5 AS col0 FROM tab2 AS cor0
----
-5
-5
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4204
SELECT CAST( - col2 * col0 AS SIGNED ) FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-4204
SELECT CAST ( - col2 * col0 AS INTEGER ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + tab0.col2 + col1 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4208
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col2 * + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * + 94 FROM tab1
----
-1222
-2444
-940
query I rowsort
SELECT col2 * - 44 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT + + cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col1 * + ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 84 AS col0 FROM tab0 AS cor0
----
84
84
84
query I rowsort
SELECT - col1 + - ( - col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT ALL - cor0.col2 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + cor0.col2 * 73 + col0 FROM tab2 AS cor0
----
-1820
-1964
-2695
query I rowsort
SELECT + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + ( col2 ) * cor0.col1 * - 52 FROM tab1 AS cor0
----
-29640
-64896
-73008
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT - CAST( col0 AS SIGNED ) DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4223
SELECT - CAST ( col0 AS INTEGER ) / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
17
31
59
query I rowsort
SELECT - 42 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT ALL - ( - col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL 72 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL 88 AS col0 FROM tab1 AS cor0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col2 * ( - col1 ) col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( tab2.col1 ) ) col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col2 * ( col1 ) + + tab1.col0 * - col1 AS col2 FROM tab1
----
-70
1326
208
query I rowsort
SELECT ALL - 36 AS col1 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT DISTINCT - col0 + - col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + - ( + col2 ) col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT col2 * - col2 * - 0 AS col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + - col1 col2 FROM tab2
----
22
50
64
query I rowsort
SELECT col0 * - col1 * col0 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 * + col2 + + col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2, tab0 AS cor3
----
1
query I rowsort
SELECT + + cor0.col2 + col0 + col2 AS col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT - - col0 * ( col0 ) FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col1 + 95 * + 83 FROM tab0 cor0
----
7788
7794
7799
query I rowsort
SELECT + col2 + 70 + col0 * col0 AS col0 FROM tab1 AS cor0
----
133
4223
6566
onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT col0 DIV + col1 + - col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-4247
SELECT col0 / + col1 + - col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT col2 * - col1 + - col1 AS col2 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT col2 - - col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT 46 FROM tab1
----
46
query I rowsort
SELECT DISTINCT - - ( col1 ) * cor0.col1 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + - 16 FROM tab2 AS cor0
----
-16
-16
-16
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 35 AS col2 FROM tab0 AS cor0
----
35
35
35
query I rowsort
SELECT ALL + col0 * + cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT + col2 + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col0 + 87 - - col0 * + col2 FROM tab2 cor0
----
2193
283
3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT DISTINCT cor0.col1 DIV 63 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT cor0.col1 / 63 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT + col2 DIV 80 AS col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4263
SELECT + col2 / 80 AS col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT - col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4265
SELECT - col2 / - col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL col0 + ( - col0 ) * col0 * - col1 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT DISTINCT - col1 * + 37 + col1 * col0 AS col1 FROM tab2 AS cor0
----
-930
2419
714
query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT - - col2 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT tab1.col1 + - col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL col0 * + col0 + 30 * col0 + + 90 FROM tab0 AS cor0
----
10681
1386
2365
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - - cor0.col2 * 85 + col2 FROM tab2 AS cor0
----
2236
2322
3268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT + CAST( NULL AS DECIMAL ) * + col1 + col2 / + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4277
SELECT + CAST ( NULL AS REAL ) * + col1 + col2 / + 47 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1 AS cor0
----
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT 67 DIV cor0.col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4279
SELECT 67 / cor0.col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT ALL + col0 + 92 * - col0 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4281
SELECT CAST( + 37 AS SIGNED ) * col2 + col2 FROM tab1 cor0
----
2052
2166
3648
skipif mysql # not compatible
query I rowsort label-4281
SELECT CAST ( + 37 AS INTEGER ) * col2 + col2 FROM tab1 cor0
----
2052
2166
3648
query I rowsort
SELECT + ( col2 ) * - col0 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
-2713
1453
772
onlyif mysql # use DIV operator for integer division
query I rowsort label-4283
SELECT + - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4283
SELECT + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + ( + col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4286
SELECT - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + col1 * + 94 AS col2 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT ALL + cor0.col0 * 80 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ddc7bd17d7a445f09e2b15894c03ffb3
query I rowsort
SELECT ALL + col0 - cor0.col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * - 90 AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 63 + col0 * + col1 FROM tab1 AS cor0
----
1103
141
703
query I rowsort
SELECT ALL + col2 - + 35 FROM tab2 AS cor0
----
-8
-9
3
query I rowsort
SELECT + ( col2 ) * - col1 + - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL ( 31 ) * col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT + col2 * col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT DISTINCT + col2 * 15 DIV tab0.col2 + col1 * - 69 FROM tab0
----
-5919
-6264
-6678
skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + col2 * 15 / tab0.col2 + col1 * - 69 FROM tab0
----
-5919
-6264
-6678
query I rowsort
SELECT ALL - - col2 * cor0.col2 + ( ( - col0 ) ) FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT - col0 * - col0 AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT tab2.col1 - 60 * + col0 AS col2 FROM tab2
----
-389
-4621
-4723
query I rowsort
SELECT - 97 AS col1 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd
query I rowsort
SELECT + 9 + + col1 + 43 * col2 FROM tab0 AS cor0
----
149
1514
3626
query I rowsort
SELECT + 5 * - col2 AS col1 FROM tab1 cor0
----
-270
-285
-480
query I rowsort
SELECT - col0 * cor0.col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col1 + col2 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT ALL + + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + + cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 + - col1 * col2 * col1 + - 59 AS col0 FROM tab0 AS cor0
----
-242063
-6073
-671002
query I rowsort
SELECT ALL 3 + col2 * col1 + 20 AS col2 FROM tab1
----
1271
1427
593
query I rowsort
SELECT ALL - 19 * col0 + + col0 + + col1 AS col1 FROM tab1
----
-1142
-1427
-28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT DISTINCT CAST( 22 AS SIGNED ) * + col1 + + 1 * - col0 + + col1 * + col0 AS col1 FROM tab0
----
10012
3932
5494
skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT CAST ( 22 AS INTEGER ) * + col1 + + 1 * - col0 + + col1 * + col0 AS col1 FROM tab0
----
10012
3932
5494
query I rowsort
SELECT ALL - ( col2 * - col1 ) + 96 * 77 FROM tab0
----
10230
14854
7489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col2 FROM tab2
----
-53
-53
-53
query I rowsort
SELECT DISTINCT 44 * col0 FROM tab2
----
308
3432
3476
query I rowsort
SELECT + - 86 FROM tab1 cor0
----
-86
-86
-86
query I rowsort
SELECT - + 56 * col1 FROM tab1 AS cor0
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + 10 * - col0 FROM tab1 AS cor0
----
-30
-640
-800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * - col2 col1 FROM tab1 AS cor0
----
-1248
-702
-741
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col2 - 75 FROM tab2, tab1 AS cor0
----
9 values hashing to 002dabe77e075ff65ca73f50557c2976
query I rowsort
SELECT DISTINCT - col2 - + col0 AS col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT - 21 - cor0.col1 FROM tab0 AS cor0
----
-107
-112
-118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT ALL col1 * CAST( NULL AS SIGNED ) - - ( - col0 ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL col1 * CAST ( NULL AS INTEGER ) - - ( - col0 ) * col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT DISTINCT - col2 * col1 + col0 DIV - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - col2 * col1 + col0 / - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col1 + ( 87 ) FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT - - col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + + col2 + 99 AS col0 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT DISTINCT + 82 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
82
query I rowsort
SELECT 22 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT ALL + 80 FROM tab1
----
80
80
80
query I rowsort
SELECT + - col2 * col2 + - col1 * 98 AS col1 FROM tab1 AS cor0
----
-10490
-4229
-5464
onlyif mysql # use DIV operator for integer division
query I rowsort label-4334
SELECT - ( + cor0.col1 ) DIV cor0.col0 + - col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-4334
SELECT - ( + cor0.col1 ) / cor0.col0 + - col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT ALL - 22 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - 69 + + 31 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2597
2752
2938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col0 ) + - col0 * + col0 col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT 84 FROM tab0 cor0
----
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT - + col2 DIV + cor0.col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-4340
SELECT - + col2 / + cor0.col1 + - col2 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT + 89 + col2 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT ALL + tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 10 * + 41 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8a4312d63cba8453eaafe3ee8e7ee39a
query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
46
query I rowsort
SELECT col0 * - tab2.col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL 56 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT 41 FROM tab2, tab2 AS cor0
----
41
query I rowsort
SELECT - col2 * - col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + - col1 * 47 AS col1 FROM tab2 AS cor0
----
-1457
-2773
-799
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ( ( tab1.col1 ) ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT - tab2.col1 * + ( col1 ) AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT - 7 + col2 FROM tab2
----
19
20
31
query I rowsort
SELECT 31 * + col1 AS col2 FROM tab2
----
1829
527
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 12 col1 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT DISTINCT - 46 - col2 AS col2 FROM tab0 AS cor0
----
-128
-47
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - ( + ( col1 ) ) * - col1 + - 18 FROM tab1 AS cor0
----
151
658
82
query I rowsort
SELECT cor0.col0 * col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - + cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 40 + ( - col2 ) FROM tab2 AS cor0
----
-66
-67
-78
query I rowsort
SELECT DISTINCT - - col2 * col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL + - 53 + + col2 AS col1 FROM tab1 AS cor0
----
1
4
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT - cor0.col1 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4366
SELECT - cor0.col1 / cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + - col2 col2 FROM tab1 AS cor0
----
-1
-4
-43
query I rowsort
SELECT DISTINCT - - col1 * - col0 + col1 * col2 + col0 * - col2 FROM tab0 AS cor0
----
-18
-3333
-7935
query I rowsort
SELECT 73 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT - 70 FROM tab0 AS cor0
----
-70
-70
-70
query I rowsort
SELECT - - ( col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * + col0 * - col2 + ( cor0.col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-32832
-4050
-92160
query I rowsort
SELECT 38 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4375
SELECT - 12 + + col0 * CAST( NULL AS SIGNED ) * 78 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4375
SELECT - 12 + + col0 * CAST ( NULL AS INTEGER ) * 78 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col2 + ( - col2 ) * + col1 AS col0 FROM tab1
----
-1165
-1376
-523
query I rowsort
SELECT ALL - ( - col2 ) + col1 * + 35 AS col0 FROM tab1
----
407
551
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT + + col0 DIV col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + + col0 / col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT col1 + - col1 * + 59 AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626
query I rowsort
SELECT + ( col2 ) * ( 23 ) * col0 FROM tab1 AS cor0
----
176640
3726
83904
query I rowsort
SELECT 91 * + col1 AS col0 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT col2 + 33 * col2 AS col0 FROM tab0 AS cor0
----
1122
2788
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT DISTINCT + - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT + - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4385
SELECT ALL col2 + CAST( - col0 AS SIGNED ) col1 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4385
SELECT ALL col2 + CAST ( - col0 AS INTEGER ) col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + + col0 * - 89 FROM tab1 AS cor0
----
-267
-5696
-7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4387
SELECT DISTINCT + + cor0.col0 + - CAST( NULL AS SIGNED ) * - col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT + + cor0.col0 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT ALL + col2 * 98 DIV 7 FROM tab0 AS cor0
----
1148
14
462
skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL + col2 * 98 / 7 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT col0 * 62 AS col2 FROM tab2 AS cor0
----
434
4836
4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT DISTINCT col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT + col2 + col1 * col1 DIV 74 FROM tab2 AS cor0
----
39
41
73
skipif mysql # not compatible
query I rowsort label-4392
SELECT + col2 + col1 * col1 / 74 FROM tab2 AS cor0
----
39
41
73
query I rowsort
SELECT - - col0 - + 81 * col2 FROM tab0 AS cor0
----
-2649
-46
-6553
query I rowsort
SELECT - col1 + 56 * + col1 AS col1 FROM tab0 cor0
----
4730
5005
5335
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + - col0 col2 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT 80 DIV 22 + + cor0.col2 * - 81 FROM tab0 AS cor0
----
-2670
-6639
-78
skipif mysql # not compatible
query I rowsort label-4396
SELECT 80 / 22 + + cor0.col2 * - 81 FROM tab0 AS cor0
----
-2670
-6639
-78
query I rowsort
SELECT + ( + col2 ) * + col0 - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - 37 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT - + CAST( NULL AS SIGNED ) + 72 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-4399
SELECT - + CAST ( NULL AS INTEGER ) + 72 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 51 + col0 * col1 FROM tab1 cor0
----
1091
129
691
query I rowsort
SELECT ALL col0 + ( col0 + - col2 ) FROM tab1
----
-48
64
71
query I rowsort
SELECT ALL col1 * - col2 + ( col0 ) + 19 AS col0 FROM tab2
----
-1437
-548
-811
query I rowsort
SELECT ALL col2 * ( + col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL ( + 94 + tab1.col0 ) AS col0 FROM tab1
----
158
174
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4405
SELECT - - CAST( + col0 AS SIGNED ) * - col0 FROM tab1 cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-4405
SELECT - - CAST ( + col0 AS INTEGER ) * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - + ( col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + col0 ) col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT ALL col2 + ( - col0 ) * col2 + - ( col1 ) DIV + col1 AS col1 FROM tab2
----
-163
-2003
-2965
skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL col2 + ( - col0 ) * col2 + - ( col1 ) / + col1 AS col1 FROM tab2
----
-163
-2003
-2965
query I rowsort
SELECT ALL col0 * + col0 + - col1 + col2 FROM tab0
----
1129
523
7912
query I rowsort
SELECT DISTINCT - col1 * col2 + - tab1.col0 * - col0 FROM tab1
----
-1395
3526
5152
query I rowsort
SELECT col0 + col1 * tab0.col2 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL col2 + - col0 * ( col0 + + col0 ) FROM tab0
----
-1119
-15760
-2449
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + + col2 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + col1 + + 60 * col2 AS col0 FROM tab2 AS cor0
----
1619
1651
2297
query I rowsort
SELECT + col0 + - 80 AS col0 FROM tab1 AS cor0
----
-16
-77
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL - col0 * - col2 + col0 * col1 FROM tab2
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + col0 ) + + col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT DISTINCT + 72 + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT + 72 + cor0.col2 / + col1 FROM tab0 AS cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 47 * - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-1450
-2695
-720
query I rowsort
SELECT ALL + 57 FROM tab2
----
57
57
57
query I rowsort
SELECT DISTINCT - 5 * - col2 AS col0 FROM tab1 AS cor0
----
270
285
480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4428
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 * + 99 + col2 FROM tab2 AS cor0
----
1721
3096
5867
query I rowsort
SELECT - 39 + + cor0.col2 FROM tab2 cor0
----
-1
-12
-13
query I rowsort
SELECT DISTINCT - 74 + ( + col0 * - col1 ) AS col2 FROM tab0 cor0
----
-2138
-3469
-8173
query I rowsort
SELECT ALL ( col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 71 + + 62 * - col1 * 3 AS col1 FROM tab2 AS cor0
----
-10903
-3091
-5695
query I rowsort
SELECT 15 * - col1 AS col1 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT - 5 AS col1 FROM tab0 AS cor0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4436
SELECT DISTINCT + + 28 DIV col1 + col1 FROM tab1 AS cor0
----
12
15
27
skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT + + 28 / col1 + col1 FROM tab1 AS cor0
----
12
15
27
query I rowsort
SELECT DISTINCT - + ( col0 ) * col0 + - ( 17 + col2 ) AS col1 FROM tab0 cor0
----
-1243
-626
-8020
onlyif mysql # use DIV operator for integer division
query I rowsort label-4438
SELECT ALL + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col1 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - + ( 71 ) * - col1 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT ALL col2 + 29 FROM tab0 AS cor0
----
111
30
62
query I rowsort
SELECT DISTINCT col1 * + col2 * + col0 AS col1 FROM tab0 cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT - - 20 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4443
SELECT - - 20 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * 96 + col2 FROM tab2 AS cor0
----
-2470
-2565
-3610
onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT DISTINCT + 71 DIV + cor0.col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + 71 / + cor0.col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT ( col0 ) * - col1 + 30 FROM tab0 AS cor0
----
-2034
-3365
-8069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col1 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + col2 * + col0 * 2 AS col1 FROM tab0 AS cor0
----
14687
167
1670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * col0 + 35 col1 FROM tab2
----
1378
252
4637
query I rowsort
SELECT DISTINCT + - col2 + + col2 + - 87 AS col1 FROM tab0 AS cor0
----
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT col2 * - col2 * + ( + 94 ) - col0 DIV + ( col0 ) AS col1 FROM tab2 AS cor0
----
-135737
-63545
-68527
skipif mysql # not compatible
query I rowsort label-4451
SELECT col2 * - col2 * + ( + 94 ) - col0 / + ( col0 ) AS col1 FROM tab2 AS cor0
----
-135737
-63545
-68527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT 87 DIV col0 + ( col1 + + cor0.col0 ) * + col2 * 77 FROM tab1 AS cor0
----
120611
324787
687457
skipif mysql # not compatible
query I rowsort label-4453
SELECT 87 / col0 + ( col1 + + cor0.col0 ) * + col2 * 77 FROM tab1 AS cor0
----
120611
324787
687457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT - 10 + col2 + + CAST( NULL AS SIGNED ) * 58 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4455
SELECT - 10 + col2 + + CAST ( NULL AS INTEGER ) * 58 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( cor0.col2 ) * + col0 * cor0.col1 + - col1 * - ( 43 ) AS col2 FROM tab1 AS cor0
----
100399
36910
5330
query I rowsort
SELECT ALL + 30 FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT + col0 * - col1 - - 37 * + 94 FROM tab2 AS cor0
----
-1124
2135
3261
query I rowsort
SELECT ALL col0 + - col1 * + 83 FROM tab2 AS cor0
----
-1332
-2566
-4819
query I rowsort
SELECT DISTINCT + + col0 * 70 - + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1614
5050
6848
query I rowsort
SELECT DISTINCT + 62 + cor0.col1 FROM tab0, tab2 AS cor0
----
121
79
93
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col0 + cor0.col2 + col1 * - col0 FROM tab0 cor0
----
-2007
-3359
-7928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT ALL + col0 * - ( - 33 ) + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + col0 * - ( - 33 ) + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * + 19 + - col0 FROM tab0 AS cor0
----
-16
1469
603
onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT ALL - col0 DIV + CAST( - col0 AS SIGNED ) + col0 - col1 * 34 * col1 AS col0 FROM tab2 AS cor0
----
-118275
-32666
-9746
skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - col0 / + CAST ( - col0 AS INTEGER ) + col0 - col1 * 34 * col1 AS col0 FROM tab2 AS cor0
----
-118275
-32666
-9746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + tab0.col1 - - ( col2 ) col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL 22 AS col1 FROM tab2
----
22
22
22
query I rowsort
SELECT DISTINCT + col1 * 76 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col1 * + 25 AS col2 FROM tab0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT + col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4474
SELECT + col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - ( col1 ) FROM tab2 cor0
----
0
query I rowsort
SELECT - cor0.col0 + ( col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 * 98 * + col1 FROM tab1 AS cor0
----
-101920
-62720
-7644
onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT col0 DIV col2 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4478
SELECT col0 / col2 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT + 1 - - col1 * col2 FROM tab2
----
1535
647
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT + col0 DIV col2 + col0 - - col1 AS col1 FROM tab0
----
110
167
181
skipif mysql # not compatible
query I rowsort label-4480
SELECT + col0 / col2 + col0 - - col1 AS col1 FROM tab0
----
110
167
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT ALL col1 DIV ( + col2 ) + cor0.col2 - - ( col1 ) FROM tab0 AS cor0
----
121
174
195
skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL col1 / ( + col2 ) + cor0.col2 - - ( col1 ) FROM tab0 AS cor0
----
121
174
195
query I rowsort
SELECT + col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT tab1.col1 + 78 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64047ab212e4e3749e56c329f0dc6990
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + ( col0 ) + - cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * ( col0 ) AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-4488
SELECT + col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT - - col2 + + col2 DIV + col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4489
SELECT - - col2 + + col2 / + col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 * + col2 + + col0 * + col1 FROM tab0 cor0
----
14823
3153
3396
query I rowsort
SELECT 23 + + 34 FROM tab1
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL + 58 DIV tab2.col1 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 05b92884b421f1624b8b21ae91927918
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + 58 / tab2.col1 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 05b92884b421f1624b8b21ae91927918
query I rowsort
SELECT DISTINCT 40 FROM tab2
----
40
query I rowsort
SELECT DISTINCT 90 * col0 AS col0 FROM tab0
----
2160
3150
8010
query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT 56 + 93 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0ab6ae8b432b433653a18177eb0580b5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT - 97 * + col2 + col2 * col2 * tab1.col1 + CAST( 3 AS SIGNED ) AS col0 FROM tab1
----
110499
26964
70581
skipif mysql # not compatible
query I rowsort label-4497
SELECT - 97 * + col2 + col2 * col2 * tab1.col1 + CAST ( 3 AS INTEGER ) AS col0 FROM tab1
----
110499
26964
70581
query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT + cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4499
SELECT + cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + cor0.col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - 2 * col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + ( col2 ) * - 28 AS col0 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT + col1 * cor0.col2 + 31 + + ( - col2 * col0 ) FROM tab1 AS cor0
----
-3047
-6401
1273
query I rowsort
SELECT - col2 * + col0 * - col0 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 * col1 * + cor0.col0 col1 FROM tab2 AS cor0
----
-102068
-16492
-349752
query I rowsort
SELECT + - col2 * col2 + + cor0.col2 * + ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col1 * col2 ) AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL 31 * + col2 FROM tab1
----
1674
1767
2976
query I rowsort
SELECT col1 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ( + col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - col0 * + col1 * + ( - col2 * col2 ) FROM tab2 AS cor0
----
-158193
-1939292
-3110952
query I rowsort
SELECT ALL + 59 * col0 AS col2 FROM tab2
----
413
4602
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-4514
SELECT ALL - col2 * 66 * - col2 + - col1 DIV 56 AS col0 FROM tab2 cor0
----
44615
48114
95304
skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - col2 * 66 * - col2 + - col1 / 56 AS col0 FROM tab2 cor0
----
44615
48114
95304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT - 87 * col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4515
SELECT - 87 * col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - 42 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT - + 81 FROM tab0 AS cor0
----
-81
-81
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4518
SELECT - + CAST( NULL AS SIGNED ) / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4518
SELECT - + CAST ( NULL AS INTEGER ) / + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 53 * 54 AS col2 FROM tab2 AS cor0
----
-2862
-2862
-2862
query I rowsort
SELECT DISTINCT - 9 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4521
SELECT DISTINCT col2 DIV col0 + + col2 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT col2 / col0 + + col2 FROM tab2
----
26
30
38
query I rowsort
SELECT 87 AS col0 FROM tab1, tab0, tab1 cor0, tab2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query I rowsort
SELECT DISTINCT col0 * ( + tab1.col2 * - col0 ) FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT + 73 FROM tab0
----
73
73
73
query I rowsort
SELECT ALL 36 FROM tab0, tab1 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ( 70 * col0 ) AS col2 FROM tab2
----
490
5460
5530
query I rowsort
SELECT ALL + tab2.col0 * + col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - 72 * + 65 FROM tab2
----
-4680
-4680
-4680
query I rowsort
SELECT - - 34 + 99 FROM tab1 AS cor0
----
133
133
133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4530
SELECT + CAST( 63 AS SIGNED ) * cor0.col0 * CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4530
SELECT + CAST ( 63 AS INTEGER ) * cor0.col0 * CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - cor0.col2 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT - - 2 + col1 FROM tab1 cor0
----
12
15
28
query I rowsort
SELECT - + col2 * + 48 AS col1 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT 5 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-373
-397
-484
query I rowsort
SELECT ALL col0 - - 82 FROM tab0
----
106
117
171
query I rowsort
SELECT + + 42 * + col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
11040
288
6336
query I rowsort
SELECT + + col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT 43 + col0 + - ( - col0 ) FROM tab1
----
171
203
49
query I rowsort
SELECT ALL + 47 + - col0 FROM tab1
----
-17
-33
44
query I rowsort
SELECT - tab0.col1 * - tab0.col1 + + 94 * + tab0.col0 AS col1 FROM tab0
----
12699
16647
9652
query I rowsort
SELECT ALL + 26 AS col0 FROM tab1 AS cor0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) + col1 * - col0 col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL - 31 FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + - 34 FROM tab2 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT col0 + - col1 * CAST( NULL AS DECIMAL ) / + cor0.col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4547
SELECT col0 + - col1 * CAST ( NULL AS REAL ) / + cor0.col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 55 * - col0 FROM tab0 cor0
----
1320
1925
4895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4549
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4549
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 + - col0 + - cor0.col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( - 32 ) col2 FROM tab0
----
-1120
-2848
-768
query I rowsort
SELECT DISTINCT + 77 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
77
query I rowsort
SELECT DISTINCT + 5 * col0 - cor0.col2 AS col1 FROM tab1 cor0
----
-39
263
304
query I rowsort
SELECT ALL col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 - ( - col0 ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col2 + - 14 AS col0 FROM tab1 AS cor0
----
40
43
82
query I rowsort
SELECT DISTINCT - - col0 * + col0 * + cor0.col2 + 44 AS col1 FROM tab0 AS cor0
----
1269
19052
649566
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT col0 + + 73 DIV + col0 FROM tab1 AS cor0
----
27
65
80
skipif mysql # not compatible
query I rowsort label-4559
SELECT col0 + + 73 / + col0 FROM tab1 AS cor0
----
27
65
80
query I rowsort
SELECT ALL - + ( - 31 ) * - col2 AS col0 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT col0 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 75 * + col2 FROM tab2 AS cor0
----
-1950
-2025
-2850
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - col2 - 17 FROM tab1 cor0
----
-113
-71
-74
query I rowsort
SELECT - - 91 FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT - col0 - - 91 AS col0 FROM tab0 AS cor0
----
2
56
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4567
SELECT + - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4567
SELECT + - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT ALL - col1 DIV 24 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL - col1 / 24 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + 43 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT ALL + 98 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT + - col1 + + col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT DISTINCT - col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT - col1 / col0 AS col1 FROM tab2 AS cor0
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT - + col1 DIV ( + ( + col1 ) ) FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4575
SELECT - + col1 / ( + ( + col1 ) ) FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - col0 * + col2 + col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT - + col0 - ( col0 ) * col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT col1 * cor0.col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - col0 * 82 AS col1 FROM tab0 AS cor0
----
-1968
-2870
-7298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT ( 48 ) FROM tab1, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT col2 + + 52 FROM tab0
----
134
53
85
query I rowsort
SELECT ALL 33 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963
query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT 2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL col1 * - col0 + col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 + + 51 AS col0 FROM tab0
----
133
52
84
query I rowsort
SELECT + 23 FROM tab1, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL 56 FROM tab1
----
56
56
56
query I rowsort
SELECT - 2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - + cor0.col1 + + cor0.col0 * 50 FROM tab0 AS cor0
----
1114
1653
4359
onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT + col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4595
SELECT + col2 / + col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - col0 * col0 * + 60 AS col2 FROM tab1 AS cor0
----
-245760
-384000
-540
query I rowsort
SELECT DISTINCT + ( col1 ) + + 22 * col2 * + col0 + + 6 AS col1 FROM tab1 AS cor0
----
168979
3596
80272
onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT - 76 DIV 93 + col2 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4598
SELECT - 76 / 93 + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT + col1 * + col0 + + col2 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + 88 * - col1 * - col1 FROM tab2
----
25432
306328
84568
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab2
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 83 ) col2 FROM tab1
----
83
83
83
query I rowsort
SELECT DISTINCT - col1 + - col2 + ( col0 ) FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT col2 * - col2 - + col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL + col0 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + - 81 * cor0.col1 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT DISTINCT - - 16 AS col0 FROM tab1 AS cor0
----
16
query I rowsort
SELECT DISTINCT 7 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4611
SELECT + col0 / col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 7 * + col0 AS col0 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT ALL - 23 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT ALL + col1 * col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + col1 * col1 / + col2 AS col2 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab2 AS cor0
----
-31
query I rowsort
SELECT + 21 * col2 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT - 47 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT - ( 77 ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT ALL - col0 * + col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col2 * - tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 30 AS col1 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT - cor0.col2 * - 4 + - 69 FROM tab1 AS cor0
----
147
159
315
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4628
SELECT - - col2 + CAST( NULL AS SIGNED ) * 78 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4628
SELECT - - col2 + CAST ( NULL AS INTEGER ) * 78 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT DISTINCT col0 + - ( col1 ) * + col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT DISTINCT + cor0.col0 + 60 * + col1 AS col2 FROM tab0 AS cor0
----
5184
5549
5855
query I rowsort
SELECT + col0 - + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + + col1 * 38 AS col2 FROM tab0 AS cor0
----
3354
3549
3783
query I rowsort
SELECT + - col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + 84 AS col1 FROM tab0 AS cor0
----
84
84
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( cor0.col2 ) + col1 * 98 col0 FROM tab1 AS cor0
----
1178
2494
923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4638
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT ALL 17 FROM tab1
----
17
17
17
query I rowsort
SELECT cor1.col1 FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 9 ) * - col0 + - col0 * - col2 col1 FROM tab0 AS cor0
----
-280
576
6497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - col0 + 82 FROM tab0 cor0
----
-7
47
58
query I rowsort
SELECT ALL + + ( cor0.col2 ) * + col1 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT DISTINCT - col1 DIV 4 + col0 FROM tab0 AS cor0
----
11
3
67
skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT - col1 / 4 + col0 FROM tab0 AS cor0
----
11
3
67
query I rowsort
SELECT + - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - col0 * col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT ALL 48 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT DISTINCT + - cor0.col0 * - cor0.col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - ( 20 ) + cor0.col0 + ( col1 ) FROM tab0 AS cor0
----
112
160
90
query I rowsort
SELECT + 20 * col0 AS col2 FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT ALL 4 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + - 62 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT + tab1.col0 * - tab1.col2 * 83 FROM tab1
----
-13446
-302784
-637440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4659
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col0 * col0 - + col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT + col2 * ( - col0 ) DIV col1 + col1 AS col2 FROM tab2 AS cor0
----
-159
25
25
skipif mysql # not compatible
query I rowsort label-4661
SELECT + col2 * ( - col0 ) / col1 + col1 AS col2 FROM tab2 AS cor0
----
-159
25
25
query I rowsort
SELECT - col1 + + 80 FROM tab2 AS cor0
----
21
49
63
query I rowsort
SELECT cor0.col2 * - 5 FROM tab0 AS cor0
----
-165
-410
-5
query I rowsort
SELECT - - 17 * col0 AS col1 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT 4 + col2 FROM tab2 AS cor0
----
30
31
42
query I rowsort
SELECT ALL - 24 * + col2 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT 53 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT 18 FROM tab1 cor0
----
18
18
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT + CAST( 85 AS SIGNED ) * col2 FROM tab2 AS cor0
----
2210
2295
3230
skipif mysql # not compatible
query I rowsort label-4669
SELECT + CAST ( 85 AS INTEGER ) * col2 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT ALL + 1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL + 21 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT + - ( col2 ) * 32 * - col1 + + col0 FROM tab1 AS cor0
----
18304
40016
44931
query I rowsort
SELECT - cor0.col2 + - col1 * 77 - cor0.col2 * col1 FROM tab1 cor0
----
-1397
-2345
-3460
query I rowsort
SELECT - 87 * col0 + col1 FROM tab2 AS cor0
----
-578
-6727
-6856
query I rowsort
SELECT ALL + 72 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7
query I rowsort
SELECT - - col0 * 89 * 21 + + cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
115968
141840
5445
query I rowsort
SELECT 22 + col1 FROM tab0
----
108
113
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT ALL + tab1.col0 + - ( - 37 ) DIV cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL + tab1.col0 + - ( - 37 ) / cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - col0 + - tab1.col0 * col0 AS col1 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * col1 col1 FROM tab0
----
4988
5278
5626
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL - 40 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT col2 + - col0 - - 98 * col1 AS col0 FROM tab0 AS cor0
----
8437
8911
9472
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 + + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - col0 + ( col1 ) + + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + - 37 AS col2 FROM tab1 AS cor0
----
-34
27
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4689
SELECT + col2 + col1 * + CAST( + col1 AS SIGNED ) FROM tab0
----
7429
8363
9410
skipif mysql # not compatible
query I rowsort label-4689
SELECT + col2 + col1 * + CAST ( + col1 AS INTEGER ) FROM tab0
----
7429
8363
9410
query I rowsort
SELECT + col1 * col2 + + 23 AS col2 FROM tab2
----
1557
669
860
query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab1
----
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT DISTINCT col1 * col1 DIV + col0 - - tab0.col1 AS col0 FROM tab0
----
184
365
394
skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT col1 * col1 / + col0 - - tab0.col1 AS col0 FROM tab0
----
184
365
394
query I rowsort
SELECT ALL col0 + col2 * 13 * col2 + col0 * + col2 * col0 FROM tab1
----
275773
38397
734288
query I rowsort
SELECT + col0 + tab1.col0 * tab1.col0 AS col2 FROM tab1
----
12
4160
6480
query I rowsort
SELECT + 35 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT ALL 42 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 38 col1 FROM tab0
----
1254
3116
38
query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT + col1 DIV col1 + col0 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4700
SELECT + col1 / col1 + col0 FROM tab1
----
4
65
81
query I rowsort
SELECT + col0 + ( cor0.col2 ) * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + - col1 * + col1 + 77 AS col2 FROM tab2 AS cor0
----
-212
-3404
-884
query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * + ( tab2.col0 ) FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 22 FROM tab0
----
-22
-22
-22
query I rowsort
SELECT + 74 FROM tab2
----
74
74
74
query I rowsort
SELECT - - 98 + col2 * cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
3493
664216
68210
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL 93 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - 46 AS col0 FROM tab1 AS cor0
----
-46
-46
-46
query I rowsort
SELECT - + 2 * col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + 1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 24 AS col1 FROM tab1 AS cor0
----
-24
query I rowsort
SELECT + - ( col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT DISTINCT + + 5 + col1 DIV - 31 AS col0 FROM tab2 AS cor0
----
4
5
skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT + + 5 + col1 / - 31 AS col0 FROM tab2 AS cor0
----
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + - col2 * + 36 col2 FROM tab0 cor0
----
-1069
-2779
62
query I rowsort
SELECT + 37 AS col1 FROM tab2
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4719
SELECT - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4719
SELECT - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - col2 * - col1 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT - 39 + + col1 FROM tab2 AS cor0
----
-22
-8
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT ALL - col1 + + col1 DIV ( + col1 ) FROM tab0 cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL - col1 + + col1 / ( + col1 ) FROM tab0 cor0
----
-85
-90
-96
query I rowsort
SELECT DISTINCT - 43 FROM tab0 cor0
----
-43
query I rowsort
SELECT ALL + col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( cor0.col1 ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( cor0.col1 ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT ALL + 69 AS col0 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT - col2 + - 22 FROM tab0 AS cor0
----
-104
-23
-55
query I rowsort
SELECT DISTINCT 79 + col1 FROM tab2 cor0
----
110
138
96
query I rowsort
SELECT DISTINCT - col1 - + col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT col1 * 75 + + 44 AS col0 FROM tab1
----
1019
1994
794
query I rowsort
SELECT ALL cor0.col0 + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col2 - col1 * - col1 AS col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + + col0 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + + ( + col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - tab2.col1 - - tab2.col0 AS col1 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT ( col1 ) DIV - col0 - - 72 FROM tab2 AS cor0
----
68
72
72
skipif mysql # not compatible
query I rowsort label-4740
SELECT ( col1 ) / - col0 - - 72 FROM tab2 AS cor0
----
68
72
72
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT ( + 8 ) DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4742
SELECT ( + 8 ) / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab1.col2 + + col2 - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT DISTINCT + ( - col2 ) DIV col1 - col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT + ( - col2 ) / col1 - col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ( + col0 ) * + tab2.col2 + + ( + col2 ) FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL 38 * + col1 + ( col0 ) * - col2 FROM tab1 AS cor0
----
-3268
-7186
826
query I rowsort
SELECT DISTINCT col1 * col0 * col0 + cor0.col2 * col2 FROM tab2 cor0
----
107541
2248
359632
query I rowsort
SELECT + cor0.col2 - cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 69 * cor0.col2 + - cor0.col0 + + col0 * col0 FROM tab1 AS cor0
----
12944
3732
7965
query I rowsort
SELECT ALL ( col1 ) + col0 * - tab1.col0 AS col0 FROM tab1
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4751
SELECT ALL CAST( + 19 AS SIGNED ) * + tab2.col1 + - col1 * + col2 FROM tab2
----
-248
-323
-413
skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL CAST ( + 19 AS INTEGER ) * + tab2.col1 + - col1 * + col2 FROM tab2
----
-248
-323
-413
query I rowsort
SELECT DISTINCT - col2 - col0 AS col2 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT - col2 DIV col2 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4753
SELECT - col2 / col2 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT - ( - col0 ) * + tab2.col0 * col1 FROM tab2
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT DISTINCT CAST( + 10 * col0 AS SIGNED ) - - 96 FROM tab2
----
166
876
886
skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT CAST ( + 10 * col0 AS INTEGER ) - - 96 FROM tab2
----
166
876
886
query I rowsort
SELECT DISTINCT + tab1.col0 * col0 + + col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT + tab0.col0 + col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - col2 + - ( - col1 ) * - ( tab2.col1 ) + + col1 AS col1 FROM tab2
----
-310
-3448
-957
query I rowsort
SELECT ALL + col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col1 * - 14 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
18802
3038
64428
onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT DISTINCT - col1 + col0 DIV cor0.col1 + - col2 * - col1 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - col1 + col0 / cor0.col1 + - col2 * - col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT ALL col1 DIV 36 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL col1 / 36 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4766
SELECT + col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4767
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col0 FROM tab1
----
108
114
192
query I rowsort
SELECT tab2.col2 * - col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - + col1 * - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4775
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0, tab2 AS cor0
----
40
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
query I rowsort
SELECT + col1 * - 56 + + col2 FROM tab0
----
-4783
-5014
-5431
query I rowsort
SELECT ( tab1.col2 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - cor0.col1 * + tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f79f8a61ba262bc98fabbc6ce3ba7f1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT + - col2 DIV ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4781
SELECT + - col2 / ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT + 2 DIV 53 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4782
SELECT + 2 / 53 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + col2 * 84 AS col1 FROM tab0
----
238392
626808
8148
query I rowsort
SELECT col1 * - ( - 71 ) AS col2 FROM tab0
----
6106
6461
6887
query I rowsort
SELECT col2 * + 96 AS col2 FROM tab1
----
5184
5472
9216
query I rowsort
SELECT + ( col1 + tab1.col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT + 33 AS col0 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT + 20 + - cor0.col2 * - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4788
SELECT + 20 + - cor0.col2 * - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 26 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + 40 * col2 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT DISTINCT - - 50 * - col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ALL + CAST( col2 AS SIGNED ) DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL + CAST ( col2 AS INTEGER ) / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 34 AS col1 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL ( + 45 ) - - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 19ab309465256aa50f52f14f6850f59d
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + 97 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT - - col0 * col2 * col1 + col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT + col0 * - col2 + 84 FROM tab1 AS cor0
----
-3564
-7596
-78
query I rowsort
SELECT DISTINCT col0 * - col0 + - cor0.col2 + cor0.col1 FROM tab2 cor0
----
-45
-6051
-6262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 13 * col1 - - col0 * 65 * col2 col1 FROM tab1 AS cor0
----
10192
236990
499031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 + col0 col1 FROM tab2 AS cor0
----
117
118
46
query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col0 * + col1 + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col1 * col1 + col0 * + col2 + col2 FROM tab0 AS cor0
----
15661
8221
9445
query I rowsort
SELECT + 87 + - col0 FROM tab0 AS cor0
----
-2
52
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT DISTINCT col0 + col2 DIV ( cor0.col0 ) FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT col0 + col2 / ( cor0.col0 ) FROM tab2 AS cor0
----
10
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT DISTINCT + col2 - + 25 DIV col0 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + col2 - + 25 / col0 FROM tab0 AS cor0
----
1
32
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - col0 * + 83 + cor0.col2 + col0 FROM tab0 cor0
----
-1935
-2869
-7216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT DISTINCT + cor0.col2 DIV + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT + cor0.col2 / + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4816
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * - col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + 27 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 * + 18 AS col1 FROM tab0 AS cor0
----
131364
14256
630
query I rowsort
SELECT - col1 + - col0 FROM tab2 cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT ALL ( + col1 ) DIV + col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL ( + col1 ) / + col2 FROM tab0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT ALL + cor0.col1 DIV col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL + cor0.col1 / col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 17 * - col0 * - col1 FROM tab1 AS cor0
----
10880
1326
17680
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab1, tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 76 col0 FROM tab0
----
6536
6916
7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT - ( + col0 ) DIV col1 + ( - tab1.col1 ) * + col1 col2 FROM tab1
----
-106
-175
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4828
SELECT - ( + col0 ) / col1 + ( - tab1.col1 ) * + col1 col2 FROM tab1
----
-106
-175
-676
query I rowsort
SELECT DISTINCT - cor0.col1 * 72 FROM tab2, tab0, tab2 AS cor0
----
-1224
-2232
-4248
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + tab0.col0 * + col0 col1 FROM tab0
----
1152
15842
2450
query I rowsort
SELECT + 31 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1674
1767
2976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - tab0.col2 col2 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4833
SELECT 52 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-4833
SELECT 52 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT col0 + + col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-4834
SELECT col0 + + col2 / - col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT + 16 + tab1.col2 FROM tab1
----
112
70
73
query I rowsort
SELECT + + 8 + cor0.col0 AS col2 FROM tab2 AS cor0
----
15
86
87
query I rowsort
SELECT + 52 - + col0 AS col0 FROM tab2 AS cor0
----
-26
-27
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab2 AS cor0
----
-17
query I rowsort
SELECT col0 * cor0.col0 + col2 * + 45 * + col2 FROM tab1 cor0
----
131229
150301
421120
query I rowsort
SELECT + 71 * + col0 AS col1 FROM tab0 AS cor0
----
1704
2485
6319
onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT + col0 DIV + cor0.col1 + - col2 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-4842
SELECT + col0 / + cor0.col1 + - col2 FROM tab2 AS cor0
----
-25
-27
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT + - col0 * - CAST( NULL AS SIGNED ) + col2 * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4843
SELECT + - col0 * - CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( 31 ) + col0 * cor0.col2 FROM tab0 AS cor0
----
4
7267
761
query I rowsort
SELECT - ( 77 ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4848
SELECT - - CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4848
SELECT - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + 54 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + ( 15 ) * cor0.col0 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT 68 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - ( - ( - col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4853
SELECT ALL - - 0 + - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL - - 0 + - col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + cor0.col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + - col1 * ( - col2 ) + - col2 + + col0 FROM tab2 AS cor0
----
1586
687
817
query I rowsort
SELECT + 89 FROM tab0 AS cor0
----
89
89
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4857
SELECT ALL - 59 * cor0.col1 - - col1 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL - 59 * cor0.col1 - - col1 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 54 FROM tab1 cor0
----
54
query I rowsort
SELECT + - ( - col1 ) + + col0 * - 25 AS col0 FROM tab0 cor0
----
-2134
-514
-778
query I rowsort
SELECT 55 + - col2 FROM tab0 AS cor0
----
-27
22
54
query I rowsort
SELECT DISTINCT - col0 * col2 - col0 * col0 AS col0 FROM tab2 cor0
----
-238
-8112
-9243
query I rowsort
SELECT DISTINCT - - ( col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + - ( - col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL cor0.col1 + - col1 * col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL 21 FROM tab0 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT - ( col2 ) + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col0 + + 62 FROM tab2 AS cor0
----
-16
-17
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT ALL + 18 * col2 + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + 18 * col2 + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 44 ) FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 - + col1 AS col0 FROM tab1 cor0
----
-1261
-1430
-580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL 4 + col1 FROM tab2 AS cor0
----
21
35
63
query I rowsort
SELECT ALL + - col2 + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT - ( + tab1.col0 ) + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - 84 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
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-4881
SELECT - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4881
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4882
SELECT col1 + - CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4882
SELECT col1 + - CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - + 85 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4885
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4885
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - cor0.col2 * col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 * - col0 * col0 - col1 AS col2 FROM tab2
----
-1354
-158243
-237175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + 22 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL col2 * 96 + col2 * col2 + - ( 14 ) FROM tab2
----
3158
3307
5078
query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1, tab1 AS cor0
----
24
query I rowsort
SELECT ALL col2 + 74 AS col0 FROM tab2
----
100
101
112
query I rowsort
SELECT ALL + col0 + + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT col0 * tab2.col2 - col0 AS col2 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL - 55 FROM tab2
----
-55
-55
-55
query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT ALL + 28 DIV col2 col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + 28 / col2 col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - 51 * + cor0.col0 * + 10 + col2 AS col1 FROM tab0 AS cor0
----
-12207
-17849
-45308
query I rowsort
SELECT DISTINCT - + col2 + + col0 * col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - - col1 + - col2 + + 18 FROM tab1 AS cor0
----
-10
-29
-65
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - - 55 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 49 + col0 ) * ( + col1 ) col2 FROM tab1 AS cor0
----
11300
21801
35152
query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab0 cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT DISTINCT + CAST( 23 AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + CAST ( 23 AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
23
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT DISTINCT + col1 * col0 + - col2 * + col2 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT ALL - cor0.col1 * - ( + col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - ( 62 ) AS col0 FROM tab0 AS cor0
----
-62
query I rowsort
SELECT - - ( col1 ) * + col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4915
SELECT + ( col2 ) + - col2 * - CAST( + col0 * + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
207993
737376
8802
skipif mysql # not compatible
query I rowsort label-4915
SELECT + ( col2 ) + - col2 * - CAST ( + col0 * + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-4916
SELECT DISTINCT + col2 DIV col1 - - col0 col0 FROM tab1 AS cor0
----
5
69
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + col2 / col1 - - col0 col0 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT 26 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL + 24 + + col2 FROM tab1
----
120
78
81
query I rowsort
SELECT ALL - col1 * - tab2.col0 + - col1 * - col1 AS col2 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT DISTINCT - 96 * col1 FROM tab1 cor0
----
-1248
-2496
-960
query I rowsort
SELECT - col0 * + col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - ( - col2 ) * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT - + ( 80 ) * - col0 + col0 * col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
1887
2799
7038
skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - + ( 80 ) * - col0 + col0 * col2 / - col0 AS col1 FROM tab0 AS cor0
----
1887
2799
7038
query I rowsort
SELECT ALL col1 * + 44 + col1 - + cor0.col2 FROM tab1 cor0
----
1116
393
489
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT ALL + 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-4925
SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT DISTINCT CAST( 68 AS SIGNED ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
68
skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT CAST ( 68 AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
0
2
68
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 + + col1 + - 21 * - col2 * col1 FROM tab0 cor0
----
164892
5529
61748
query I rowsort
SELECT DISTINCT + 52 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
52
query I rowsort
SELECT DISTINCT col0 + col1 * + col0 * 54 + + 6 * col0 FROM tab1 AS cor0
----
35008
4233
56720
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT col1 + col1 * 73 * col0 FROM tab0 AS cor0
----
150758
247932
591318
onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT ALL - ( col2 ) + + 3 DIV + col0 col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4932
SELECT ALL - ( col2 ) + + 3 / + col0 col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL col1 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + 47 + - col0 AS col0 FROM tab1 AS cor0
----
-17
-33
44
query I rowsort
SELECT + ( col1 ) + + 62 * - col2 * - col1 FROM tab1 AS cor0
----
35350
77389
87074
query I rowsort
SELECT ALL col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + - cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - 3 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT 11 + + ( col0 ) * + ( - col2 + - col0 ) AS col2 FROM tab2
----
-227
-8101
-9232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 * col2 + ( - tab1.col2 ) col1 FROM tab1
----
207879
737184
8694
query I rowsort
SELECT - 60 + 3 * col2 FROM tab0
----
-57
186
39
query I rowsort
SELECT - 23 * + 13 - col1 AS col0 FROM tab1
----
-309
-312
-325
query I rowsort
SELECT + col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + col1 * col1 + ( 45 ) FROM tab0 AS cor0
----
7441
8326
9454
query I rowsort
SELECT DISTINCT + - col0 * col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + + col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + - col2 + col2 * col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - 60 + - 82 * col0 * col2 FROM tab0
----
-2930
-598496
-65004
query I rowsort
SELECT + 5 + col2 AS col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT DISTINCT + ( 31 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
31
query I rowsort
SELECT ALL + 18 AS col1 FROM tab0
----
18
18
18
query I rowsort
SELECT tab1.col0 + col1 * + col1 * col0 FROM tab1
----
13600
2031
6464
query I rowsort
SELECT + - col2 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col2 + ( - 96 ) FROM tab1 AS cor0
----
-39
-42
0
query I rowsort
SELECT 14 FROM tab2 cor0
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col1 FROM tab1, tab0 AS cor0
----
29
query I rowsort
SELECT col0 + - 90 - col0 AS col2 FROM tab2 AS cor0
----
-90
-90
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4959
SELECT ( col2 ) DIV + col1 + col0 FROM tab2 cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-4959
SELECT ( col2 ) / + col1 + col0 FROM tab2 cor0
----
7
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4960
SELECT - + col1 DIV - col2 + - cor0.col0 FROM tab0 cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-4960
SELECT - + col1 / - col2 + - cor0.col0 FROM tab0 cor0
----
-22
-88
62
query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT ( + 3 ) FROM tab1, tab0 AS cor0
----
3
query I rowsort
SELECT - col1 * col0 * - tab0.col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 + col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + tab2.col0 + tab2.col2 * tab2.col0 AS col0 FROM tab2
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4966
SELECT col2 * + CAST( NULL AS SIGNED ) + tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4966
SELECT col2 * + CAST ( NULL AS INTEGER ) + tab2.col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col1 + col2 * + col0 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL 43 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT + ( + col0 + + col1 ) * + col1 AS col2 FROM tab1
----
1209
740
754
query I rowsort
SELECT 74 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT - ( col0 ) + col1 DIV - 13 AS col1 FROM tab1 AS cor0
----
-5
-64
-81
skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - ( col0 ) + col1 / - 13 AS col1 FROM tab1 AS cor0
----
-5
-64
-81
query I rowsort
SELECT ALL - 68 + - 25 AS col0 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + + cor0.col0 + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL 45 * col1 * + col1 + + 88 - + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
330070
365271
423396
query I rowsort
SELECT col0 * - col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + + 69 AS col2 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT + 88 * col2 + - col0 - + ( + col1 ) FROM tab0 AS cor0
----
-44
2794
7036
query I rowsort
SELECT DISTINCT 4 FROM tab1 cor0
----
4
query I rowsort
SELECT ALL - 95 * + 84 + col0 FROM tab2 AS cor0
----
-7901
-7902
-7973
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT ALL + col0 + tab2.col1 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col1 AS col2 FROM tab1
----
-43
-622
-73
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = + col0 + + col2 * - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - col2 col2 FROM tab2
----
-1475
-629
-806
query III rowsort
SELECT * FROM tab2 WHERE ( col1 / col1 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL - col0 + + col1 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT tab0.col1 + col1 * col2 * tab0.col0 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 + + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( NULL ) > - col0 * - col2 * col0 + col0 / col0
----
query I rowsort
SELECT ALL col0 - col1 * col2 AS col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col1 + col0 * - tab0.col0 FROM tab0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + - col0 * - col0 * col0 col2 FROM tab0
----
13791
42874
704887
query I rowsort
SELECT + col0 * + col2 + - col0 AS col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL - col0 FROM tab1 WHERE col2 NOT IN ( tab1.col2 )
----
query I rowsort
SELECT col2 + + tab2.col0 + col2 AS col0 FROM tab2
----
130
155
61
query I rowsort
SELECT + col2 * col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT tab1.col2 * + col2 + - col1 + col0 * col0 AS col1 FROM tab1
----
15603
2899
7335
query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NULL > + col0 * + col1
----
query I rowsort
SELECT col0 * col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col1 + + col1 * tab0.col2 * + tab0.col1 FROM tab0
----
244154
679133
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 WHERE NOT NULL IN ( - col0 )
----
query I rowsort
SELECT col2 + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT DISTINCT col1 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col2 + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col1 * + col0 + - col2 + col0 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT ALL cor0.col1 * col0 + + col1 + - cor0.col0 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT - col1 + - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( col1 * + col2 * + col1 + col2 ) OR NOT NULL < NULL
----
query I rowsort
SELECT ALL - col2 + + tab0.col1 AS col0 FROM tab0
----
53
9
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 - col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT - col2 * col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col0 + ( + 15 ) FROM tab0
----
104
39
50
query I rowsort
SELECT ALL col1 + + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT - + 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT ALL - col1 * - 83 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT + + cor0.col2 + col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT col2 + + col2 DIV 28 FROM tab1 AS cor0
----
55
59
99
skipif mysql # not compatible
query I rowsort label-5022
SELECT col2 + + col2 / 28 FROM tab1 AS cor0
----
55
59
99
query I rowsort
SELECT DISTINCT col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 - ( - col1 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - - col0 + ( + col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - ( col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + - col0 * + col0 col2 FROM tab1 AS cor0
----
-4034
-6338
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT ALL - + ( + cor0.col1 ) DIV col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - + ( + cor0.col1 ) / col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + + 77 + col2 AS col0 FROM tab1 cor0
----
131
134
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT DISTINCT col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT 35 FROM tab0, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5032
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5033
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 63 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL - col1 + 89 FROM tab0 AS cor0
----
-2
-8
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5039
SELECT - ( col2 ) + + cor0.col2 DIV + 7 FROM tab1 AS cor0
----
-47
-49
-83
skipif mysql # not compatible
query I rowsort label-5039
SELECT - ( col2 ) + + cor0.col2 / + 7 FROM tab1 AS cor0
----
-47
-49
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL + 34 DIV col1 FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + 34 / col1 FROM tab1 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) * - ( col1 ) + - cor0.col0 - - col1 * col1 col0 FROM tab2 AS cor0
----
1915
499
6884
query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT col0 * tab1.col0 DIV - col1 + + col2 FROM tab1
----
-352
-396
54
skipif mysql # not compatible
query I rowsort label-5044
SELECT col0 * tab1.col0 / - col1 + + col2 FROM tab1
----
-352
-396
54
query I rowsort
SELECT tab2.col2 * + col0 - tab2.col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - ( + col2 ) + col0 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-45
-6051
-6262
query I rowsort
SELECT + col0 * col0 * - 58 + - cor0.col0 FROM tab1 AS cor0
----
-237632
-371280
-525
query I rowsort
SELECT DISTINCT 42 FROM tab2
----
42
query I rowsort
SELECT + ( - tab0.col1 ) * - 90 AS col1 FROM tab0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT + cor0.col0 * ( + col2 ) + + col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT + col0 + + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT DISTINCT - - col1 DIV ( col2 ) + col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - - col1 / ( col2 ) + col2 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col1 + col2 * + col1 * + col0 - col0 FROM tab2 AS cor0
----
119515
50938
5821
onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT DISTINCT col2 - tab0.col2 DIV ( col1 ) AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT col2 - tab0.col2 / ( col1 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT + col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 37 - + col1 FROM tab0
----
-49
-54
-60
query I rowsort
SELECT DISTINCT col1 * + col1 - ( col1 ) FROM tab2
----
272
3422
930
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab2.col2 * - col0 * CAST ( ( col2 ) AS REAL ) + col0 AS col2 FROM tab2
----
-113997
-5096
-52650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT - col0 / col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5062
SELECT - col0 / col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab2
----
-92
query I rowsort
SELECT + ( col2 ) - 2 FROM tab2
----
24
25
36
query I rowsort
SELECT tab0.col0 + col1 - - 99 FROM tab0
----
209
231
279
query I rowsort
SELECT DISTINCT - 5 FROM tab2, tab0 AS cor0
----
-5
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5069
SELECT - CAST( - 98 AS SIGNED ) FROM tab2 AS cor0
----
98
98
98
skipif mysql # not compatible
query I rowsort label-5069
SELECT - CAST ( - 98 AS INTEGER ) FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - col1 + col2 + + tab0.col0 FROM tab0
----
-29
-61
80
query I rowsort
SELECT col0 * 95 FROM tab2
----
665
7410
7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT + col0 DIV - col0 + col1 * + col0 FROM tab2
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-5072
SELECT + col0 / - col0 + col1 * + col0 FROM tab2
----
1342
216
4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 col1 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT tab2.col0 * + col0 * tab2.col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT tab2.col1 + + col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT DISTINCT + + tab1.col1 DIV tab1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + + tab1.col1 / tab1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
0
8
query I rowsort
SELECT ( - tab2.col2 ) AS col1 FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT + CAST( - col1 AS SIGNED ) + - col2 * - col1 FROM tab2
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-5078
SELECT + CAST ( - col1 AS INTEGER ) + - col2 * - col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT + tab1.col2 + ( col0 + + col1 ) AS col1 FROM tab1
----
131
189
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
query I rowsort
SELECT + 41 AS col0 FROM tab0
----
41
41
41
query I rowsort
SELECT + ( - 56 ) * col2 AS col2 FROM tab1 AS cor0
----
-3024
-3192
-5376
query I rowsort
SELECT ALL - + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT ALL - - CAST( 89 AS SIGNED ) col2 FROM tab1 AS cor0
----
89
89
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - - CAST ( 89 AS INTEGER ) col2 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT DISTINCT col0 * 50 FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT + cor0.col2 * - col1 + - col1 * col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-101008
-36986
-5613
query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab2
----
0
query I rowsort
SELECT + 38 * + col0 FROM tab1
----
114
2432
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL + col1 * + col2 - + 88 * - tab2.col1 AS col2 FROM tab2
----
2142
3565
6726
query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col0 FROM tab1
----
10
13
26
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + - 63 FROM tab0 AS cor0
----
-63
query I rowsort
SELECT ALL - 24 + col0 * 11 FROM tab0 AS cor0
----
240
361
955
query I rowsort
SELECT DISTINCT + + col2 * + col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + 49 + col0 * - col0 FROM tab2 AS cor0
----
-6035
-6192
0
query I rowsort
SELECT ALL col0 + - cor0.col0 * + col1 * col0 FROM tab0 AS cor0
----
-118790
-49512
-720722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + tab1.col2 col2 FROM tab1
----
108
114
192
query I rowsort
SELECT - + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT - ( col0 ) DIV + ( - cor0.col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-5101
SELECT - ( col0 ) / + ( - cor0.col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 * - col2 * col0 + - col2 * + col2 AS col0 FROM tab1 cor0
----
205327
5910
729104
query I rowsort
SELECT - - col0 + 24 AS col2 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT DISTINCT - cor0.col0 + - 2 FROM tab2 AS cor0
----
-80
-81
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - col2 ) + - cor0.col2 col1 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL + - col0 + 14 FROM tab1 AS cor0
----
-50
-66
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - + col2 * + 85 AS col2 FROM tab2 AS cor0
----
-2210
-2295
-3230
query I rowsort
SELECT DISTINCT + col2 + - ( cor0.col2 + + col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + + col2 - col0 * - 13 * + col1 AS col1 FROM tab1 AS cor0
----
1068
13616
8377
query I rowsort
SELECT + col0 + ( + 99 * col1 + cor0.col1 * col0 ) FROM tab1 AS cor0
----
1694
2407
2655
query I rowsort
SELECT ALL + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT col1 * col1 * col2 - col1 AS col0 FROM tab2
----
10965
25916
90447
query I rowsort
SELECT + 33 * tab1.col2 FROM tab1
----
1782
1881
3168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5117
SELECT ALL - cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL - cor0.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-5118
SELECT DISTINCT - col2 DIV col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT - col2 / col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - + cor0.col2 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col2 + cor0.col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 - - col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col2 * col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 + + col0 * col0 col0 FROM tab0 AS cor0
----
-1488
-178
-2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 + cor0.col2 * - cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + cor0.col2 * + col1 + + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col1 - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - col0 + - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - col1 + col0 * col2 * - col2 AS col1 FROM tab1 AS cor0
----
-207946
-737293
-8774
query I rowsort
SELECT DISTINCT tab2.col2 * + tab2.col1 + + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL tab2.col2 + col2 AS col0 FROM tab2
----
52
54
76
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + tab0.col0 * col1 col0 FROM tab0
----
-774
3298
637
query I rowsort
SELECT ALL + col0 + + col1 * col2 + col0 FROM tab2
----
1690
804
851
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT + col0 DIV + col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5136
SELECT + col0 / + col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT + 67 * - col2 FROM tab0 cor0
----
-2211
-5494
-67
query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - ( col1 ) + + col0 * col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab0 AS cor0
----
86
query I rowsort
SELECT ALL - col2 * col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL - 96 AS col2 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT - col1 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + col2 * tab1.col0 col1 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL + col1 * col1 AS col0 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * tab0.col2 * + col1 - - col0 * tab0.col1 col0 FROM tab0
----
-603785
-91590
3298
query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab1
----
51
query I rowsort
SELECT + ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - col0 * col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col2 col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT DISTINCT + col2 + col0 DIV cor0.col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT + col2 + col0 / cor0.col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
query I rowsort
SELECT 74 * + col0 + 41 AS col1 FROM tab0 AS cor0
----
1817
2631
6627
query I rowsort
SELECT ALL col0 * + col1 + ( col1 ) * - col2 AS col0 FROM tab0
----
-774
3298
637
query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - 61 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + 33 AS col2 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT DISTINCT - 77 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-77
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 51 FROM tab1 cor0
----
51
51
51
query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5165
SELECT ALL + - col0 * ( col1 ) + cor0.col1 * CAST( - col1 AS SIGNED ) + + col1 * + 64 FROM tab1 AS cor0
----
-100
-377
910
skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL + - col0 * ( col1 ) + cor0.col1 * CAST ( - col1 AS INTEGER ) + + col1 * + 64 FROM tab1 AS cor0
----
-100
-377
910
query I rowsort
SELECT DISTINCT + - col1 + ( - ( col0 ) ) * col2 + + col2 FROM tab2 AS cor0
----
-193
-2061
-2981
query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - col1 + + 73 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
11
7280
779
query I rowsort
SELECT DISTINCT col1 * 89 AS col2 FROM tab1 AS cor0
----
1157
2314
890
query I rowsort
SELECT ALL + col1 + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - CAST ( + col2 AS REAL ) + col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT DISTINCT col1 DIV - col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT col1 / - col1 FROM tab0
----
-1
query I rowsort
SELECT ALL - tab2.col1 * + col1 + col0 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
-59
query I rowsort
SELECT ALL - col0 * + tab1.col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col1 * col0 * col2 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT + col0 * col0 + + col1 * col1 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT - 88 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-55
-6
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT DISTINCT + 96 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + 96 / - col0 FROM tab0 AS cor0
----
-1
-2
-4
query I rowsort
SELECT 15 * col0 + col0 - 47 FROM tab1 cor0
----
1
1233
977
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT + - col0 + 78 DIV col0 FROM tab2 AS cor0
----
-77
-79
4
skipif mysql # not compatible
query I rowsort label-5181
SELECT + - col0 + 78 / col0 FROM tab2 AS cor0
----
-77
-79
4
query I rowsort
SELECT + 7 + col2 AS col1 FROM tab2 cor0
----
33
34
45
query I rowsort
SELECT - 99 FROM tab0 AS cor0
----
-99
-99
-99
query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + 98 + 34 AS col1 FROM tab1 AS cor0
----
132
132
132
onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT - 19 + col0 * cor0.col0 DIV 74 col0 FROM tab0 AS cor0
----
-12
-3
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5186
SELECT - 19 + col0 * cor0.col0 / 74 col0 FROM tab0 AS cor0
----
-12
-3
88
query I rowsort
SELECT DISTINCT 23 * - ( col2 ) FROM tab1 AS cor0
----
-1242
-1311
-2208
onlyif mysql # use DIV operator for integer division
query I rowsort label-5188
SELECT cor0.col2 DIV + 82 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-5188
SELECT cor0.col2 / + 82 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + 28 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + - col2 * col1 + + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 46 - 65 * col1 AS col1 FROM tab0
----
-5544
-5869
-6259
query I rowsort
SELECT + 6 + col0 FROM tab2 cor0
----
13
84
85
query I rowsort
SELECT ALL - + ( col0 ) * ( 14 ) * col2 FROM tab0 AS cor0
----
-102172
-11088
-490
onlyif mysql # use DIV operator for integer division
query I rowsort label-5195
SELECT - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5195
SELECT - col1 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + 17 + col0 * col0 FROM tab2 cor0
----
32
6067
6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT + cor0.col2 DIV col0 + 81 FROM tab0 AS cor0
----
81
81
82
skipif mysql # not compatible
query I rowsort label-5198
SELECT + cor0.col2 / col0 + 81 FROM tab0 AS cor0
----
81
81
82
query I rowsort
SELECT DISTINCT - 60 * - col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2940
-365040
-374460
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 29 + + 13 AS col1 FROM tab2
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-5202
SELECT + 16 DIV + 65 + col1 + - CAST( + col0 * - col1 AS SIGNED ) FROM tab2
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-5202
SELECT + 16 / + 65 + col1 + - CAST ( + col0 * - col1 AS INTEGER ) FROM tab2
----
1360
248
4661
query I rowsort
SELECT 43 - col1 AS col1 FROM tab0
----
-43
-48
-54
query I rowsort
SELECT DISTINCT 78 + - 92 * col1 AS col1 FROM tab1
----
-1118
-2314
-842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT ALL - CAST( col1 AS SIGNED ) + col1 - col2 AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 - col2 AS col0 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 + - 16 * col0 col2 FROM tab0
----
-1344
-304
-480
query I rowsort
SELECT + col1 + col0 * - 91 AS col0 FROM tab0
----
-2098
-3088
-8008
query I rowsort
SELECT col0 + col2 * + 94 FROM tab0
----
129
3126
7797
query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab1
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT ALL - + col1 DIV cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - + col1 / cor0.col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col1 * col2 - col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT + 34 AS col0 FROM tab0 AS cor0
----
34
34
34
query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 13 * + col1 AS col1 FROM tab0 AS cor0
----
-1118
-1183
-1261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 49 * - col1 col0 FROM tab2 AS cor0
----
1519
2891
833
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * col2 col0 FROM tab0 AS cor0
----
1476
18
594
onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT ALL 3 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL 3 / col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab0 AS cor0
----
64
query I rowsort
SELECT + - ( - col2 ) + + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - + 42 * cor0.col1 + - 66 FROM tab0 AS cor0
----
-3678
-3888
-4140
query I rowsort
SELECT col1 * - col0 + + ( - 97 ) AS col2 FROM tab1 AS cor0
----
-1137
-175
-737
query I rowsort
SELECT ALL - + col0 - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + ( 19 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
19
onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT + cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5226
SELECT + cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5228
SELECT ALL ( + 61 ) DIV + col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
158
87
91
skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL ( + 61 ) / + col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
158
87
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT 14 DIV - 23 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5229
SELECT 14 / - 23 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + - col1 * 35 * col2 + + tab2.col0 col0 FROM tab2
----
-22514
-29257
-53553
onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT + col1 DIV + cor0.col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-5231
SELECT + col1 / + cor0.col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT + col0 + col1 * col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-5233
SELECT cor0.col1 * col1 + col1 DIV - col0 - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
327
3507
984
skipif mysql # not compatible
query I rowsort label-5233
SELECT cor0.col1 * col1 + col1 / - col0 - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
327
3507
984
query I rowsort
SELECT ALL + col0 + - col2 * + col1 AS col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - cor0.col2 + 23 AS col2 FROM tab1 AS cor0
----
-31
-34
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT + col2 - + col0 DIV col2 FROM tab1 cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-5236
SELECT + col2 - + col0 / col2 FROM tab1 cor0
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) + col0 * col0 col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT col1 * + ( col1 ) * col0 - 44 AS col2 FROM tab2 AS cor0
----
22787
271474
6683
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 94 col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT ALL - col0 + ( - col2 ) + + col2 AS col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5241
SELECT + cor0.col0 + - cor0.col2 DIV + ( col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-5241
SELECT + cor0.col0 + - cor0.col2 / + ( col0 ) AS col2 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT + col2 + 3 * - col0 - col2 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT DISTINCT - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT DISTINCT cor0.col1 DIV + cor0.col1 - - col0 col0 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT cor0.col1 / + cor0.col1 - - col0 col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col1 * - 34 + col1 FROM tab1 cor0
----
-330
-429
-858
query I rowsort
SELECT - col0 + 62 AS col1 FROM tab1 AS cor0
----
-18
-2
59
query I rowsort
SELECT - + col2 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT - col1 + 82 FROM tab2 AS cor0
----
23
51
65
query I rowsort
SELECT DISTINCT - col2 + col2 * 12 AS col2 FROM tab0 AS cor0
----
11
363
902
query I rowsort
SELECT ALL + col1 - 71 * col0 FROM tab1 AS cor0
----
-187
-4534
-5667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT - + col0 * CAST( NULL AS SIGNED ) - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5251
SELECT - + col0 * CAST ( NULL AS INTEGER ) - col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT ALL ( tab1.col2 ) DIV - 29 - - col1 DIV col2 col1 FROM tab1
----
-1
-1
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL ( tab1.col2 ) / - 29 - - col1 / col2 col1 FROM tab1
----
-1
-1
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 - tab2.col0 * + col1 col2 FROM tab2
----
-1388
-262
-4647
onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT - cor0.col0 * col1 + - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-5254
SELECT - cor0.col0 * col1 + - col1 / col1 AS col1 FROM tab0 AS cor0
----
-2065
-3396
-8100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5255
SELECT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5255
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 67 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - 50 * + col0 AS col2 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT col1 + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - 51 + 89 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT tab1.col1 + - 64 AS col1 FROM tab1
----
-38
-51
-54
query I rowsort
SELECT tab2.col1 * ( + col2 ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 * + col2 * 58 FROM tab2
----
10962
117624
174116
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 87 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT - 37 + cor0.col0 FROM tab1 AS cor0
----
-34
27
43
query I rowsort
SELECT ALL + col0 * + col1 - ( col0 ) FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT + col1 * - cor0.col2 * - ( + 90 + cor0.col0 ) FROM tab2 cor0
----
109174
257712
81189
query I rowsort
SELECT ALL - - 74 + col0 FROM tab0 cor0
----
109
163
98
query I rowsort
SELECT col2 * col1 - col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT - tab0.col2 * col0 * + col0 + ( + tab0.col1 ) FROM tab0
----
-1128
-18922
-649431
onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT - col0 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5271
SELECT - col0 / + col1 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * ( col0 ) + col2 * 59 col0 FROM tab0
----
12937
3454
4011
onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT tab2.col1 DIV + tab2.col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5273
SELECT tab2.col1 / + tab2.col0 AS col1 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1, tab0, tab1 AS cor0
----
20
skipif mysql # not compatible
query I rowsort
SELECT tab0.col0 * tab0.col2 + + CAST ( col0 AS REAL ) AS col1 FROM tab0
----
70
7387
816
query I rowsort
SELECT 11 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT ALL + ( 13 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT DISTINCT - 65 + col0 AS col0 FROM tab1 cor0
----
-1
-62
15
query I rowsort
SELECT ALL col0 * tab1.col2 AS col2 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 * col1 col2 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT + - col2 * - col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT + col0 DIV col0 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5282
SELECT + col0 / col0 col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( - 87 AS REAL ) AS col1 FROM tab2 cor0
----
-2262
-2349
-3306
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3
query I rowsort
SELECT DISTINCT 64 FROM tab0 cor0
----
64
query I rowsort
SELECT ALL + col1 * + 17 FROM tab1
----
170
221
442
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT col1 * CAST( col1 AS SIGNED ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5288
SELECT col1 * CAST ( col1 AS INTEGER ) FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5289
SELECT col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5289
SELECT col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + 55 * col2 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT col0 * col2 + col2 - - col2 AS col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT col0 * + 58 FROM tab2
----
406
4524
4582
query I rowsort
SELECT ALL - 13 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT ( - col2 ) DIV - col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT ( - col2 ) / - col1 FROM tab1
----
2
5
7
query I rowsort
SELECT - col1 + col2 + col2 * + col2 FROM tab1 AS cor0
----
2944
3296
9299
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + col0 * ( col0 ) + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + col2 + col1 * cor0.col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + - 46 + - col0 FROM tab1 AS cor0
----
-110
-126
-49
query I rowsort
SELECT ALL - cor0.col2 * - col2 * + col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT + col2 * col0 DIV + col0 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5302
SELECT + col2 * col0 / + col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * - tab2.col2 * col0 col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - cor0.col0 + + ( - col1 ) * col0 + ( - col1 * + cor0.col1 ) FROM tab0 cor0
----
-12839
-16469
-9484
query I rowsort
SELECT + col1 + - 60 FROM tab1 AS cor0
----
-34
-47
-50
query I rowsort
SELECT + col1 * - ( + col0 ) + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + 71 AS col1 FROM tab2 AS cor0
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT - col1 * 54 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-468
-8
-8
skipif mysql # not compatible
query I rowsort label-5313
SELECT - col1 * 54 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-468
-8
-8
query I rowsort
SELECT + ( + col1 ) * + col2 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
1482
605
857
query I rowsort
SELECT DISTINCT + tab2.col0 * ( - 69 ) AS col1 FROM tab2
----
-483
-5382
-5451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5316
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col1 * + col1 + 66 + - col0 FROM tab0 cor0
----
-177462
-329284
-737032
query I rowsort
SELECT 39 FROM tab2 AS cor0
----
39
39
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT ALL + CAST( - ( + col0 ) AS SIGNED ) + + CAST( 98 AS SIGNED ) FROM tab1 AS cor0
----
18
34
95
skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL + CAST ( - ( + col0 ) AS INTEGER ) + + CAST ( 98 AS INTEGER ) FROM tab1 AS cor0
----
18
34
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5320
SELECT ( - col2 ) * - col0 + - col1 + + 87 DIV col0 AS col1 FROM tab0 AS cor0
----
-60
709
7207
skipif mysql # not compatible
query I rowsort label-5320
SELECT ( - col2 ) * - col0 + - col1 + + 87 / col0 AS col1 FROM tab0 AS cor0
----
-60
709
7207
query I rowsort
SELECT DISTINCT + + ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT col0 + col1 * col1 + ( - col0 ) DIV + col0 AS col1 FROM tab1
----
163
248
678
skipif mysql # not compatible
query I rowsort label-5322
SELECT col0 + col1 * col1 + ( - col0 ) / + col0 AS col1 FROM tab1
----
163
248
678
query I rowsort
SELECT + col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT - 40 * + col2 AS col2 FROM tab1 cor0
----
-2160
-2280
-3840
query I rowsort
SELECT + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - 92 ) - - cor0.col0 col1 FROM tab2 cor0
----
-1485
-2845
-5350
onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT DISTINCT col1 DIV col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT col1 / col2 - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - ( col2 * + ( 40 ) ) AS col2 FROM tab2
----
-1040
-1080
-1520
query I rowsort
SELECT + - col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5333
SELECT cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5333
SELECT cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + ( + col1 ) AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + - col1 - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + - col0 + - 88 * col1 AS col1 FROM tab0 AS cor0
----
-7592
-8097
-8571
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
11020
25974
90532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col1 + - 58 * col2 AS col0 FROM tab2 AS cor0
----
-1449
-1535
-2187
query I rowsort
SELECT ALL - + col1 * ( - 16 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
119392
1552
45408
query I rowsort
SELECT - - col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - col0 + col2 * + col1 FROM tab2
----
1456
567
830
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab2
----
1534
646
837
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 64312dc66df177d8c745c63c0bdd4dc7
query I rowsort
SELECT ALL + col1 * + 84 - - 12 FROM tab1
----
1104
2196
852
query I rowsort
SELECT DISTINCT - tab0.col0 - col2 * + col1 AS col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT - col0 + + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
16144
36501
5636
onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT DISTINCT + col2 DIV - col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT + col2 / - col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # use DIV operator for integer division
query I rowsort label-5351
SELECT DISTINCT + 76 * col1 + tab1.col1 DIV + ( - col0 ) FROM tab1
----
1968
760
988
skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT + 76 * col1 + tab1.col1 / + ( - col0 ) FROM tab1
----
1968
760
988
query I rowsort
SELECT DISTINCT - 69 * - col1 FROM tab1
----
1794
690
897
query I rowsort
SELECT ALL + 57 FROM tab0
----
57
57
57
query I rowsort
SELECT + col1 + - col0 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT ALL 68 DIV + col0 AS col1 FROM tab2 cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL 68 / + col0 AS col1 FROM tab2 cor0
----
0
0
9
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT - + col0 DIV cor0.col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5357
SELECT - + col0 / cor0.col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + - 18 AS col0 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT ALL + + cor0.col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - - col0 + - ( col2 ) * + col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 45 AS col0 FROM tab1
----
45
45
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5363
SELECT ALL - + CAST( - cor0.col0 AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - + CAST ( - cor0.col0 AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + cor0.col1 * 69 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT ALL - 1 + col1 * col0 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT + col1 + - 55 AS col1 FROM tab2 AS cor0
----
-24
-38
4
query I rowsort
SELECT ALL - - col1 + cor0.col2 AS col2 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT DISTINCT + 5 DIV col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + 5 / col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 6 * col0 + + col2 - 36 FROM tab2 AS cor0
----
33
458
476
query I rowsort
SELECT DISTINCT - - ( col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT ALL + 66 * col2 + + col0 DIV col0 FROM tab1 AS cor0
----
3565
3763
6337
skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + 66 * col2 + + col0 / col0 FROM tab1 AS cor0
----
3565
3763
6337
query I rowsort
SELECT ALL ( cor0.col2 ) - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 68 ) col0 FROM tab1 AS cor0
----
68
query I rowsort
SELECT - cor2.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT + cor0.col2 - + col0 * + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-5376
SELECT + cor0.col2 - + col0 * + col1 / - col1 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col0 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + cor0.col2 * + col0 - ( col2 ) FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + + cor0.col1 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - - col0 + + cor0.col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 + 34 FROM tab1 cor0
----
1074
112
674
query I rowsort
SELECT DISTINCT + 63 * - col1 - col2 AS col1 FROM tab1
----
-1692
-687
-915
query I rowsort
SELECT ALL - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * + CAST ( col1 AS REAL ) + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * 0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col1 * 73 + - col0 FROM tab1 cor0
----
1895
666
869
query I rowsort
SELECT col1 + - 0 * - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col1 + + col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL cor0.col1 + 25 AS col1 FROM tab0 AS cor0
----
111
116
122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5390
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col0 * col1 + - 26 FROM tab1
----
1014
52
614
query I rowsort
SELECT ALL - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 * col1 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + + ( 63 ) AS col1 FROM tab2 AS cor0
----
63
63
63
query I rowsort
SELECT 56 + col1 FROM tab1 AS cor0
----
66
69
82
query I rowsort
SELECT col2 + + ( - col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + 42 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT col2 + ( - col1 ) FROM tab1
----
28
47
83
query I rowsort
SELECT + 37 * 16 AS col0 FROM tab2 AS cor0
----
592
592
592
query I rowsort
SELECT + 26 * 21 AS col2 FROM tab0 AS cor0
----
546
546
546
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a
query I rowsort
SELECT + col1 * + col0 + tab0.col0 AS col2 FROM tab0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5403
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5403
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 29 AS col0 FROM tab1
----
29
29
29
query I rowsort
SELECT DISTINCT 45 FROM tab0, tab1 AS cor0
----
45
query I rowsort
SELECT ALL 3 FROM tab0
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT - CAST( cor0.col2 AS SIGNED ) + - tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ec4b714b94f199380931a67a3fe458bf
skipif mysql # not compatible
query I rowsort label-5407
SELECT - CAST ( cor0.col2 AS INTEGER ) + - tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ec4b714b94f199380931a67a3fe458bf
query I rowsort
SELECT + 50 * tab1.col2 * + tab1.col0 + col0 FROM tab1
----
182464
384080
8103
query I rowsort
SELECT DISTINCT + col1 * 69 AS col0 FROM tab2
----
1173
2139
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * - col0 col2 FROM tab0
----
-2492
-672
-980
query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL + 23 AS col1 FROM tab0
----
23
23
23
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT 14 * col2 + - col0 + + 68 AS col1 FROM tab0
----
1127
47
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + ( col2 ) col0 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT 67 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 * + col0 col0 FROM tab2 AS cor0
----
224
2496
2528
query I rowsort
SELECT + - col2 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT col0 + 58 + cor0.col2 FROM tab2 AS cor0
----
162
175
92
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT DISTINCT cor0.col0 * + tab1.col0 + CAST( NULL AS DECIMAL ) FROM tab1, tab0 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT cor0.col0 * + tab1.col0 + CAST ( NULL AS REAL ) FROM tab1, tab0 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT + col1 + + ( - col0 ) * - col2 + ( + cor0.col1 ) FROM tab0 AS cor0
----
229
7480
964
query I rowsort
SELECT + + col0 * 91 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT + col1 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - col0 NOT BETWEEN ( - col0 + - col2 ) AND ( NULL )
----
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 WHERE NOT ( - cor0.col2 ) < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5428
SELECT ALL col1 DIV + col0 col2 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL col1 / + col0 col2 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 - col0 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT cor0.col2 * - cor0.col0 + + cor0.col1 * - col1 * col1 FROM tab0 AS cor0
----
-636848
-760869
-912708
query I rowsort
SELECT ALL + cor0.col2 * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col1 - - tab1.col0 AS col0 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) IN ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col2 + - col2 + col2 * + col0 FROM tab1
----
3534
54
7488
query I rowsort
SELECT tab1.col0 * - col0 * + col0 AS col1 FROM tab1
----
-262144
-27
-512000
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + col2 * col0 ) NOT BETWEEN NULL AND col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT tab0.col2 * col2 DIV + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5437
SELECT tab0.col2 * col2 / + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + tab1.col0 + + col0 + col2 FROM tab1
----
185
256
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col2 col1 FROM tab2
----
-1305
-190
-4576
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) BETWEEN NULL AND col2 / col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN - col2 + col0 * col0 * - col2 AND col1 * + col2
----
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col2 + + col0 )
----
query I rowsort
SELECT + col0 + col1 + col0 * tab0.col2 AS col2 FROM tab0
----
167
7478
902
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5445
SELECT col2 / col1 AS col1 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5446
SELECT ALL col2 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL col2 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT tab2.col2 + col0 * - col1 + col1 * + col0 * tab2.col0 FROM tab2
----
104792
1329
354380
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 * - cor0.col0 * col0 + col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0
----
query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - col2 - tab0.col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + - cor0.col0 * col0 + col1 * col0 AS col0 FROM tab1 cor0
----
-3456
-5360
69
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab2 cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT DISTINCT - + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT - + col2 / col2 AS col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL - cor0.col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT + col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 col0 FROM tab0 AS cor0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT - + col2 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5466
SELECT - + col2 / col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT ALL col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5468
SELECT ALL col2 DIV col1 AS col0 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL col2 / col1 AS col0 FROM tab2
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5469
SELECT ALL - ( col1 ) / + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL - ( col1 ) / + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + col1 + - 5 AS col0 FROM tab1 AS cor0
----
-33
-52
-88
query I rowsort
SELECT ALL 19 * col1 AS col2 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT ALL + + col1 * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + ( col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + 32 * col2 AS col1 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT ALL 29 AS col1 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT ALL - - col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 + ( - ( col1 ) ) * ( col0 + + col2 ) AS col0 FROM tab1 cor0
----
-1274
-1485
-2368
query I rowsort
SELECT ALL + col1 + + 51 FROM tab1 AS cor0
----
61
64
77
query I rowsort
SELECT ALL + col2 + col1 + + col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT DISTINCT + col1 DIV - col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2839
-7463
-98
skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT + col1 / - col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2839
-7463
-98
query I rowsort
SELECT ALL + col0 * ( col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col2 * - 17 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT + col2 * - 2 AS col0 FROM tab1 cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( - col0 ) + col0 col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + col0 + col2 * 16 FROM tab0 AS cor0
----
1401
51
552
query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + col0 * ( + 29 ) AS col1 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT ALL - + cor0.col1 * - 14 AS col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT + tab0.col0 - col1 * + col1 FROM tab0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + tab2.col1 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + col0 * col0 AS col1 FROM tab0 WHERE col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col1 * - col0 + col2
----
query I rowsort
SELECT col0 * + col0 + - col2 FROM tab0
----
1224
543
7839
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 ) NOT IN ( - tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 + col1 * + col2 col2 FROM tab0 WHERE NULL NOT BETWEEN - col2 + col1 AND ( col0 )
----
query I rowsort
SELECT col0 * - col0 + - tab2.col2 AS col1 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT - col0 + tab1.col0 + col1 AS col0 FROM tab1 WHERE + col2 < ( col1 * + col0 )
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col1 FROM tab0 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT tab0.col0 * + col1 + + col0 DIV col2 FROM tab0
----
2064
3430
8100
skipif mysql # not compatible
query I rowsort label-5503
SELECT tab0.col0 * + col1 + + col0 / col2 FROM tab0
----
2064
3430
8100
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 AND col1
----
query I rowsort
SELECT DISTINCT tab1.col0 * + col1 * col2 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col0 * + col2 + tab0.col2 + + col1 FROM tab0
----
133
7471
911
query I rowsort
SELECT ALL tab1.col0 * + col0 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT DISTINCT col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT col2 / col0 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + col0 + + tab0.col0 + + col1 FROM tab0
----
134
167
269
query I rowsort
SELECT DISTINCT + col1 * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 * - tab1.col2 - col2 AS col1 FROM tab1
----
-2970
-3306
-9312
query I rowsort
SELECT col2 * tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + tab1.col2 * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col1 * - col2 * + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - col1 + col1 * col0 ) AND col2 * + col1
----
query I rowsort
SELECT tab0.col1 * + col1 + - col0 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ALL + col0 * col1 - - col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL + col2 * + tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT col2 * + col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab0 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 41 * tab1.col2 FROM tab1
----
2214
2337
3936
query I rowsort
SELECT + col2 + - 9 * + col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT - cor0.col1 * - 21 AS col2 FROM tab2 AS cor0
----
1239
357
651
onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT DISTINCT - tab0.col2 DIV col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - tab0.col2 / col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT 65 FROM tab1
----
65
65
65
query I rowsort
SELECT DISTINCT 82 * - col2 FROM tab2
----
-2132
-2214
-3116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT ALL - CAST( 60 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - CAST ( 60 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT - + col1 * - cor0.col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 + 48 AS col0 FROM tab0 AS cor0
----
137
72
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5530
SELECT - col0 * CAST( 24 * col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-153600
-216
-98304
skipif mysql # not compatible
query I rowsort label-5530
SELECT - col0 * CAST ( 24 * col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-153600
-216
-98304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL col0 * + col1 * - 86 FROM tab1 AS cor0
----
-55040
-6708
-89440
query I rowsort
SELECT DISTINCT - 16 * - col2 * col0 FROM tab2
----
3024
32448
48032
query I rowsort
SELECT - ( - col2 + col1 ) * col1 AS col0 FROM tab0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT - 58 + + col2 * - col2 + - col2 FROM tab1
----
-3028
-3364
-9370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5537
SELECT + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5537
SELECT + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( - 71 ) * col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
-3268
-6790
1001
query I rowsort
SELECT + - 92 - - col2 AS col0 FROM tab0 AS cor0
----
-10
-59
-91
query I rowsort
SELECT + col1 + ( col1 ) * ( - col2 * col1 ) + cor0.col2 * col0 FROM tab2 AS cor0
----
-25727
-7963
-88419
query I rowsort
SELECT ALL 59 AS col0 FROM tab2 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT + + 28 + - 79 * col1 AS col2 FROM tab0 AS cor0
----
-6766
-7161
-7635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + cor0.col2 ) * col2 + col0 + + col2 col1 FROM tab2 AS cor0
----
1561
763
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT + + col2 + + col1 DIV - col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-5544
SELECT + + col2 + + col1 / - col1 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT DISTINCT + col2 + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT + col2 + col1 / col0 AS col2 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT + col1 + - col1 * col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - - col0 + col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT ALL - col2 DIV col1 col1 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL - col2 / col1 col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT 69 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT - + col1 + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 16 * col2 + - col1 FROM tab2 AS cor0
----
-463
-475
-625
query I rowsort
SELECT - - 67 FROM tab0 AS cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5554
SELECT - col0 + col1 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5554
SELECT - col0 + col1 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5555
SELECT + - col0 DIV - col0 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-5555
SELECT + - col0 / - col0 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - 69 AS col1 FROM tab2
----
-69
-69
-69
query I rowsort
SELECT 27 - + col1 FROM tab1 cor0
----
1
14
17
query I rowsort
SELECT + - 4 * col2 + - col1 * - col0 * + col1 FROM tab2 AS cor0
----
22679
271414
6619
query I rowsort
SELECT + + col0 - + cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col2 + ( cor0.col1 ) * + col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - + 5 * + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 99739a943df8f41edddb2227d2e0ae79
query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT col0 DIV 62 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5564
SELECT col0 / 62 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL + + 16 * cor0.col0 + cor0.col1 * + col2 FROM tab2 AS cor0
----
1910
2782
949
query I rowsort
SELECT ALL + tab1.col1 * - 3 AS col0 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT - ( 96 ) + - col0 FROM tab1 AS cor0
----
-160
-176
-99
query I rowsort
SELECT DISTINCT 8 FROM tab0
----
8
query I rowsort
SELECT - 50 AS col1 FROM tab0 AS cor0
----
-50
-50
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 62 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 62 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 93 + + col0 AS col1 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT - tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - + ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 2 FROM tab2 cor0
----
-2
query I rowsort
SELECT ALL - col2 * + 25 * + col2 FROM tab0 AS cor0
----
-168100
-25
-27225
query I rowsort
SELECT ALL 92 FROM tab1
----
92
92
92
query I rowsort
SELECT ALL + + 62 * col1 * cor0.col2 + - 92 FROM tab1 AS cor0
----
35248
77284
86956
query I rowsort
SELECT cor0.col2 + col1 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + 92 FROM tab1 AS cor0
----
1132
170
732
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col0 + cor0.col0 * col0 * - col2 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT DISTINCT + + col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - ( - tab2.col0 * + col0 ) AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + tab1.col0 * - ( - col1 ) * + 5 - - col1 FROM tab1
----
3210
416
5213
query I rowsort
SELECT + - 33 AS col2 FROM tab1 AS cor0
----
-33
-33
-33
query I rowsort
SELECT ALL 98 * col2 AS col1 FROM tab2
----
2548
2646
3724
query I rowsort
SELECT 52 + - 19 FROM tab1
----
33
33
33
query I rowsort
SELECT - col2 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - col2 + + col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - col2 * 38 FROM tab1 cor0
----
-2052
-2166
-3648
query I rowsort
SELECT ALL - col2 * - 90 AS col2 FROM tab0 AS cor0
----
2970
7380
90
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 * + tab0.col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 27 + col1 FROM tab1
----
-1
-14
-17
query I rowsort
SELECT tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - 89 * col1 FROM tab0
----
-7654
-8099
-8633
query I rowsort
SELECT 71 * cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e674318d1c1f37f21287c95f3070a6b9
query I rowsort
SELECT + cor0.col2 * - 64 AS col2 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col1 + - 91 * col2 FROM tab0 AS cor0
----
-2917
-7371
6
query I rowsort
SELECT + + col1 AS col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT DISTINCT - col1 + - tab2.col0 DIV col1 + + col0 DIV 32 AS col2 FROM tab2
----
-19
-31
-58
skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - col1 + - tab2.col0 / col1 + + col0 / 32 AS col2 FROM tab2
----
-19
-31
-58
query I rowsort
SELECT ALL tab0.col2 * tab0.col1 + 75 AS col1 FROM tab0
----
172
2913
7537
query I rowsort
SELECT ALL - col2 + col1 * - 59 AS col1 FROM tab1
----
-1588
-647
-863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( + tab2.col2 ) col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT 47 * 76 + tab1.col1 FROM tab1, tab2 AS cor0
----
3582
3585
3598
query I rowsort
SELECT ALL + col0 + - col0 + - ( + col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - col1 * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 5 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL + - col1 * 5 AS col0 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT - 65 * + col1 AS col0 FROM tab0 cor0
----
-5590
-5915
-6305
query I rowsort
SELECT ALL + 98 * - col2 + + col2 + col2 AS col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT 17 * - 48 + + col2 FROM tab0 AS cor0
----
-734
-783
-815
query I rowsort
SELECT ALL - ( - ( col0 ) ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 73 * + col2 col2 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT ALL + - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - ( cor0.col1 ) * - cor0.col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col1 * + 20 * col0 AS col0 FROM tab1 cor0
----
-12800
-1560
-20800
query I rowsort
SELECT ALL + cor0.col2 + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT - col1 DIV 54 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5625
SELECT - col1 / 54 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT ALL + CAST( NULL AS DECIMAL ) + col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL + CAST ( NULL AS REAL ) + col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT col1 + + col1 * 11 + - 43 FROM tab1
----
113
269
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * col0 + 85 AS col2 FROM tab2 AS cor0
----
2113
274
3087
query I rowsort
SELECT - col1 * col2 + cor0.col0 + col1 * col1 FROM tab1 AS cor0
----
-406
-725
-999
query I rowsort
SELECT ALL - + col1 + col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5633
SELECT + col0 + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5633
SELECT + col0 + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - cor0.col2 + col2 * - 73 AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 * col0 + ( + col2 * col0 + + ( col0 ) * col1 ) col2 FROM tab1 AS cor0
----
1088
4720
90
query I rowsort
SELECT ALL + col2 - col2 * + ( + ( + col0 ) ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + 81 + - col0 FROM tab2 AS cor0
----
2
3
74
query I rowsort
SELECT ALL + col2 + cor0.col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + cor0.col2 + - 61 AS col0 FROM tab1 AS cor0
----
-115
-118
-157
query I rowsort
SELECT ALL + - col1 + + col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - col2 * + 33 + col1 FROM tab0 cor0
----
1175
130
2797
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col1 * + col0 * - 7 + col2 FROM tab0
----
14481
23766
56775
query I rowsort
SELECT DISTINCT col2 * - 25 AS col2 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + cor0.col0 * + col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5652
SELECT - col1 * - col2 + 25 DIV - cor0.col0 FROM tab1 AS cor0
----
1248
1396
570
skipif mysql # not compatible
query I rowsort label-5652
SELECT - col1 * - col2 + 25 / - cor0.col0 FROM tab1 AS cor0
----
1248
1396
570
query I rowsort
SELECT ALL + 70 + - col0 FROM tab0 cor0
----
-19
35
46
query I rowsort
SELECT - - col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 38 * col1 AS col1 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT 12 * col0 + - tab1.col1 AS col2 FROM tab1
----
10
758
947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5658
SELECT DISTINCT cor0.col1 * + CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT cor0.col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT col2 * col2 * - col2 + - ( ( tab2.col2 ) ) + - CAST( + 25 AS SIGNED ) AS col0 FROM tab2
----
-17627
-19735
-54935
skipif mysql # not compatible
query I rowsort label-5659
SELECT col2 * col2 * - col2 + - ( ( tab2.col2 ) ) + - CAST ( + 25 AS INTEGER ) AS col0 FROM tab2
----
-17627
-19735
-54935
query I rowsort
SELECT 10 * col2 FROM tab2
----
260
270
380
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor1.col2 + + CAST ( 8 AS REAL ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e71de93d52e917ad2fdf1bdaf1f7a4f9
query I rowsort
SELECT ALL + + ( tab1.col1 ) AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 + col2 + col0 col2 FROM tab0
----
137
2
23
query I rowsort
SELECT DISTINCT 33 * col2 AS col2 FROM tab0
----
1089
2706
33
query I rowsort
SELECT 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT ALL col0 + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT 31 AS col1 FROM tab1 AS cor0
----
31
query I rowsort
SELECT - 1 + - cor0.col2 * + 82 FROM tab1 cor0
----
-4429
-4675
-7873
query I rowsort
SELECT 77 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + ( col1 ) + + 96 FROM tab2 AS cor0
----
113
127
155
query I rowsort
SELECT + 26 + - cor0.col0 FROM tab0 AS cor0
----
-63
-9
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL cor0.col2 + - col1 + - 8 AS col2 FROM tab0 AS cor0
----
-104
-17
-61
query I rowsort
SELECT ALL + + col1 * col1 + - col2 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - 66 - col2 FROM tab1 AS cor0
----
-120
-123
-162
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 66 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
66
query I rowsort
SELECT + 14 AS col2 FROM tab2, tab0 AS cor0, tab0, tab1 cor1
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff
query I rowsort
SELECT 0 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL - col0 * col0 + col0 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL + + col0 * + 53 FROM tab0 AS cor0
----
1272
1855
4717
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 ( + 87 ) FROM tab0
----
87
87
87
query I rowsort
SELECT ALL + - col1 * + col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 * col1 * col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL - 91 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-5689
SELECT + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - col2 - - col1 AS col1 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - ( cor0.col2 ) * + col0 col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ( - 36 ) - - col0 AS col1 FROM tab2 cor0
----
-29
42
43
query I rowsort
SELECT ALL - + 55 + ( - col2 ) * - 96 AS col2 FROM tab0 AS cor0
----
3113
41
7817
onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT + col1 DIV col0 + - col1 DIV + col0 - 77 FROM tab0 AS cor0
----
-77
-77
-77
skipif mysql # not compatible
query I rowsort label-5694
SELECT + col1 / col0 + - col1 / + col0 - 77 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL 31 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT ( tab2.col1 ) * col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + 6 * tab1.col1 * col0 FROM tab1
----
3840
468
6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT 64 DIV + ( + col0 ) AS col0 FROM tab2 cor0
----
0
0
9
skipif mysql # not compatible
query I rowsort label-5699
SELECT 64 / + ( + col0 ) AS col0 FROM tab2 cor0
----
0
0
9
query I rowsort
SELECT ( - col2 ) * col0 + + 21 - - col1 * col2 AS col1 FROM tab0 AS cor0
----
185
2067
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT + ( col1 ) DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5701
SELECT + ( col1 ) / + col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - ( cor0.col2 ) * - col1 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col0 - ( col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( + col2 ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 14 AS col1 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT 4 + cor0.col2 AS col0 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT + cor0.col0 + col2 * + ( - col0 * col1 ) FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT + 79 AS col2 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT ALL + 96 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT - col0 * + 79 + col2 AS col2 FROM tab2 AS cor0
----
-526
-6136
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT - col0 + col1 DIV col2 AS col2 FROM tab0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-5712
SELECT - col0 + col1 / col2 AS col2 FROM tab0
----
-22
-88
62
query I rowsort
SELECT - col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col2 * + col2 + 2 FROM tab1
----
2918
3251
9218
query I rowsort
SELECT - 36 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT col0 * - col1 + col1 * tab1.col0 * - col0 AS col1 FROM tab1
----
-312
-41600
-84240
query I rowsort
SELECT ALL col0 + + col0 + + col0 FROM tab1
----
192
240
9
query I rowsort
SELECT DISTINCT - - col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + 55 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
358
4264
4307
query I rowsort
SELECT ALL + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT ALL - - cor0.col2 DIV col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL - - cor0.col2 / col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + 35 * - col2 AS col0 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT + 98 * col0 * col1 + + col1 FROM tab1 AS cor0
----
101933
62730
7670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col2 FROM tab0 cor0
----
49
49
49
query I rowsort
SELECT 78 AS col2 FROM tab0 cor0
----
78
78
78
query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5729
SELECT col2 * + CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5729
SELECT col2 * + CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
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-5731
SELECT DISTINCT - col0 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - col0 / + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT ALL - col2 + + 98 AS col1 FROM tab1 cor0
----
2
41
44
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT 15 - - col2 AS col2 FROM tab0 AS cor0
----
16
48
97
query I rowsort
SELECT + col0 * + col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - ( ( - col1 ) ) + col2 * col0 AS col2 FROM tab2
----
2087
220
3019
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
query I rowsort
SELECT - 73 + 31 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL - 24 AS col0 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT - col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL - col2 * 1 - - col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT DISTINCT - + col2 * - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT - + col2 * - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( col0 + + tab1.col2 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT col1 * - tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 + + col0 * 78 FROM tab0 AS cor0
----
1958
2827
7033
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab1 AS cor0
----
45
query I rowsort
SELECT ALL ( - col1 ) * + col2 + col1 * + col0 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT + - col1 * + col2 * 79 + 83 + + col1 AS col2 FROM tab0 AS cor0
----
-224033
-589324
-7483
query I rowsort
SELECT col0 - - col2 * tab2.col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 AS col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + ( - 0 ) + - tab2.col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT ( col0 ) + + col2 * + col0 * - col1 AS col0 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT - CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5757
SELECT - CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - 86 ) AS col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT - ( - col0 ) * - col2 - 68 AS col1 FROM tab0
----
-103
-7366
-860
query I rowsort
SELECT ALL + col2 * - col0 - + ( ( col0 ) ) FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + 76 * + col2 FROM tab2 AS cor0
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT + 53 * + col2 DIV + col2 - - col1 * - col2 FROM tab0 cor0
----
-2785
-44
-7409
skipif mysql # not compatible
query I rowsort label-5763
SELECT + 53 * + col2 / + col2 - - col1 * - col2 FROM tab0 cor0
----
-2785
-44
-7409
query I rowsort
SELECT ALL 51 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c9771396949659773ab2fa2a1ac228de
query I rowsort
SELECT ALL 54 * - col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT ALL - col0 + - col1 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
-3500
-351
-937
onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT ALL col0 + ( col0 + 76 ) DIV - tab0.col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL col0 + ( col0 + 76 ) / - tab0.col1 FROM tab0
----
23
34
88
query I rowsort
SELECT - col1 * - col0 - + col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL + col0 * col2 + col2 * - col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT ALL col0 * col2 DIV col1 + + col2 AS col2 FROM tab0
----
1
162
42
skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL col0 * col2 / col1 + + col2 AS col2 FROM tab0
----
1
162
42
query I rowsort
SELECT + tab0.col0 * col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 * - col2 + 54 AS col2 FROM tab1
----
-108
-3594
-7626
query I rowsort
SELECT tab1.col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT + - 4 + col0 * 35 FROM tab2 AS cor0
----
241
2726
2761
query I rowsort
SELECT ALL col2 * - col2 AS col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5777
SELECT - CAST( NULL AS SIGNED ) + col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5777
SELECT - CAST ( NULL AS INTEGER ) + col1 * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * - col2 * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - 68 - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-103
-157
-92
query I rowsort
SELECT ALL - col2 * 69 - - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1118
-1134
-1178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5782
SELECT + - CAST( col1 AS SIGNED ) * + col1 * 15 AS col1 FROM tab2 AS cor0
----
-14415
-4335
-52215
skipif mysql # not compatible
query I rowsort label-5782
SELECT + - CAST ( col1 AS INTEGER ) * + col1 * 15 AS col1 FROM tab2 AS cor0
----
-14415
-4335
-52215
onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT DISTINCT col1 DIV + col0 AS col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT col1 / + col0 AS col0 FROM tab1
----
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5784
SELECT - col1 * CAST( 90 AS SIGNED ) + col2 FROM tab1
----
-1074
-2286
-843
skipif mysql # not compatible
query I rowsort label-5784
SELECT - col1 * CAST ( 90 AS INTEGER ) + col2 FROM tab1
----
-1074
-2286
-843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( 43 ) col0 FROM tab0 AS cor0
----
1419
3526
43
query I rowsort
SELECT ( col0 ) - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + 21 AS col1 FROM tab2 AS cor0
----
21
21
21
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col1 * ( col2 ) + + ( col2 ) FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT ALL ( + 26 ) + + tab1.col2 DIV col2 col1 FROM tab1
----
27
27
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL ( + 26 ) + + tab1.col2 / col2 col1 FROM tab1
----
27
27
27
query I rowsort
SELECT - + col2 + - col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2130
-3397
-8263
query I rowsort
SELECT DISTINCT - 3 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT ALL + + col0 * + col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - cor0.col0 + 55 * + col2 FROM tab1 AS cor0
----
2967
3071
5200
query I rowsort
SELECT + + 75 * col0 FROM tab1 cor0
----
225
4800
6000
query I rowsort
SELECT DISTINCT col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL - + col0 - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - + col0 * + 73 - col2 AS col0 FROM tab1 AS cor0
----
-273
-4729
-5936
query I rowsort
SELECT ALL + + col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 * 15 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT ALL + 93 AS col0 FROM tab1 AS cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT - - col0 * col1 * - col1 + + col2 - + 84 DIV + cor0.col2 FROM tab0 AS cor0
----
-177473
-329398
-736928
skipif mysql # not compatible
query I rowsort label-5802
SELECT - - col0 * col1 * - col1 + + col2 - + 84 / + cor0.col2 FROM tab0 AS cor0
----
-177473
-329398
-736928
query I rowsort
SELECT + col0 + 99 + - col2 AS col2 FROM tab1 AS cor0
----
106
48
83
query I rowsort
SELECT ALL + + 54 AS col0 FROM tab0 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT 94 * - col0 AS col0 FROM tab2 AS cor0
----
-658
-7332
-7426
query I rowsort
SELECT col0 * col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT col2 * ( col2 ) AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT tab0.col0 * col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 * 91 + col1 FROM tab1 AS cor0
----
299
5834
7293
query I rowsort
SELECT DISTINCT - + 72 + + tab2.col1 AS col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
-13
-41
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT 37 DIV + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-5811
SELECT 37 / + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT ALL - col1 DIV 23 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - col1 / 23 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL col0 * + col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col1 * cor0.col2 + cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT - - col2 + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-5815
SELECT - - col2 + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col1 * 20 AS col1 FROM tab2 cor0
----
1180
340
620
query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1, tab2 AS cor0
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-5818
SELECT + + cor0.col0 + 1 * ( cor0.col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-5818
SELECT + + cor0.col0 + 1 * ( cor0.col0 ) / col2 AS col0 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT DISTINCT col2 + ( 11 + col1 ) * col2 AS col2 FROM tab0 AS cor0
----
109
3234
8446
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
query I rowsort
SELECT - 5 + - col2 * - col2 FROM tab0 AS cor0
----
-4
1084
6719
query I rowsort
SELECT - + col2 * + col0 * - col0 + 70 * + ( col0 ) + - 77 * col1 * - cor0.col2 FROM tab1 AS cor0
----
108804
281842
716096
query I rowsort
SELECT + col2 * + 3 AS col0 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT + 42 + - 19 + col1 * + ( + cor0.col1 + col0 ) AS col0 FROM tab0 AS cor0
----
12827
16403
9483
query I rowsort
SELECT + 24 + - col1 FROM tab2 AS cor0
----
-35
-7
7
query I rowsort
SELECT - - col2 * 6 FROM tab0 AS cor0
----
198
492
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
-48
64
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5828
SELECT - col1 * CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5828
SELECT - col1 * CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT - - 42 DIV - col0 + - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
37
skipif mysql # not compatible
query I rowsort label-5830
SELECT - - 42 / - col0 + - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
37
query I rowsort
SELECT - - 34 AS col0 FROM tab2 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT DISTINCT - col2 + + cor0.col1 DIV cor0.col2 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT - col2 + + cor0.col1 / cor0.col2 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT DISTINCT col0 * col0 - col1 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + col1 + col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - - 8 + + col0 AS col0 FROM tab0 AS cor0
----
32
43
97
query I rowsort
SELECT DISTINCT - 99 * - col0 + col2 FROM tab2 cor0
----
720
7748
7859
query I rowsort
SELECT ALL 88 * col2 + + col1 * + ( - col2 + - col0 ) AS col2 FROM tab0 AS cor0
----
-1998
-3404
-8345
query I rowsort
SELECT - ( + col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL 35 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1569
681
872
onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT DISTINCT 54 DIV + col0 + col1 AS col0 FROM tab2 cor0
----
17
38
59
skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT 54 / + col0 + col1 AS col0 FROM tab2 cor0
----
17
38
59
query I rowsort
SELECT DISTINCT + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 56 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + col1 + 1 * col2 * col2 - col2 AS col0 FROM tab2 AS cor0
----
1423
709
733
query I rowsort
SELECT col0 * tab1.col1 * col0 + + col2 AS col0 FROM tab1
----
288
41017
83296
query I rowsort
SELECT ALL + ( 8 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + 98 + - 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5849
SELECT ALL + col2 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + col2 + col1 / col0 AS col1 FROM tab2 AS cor0
----
26
31
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5850
SELECT + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - - col2 col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - col1 + col0 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
208
40950
83187
query I rowsort
SELECT DISTINCT - col2 * - col1 + + 6 AS col0 FROM tab0 AS cor0
----
103
2844
7468
query I rowsort
SELECT DISTINCT + + col0 - + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 * col0 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 61 AS col2 FROM tab0
----
61
61
61
query I rowsort
SELECT - 20 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT - tab1.col1 AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
26
27
38
query I rowsort
SELECT - col0 * + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
10
13
26
query I rowsort
SELECT ALL + 40 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - - 95 + - col2 AS col0 FROM tab0 cor0
----
13
62
94
query I rowsort
SELECT ALL ( 6 ) FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT 6 * col1 AS col0 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT + + col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + 63 * - col1 AS col2 FROM tab2 AS cor0
----
1071
1953
3717
query I rowsort
SELECT + - 15 * - col0 + + ( - col0 ) FROM tab2 cor0
----
1092
1106
98
query I rowsort
SELECT col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col2 + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + col1 + + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT + col2 + + 63 + tab0.col2 AS col1 FROM tab0
----
129
227
65
query I rowsort
SELECT - - col2 * - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * ( - col0 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - col1 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL col2 + ( ( col2 ) * - col2 ) + + col1 * tab1.col2 FROM tab1
----
-1458
-2622
-7872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT ( + cor0.col2 ) * col2 * CAST( NULL AS SIGNED ) + col1 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5880
SELECT ( + cor0.col2 ) * col2 * CAST ( NULL AS INTEGER ) + col1 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( 93 ) + - col1 * ( + 32 ) * col0 AS col2 FROM tab2
----
-147171
-42883
-6851
query I rowsort
SELECT ( + 12 ) FROM tab2, tab0, tab1 cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT ALL cor0.col0 + 86 FROM tab1 AS cor0
----
150
166
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 + col1 col2 FROM tab2 cor0
----
101
129
87
query I rowsort
SELECT DISTINCT - 23 + col0 AS col2 FROM tab2 AS cor0
----
-16
55
56
query I rowsort
SELECT - - col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - 24 + col0 * + col0 * - 68 AS col2 FROM tab1 AS cor0
----
-278552
-435224
-636
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5889
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * - col0 AS col2 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 - col0 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 55 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT 77 AS col1 FROM tab2
----
77
77
77
query I rowsort
SELECT ALL col1 * - col0 * - col1 + - 81 - col2 * - col1 AS col0 FROM tab0
----
180261
329331
744390
query I rowsort
SELECT + 91 FROM tab0 cor0
----
91
91
91
query I rowsort
SELECT cor0.col2 * - 6 + - col2 FROM tab2 AS cor0
----
-182
-189
-266
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5897
SELECT ALL col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - - cor0.col0 * ( cor0.col1 ) + + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - col0 + 21 AS col0 FROM tab0 AS cor0
----
-14
-3
-68
query I rowsort
SELECT + col1 + 63 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
18224
219362
60574
query I rowsort
SELECT - - col1 + - cor0.col1 * cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT - - col2 - col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5905
SELECT + CAST( + 33 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
skipif mysql # not compatible
query I rowsort label-5905
SELECT + CAST ( + 33 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT ALL + col2 + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - col2 + - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + + col0 - - col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT col1 + - ( + col0 ) DIV + col1 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-5909
SELECT col1 + - ( + col0 ) / + col1 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT DISTINCT + col2 * - col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1690
-1733
-4157
query I rowsort
SELECT DISTINCT + col1 * 75 + - 69 FROM tab1
----
1881
681
906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5912
SELECT ( - col0 ) + - CAST( + 77 AS SIGNED ) * col0 FROM tab2
----
-546
-6084
-6162
skipif mysql # not compatible
query I rowsort label-5912
SELECT ( - col0 ) + - CAST ( + 77 AS INTEGER ) * col0 FROM tab2
----
-546
-6084
-6162
query I rowsort
SELECT DISTINCT - col0 * 47 + 88 FROM tab1 AS cor0
----
-2920
-3672
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col1 + col2 * col0 * - col0 col1 FROM tab2 AS cor0
----
-1106
-153582
-235815
query I rowsort
SELECT - + ( ( - col2 ) ) + 12 FROM tab0 cor0
----
13
45
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5917
SELECT col2 DIV tab2.col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5917
SELECT col2 / tab2.col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL col0 * + 80 * 75 - + col0 FROM tab0
----
143976
209965
533911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5919
SELECT - - CAST( NULL AS SIGNED ) * 76 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5919
SELECT - - CAST ( NULL AS INTEGER ) * 76 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 5 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT col0 * + col0 + + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
45
6051
6262
query I rowsort
SELECT cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 49 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 49 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT CAST( NULL AS SIGNED ) - - 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5924
SELECT CAST ( NULL AS INTEGER ) - - 3 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) * col2 + - cor0.col1 * 83 * + col0 AS col1 FROM tab2 cor0
----
-108467
-17822
-379938
query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col0 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT DISTINCT col1 * - 47 + - col0 + - col0 DIV - tab0.col0 col2 FROM tab0
----
-4065
-4365
-4593
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT col1 * - 47 + - col0 + - col0 / - tab0.col0 col2 FROM tab0
----
-4065
-4365
-4593
query I rowsort
SELECT - col0 * 80 + col2 FROM tab2
----
-533
-6214
-6282
query I rowsort
SELECT ALL col1 * - col0 + + 18 FROM tab1
----
-1022
-60
-622
query I rowsort
SELECT + col0 + 25 + col1 * col1 AS col0 FROM tab2
----
3584
393
993
query I rowsort
SELECT DISTINCT - col1 + - 45 * + col1 + col0 AS col1 FROM tab1
----
-1193
-396
-518
query I rowsort
SELECT DISTINCT - col2 + + 75 * 32 AS col2 FROM tab0
----
2318
2367
2399
query I rowsort
SELECT col2 * + col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 + col2 + + col0 AS col1 FROM tab0
----
-29
-61
80
query I rowsort
SELECT DISTINCT col0 + - 20 FROM tab1
----
-17
44
60
query I rowsort
SELECT DISTINCT 13 - + col2 * + 45 * 3 FROM tab1 AS cor0
----
-12947
-7277
-7682
query I rowsort
SELECT ALL - 12 AS col0 FROM tab1 AS cor0
----
-12
-12
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + - 0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 90 AS col2 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + col1 - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL - + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT ALL 85 * col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5943
SELECT ALL 85 * col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL col2 * col0 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - 6 * + col1 + col1 * cor0.col1 FROM tab2 cor0
----
187
3127
775
query I rowsort
SELECT 8 * - col0 FROM tab1 cor0
----
-24
-512
-640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT DISTINCT + col0 * cor0.col0 + + CAST( NULL AS SIGNED ) - ( col0 ) * CAST( col2 AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + col0 * cor0.col0 + + CAST ( NULL AS INTEGER ) - ( col0 ) * CAST ( col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT 99 + col2 AS col2 FROM tab1
----
153
156
195
query I rowsort
SELECT ALL 69 + - col2 + + col1 FROM tab0
----
122
165
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5952
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 FROM tab0
----
NULL
query I rowsort
SELECT + 91 FROM tab1
----
91
91
91
query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT + col0 * - col0 * + col2 - col1 DIV + col0 AS col1 FROM tab2
----
-1327
-158184
-237158
skipif mysql # not compatible
query I rowsort label-5955
SELECT + col0 * - col0 * + col2 - col1 / + col0 AS col1 FROM tab2
----
-1327
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT ALL 75 + col2 DIV - col2 AS col1 FROM tab1
----
74
74
74
skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL 75 + col2 / - col2 AS col1 FROM tab1
----
74
74
74
query I rowsort
SELECT - 92 * + col2 - - col1 AS col1 FROM tab2
----
-2333
-2453
-3479
query I rowsort
SELECT 52 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-156
-3328
-4160
query I rowsort
SELECT - 72 * + col2 FROM tab0 AS cor0
----
-2376
-5904
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * - col2 col0 FROM tab0 AS cor0
----
-1551
-3854
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT DISTINCT - 99 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT - 99 / - col2 AS col0 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT ALL - 15 + - col0 DIV - col0 + col1 col1 FROM tab1 AS cor0
----
-1
-4
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL - 15 + - col0 / - col0 + col1 col1 FROM tab1 AS cor0
----
-1
-4
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col2 FROM tab1
----
54
57
96
query I rowsort
SELECT 12 FROM tab0, tab2 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2
----
28
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT 12 * tab2.col2 AS col0 FROM tab2
----
312
324
456
query I rowsort
SELECT ALL + 70 AS col1 FROM tab0 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + 41 + - col2 FROM tab0 AS cor0
----
-41
40
8
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( cor0.col2 ) * + col1 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT + col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT - + 94 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5974
SELECT - + 94 / - col2 AS col1 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT ALL - - col0 * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL - - col0 * col1 / - col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - + ( col1 ) + 33 FROM tab0 AS cor0
----
-53
-58
-64
query I rowsort
SELECT + 88 + col1 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT + - col0 + - col0 - 79 AS col1 FROM tab1 AS cor0
----
-207
-239
-85
query I rowsort
SELECT ( col2 ) * - col2 + + col2 - + col0 FROM tab0 AS cor0
----
-1080
-35
-6731
query I rowsort
SELECT + col1 * col2 + - col2 * - col2 + - cor0.col0 * - ( + cor0.col0 ) FROM tab0 cor0
----
1323
22107
4503
query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - col0 * 84 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT ALL + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col0 * - ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col2 + 90 * 79 AS col2 FROM tab2 AS cor0
----
7072
7083
7084
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5988
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + 39 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + 39 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col1 + cor0.col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + - col1 * - 70 + col2 * col1 FROM tab2 AS cor0
----
1836
3007
5664
query I rowsort
SELECT + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT col1 DIV + col1 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5993
SELECT col1 / + col1 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + 98 FROM tab1, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-5995
SELECT + 73 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5995
SELECT + 73 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + - col2 * - col2 FROM tab2 AS cor0
----
1482
702
756
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab2 cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215
query I rowsort
SELECT 98 FROM tab2 AS cor0
----
98
98
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT col2 * CAST( col2 * + col2 AS SIGNED ) FROM tab2
----
17576
19683
54872
skipif mysql # not compatible
query I rowsort label-5999
SELECT col2 * CAST ( col2 * + col2 AS INTEGER ) FROM tab2
----
17576
19683
54872
query I rowsort
SELECT ALL 77 * + col0 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT - col2 * + 40 + col0 * - ( col1 * col0 ) FROM tab2 AS cor0
----
-107617
-2599
-359996
query I rowsort
SELECT DISTINCT + ( - col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 27 + col1 * + col0 FROM tab2 cor0
----
1370
244
4629
query I rowsort
SELECT ALL 34 FROM tab0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT DISTINCT + col2 + cor0.col1 DIV col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6005
SELECT DISTINCT + col2 + cor0.col1 / col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT - ( - col0 ) + 60 + col2 FROM tab0 AS cor0
----
117
231
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 * col1 + col0 ) col1 FROM tab1
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col2 FROM tab2
----
46
46
46
query I rowsort
SELECT DISTINCT - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-59
query I rowsort
SELECT 61 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab1.col1 * 14 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 115b668dcc332f7fa8ae4851324e54ab
query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + 90 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT col0 + 49 FROM tab0 AS cor0
----
138
73
84
query I rowsort
SELECT col2 * - col0 + 23 FROM tab1 cor0
----
-139
-3625
-7657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6017
SELECT ALL - + cor0.col1 * CAST( + 54 AS SIGNED ) + + col0 FROM tab1 cor0
----
-1401
-476
-622
skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - + cor0.col1 * CAST ( + 54 AS INTEGER ) + + col0 FROM tab1 cor0
----
-1401
-476
-622
query I rowsort
SELECT col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6019
SELECT DISTINCT - col1 + + cor0.col1 * + ( - col0 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6019
SELECT DISTINCT - col1 + + cor0.col1 * + ( - col0 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 - + col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT DISTINCT col0 DIV + col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT col0 / + col2 - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT + col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT ALL + cor0.col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + cor0.col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT col1 * 1 + cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6024
SELECT col1 * 1 + cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - col0 * col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT DISTINCT - col0 * - 41 + ( - cor0.col2 ) DIV 44 AS col0 FROM tab1 AS cor0
----
122
2623
3278
skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT - col0 * - 41 + ( - cor0.col2 ) / 44 AS col0 FROM tab1 AS cor0
----
122
2623
3278
query I rowsort
SELECT DISTINCT + col0 * 84 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT ALL - cor0.col2 * 59 FROM tab1 AS cor0
----
-3186
-3363
-5664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 42 * - col0 * col1 col2 FROM tab2 cor0
----
-193343
-56423
-9145
query I rowsort
SELECT - cor0.col0 * + col1 - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL 8 * col2 AS col1 FROM tab2
----
208
216
304
onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL - cor0.col0 - col0 * col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-187
-3430
-86
skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - cor0.col0 - col0 * col1 / + col2 AS col2 FROM tab0 AS cor0
----
-187
-3430
-86
query I rowsort
SELECT + + col0 + 33 FROM tab2 AS cor0
----
111
112
40
query I rowsort
SELECT ALL + col2 - cor0.col0 FROM tab2 cor0
----
-41
-52
20
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
query I rowsort
SELECT + - 6 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL - + cor0.col1 + col1 + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT DISTINCT - col0 DIV col2 - - col2 DIV + col2 FROM tab0 cor0
----
-34
0
1
skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT - col0 / col2 - - col2 / + col2 FROM tab0 cor0
----
-34
0
1
query I rowsort
SELECT - cor0.col0 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL + 48 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL - + col2 + - col1 * ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT ALL - 89 * + col1 * CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL - 89 * + col1 * CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + 35 - - col2 * col2 AS col2 FROM tab2
----
1479
711
764
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2
----
87
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 AS cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
query I rowsort
SELECT + 9 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL + 4 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT DISTINCT - col1 * - col2 * - cor0.col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * cor0.col1 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + 17 AS col1 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT + cor1.col0 * - 85 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8834f1ef6d5d4de8849ebd2ddf39b717
query I rowsort
SELECT + 58 + tab1.col2 * - col2 FROM tab1
----
-2858
-3191
-9158
query I rowsort
SELECT DISTINCT - ( - col2 ) * col0 AS col1 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) + 2 col2 FROM tab2 AS cor0
----
19
33
61
query I rowsort
SELECT ALL - ( + col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col0 + cor0.col1 * col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6060
SELECT - col2 / col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - ( col2 ) * - 83 + + col0 FROM tab1 AS cor0
----
4485
4795
8048
query I rowsort
SELECT ALL - + col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 col0 FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT ALL - ( - col0 ) FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT ALL col2 * CAST( 61 AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
34770
76128
85644
skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL col2 * CAST ( 61 AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
34770
76128
85644
query I rowsort
SELECT ALL - col1 * + col0 * 48 FROM tab2 AS cor0
----
-10416
-220896
-64464
query I rowsort
SELECT - 42 + - 68 FROM tab1, tab1 AS cor0
----
9 values hashing to aea35ff6aa55a2cb3436ce7f4db01e9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT - - col1 + - 83 FROM tab2 AS cor0
----
-24
-52
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT DISTINCT tab2.col2 DIV col0 AS col2 FROM tab2
----
0
3
skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT tab2.col2 / col0 AS col2 FROM tab2
----
0
3
query I rowsort
SELECT DISTINCT col1 * + ( 3 ) AS col1 FROM tab1 cor0
----
30
39
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT - cor0.col2 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6073
SELECT - cor0.col2 / + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1 AS cor0
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT DISTINCT - ( col2 ) DIV + col1 + - 91 + + 19 AS col1 FROM tab0 AS cor0
----
-72
skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - ( col2 ) / + col1 + - 91 + + 19 AS col1 FROM tab0 AS cor0
----
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * 34 + col2 col1 FROM tab2
----
366
367
378
query I rowsort
SELECT ALL - ( col2 ) * + col1 * + 69 FROM tab1
----
-39330
-86112
-96876
query I rowsort
SELECT DISTINCT - - 10 FROM tab2 AS cor0
----
10
query I rowsort
SELECT - 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT ALL + col1 * - col1 + col1 DIV - 36 AS col2 FROM tab0 AS cor0
----
-7398
-8283
-9411
skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL + col1 * - col1 + col1 / - 36 AS col2 FROM tab0 AS cor0
----
-7398
-8283
-9411
query I rowsort
SELECT DISTINCT - ( + col0 ) - - col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + + col1 + 64 * col1 FROM tab1 cor0
----
1690
650
845
query I rowsort
SELECT ( cor0.col2 ) * cor0.col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL ( + col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + - ( - col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col1 + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT - col2 DIV - cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6088
SELECT - col2 / - cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT col0 + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT + 86 * + col1 AS col1 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL 63 * cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
10647
42588
6300
query I rowsort
SELECT DISTINCT - - 69 AS col1 FROM tab1 AS cor0
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6093
SELECT ALL - - ( col0 ) * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - - ( col0 ) * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col1 + 66 FROM tab0
----
152
157
163
query I rowsort
SELECT ALL + tab1.col0 * col2 + - col2 AS col1 FROM tab1
----
108
3591
7584
query I rowsort
SELECT - 68 + - 27 AS col0 FROM tab2
----
-95
-95
-95
query I rowsort
SELECT ALL col2 * col1 + col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL ( - col1 ) + - col0 AS col2 FROM tab0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6100
SELECT CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 2e3240e8d3c0c7c6ff427f9572ba362d
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 94 ) col1 FROM tab0 AS cor0
----
-94
-94
-94
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc
query I rowsort
SELECT DISTINCT tab1.col2 * - ( 62 ) AS col2 FROM tab1
----
-3348
-3534
-5952
query I rowsort
SELECT ALL - cor1.col2 + cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to a94a44cb20b21603860a4a213701f42f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab2
----
11
11
11
query I rowsort
SELECT tab1.col0 + - 81 FROM tab1
----
-1
-17
-78
query I rowsort
SELECT - 60 AS col1 FROM tab0
----
-60
-60
-60
query I rowsort
SELECT 47 FROM tab1
----
47
47
47
query I rowsort
SELECT ALL + 49 AS col1 FROM tab0
----
49
49
49
query I rowsort
SELECT DISTINCT 48 * tab2.col0 * + 94 + col2 * col2 AS col2 FROM tab2
----
32313
352612
357892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * + col2 col1 FROM tab0
----
2739
6806
83
query I rowsort
SELECT - 41 * col2 + 60 FROM tab1 AS cor0
----
-2154
-2277
-3876
query I rowsort
SELECT ALL col0 * col2 + 2 FROM tab1 AS cor0
----
164
3650
7682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col1 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 55 * col2 AS col0 FROM tab1
----
2970
3135
5280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT DISTINCT col1 * CAST( - 19 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1121
-323
-589
skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT col1 * CAST ( - 19 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT ALL - col2 - - ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - cor0.col2 * - ( - col0 ) FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT col0 DIV ( col2 ) + - cor0.col0 DIV 13 AS col1 FROM tab1 AS cor0
----
-3
-6
0
skipif mysql # not compatible
query I rowsort label-6122
SELECT col0 / ( col2 ) + - cor0.col0 / 13 AS col1 FROM tab1 AS cor0
----
-3
-6
0
query I rowsort
SELECT - - col2 * col0 + - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + - col1 * - 59 FROM tab2 cor0
----
1802
3455
965
query I rowsort
SELECT col1 * + 53 * + col1 AS col0 FROM tab2
----
15317
184493
50933
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col1 + + col1 * col1 FROM tab1 AS cor0
----
110
182
702
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3
query I rowsort
SELECT + - 63 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
42588
45927
90972
query I rowsort
SELECT col2 + + col0 + col0 FROM tab2 AS cor0
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6132
SELECT + - col1 * + col0 DIV col0 + col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6132
SELECT + - col1 * + col0 / col0 + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * + cor0.col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + + 2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col2 * 72 * - tab1.col0 + ( - col1 ) FROM tab1
----
11638
262646
552947
query I rowsort
SELECT + 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ( + cor0.col0 ) + + col1 * col2 * col2 FROM tab1 cor0
----
119888
32554
75819
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 * col0 + 30 FROM tab1 AS cor0
----
-204
-40930
-83170
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 26 + col1 * col0 FROM tab2 AS cor0
----
1369
243
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT DISTINCT col0 DIV - col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT col0 / - col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + 71 + + col2 AS col1 FROM tab0 AS cor0
----
-38
-70
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6146
SELECT ALL - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col2 * + 90 AS col1 FROM tab1 AS cor0
----
-4860
-5130
-8640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 95 ) * + col2 col1 FROM tab2 AS cor0
----
2470
2565
3610
query I rowsort
SELECT ALL - - 33 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT ALL - + col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col0 * col2 - col0 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - 79 AS col2 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT ALL cor0.col2 DIV + col2 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL cor0.col2 / + col2 AS col1 FROM tab1 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 + 48 FROM tab1 AS cor0
----
112
128
51
query I rowsort
SELECT - ( - 58 ) FROM tab0 cor0
----
58
58
58
query I rowsort
SELECT ALL ( col0 ) + col2 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - 43 * 81 FROM tab2 AS cor0
----
-3483
-3483
-3483
query I rowsort
SELECT ALL + col1 + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 30 * - col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
query I rowsort
SELECT DISTINCT - ( col1 ) + + cor0.col1 AS col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT ALL + + cor0.col0 - col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL + + cor0.col0 - col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
4
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6167
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 83 FROM tab0 cor0
----
83
83
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6169
SELECT ALL ( + col1 ) + col2 + CAST( NULL AS DECIMAL ) * + 28 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL ( + col1 ) + col2 + CAST ( NULL AS REAL ) * + 28 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6170
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 - + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 - + col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - col0 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT ALL - 64 + + col1 DIV + ( col0 ) AS col1 FROM tab0 AS cor0
----
-61
-62
-63
skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL - 64 + + col1 / + ( col0 ) AS col1 FROM tab0 AS cor0
----
-61
-62
-63
query I rowsort
SELECT DISTINCT - 88 * - col1 AS col1 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT - cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + + 39 - col2 AS col1 FROM tab0 AS cor0
----
-43
38
6
query I rowsort
SELECT 43 + col1 - 9 FROM tab1 AS cor0
----
44
47
60
query I rowsort
SELECT DISTINCT - + col1 + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 60 AS col2 FROM tab0 AS cor0
----
60
query I rowsort
SELECT + col1 + + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT col1 * col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 - - col1 * tab1.col1 * - 61 col0 FROM tab1
----
-10277
-41204
-6068
query I rowsort
SELECT ALL - ( col2 ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + col0 * 94 AS col2 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT DISTINCT - + cor0.col2 * + 36 AS col2 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT ALL - col1 + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT col0 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + - col2 * - col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + cor0.col1 + + ( - cor0.col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - 77 AS col0 FROM tab1
----
-77
-77
-77
query I rowsort
SELECT + 4 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + 23 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + col0 col1 FROM tab2
----
1612
725
844
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6196
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6196
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT tab0.col0 * col2 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ALL col2 * 1 + - col1 DIV col0 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL col2 * 1 + - col1 / col0 FROM tab0
----
-1
30
81
query I rowsort
SELECT ALL 59 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT ALL + ( tab2.col1 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + ( tab2.col1 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( col0 ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT DISTINCT - - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT ALL + + CAST( 32 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
1216
832
864
skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL + + CAST ( 32 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
1216
832
864
query I rowsort
SELECT ALL - 88 FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT - + 26 * + col0 FROM tab2 AS cor0
----
-182
-2028
-2054
query I rowsort
SELECT + col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col1 * 4 + col1 AS col0 FROM tab2 cor0
----
155
295
85
query I rowsort
SELECT - 54 * + col2 * + col1 + 26 FROM tab2
----
-34858
-45172
-82810
onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT 14 DIV col0 FROM tab1
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6209
SELECT 14 / col0 FROM tab1
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6210
SELECT + ( col0 ) + + CAST( 43 AS SIGNED ) + + col2 * col1 AS col0 FROM tab1
----
1371
1450
677
skipif mysql # not compatible
query I rowsort label-6210
SELECT + ( col0 ) + + CAST ( 43 AS INTEGER ) + + col2 * col1 AS col0 FROM tab1
----
1371
1450
677
query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT col0 DIV - col1 - ( col2 ) FROM tab2 AS cor0
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-6212
SELECT col0 / - col1 - ( col2 ) FROM tab2 AS cor0
----
-27
-27
-42
query I rowsort
SELECT col1 * col0 + + col0 * + 37 FROM tab0 AS cor0
----
11392
2952
4690
onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT + col2 * col1 DIV - 7 FROM tab2
----
-119
-219
-92
skipif mysql # not compatible
query I rowsort label-6214
SELECT + col2 * col1 / - 7 FROM tab2
----
-119
-219
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - col1 col2 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT DISTINCT col0 * + cor0.col1 + - CAST( - 30 AS SIGNED ) DIV - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT col0 * + cor0.col1 + - CAST ( - 30 AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6217
SELECT - - cor0.col0 * CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
skipif mysql # not compatible
query I rowsort label-6217
SELECT - - cor0.col0 * CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + col1 + 51 FROM tab2 AS cor0
----
110
68
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT DISTINCT - col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - col1 / col0 AS col0 FROM tab1 AS cor0
----
-8
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT col2 * - CAST( cor0.col0 * col2 + - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-111074
-4914
-50700
skipif mysql # not compatible
query I rowsort label-6220
SELECT col2 * - CAST ( cor0.col0 * col2 + - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-111074
-4914
-50700
query I rowsort
SELECT ALL + + col1 * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - col0 + 83 * + col0 * - cor0.col2 FROM tab2 AS cor0
----
-15680
-168246
-249087
query I rowsort
SELECT ALL + - cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT + + col0 * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT + + col0 * + col1 + col2 DIV col1 FROM tab1 AS cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-6225
SELECT + + col0 * + col1 + col2 / col1 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT + + col0 * 29 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-634
1645
728
query I rowsort
SELECT 84 + - tab0.col2 * 67 + - 31 FROM tab0
----
-14
-2158
-5441
query I rowsort
SELECT col0 * tab1.col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - col1 * col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - cor0.col2 * - 10 AS col2 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT + + cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col2 - + col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ( - col2 ) * - 20 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT col0 * col1 + 46 AS col2 FROM tab2 AS cor0
----
1389
263
4648
query I rowsort
SELECT DISTINCT + col0 * col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-6238
SELECT ALL cor0.col2 DIV - col0 col1 FROM tab0 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL cor0.col2 / - col0 col1 FROM tab0 AS cor0
----
-1
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f
query I rowsort
SELECT DISTINCT + 78 * + 22 AS col2 FROM tab0, tab1 AS cor0
----
1716
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6241
SELECT + col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + 47 * + cor0.col0 * cor0.col0 - - 26 AS col0 FROM tab1 cor0
----
192538
300826
449
query I rowsort
SELECT DISTINCT - col1 + + col1 AS col2 FROM tab1
----
0
query I rowsort
SELECT - col0 + + 47 AS col1 FROM tab2 AS cor0
----
-31
-32
40
query I rowsort
SELECT + col1 * - col1 * 7 FROM tab0
----
-51772
-57967
-65863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( - 51 ) col1 FROM tab0
----
-1224
-1785
-4539
query I rowsort
SELECT - 70 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT DISTINCT col2 + 7 FROM tab2
----
33
34
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 7 col0 FROM tab0
----
40
8
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6250
SELECT + CAST( - 14 AS SIGNED ) * col1 AS col1 FROM tab0
----
-1204
-1274
-1358
skipif mysql # not compatible
query I rowsort label-6250
SELECT + CAST ( - 14 AS INTEGER ) * col1 AS col1 FROM tab0
----
-1204
-1274
-1358
onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT ALL + ( col2 ) DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + ( col2 ) / - col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT + col0 * - col0 DIV col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-6252
SELECT + col0 * - col0 / col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col1 * col1 * col1 AS col0 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT ALL + 86 AS col0 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - 57 * + 99 + + col1 FROM tab1 AS cor0
----
-5617
-5630
-5633
query I rowsort
SELECT ALL + + col2 * col2 - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT col0 + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 * 87 FROM tab0 AS cor0
----
-2088
-3045
-7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 + - col0 * col2 col1 FROM tab2 cor0
----
-2356
-494
648
query I rowsort
SELECT ALL ( 69 ) FROM tab0
----
69
69
69
query I rowsort
SELECT - + 67 - col0 AS col1 FROM tab0 cor0
----
-102
-156
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + - 84 * - col2 col2 FROM tab2 cor0
----
1431
2546
650
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT ALL - + 81 FROM tab0 AS cor0
----
-81
-81
-81
query I rowsort
SELECT ALL + 56 AS col0 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT 34 * tab1.col0 FROM tab1
----
102
2176
2720
query I rowsort
SELECT DISTINCT - col0 - - 55 * col2 * 2 FROM tab0
----
3606
75
8931
query I rowsort
SELECT - cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6269
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col1 AS col1 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6271
SELECT - - col1 DIV col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-6271
SELECT - - col1 / col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2066
3492
8100
query I rowsort
SELECT ALL col1 + col1 * col0 AS col0 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + - 0 * + cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( - col0 ) * - ( - col1 ) AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT + col2 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6275
SELECT + col2 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 - 30 col0 FROM tab2 AS cor0
----
1504
616
807
query I rowsort
SELECT - 45 * col2 * + ( - 11 * + col0 ) + 22 AS col1 FROM tab2 AS cor0
----
1003882
1486012
93577
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT DISTINCT 0 FROM tab0, tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6281
SELECT + + col0 + CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
skipif mysql # not compatible
query I rowsort label-6281
SELECT + + col0 + CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317
query I rowsort
SELECT + - ( col1 ) * cor0.col0 + 86 AS col0 FROM tab1 AS cor0
----
-554
-954
8
query I rowsort
SELECT - + col1 + - 20 AS col0 FROM tab2 AS cor0
----
-37
-51
-79
query I rowsort
SELECT + col0 * + 54 * col2 AS col1 FROM tab0 AS cor0
----
1890
394092
42768
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT + col1 * - ( - col0 * col1 ) AS col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT 33 * + 88 FROM tab1 AS cor0
----
2904
2904
2904
onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT + - 73 DIV col0 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-6289
SELECT + - 73 / col0 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT DISTINCT + 25 + col2 AS col0 FROM tab1 AS cor0
----
121
79
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6291
SELECT - ( col2 ) DIV - col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6291
SELECT - ( col2 ) / - col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT tab0.col0 + - col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - col1 * + 27 FROM tab2
----
-1534
-442
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6294
SELECT DISTINCT - tab1.col0 * tab1.col2 + + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - tab1.col0 * tab1.col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
query I rowsort
SELECT - col1 * cor0.col2 + 20 FROM tab2 AS cor0
----
-1514
-626
-817
query I rowsort
SELECT 22 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT DISTINCT + col0 + col1 - col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT ALL - col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL - col2 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
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 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - col1 * ( col1 ) + col2 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT + col1 + + col0 * col2 + col0 * col0 * col2 FROM tab2 AS cor0
----
1543
160271
240177
onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT DISTINCT - col1 DIV CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT - col1 / CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - col2 * 4 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT ALL col0 * ( col2 ) - + col0 * ( col2 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 + col2 AS col1 FROM tab2 cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT + col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6308
SELECT + col1 / - col0 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT DISTINCT col0 DIV - ( col0 ) + - col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT col0 / - ( col0 ) + - col2 FROM tab2 AS cor0
----
-27
-28
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6310
SELECT DISTINCT CAST( 90 AS SIGNED ) * + col1 + - ( col2 * col1 ) FROM tab1 AS cor0
----
-78
330
936
skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT CAST ( 90 AS INTEGER ) * + col1 + - ( col2 * col1 ) FROM tab1 AS cor0
----
-78
330
936
query I rowsort
SELECT ALL - ( - col1 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + col2 - + col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6313
SELECT + + 46 + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
45
45
45
skipif mysql # not compatible
query I rowsort label-6313
SELECT + + 46 + col2 / - cor0.col2 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL + col1 * + 59 AS col0 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT + 67 - col0 AS col0 FROM tab1 AS cor0
----
-13
3
64
query I rowsort
SELECT DISTINCT - + 78 + col0 FROM tab2 AS cor0
----
-71
0
1
query I rowsort
SELECT ALL + 61 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7335
-8220
-9348
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6318
SELECT ALL + - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL + - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 11 AS col2 FROM tab2 AS cor0
----
11
query I rowsort
SELECT + col0 + + 11 + col0 AS col1 FROM tab2 cor0
----
167
169
25
query I rowsort
SELECT ALL + 28 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL + + col2 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + + cor0.col2 * + col1 - col2 * col2 * col1 FROM tab2 AS cor0
----
-21762
-23902
-38350
onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + - ( - ( - col0 ) ) DIV + ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6324
SELECT + - ( - ( - col0 ) ) / + ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + col2 * col2 + - cor0.col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - 37 * + col2 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-162
-760
572
query I rowsort
SELECT ALL + + col0 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL + 62 FROM tab0 cor0
----
62
62
62
query I rowsort
SELECT ALL + + ( - col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col1 * - col2 + - 4 FROM tab0 AS cor0
----
-101
-2842
-7466
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab1 AS cor0
----
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ( - 56 ) DIV + col2 + 24 AS col0 FROM tab0
----
-32
23
24
skipif mysql # not compatible
query I rowsort label-6332
SELECT ( - 56 ) / + col2 + 24 AS col0 FROM tab0
----
-32
23
24
query I rowsort
SELECT DISTINCT - + col1 + + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + col0 - - 83 FROM tab2
----
161
162
90
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT - + col1 - + cor0.col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT ALL - 58 * col2 AS col1 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT ALL + 32 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT - 31 * + col2 + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-1697
-1713
-2909
query I rowsort
SELECT ALL 38 * - col1 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT DISTINCT - + col2 * + col1 + + 28 FROM tab1 cor0
----
-1220
-1376
-542
query I rowsort
SELECT col2 * col0 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col0 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col2 * 54 * + tab1.col2 + - ( col2 ) + - tab1.col2 FROM tab1
----
157356
175332
497472
query I rowsort
SELECT ALL col0 * - col0 + col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT - - col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 50 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ALL + 19 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT - col1 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - 7 + cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1ab01ff2887ca505bf71fe557ea87c77
query I rowsort
SELECT ALL - - cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + 76 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT + + ( 50 ) + + col2 AS col1 FROM tab2 AS cor0
----
76
77
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 11 FROM tab0 AS cor0
----
11
11
11
query I rowsort
SELECT + col1 - ( 96 + col1 ) * tab1.col2 FROM tab1
----
-10451
-6032
-6562
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0 AS cor0
----
61
query I rowsort
SELECT ALL + 91 AS col1 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT ALL col1 + 61 * col2 * + cor0.col0 FROM tab0 AS cor0
----
2232
445269
48398
query I rowsort
SELECT + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - + 81 * ( - col0 ) * col2 + - col1 AS col0 FROM tab2 AS cor0
----
15278
164209
243145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6365
SELECT col0 * CAST( col1 AS SIGNED ) + col2 AS col0 FROM tab1
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-6365
SELECT col0 * CAST ( col1 AS INTEGER ) + col2 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab0, tab1 AS cor0
----
58
query I rowsort
SELECT DISTINCT - ( 72 ) FROM tab2, tab2 cor0
----
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT col0 + ( + 69 ) DIV + col1 FROM tab2
----
79
83
9
skipif mysql # not compatible
query I rowsort label-6368
SELECT col0 + ( + 69 ) / + col1 FROM tab2
----
79
83
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT - col0 * 94 DIV - ( col1 ) + - ( + 96 ) FROM tab1
----
-86
482
505
skipif mysql # not compatible
query I rowsort label-6369
SELECT - col0 * 94 / - ( col1 ) + - ( + 96 ) FROM tab1
----
-86
482
505
query I rowsort
SELECT DISTINCT 36 * + col2 + tab0.col2 FROM tab0
----
1221
3034
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 83 AS REAL ) * + col1 * ( col0 ) col0 FROM tab0
----
171312
281785
672217
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT - col1 DIV - col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6372
SELECT - col1 / - col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT + ( + 87 ) FROM tab1
----
87
87
87
query I rowsort
SELECT ALL + 61 + - col2 AS col1 FROM tab0
----
-21
28
60
query I rowsort
SELECT - 78 * col1 FROM tab2
----
-1326
-2418
-4602
query I rowsort
SELECT col1 * + 91 AS col1 FROM tab1
----
1183
2366
910
query I rowsort
SELECT ALL - 18 * cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
-116
-154
-465
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6378
SELECT CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 - - 37 FROM tab0 AS cor0
----
123
128
134
query I rowsort
SELECT ALL + 67 + col1 AS col2 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT DISTINCT 42 * 94 + col1 FROM tab2
----
3965
3979
4007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 col2 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT - col1 DIV col1 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6383
SELECT - col1 / col1 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 59 * col1 AS col2 FROM tab0 AS cor0
----
5074
5369
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT + - col0 DIV col2 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-6385
SELECT + - col0 / col2 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-86
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT cor0.col0 + - CAST( col1 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-6386
SELECT cor0.col0 + - CAST ( col1 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6387
SELECT + - col2 + CAST( + 30 AS SIGNED ) - col0 AS col0 FROM tab2 AS cor0
----
-4
-74
-87
skipif mysql # not compatible
query I rowsort label-6387
SELECT + - col2 + CAST ( + 30 AS INTEGER ) - col0 AS col0 FROM tab2 AS cor0
----
-4
-74
-87
query I rowsort
SELECT + + col0 * - ( - 16 ) * col2 + 77 * + col0 AS col0 FROM tab0 AS cor0
----
123621
14520
3255
query I rowsort
SELECT DISTINCT tab1.col1 - + 39 FROM tab1
----
-13
-26
-29
query I rowsort
SELECT col1 - 2 AS col1 FROM tab0
----
84
89
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 + col2 col0 FROM tab2
----
46
47
58
query I rowsort
SELECT cor0.col0 * col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - - ( - cor0.col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col0 + - 65 FROM tab0
----
-30
-41
24
query I rowsort
SELECT - + ( + cor0.col2 ) * col1 * + col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL 29 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT 32 * 63 AS col2 FROM tab0 AS cor0
----
2016
2016
2016
query I rowsort
SELECT DISTINCT 29 * + col1 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT + - 16 * col2 AS col0 FROM tab2 AS cor0
----
-416
-432
-608
query I rowsort
SELECT DISTINCT 67 FROM tab1
----
67
query I rowsort
SELECT ALL + 20 * col2 FROM tab1
----
1080
1140
1920
query I rowsort
SELECT 98 * - col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ALL + 80 * col0 FROM tab2
----
560
6240
6320
query I rowsort
SELECT - + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - col0 + 87 AS col2 FROM tab1 AS cor0
----
23
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT col0 - - ( col2 ) * col0 DIV - 82 col1 FROM tab0 AS cor0
----
0
15
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6406
SELECT col0 - - ( col2 ) * col0 / - 82 col1 FROM tab0 AS cor0
----
0
15
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT DISTINCT col0 DIV + col1 AS col2 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT col0 / + col1 AS col2 FROM tab1
----
0
6
query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab0
----
-31
query I rowsort
SELECT 71 AS col2 FROM tab2
----
71
71
71
query I rowsort
SELECT DISTINCT + col2 * col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT tab1.col0 + - col0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab1, tab0 AS cor0
----
94
query I rowsort
SELECT DISTINCT + col1 + + 0 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 * - ( + cor0.col0 ) * col1 + - col2 AS col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT - + col1 * - ( col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 16 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL + col2 + + col0 * 44 + + col0 FROM tab1 cor0
----
189
2937
3696
query I rowsort
SELECT + - col0 * 60 FROM tab1 AS cor0
----
-180
-3840
-4800
query I rowsort
SELECT ALL col1 + ( - col0 ) * - col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col2 - ( + 88 ) * - col1 * - col2 FROM tab0 cor0
----
-249711
-656574
-8535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6421
SELECT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6421
SELECT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT DISTINCT - cor0.col0 DIV ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - cor0.col0 / ( col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT 13 + col0 FROM tab1 AS cor0
----
16
77
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT DISTINCT - col1 * + col0 * col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720
skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - col1 * + col0 * col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22752
-271440
-6720
query I rowsort
SELECT ALL + col1 * + 71 + - cor0.col1 AS col2 FROM tab0 cor0
----
6020
6370
6790
query I rowsort
SELECT 22 + - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-1203
-554
-7899
query I rowsort
SELECT ALL - col2 * 72 + col1 FROM tab2 AS cor0
----
-1813
-1913
-2719
query I rowsort
SELECT + tab0.col2 + 41 * col0 AS col2 FROM tab0
----
1017
1436
3731
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + col1 * col1 col2 FROM tab2 AS cor0
----
318
3510
990
query I rowsort
SELECT ALL + 81 FROM tab1 AS cor0
----
81
81
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + col2 + - col2 * 23 FROM tab1 cor0
----
-1188
-1254
-2112
query I rowsort
SELECT DISTINCT col2 * col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL + col1 * + col1 * col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ( col2 ) * - col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col0 - col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * + col2 col1 FROM tab0
----
-2343
-5822
-71
query I rowsort
SELECT - 77 * - 92 + - col2 FROM tab1
----
6988
7027
7030
query I rowsort
SELECT col0 + col0 * + col2 + + 85 * + 81 AS col2 FROM tab0
----
14272
6955
7701
query I rowsort
SELECT DISTINCT 61 * col2 AS col1 FROM tab0
----
2013
5002
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 18 AS col2 FROM tab0
----
-18
-18
-18
query I rowsort
SELECT ALL 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col2 col1 FROM tab2 cor0
----
-1768
-1836
-2584
query I rowsort
SELECT - col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + ( + col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col2 * cor0.col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT ALL col0 * - col1 * col0 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6451
SELECT col0 DIV col0 + - col2 AS col1 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6451
SELECT col0 / col0 + - col2 AS col1 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT DISTINCT - col0 - - col0 FROM tab1
----
0
query I rowsort
SELECT ALL - - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * col0 * + col1 FROM tab0 AS cor0
----
-177418
-329218
-736918
query I rowsort
SELECT ALL + cor0.col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT ALL - col0 DIV + col0 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-6456
SELECT ALL - col0 / + col0 col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6457
SELECT DISTINCT - col2 * + col1 + col1 DIV col1 AS col2 FROM tab1
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - col2 * + col1 + col1 / col1 AS col2 FROM tab1
----
-1247
-1403
-569
query I rowsort
SELECT DISTINCT col2 + tab2.col0 AS col0 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col0 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT - tab0.col0 DIV tab0.col1 + col2 + col1 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6460
SELECT - tab0.col0 / tab0.col1 + col2 + col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col2 * tab2.col1 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - col1 / col0 ) AND NULL IN ( col0 * - col2 )
----
query I rowsort
SELECT DISTINCT tab2.col1 * col0 - - col0 * col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT col0 * col2 * - col1 - + col0 * col0 FROM tab0
----
-4620
-672039
-68688
query I rowsort
SELECT - col1 + col1 * col2 - - col2 AS col0 FROM tab2
----
1501
667
833
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT col2 - - col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 / + col2 ) AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col2 + + col1 * tab0.col0 )
----
query I rowsort
SELECT tab2.col2 + - tab2.col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col1 * - col0 + + tab1.col2 AS col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + + col2 + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT ALL + + col2 * col1 - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-6472
SELECT ALL + + col2 * col1 - col1 / - col1 AS col1 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - + col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT ALL - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL - col2 / cor0.col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 + - col1 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT DISTINCT col2 DIV - col1 - col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT col2 / - col1 - col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-2
-3
0
query I rowsort
SELECT - col1 + col0 * col2 AS col2 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT 87 FROM tab0
----
87
query I rowsort
SELECT + ( col0 ) + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT cor0.col0 + - cor0.col0 - - tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + col2 + - tab2.col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + 21 * col0 * col0 AS col2 FROM tab2 AS cor0
----
1029
127764
131061
onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT + - 72 + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
-72
-72
-72
skipif mysql # not compatible
query I rowsort label-6484
SELECT + - 72 + col1 / - col2 AS col1 FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT + cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - 72 * + col1 AS col2 FROM tab2
----
-1224
-2232
-4248
onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT ALL cor0.col0 DIV + col0 + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL cor0.col0 / + col0 + col2 / - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col1 * col2 - - col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT DISTINCT + col2 + col1 DIV col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT + col2 + col1 / col0 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT DISTINCT - col2 + col1 + col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + col1 * col0 + col2 + col1 AS col2 FROM tab0
----
2183
3493
8272
query I rowsort
SELECT + cor0.col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT cor0.col2 + - col2 - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + col1 * - col2 - col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-22285
-3493
-5991
query I rowsort
SELECT ALL tab1.col0 * + col0 * - col1 AS col0 FROM tab1
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col2 col0 FROM tab0
----
70
7387
816
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN - tab1.col0 + col2 AND NULL
----
3
26
54
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE col0 / col1 < ( + col0 * col1 )
----
-3
-64
-80
query I rowsort
SELECT col1 * col2 * + col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col1 * tab1.col1 * col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT tab1.col1 DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6509
SELECT tab1.col1 / col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - 41 + col0 FROM tab2 AS cor0
----
-34
37
38
query I rowsort
SELECT - 28 * - col0 * col0 - col0 FROM tab2 AS cor0
----
1365
170274
174669
query I rowsort
SELECT ALL - 92 + col0 AS col1 FROM tab1 AS cor0
----
-12
-28
-89
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT 44 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
4
68
83
skipif mysql # not compatible
query I rowsort label-6516
SELECT 44 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
4
68
83
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col2 + + col2 * - col2 * tab1.col1 AS col0 FROM tab1
----
-119712
-32433
-75762
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 - col0 FROM tab1
----
1088
1398
442
onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT tab0.col0 DIV col0 - col2 DIV col2 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6520
SELECT tab0.col0 / col0 - col2 / col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 * col1 AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT DISTINCT col2 + col1 DIV + tab2.col0 - col0 AS col2 FROM tab2
----
-41
-52
24
skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT col2 + col1 / + tab2.col0 - col0 AS col2 FROM tab2
----
-41
-52
24
query I rowsort
SELECT col0 * col0 * - col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col2 * + col2 - ( 34 ) * col2 FROM tab2 AS cor0
----
-189
-208
152
query I rowsort
SELECT DISTINCT - col2 * - col2 * col2 AS col1 FROM tab1 cor0
----
157464
185193
884736
onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT DISTINCT + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6528
SELECT DISTINCT + col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL cor0.col2 - - col0 FROM tab1 AS cor0
----
121
176
57
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( cor0.col1 )
----
query I rowsort
SELECT + col1 * col2 FROM tab0 cor0
----
2838
7462
97
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col0 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8
query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab0
----
1224
543
7839
query I rowsort
SELECT ALL - col0 + col0 * + col1 AS col1 FROM tab1
----
576
75
960
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT ALL - col1 DIV col1 + + col1 * col0 + cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
15396
2855
3429
skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - col1 / col1 + + col1 * col0 + cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
15396
2855
3429
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1 AS cor0 WHERE NULL <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT ALL - col0 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL - col0 / col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - tab0.col0 + col1 * - col0 AS col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT + col2 * tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL + col2 + - col1 * + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col0 + - col0 * - col1 AS col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + col2 BETWEEN ( NULL ) AND + col2
----
query I rowsort
SELECT - col2 + col1 * col2 + tab0.col2 FROM tab0
----
2838
7462
97
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT col2 + + tab0.col1 FROM tab0 WHERE NOT NULL >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT DISTINCT - col0 + tab2.col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col2 + col1 - col0 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
query I rowsort
SELECT DISTINCT col0 * + tab2.col0 + + col2 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE - col1 NOT BETWEEN NULL AND col2 + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + col2 col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT + tab0.col1 + 92 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
178
183
189
query I rowsort
SELECT ALL + col2 * ( col1 ) AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL 86 AS col2 FROM tab1
----
86
86
86
query I rowsort
SELECT - - cor0.col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT + + 2 * - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - col0 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 27 col0 FROM tab2
----
-32
-4
10
query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab2, tab2 AS cor0
----
-20
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - 83 - tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-147
-163
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT ALL cor0.col0 + 67 DIV 26 AS col1 FROM tab2 AS cor0
----
80
81
9
skipif mysql # not compatible
query I rowsort label-6569
SELECT ALL cor0.col0 + 67 / 26 AS col1 FROM tab2 AS cor0
----
80
81
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT ALL - - col1 / col1 + 43 + + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - - col1 / col1 + 43 + + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ( col1 ) + col1 * cor0.col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - ( + 81 ) * col0 AS col2 FROM tab2 AS cor0
----
-567
-6318
-6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT ALL + col1 DIV - col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + col1 / - col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT + + ( col2 ) * col1 * 97 FROM tab2 AS cor0
----
148798
62662
81189
query I rowsort
SELECT - + col1 + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 47 + cor0.col2 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2815
-3145
-9073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL ( + col2 ) * + col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 96 FROM tab2
----
96
96
96
query I rowsort
SELECT DISTINCT - 28 FROM tab0 cor0
----
-28
query I rowsort
SELECT - - 42 + col0 * col2 FROM tab0 AS cor0
----
7340
77
834
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT DISTINCT CAST( 78 AS SIGNED ) FROM tab1 AS cor0
----
78
skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT CAST ( 78 AS INTEGER ) FROM tab1 AS cor0
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT + + col2 DIV col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6587
SELECT + + col2 / col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + 36 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT DISTINCT - 86 * + col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * + col0 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - col0 * - 44 FROM tab2
----
308
3432
3476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - 58 AS col2 FROM tab1 AS cor0
----
58
58
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 52 + + col2 * - col0 * col2 FROM tab2 cor0
----
-114024
-5051
-52676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ( col1 ) AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT col1 * - 16 FROM tab0
----
-1376
-1456
-1552
query I rowsort
SELECT + ( - tab2.col1 + - col0 ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT col2 - + col2 * cor0.col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + - col2 + ( col0 ) * - col1 * - cor0.col1 AS col0 FROM tab2 cor0
----
22793
271492
6700
query I rowsort
SELECT - col2 * + 42 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT 27 * + col2 FROM tab1
----
1458
1539
2592
query I rowsort
SELECT DISTINCT 49 FROM tab0
----
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT + col0 * CAST( NULL AS SIGNED ) * + ( + col0 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6606
SELECT + col0 * CAST ( NULL AS INTEGER ) * + ( + col0 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + - 46 FROM tab0 AS cor0
----
-132
-137
-143
query I rowsort
SELECT DISTINCT - + cor0.col2 * ( 92 ) + cor0.col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-972
3303
555
query I rowsort
SELECT - - col1 + 35 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT DISTINCT - - cor0.col0 + 55 * + 43 FROM tab2 AS cor0
----
2372
2443
2444
query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 71 FROM tab0
----
-71
query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab1
----
-82
query I rowsort
SELECT ALL + + ( 64 ) FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ALL 52 + + col0 * col2 FROM tab1 AS cor0
----
214
3700
7732
query I rowsort
SELECT + - col0 * - col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col0 + col0 * - col2 FROM tab1
----
-165
-3712
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT cor0.col1 * col0 + - 14 * + col1 FROM tab1 AS cor0
----
-286
500
858
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6620
SELECT - col1 * CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6620
SELECT - col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 48 AS col1 FROM tab2 AS cor0
----
336
3744
3792
query I rowsort
SELECT - col1 + 58 AS col0 FROM tab1 AS cor0
----
32
45
48
query I rowsort
SELECT - 61 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6624
SELECT DISTINCT + col0 * CAST( - 12 * - col1 AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
16099
2573
55165
skipif mysql # not compatible
query I rowsort label-6624
SELECT DISTINCT + col0 * CAST ( - 12 * - col1 AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
16099
2573
55165
query I rowsort
SELECT - + col0 * + ( 60 ) AS col2 FROM tab2 AS cor0
----
-420
-4680
-4740
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 2563d2f4127fd757b80c46400c5511cb
query I rowsort
SELECT cor1.col0 * cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4
query I rowsort
SELECT DISTINCT + + col1 + col0 * - col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT ALL - col1 DIV + col0 + - col1 FROM tab2
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - col1 / + col0 + - col1 FROM tab2
----
-17
-35
-59
query I rowsort
SELECT - col2 * ( tab2.col0 ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + 2 + - col1 * col2 FROM tab0 AS cor0
----
-2836
-7460
-95
query I rowsort
SELECT - cor0.col2 + col0 + cor0.col0 * 32 * - col1 AS col0 FROM tab0 AS cor0
----
-108606
-259161
-66057
query I rowsort
SELECT ALL - - col2 * 18 * + col0 FROM tab1 AS cor0
----
138240
2916
65664
query I rowsort
SELECT + ( col0 ) * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT col1 + + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - col2 + 58 FROM tab1
----
-38
1
4
query I rowsort
SELECT ALL + col0 + 65 * col1 FROM tab2
----
1184
2022
3913
skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( col2 AS REAL ) * - col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab1 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT DISTINCT - col1 DIV col0 + tab1.col1 + col2 FROM tab1
----
109
67
72
skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - col1 / col0 + tab1.col1 + col2 FROM tab1
----
109
67
72
skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( - col0 AS REAL ) + + col0 AS col0 FROM tab2
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT - col0 DIV - col2 + - col2 + + tab1.col0 AS col0 FROM tab1
----
-16
-51
8
skipif mysql # not compatible
query I rowsort label-6643
SELECT - col0 / - col2 + - col2 + + tab1.col0 AS col0 FROM tab1
----
-16
-51
8
query I rowsort
SELECT ALL + - cor0.col0 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + 83 FROM tab1 cor0
----
83
query I rowsort
SELECT DISTINCT - col0 + - col2 + + 1 AS col0 FROM tab1 AS cor0
----
-120
-175
-56
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT + 54 AS col2 FROM tab1 AS cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6649
SELECT - ( col1 ) * CAST( - 26 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1534
442
806
skipif mysql # not compatible
query I rowsort label-6649
SELECT - ( col1 ) * CAST ( - 26 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT DISTINCT col2 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + 62 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-18
-2
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * col0 * col1 + col1 col2 FROM tab2 AS cor0
----
-14942
-317479
-92650
query I rowsort
SELECT + 84 AS col2 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT col0 + - 37 FROM tab2
----
-30
41
42
query I rowsort
SELECT tab2.col1 + col2 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6656
SELECT - CAST( NULL AS DECIMAL ) + col1 / + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6656
SELECT - CAST ( NULL AS REAL ) + col1 / + col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT ALL - CAST( + 54 AS SIGNED ) * col0 FROM tab1
----
-162
-3456
-4320
skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - CAST ( + 54 AS INTEGER ) * col0 FROM tab1
----
-162
-3456
-4320
query I rowsort
SELECT ALL - - col0 * + col2 + - 85 FROM tab1 AS cor0
----
3563
7595
77
query I rowsort
SELECT col0 - - 80 FROM tab1
----
144
160
83
query I rowsort
SELECT DISTINCT 75 + - ( - col2 ) FROM tab2
----
101
102
113
query I rowsort
SELECT DISTINCT + col1 + + tab2.col2 * + col1 * col0 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT DISTINCT - 56 * - 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1232
query I rowsort
SELECT + 43 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT - col2 DIV col1 - + col2 DIV + col0 AS col0 FROM tab2
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-6664
SELECT - col2 / col1 - + col2 / + col0 AS col0 FROM tab2
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT DISTINCT - col0 DIV cor0.col0 + + CAST( - 11 AS SIGNED ) FROM tab2 AS cor0
----
-12
skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - col0 / cor0.col0 + + CAST ( - 11 AS INTEGER ) FROM tab2 AS cor0
----
-12
query I rowsort
SELECT DISTINCT col2 * - col2 - ( - col1 ) * col2 * col2 AS col0 FROM tab2 cor0
----
21870
23104
39208
query I rowsort
SELECT ALL + 89 AS col2 FROM tab0 AS cor0
----
89
89
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT DISTINCT + 78 * - col2 + + 97 DIV - 61 FROM tab1 AS cor0
----
-4213
-4447
-7489
skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT + 78 * - col2 + + 97 / - 61 FROM tab1 AS cor0
----
-4213
-4447
-7489
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col0 FROM tab1 AS cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - + 78 + + col0 FROM tab2 AS cor0
----
-71
0
1
query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - 36 AS col1 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT + 86 FROM tab1
----
86
86
86
query I rowsort
SELECT ALL col2 * tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * + 3 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ALL 63 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + cor0.col1 * ( - 15 ) FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT ALL + col2 * - col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col0 col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT - - col2 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT - - col2 + col2 / col1 AS col2 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL tab1.col1 + - col0 + - col0 FROM tab1
----
-118
-147
20
query I rowsort
SELECT - 67 * 18 FROM tab2
----
-1206
-1206
-1206
query I rowsort
SELECT 30 + col1 AS col0 FROM tab2 AS cor0
----
47
61
89
query I rowsort
SELECT ALL + ( col1 ) * cor0.col2 AS col2 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 99 * - col2 AS col0 FROM tab2 AS cor0
----
2574
2673
3762
query I rowsort
SELECT + + ( cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + - 85 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT 51 * + col2 + cor0.col2 FROM tab1 AS cor0
----
2808
2964
4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - cor0.col0 * - 13 AS col2 FROM tab0 AS cor0
----
1157
312
455
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT - col2 DIV ( cor0.col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-6696
SELECT - col2 / ( cor0.col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL - - 4 AS col0 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT + col2 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT 72 * + col2 AS col0 FROM tab1
----
3888
4104
6912
onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT ALL + col2 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + col2 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 41 AS col1 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ( + col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 14 col2 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT - + col0 + + col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - col1 ) col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + col1 * + col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * col2 col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + + 60 FROM tab2 AS cor0
----
60
60
60
query I rowsort
SELECT + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT + CAST( NULL AS DECIMAL ) + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6713
SELECT + CAST ( NULL AS REAL ) + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 12 * col0 + col2 FROM tab1 AS cor0
----
-711
-864
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 + + col0 + + col0 col0 FROM tab1 AS cor0
----
198
230
76
query I rowsort
SELECT DISTINCT + 58 + cor1.col2 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
84
85
96
query I rowsort
SELECT + ( col0 ) * + ( 97 ) FROM tab0
----
2328
3395
8633
query I rowsort
SELECT ALL 69 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT tab1.col2 * col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT tab1.col1 * - col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + - col2 + + col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT tab1.col1 * CAST( NULL AS SIGNED ) + - ( col2 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6725
SELECT tab1.col1 * CAST ( NULL AS INTEGER ) + - ( col2 ) FROM tab1
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215
query I rowsort
SELECT DISTINCT - col2 + + col2 AS col0 FROM tab0
----
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT ALL 37 + + 97 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3ceb25f3d86505c05ae8b32388dc5c47
query I rowsort
SELECT DISTINCT - 39 FROM tab1, tab2 cor0
----
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT + col2 * - CAST( col1 AS SIGNED ) + col2 DIV - 49 AS col0 FROM tab0 AS cor0
----
-2838
-7463
-97
skipif mysql # not compatible
query I rowsort label-6731
SELECT + col2 * - CAST ( col1 AS INTEGER ) + col2 / - 49 AS col0 FROM tab0 AS cor0
----
-2838
-7463
-97
query I rowsort
SELECT ALL + col1 + ( - col2 * - col1 ) FROM tab1
----
1261
1430
580
query I rowsort
SELECT - 32 AS col1 FROM tab1
----
-32
-32
-32
query I rowsort
SELECT ALL - ( 85 ) AS col1 FROM tab1
----
-85
-85
-85
query I rowsort
SELECT 66 + + tab2.col0 FROM tab2
----
144
145
73
query I rowsort
SELECT tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * col2 col0 FROM tab1 cor0
----
1782
1881
3168
query I rowsort
SELECT ALL + col1 + + 94 * col2 * - 48 FROM tab0 AS cor0
----
-148810
-369893
-4415
query I rowsort
SELECT - + cor0.col1 + cor0.col1 * - col2 * - col2 FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT DISTINCT + - col2 * - col0 * + col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT ALL - 4 - - col0 DIV - col2 FROM tab0
----
-39
-4
-5
skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 4 - - col0 / - col2 FROM tab0
----
-39
-4
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 - col1 col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL col0 - - col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT col0 * col0 * - 63 FROM tab1 AS cor0
----
-258048
-403200
-567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - cor0.col2 * 80 AS col2 FROM tab0 AS cor0
----
-2640
-6560
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6748
SELECT ALL cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - 91 * + col1 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT ALL - + col2 * cor0.col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col1 * 5 + col2 AS col2 FROM tab0 AS cor0
----
463
486
537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col2 ) col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT DISTINCT + col2 DIV - cor0.col0 col1 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + col2 / - cor0.col0 col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT - col0 + col2 - 96 FROM tab2 AS cor0
----
-137
-148
-76
query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT col1 * + CAST( NULL AS SIGNED ) / - col1 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-6757
SELECT col1 * + CAST ( NULL AS INTEGER ) / - col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 53 * tab1.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6accc6352a43401a7d29e8cf45e354a7
query I rowsort
SELECT DISTINCT tab0.col1 * + col2 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6760
SELECT ALL col1 * col2 DIV 44 FROM tab2
----
14
19
34
skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL col1 * col2 / 44 FROM tab2
----
14
19
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col2 FROM tab1
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6762
SELECT col1 - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-6762
SELECT col1 - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col2 + - 99 * - cor0.col1 FROM tab0 AS cor0
----
8481
8927
9602
query I rowsort
SELECT cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 + - 1 * - col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 16 FROM tab2 AS cor0
----
16
query I rowsort
SELECT + + 11 + col0 * + col2 FROM tab2 AS cor0
----
200
2039
3013
query I rowsort
SELECT + + 20 FROM tab2 AS cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT col1 DIV 2 FROM tab0 AS cor0
----
43
45
48
skipif mysql # not compatible
query I rowsort label-6769
SELECT col1 / 2 FROM tab0 AS cor0
----
43
45
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL ( + col1 ) * cor0.col1 * 96 AS col1 FROM tab1 AS cor0
----
16224
64896
9600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT - - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6774
SELECT - - col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + col2 + - col2 * + 65 FROM tab2 AS cor0
----
-1664
-1728
-2432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + + 98 col1 FROM tab0 AS cor0
----
195
2936
7560
query I rowsort
SELECT DISTINCT 5 FROM tab0 AS cor0
----
5
query I rowsort
SELECT ALL - ( col1 ) * - 57 - 45 AS col0 FROM tab0 cor0
----
4857
5142
5484
query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab2 cor0
----
-56
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 31 AS col2 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT ALL + 64 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT ALL - col1 * + col2 + col0 + col0 AS col0 FROM tab1 cor0
----
-1088
-1398
-442
query I rowsort
SELECT ALL 26 + + col1 * ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
7336
8216
9338
query I rowsort
SELECT ALL + tab0.col0 * + 89 * - col0 FROM tab0
----
-109025
-51264
-704969
query I rowsort
SELECT ALL 32 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT DISTINCT - + 46 DIV + col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - + 46 / + col1 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab0 AS cor0
----
50
query I rowsort
SELECT + - 48 * cor0.col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT col1 * CAST( NULL AS SIGNED ) * + 26 + col2 * + col2 * + col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6795
SELECT col1 * CAST ( NULL AS INTEGER ) * + 26 + col2 * + col2 * + col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * - 91 AS col2 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT + - cor0.col1 + col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6798
SELECT DISTINCT + - col2 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + - col2 + + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT col0 DIV - ( col1 ) FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6799
SELECT col0 / - ( col1 ) FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT ALL + - col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT DISTINCT col1 DIV - 31 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT col1 / - 31 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - col1 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT - + col1 DIV + 65 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6805
SELECT - + col1 / + 65 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * + 51 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT DISTINCT - + col0 * - col2 AS col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6808
SELECT ALL col2 * CAST( col1 * col0 AS SIGNED ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
36416
4209
99760
skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL col2 * CAST ( col1 * col0 AS INTEGER ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
36416
4209
99760
query I rowsort
SELECT ALL col1 + - 30 + - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1457
-647
-728
query I rowsort
SELECT col0 + col1 * + col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT DISTINCT col2 DIV 49 + - 80 AS col2 FROM tab0 cor0
----
-79
-80
skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT col2 / 49 + - 80 AS col2 FROM tab0 cor0
----
-79
-80
query I rowsort
SELECT ALL + + col2 * col1 + ( + col0 + ( - col2 ) ) * - col2 FROM tab2 AS cor0
----
-912
1377
182
query I rowsort
SELECT ALL - + col0 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL - col1 + col1 * - col2 + + col0 AS col2 FROM tab1
----
-1181
-1427
-516
query I rowsort
SELECT - col2 - + 68 * col2 * + col0 AS col0 FROM tab2
----
-12879
-137930
-204174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6816
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT ALL + col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to de2705ff0bb8b4f714dafb07497c6119
query I rowsort
SELECT ALL + col2 + col2 + col0 * - col1 AS col1 FROM tab2
----
-1267
-163
-4550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 col0 FROM tab1 AS cor0
----
-78
-78
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 74 ) col2 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT 39 AS col2 FROM tab0 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT DISTINCT - col0 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT - col0 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + + col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT - 90 FROM tab0 cor0
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6827
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT ALL col1 DIV + col0 + col0 col2 FROM tab1
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL col1 / + col0 + col0 col2 FROM tab1
----
11
64
80
query I rowsort
SELECT + 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT + ( + col2 ) * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT col2 + 93 FROM tab0
----
126
175
94
query I rowsort
SELECT DISTINCT col1 + + 7 FROM tab2
----
24
38
66
query I rowsort
SELECT ALL - col2 + ( 94 ) FROM tab0
----
12
61
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT DISTINCT ( tab1.col2 ) DIV tab1.col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT ( tab1.col2 ) / tab1.col0 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT - ( col1 ) * + col1 + + col2 * + 25 AS col2 FROM tab2 AS cor0
----
-2831
-286
661
query I rowsort
SELECT ALL col0 * 83 FROM tab2 cor0
----
581
6474
6557
query I rowsort
SELECT + 15 * col1 AS col1 FROM tab2 AS cor0
----
255
465
885
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * + cor0.col1 + col1 * col0 col2 FROM tab1 AS cor0
----
-156
-2314
-280
query I rowsort
SELECT ALL + 70 - - 62 AS col2 FROM tab1 AS cor0
----
132
132
132
query I rowsort
SELECT + col0 + - cor0.col2 - - 58 * col2 FROM tab0 AS cor0
----
1905
4763
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 + col1 col1 FROM tab2
----
118
34
62
query I rowsort
SELECT + 38 * 6 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 089770693ed05b90ff1d6e52838c3525
query I rowsort
SELECT ALL + col2 + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL - 89 + - col0 * 92 DIV col1 FROM tab1
----
-655
-677
-99
skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - 89 + - col0 * 92 / col1 FROM tab1
----
-655
-677
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT ALL + - cor0.col0 + CAST( - col0 AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + - cor0.col0 + CAST ( - col0 AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col0 * - 72 + + col2 AS col2 FROM tab1 AS cor0
----
-162
-4551
-5664
query I rowsort
SELECT 15 FROM tab2, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - - col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - cor0.col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + - col0 * + ( - col1 * col0 ) - - col1 AS col1 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab2
----
-55
query I rowsort
SELECT 88 * + tab0.col0 AS col2 FROM tab0
----
2112
3080
7832
query I rowsort
SELECT col1 * col1 * + 93 FROM tab2 AS cor0
----
26877
323733
89373
query I rowsort
SELECT - + 13 AS col2 FROM tab0 AS cor0
----
-13
-13
-13
query I rowsort
SELECT col0 * - col0 * + col2 + 10 AS col0 FROM tab1 AS cor0
----
-233462
-476
-614390
query I rowsort
SELECT 20 + col2 + - col0 * 99 * col1 AS col1 FROM tab1 AS cor0
----
-102844
-63283
-7648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * - 1 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - - col0 * + 59 AS col0 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT ALL - 44 FROM tab2, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT DISTINCT + 37 * - cor1.col0 - - cor0.col2 * + 48 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
9 values hashing to fa8ac08f91f5588a2fb1016198f6ca5a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 58 col0 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT - 16 * 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2759faea94124296954c6bec9388fcce
query I rowsort
SELECT + cor0.col2 + + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - - ( - col1 ) - col1 * ( - 93 ) * col0 AS col0 FROM tab2 AS cor0
----
124882
20150
427927
query I rowsort
SELECT + col0 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + + col2 * - ( - col0 ) col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + col0 + - 76 * + col2 FROM tab1
----
-4101
-4268
-7216
query I rowsort
SELECT - cor0.col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col2 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * col2 col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT ALL CAST( col1 AS SIGNED ) DIV - tab1.col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL CAST ( col1 AS INTEGER ) / - tab1.col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT - 98 + - col0 AS col1 FROM tab0 cor0
----
-122
-133
-187
query I rowsort
SELECT DISTINCT + 43 * + col2 + col1 FROM tab2 cor0
----
1177
1192
1651
query I rowsort
SELECT ALL 56 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT 39 * - col1 + - col2 FROM tab1 cor0
----
-1068
-447
-603
query I rowsort
SELECT + 76 + 42 * col0 AS col0 FROM tab2
----
3352
3394
370
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT col2 DIV - col0 col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6879
SELECT col2 / - col0 col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL 81 + 99 * + col2 FROM tab0 AS cor0
----
180
3348
8199
query I rowsort
SELECT - + 20 + - col2 FROM tab2 AS cor0
----
-46
-47
-58
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0
----
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT + - cor0.col1 DIV + col0 - + col1 FROM tab2 AS cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-6884
SELECT + - cor0.col1 / + col0 - + col1 FROM tab2 AS cor0
----
-17
-35
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6885
SELECT - CAST( NULL AS SIGNED ) / tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6885
SELECT - CAST ( NULL AS INTEGER ) / tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col0 - col1 AS col1 FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0
----
33
query I rowsort
SELECT 49 AS col1 FROM tab0
----
49
49
49
query I rowsort
SELECT ALL - 32 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT ALL 81 + col2 + 6 FROM tab1
----
141
144
183
query I rowsort
SELECT DISTINCT - col2 + - tab2.col2 * col2 * - col1 AS col1 FROM tab2
----
22572
24510
39858
query I rowsort
SELECT - col0 + col2 - - 56 FROM tab1
----
107
49
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * + col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 54 + - col0 AS col2 FROM tab1 AS cor0
----
-10
-26
51
query I rowsort
SELECT - + 83 AS col2 FROM tab0 AS cor0
----
-83
-83
-83
query I rowsort
SELECT col0 - + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 11 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT DISTINCT col1 * - col0 * col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT 42 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL col2 * ( col1 ) AS col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT - + col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6903
SELECT - + col1 / + col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - col0 - ( tab1.col0 * col1 ) FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT ALL - 55 FROM tab0, tab2 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT 63 FROM tab2 AS cor0
----
63
63
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6907
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6907
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6909
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( + cor0.col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - 22 * - col2 FROM tab1 AS cor0
----
1188
1254
2112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col0 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
174
262
705
query I rowsort
SELECT DISTINCT 26 * col0 AS col0 FROM tab0 AS cor0
----
2314
624
910
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6919
SELECT CAST( + col0 AS SIGNED ) * + col1 * - ( - 33 ) col0 FROM tab1 AS cor0
----
21120
2574
34320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6919
SELECT CAST ( + col0 AS INTEGER ) * + col1 * - ( - 33 ) col0 FROM tab1 AS cor0
----
21120
2574
34320
query I rowsort
SELECT - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 3 * + col0 AS col2 FROM tab2
----
-21
-234
-237
query I rowsort
SELECT ALL - col2 * tab0.col1 * + col2 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6924
SELECT DISTINCT col0 DIV tab1.col0 col0 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6924
SELECT DISTINCT col0 / tab1.col0 col0 FROM tab1
----
1
query I rowsort
SELECT ALL - - col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col1 + + col0 * + col2 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT col1 * - 14 AS col2 FROM tab1
----
-140
-182
-364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT CAST( NULL AS SIGNED ) + - col0 + col1 / + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6930
SELECT CAST ( NULL AS INTEGER ) + - col0 + col1 / + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 36 + - col1 AS col0 FROM tab0
----
-50
-55
-61
query I rowsort
SELECT DISTINCT - 91 * tab1.col2 * col1 + col2 AS col1 FROM tab1
----
-113472
-127710
-51813
query I rowsort
SELECT 58 + - col2 FROM tab2
----
20
31
32
query I rowsort
SELECT DISTINCT col1 + + col0 * tab0.col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - tab0.col1 * 47 + tab0.col1 AS col1 FROM tab0
----
-3956
-4186
-4462
query I rowsort
SELECT col2 * 9 AS col2 FROM tab1
----
486
513
864
query I rowsort
SELECT DISTINCT - tab2.col1 * col0 + col1 + - col2 FROM tab2
----
-1364
-213
-4569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + + col1 * + cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6940
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * + col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6941
SELECT ALL + ( + col1 ) + - col1 DIV + col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL + ( + col1 ) + - col1 / + col0 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT - 72 * col1 + - col0 FROM tab1 AS cor0
----
-1016
-1875
-784
query I rowsort
SELECT DISTINCT + 97 + col2 * col2 FROM tab0
----
1186
6821
98
query I rowsort
SELECT - ( 76 * - tab2.col0 ) FROM tab2
----
532
5928
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT col0 DIV 61 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6945
SELECT col0 / 61 FROM tab1
----
0
1
1
query I rowsort
SELECT - 55 * - col2 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT - 29 * col1 FROM tab1 AS cor0
----
-290
-377
-754
query I rowsort
SELECT DISTINCT + + 98 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
1044
1354
2551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 + cor0.col0 col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT - 86 - - col0 * - col0 FROM tab0 AS cor0
----
-1311
-662
-8007
query I rowsort
SELECT - cor0.col2 * col2 * col2 + col2 * col0 FROM tab1 AS cor0
----
-157302
-181545
-877056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 + col2 col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + + col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 44 * col2 FROM tab1
----
2376
2508
4224
query I rowsort
SELECT ALL - col1 * cor0.col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT col2 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + - 87 + col2 * col0 FROM tab2 AS cor0
----
102
1941
2915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 * + col0 * - col0 FROM tab2 AS cor0
----
343
474552
493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-6960
SELECT + col0 DIV col2 + - col0 AS col1 FROM tab1 cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6960
SELECT + col0 / col2 + - col0 AS col1 FROM tab1 cor0
----
-3
-63
-80
query I rowsort
SELECT ALL - col2 + - col2 * + col2 AS col2 FROM tab2
----
-1482
-702
-756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6962
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 + - col0 / col2 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 + - col0 / col2 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL 36 + - col1 FROM tab1 AS cor0
----
10
23
26
query I rowsort
SELECT DISTINCT - + 91 + col1 * col2 FROM tab2 cor0
----
1443
555
746
query I rowsort
SELECT col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + + col1 * + cor0.col1 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT + col2 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - 52 FROM tab1 AS cor0
----
-52
-52
-52
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT col2 + - col1 * col0 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab0.col1 col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - col1 + + col1 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT cor0.col1 * cor0.col0 - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + col0 + - col1 * - col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT col2 - col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col1 )
----
query I rowsort
SELECT - col1 + + col1 - + col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL tab1.col0 * col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - tab2.col0 + col1 - col0 AS col1 FROM tab2
----
-141
-97
17
query I rowsort
SELECT DISTINCT col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 WHERE ( NULL ) < ( col1 + - col0 + col1 * - col2 )
----
query I rowsort
SELECT col1 * col0 + col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col0 IN ( col0 )
----
3
64
80
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT tab2.col0 * tab2.col2 + + tab2.col0 AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + tab1.col1 * - col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab2.col0 * tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 * - col1 col0 FROM tab1
----
13533
2054
6410
query I rowsort
SELECT col1 * + col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - col2 * cor0.col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
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-6998
SELECT ALL col2 + + col0 * - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL col2 + + col0 * - col1 / col1 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 + col1 * - col2 col0 FROM tab2 AS cor0
----
-1416
-612
-775
query I rowsort
SELECT DISTINCT + col0 * + col2 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 AS col1 FROM tab1 cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT ALL + col1 + + col2 DIV + col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + col1 + + col2 / + col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT tab2.col2 + col0 * col2 * + col2 FROM tab2
----
114114
5130
52754
query I rowsort
SELECT DISTINCT - col0 + tab2.col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT ALL - col1 DIV - col1 + col0 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL - col1 / - col1 + col0 * col1 / col0 AS col0 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL - + cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + col2 + 12 AS col1 FROM tab2 AS cor0
----
38
39
50
query I rowsort
SELECT DISTINCT - col1 + + col1 - col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + cor0.col1 * - col2 - + col1 * 82 AS col0 FROM tab2 cor0
----
-2040
-3379
-6372
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7015
SELECT ALL col1 * CAST( + col2 AS SIGNED ) * + col1 FROM tab1
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL col1 * CAST ( + col2 AS INTEGER ) * + col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT tab1.col2 DIV col0 + 55 FROM tab1
----
55
56
73
skipif mysql # not compatible
query I rowsort label-7016
SELECT tab1.col2 / col0 + 55 FROM tab1
----
55
56
73
query I rowsort
SELECT ALL - tab2.col2 - 20 * col2 AS col0 FROM tab2
----
-546
-567
-798
query I rowsort
SELECT ALL ( - col2 ) + + col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT DISTINCT + 15 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT - + 64 + - col1 AS col1 FROM tab1 AS cor0
----
-74
-77
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ALL col0 * + col1 * col2 + + col0 DIV + 85 AS col2 FROM tab0 AS cor0
----
3395
664119
68112
skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL col0 * + col1 * col2 + + col0 / + 85 AS col2 FROM tab0 AS cor0
----
3395
664119
68112
query I rowsort
SELECT + ( + 67 ) FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT 29 + - 3 FROM tab1 cor0
----
26
query I rowsort
SELECT + - col2 - - col1 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
10944
25920
90480
query I rowsort
SELECT - 83 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
-4456
-4721
-7955
query I rowsort
SELECT - + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT 27 + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1116
28
6751
query I rowsort
SELECT + - col1 * col1 * - col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT 63 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT + col2 - 93 AS col0 FROM tab0 AS cor0
----
-11
-60
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT + col2 DIV 55 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7031
SELECT + col2 / 55 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + col0 * col1 * - col0 - col2 FROM tab1 AS cor0
----
-288
-41017
-83296
query I rowsort
SELECT + - col2 + + 93 + col0 FROM tab2 cor0
----
134
145
73
query I rowsort
SELECT DISTINCT col1 * + col1 - ( col2 + col0 ) FROM tab1 AS cor0
----
-21
-7
619
query I rowsort
SELECT DISTINCT + col1 + 95 AS col0 FROM tab0 AS cor0
----
181
186
192
query I rowsort
SELECT + col0 * - 7 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT DISTINCT - cor0.col1 - - col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col2 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - cor0.col2 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127
query I rowsort
SELECT DISTINCT - ( tab0.col0 ) AS col2 FROM tab0, tab2 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * 59 AS col1 FROM tab1 AS cor0
----
1534
590
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT + - col1 DIV col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7043
SELECT + - col1 / col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT DISTINCT col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT col1 / col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col1 + - 68 * col0 FROM tab1 AS cor0
----
-178
-4342
-5427
query I rowsort
SELECT ALL col0 * ( col1 ) + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + + col0 * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT - + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7049
SELECT - + col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT - col1 * 14 FROM tab0 AS cor0
----
-1204
-1274
-1358
query I rowsort
SELECT ALL + + col0 * - 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT - col1 DIV - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7053
SELECT - col1 / - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col0 * + ( + 63 ) AS col2 FROM tab0 AS cor0
----
-1512
-2205
-5607
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT col0 DIV cor0.col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7055
SELECT col0 / cor0.col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - 55 - + 4 FROM tab0 cor0
----
-59
-59
-59
query I rowsort
SELECT + - col2 + + col2 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL 56 * - 25 FROM tab1 AS cor0
----
-1400
-1400
-1400
query I rowsort
SELECT - 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT - col0 - + col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 + - col2 * + col2 col1 FROM tab0 AS cor0
----
-1172
-6807
-84
query I rowsort
SELECT DISTINCT + - 19 * col2 AS col1 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT col0 * 92 AS col0 FROM tab0
----
2208
3220
8188
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
query I rowsort
SELECT + col2 * + 55 AS col1 FROM tab0
----
1815
4510
55
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 DISTINCT 29 col2 FROM tab1
----
29
query I rowsort
SELECT - ( col2 ) + tab2.col0 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - tab0.col2 * col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + 65 * col2 + - 11 AS col2 FROM tab0
----
2134
5319
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT DISTINCT 67 DIV ( cor0.col1 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT 67 / ( cor0.col1 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - - 29 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT ALL - 67 DIV col0 AS col1 FROM tab2
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - 67 / col0 AS col1 FROM tab2
----
-9
0
0
query I rowsort
SELECT - 45 + col2 * col1 AS col1 FROM tab0
----
2793
52
7417
query I rowsort
SELECT ALL + 38 FROM tab0
----
38
38
38
query I rowsort
SELECT DISTINCT col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 + + col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT col2 * + col1 - - 88 AS col2 FROM tab0 AS cor0
----
185
2926
7550
query I rowsort
SELECT DISTINCT col0 * col1 + + 21 FROM tab1 AS cor0
----
1061
661
99
query I rowsort
SELECT ALL 99 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + + col0 * col2 + ( - cor0.col2 * - cor0.col1 ) FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT + + 19 + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1515
-627
-818
query I rowsort
SELECT DISTINCT - + col0 + col0 - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 + - col2 * + col2 AS col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ( 78 ) * tab2.col1 + + ( - 92 + + tab2.col0 ) FROM tab2
----
1313
2333
4588
query I rowsort
SELECT ALL + ( + col2 ) + - col0 * + ( col0 ) * col0 FROM tab2
----
-316
-474526
-493001
query I rowsort
SELECT ALL 67 * col1 FROM tab2
----
1139
2077
3953
query I rowsort
SELECT col0 + + ( col2 ) AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col0 * + col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + 11 + col0 FROM tab2
----
18
89
90
query I rowsort
SELECT + 29 + - col0 FROM tab0
----
-6
-60
5
query I rowsort
SELECT 9 * + tab0.col2 FROM tab0
----
297
738
9
query I rowsort
SELECT DISTINCT col2 + col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL ( - col0 + + 29 ) FROM tab1
----
-35
-51
26
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) + col2 * + 32 + - col2 col1 FROM tab1 AS cor0
----
1728
1824
3072
query I rowsort
SELECT DISTINCT - - col0 + col2 * 43 AS col0 FROM tab2 AS cor0
----
1168
1196
1713
query I rowsort
SELECT ALL + col0 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - 88 * + ( col0 ) FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT + + 87 * col1 AS col2 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT ALL - - 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 - ( col1 ) * - col0 * tab1.col2 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT col1 + 47 FROM tab0
----
133
138
144
query I rowsort
SELECT - 14 + tab0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 7bde97be6f2f8313ff5b845188555177
query I rowsort
SELECT - col0 * 66 + - 11 * tab0.col2 * + col1 FROM tab0
----
-32802
-3377
-87956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 - col1 * col0 col1 FROM tab2 AS cor0
----
-1261
-135
-4520
query I rowsort
SELECT ALL + - col2 * - 76 AS col0 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT DISTINCT + col2 * 92 + col0 * + ( 13 ) AS col1 FROM tab1 AS cor0
----
5007
6076
9872
query I rowsort
SELECT + col0 + + 4 * + col2 * 52 FROM tab2 AS cor0
----
5486
5623
7983
query I rowsort
SELECT ( col0 ) - + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - 71 * + col2 AS col1 FROM tab1 AS cor0
----
-3808
-4037
-6803
query I rowsort
SELECT + ( col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 * + 18 AS col2 FROM tab0 cor0
----
1548
1638
1746
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT ALL + CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 31 * + 51 + + col2 AS col0 FROM tab1 AS cor0
----
1635
1638
1677
query I rowsort
SELECT DISTINCT - ( col2 ) - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT ( - ( + col2 ) ) + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7122
SELECT ( - ( + col2 ) ) + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 16 * 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 * + col2 - + col0 AS col0 FROM tab1 cor0
----
2913
3185
9136
query I rowsort
SELECT ALL - 15 * col1 FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT ALL - + cor0.col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col2 ) * col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL 19 * cor0.col1 - col2 * + col1 FROM tab2 AS cor0
----
-248
-323
-413
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 + + col2 FROM tab2 cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 77 col1 FROM tab0
----
163
168
174
query I rowsort
SELECT DISTINCT + ( 69 ) FROM tab0
----
69
query I rowsort
SELECT DISTINCT 2 * col0 AS col1 FROM tab1
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7133
SELECT col0 * + 89 * + tab1.col0 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
364487
569504
747
skipif mysql # not compatible
query I rowsort label-7133
SELECT col0 * + 89 * + tab1.col0 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
364487
569504
747
query I rowsort
SELECT DISTINCT col0 + 12 * col1 + col2 FROM tab2
----
321
406
812
query I rowsort
SELECT DISTINCT col2 + col0 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - - col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT col0 + + 80 * - col1 FROM tab0 AS cor0
----
-6856
-7191
-7725
query I rowsort
SELECT - 1 * ( + col2 * + col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 2 * col2 * cor0.col0 FROM tab0 AS cor0
----
-14596
-1584
-70
query I rowsort
SELECT DISTINCT - cor0.col0 * ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 35 AS col2 FROM tab0 AS cor0
----
35
35
35
query I rowsort
SELECT + + col0 - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - ( col0 ) * 52 + - col1 FROM tab0 cor0
----
-1334
-1917
-4719
query I rowsort
SELECT col2 + col0 + col2 AS col1 FROM tab1 AS cor0
----
111
178
272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7146
SELECT + 75 * col0 / CAST( NULL AS SIGNED ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7146
SELECT + 75 * col0 / CAST ( NULL AS INTEGER ) + 80 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 AS col1 FROM tab1 AS cor0
----
-33
-33
-33
query I rowsort
SELECT 7 + 1 AS col0 FROM tab1
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT - col2 DIV 29 AS col2 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-7149
SELECT - col2 / 29 AS col2 FROM tab0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT + 82 * col0 * - col2 - - 24 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-13260
-299112
-629736
skipif mysql # not compatible
query I rowsort label-7150
SELECT + 82 * col0 * - col2 - - 24 * col2 / col2 AS col0 FROM tab1 AS cor0
----
-13260
-299112
-629736
query I rowsort
SELECT - - col0 + cor0.col0 * 65 FROM tab0 AS cor0
----
1584
2310
5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT - col1 * col0 DIV col0 + - col0 * col1 * + cor0.col2 FROM tab0 AS cor0
----
-3492
-664209
-68198
skipif mysql # not compatible
query I rowsort label-7152
SELECT - col1 * col0 / col0 + - col0 * col1 * + cor0.col2 FROM tab0 AS cor0
----
-3492
-664209
-68198
query I rowsort
SELECT DISTINCT col1 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7154
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7155
SELECT ALL col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL col0 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7157
SELECT - col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL col2 * - 79 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - + ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + tab2.col0 + 73 AS col2 FROM tab2
----
151
152
80
query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2, tab2 AS cor3
----
9
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab1 cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
query I rowsort
SELECT ALL - 67 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT + tab2.col0 * - col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - cor0.col2 * 64 + + col1 FROM tab2 AS cor0
----
-1605
-1697
-2415
query I rowsort
SELECT - + col1 * + 25 FROM tab1 AS cor0
----
-250
-325
-650
query I rowsort
SELECT ALL col0 * col1 - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + + col1 * 23 * + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
105872
30927
5018
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7170
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7170
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col1 - tab0.col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT - col2 - 86 AS col2 FROM tab2 AS cor0
----
-112
-113
-124
query I rowsort
SELECT + col2 * ( col1 + tab0.col1 * col1 ) FROM tab0
----
246906
686504
9506
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT + tab2.col1 - - 15 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7f8b3123042dca5b636bb34179ad049e
query I rowsort
SELECT + col0 + ( + col2 ) + tab2.col1 AS col1 FROM tab2
----
134
163
65
query I rowsort
SELECT col0 + col0 * + col1 FROM tab0
----
2088
3430
8188
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - 76 * col0 * + 41 FROM tab1 AS cor0
----
-199424
-249280
-9348
query I rowsort
SELECT + col0 * col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT + col1 * + tab2.col1 + col1 * + col1 FROM tab2
----
1922
578
6962
query I rowsort
SELECT ALL + col2 * tab0.col2 FROM tab0
----
1
1089
6724
query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col1 + + col1 * col0 IN ( - col1 )
----
query I rowsort
SELECT DISTINCT - col0 - col2 AS col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL + col2 + tab1.col2 + - col0 AS col1 FROM tab1 WHERE NOT col0 + col0 * + col0 + col0 * + col0 IN ( col1 )
----
105
112
50
query I rowsort
SELECT ALL - col2 / col1 AS col0 FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col1 + + col2 * col0 FROM tab1
----
136
3638
7667
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - col2 NOT IN ( - col1 )
----
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ( - col1 ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + col2 + col2 * ( - col2 ) FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab1 AS cor0
----
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT ALL col1 * col1 DIV col1 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL col1 * col1 / col1 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT + - 48 * - col0 FROM tab1 cor0
----
144
3072
3840
query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0
----
50
query I rowsort
SELECT - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1, tab2 cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT ALL col0 * ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7204
SELECT ALL col0 * 64 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
2240
46
69
skipif mysql # not compatible
query I rowsort label-7204
SELECT ALL col0 * 64 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
2240
46
69
query I rowsort
SELECT - cor0.col0 + 89 * + 50 AS col2 FROM tab1 AS cor0
----
4370
4386
4447
query I rowsort
SELECT ALL - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT DISTINCT cor0.col2 + - 73 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
53
56
96
skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT cor0.col2 + - 73 / cor0.col2 AS col1 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 + - ( ( col0 ) ) * ( - col1 ) AS col0 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + col0 ) * - col2 col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7212
SELECT + + CAST( - col2 AS SIGNED ) * - col0 + ( + col0 ) * col0 FROM tab2 AS cor0
----
238
8112
9243
skipif mysql # not compatible
query I rowsort label-7212
SELECT + + CAST ( - col2 AS INTEGER ) * - col0 + ( + col0 ) * col0 FROM tab2 AS cor0
----
238
8112
9243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7213
SELECT + CAST( tab0.col0 AS SIGNED ) * col0 AS col2 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-7213
SELECT + CAST ( tab0.col0 AS INTEGER ) * col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - 48 + - 36 + - col2 * tab0.col2 FROM tab0
----
-1173
-6808
-85
query I rowsort
SELECT - - cor0.col1 * - col1 + - cor0.col2 * + 90 * - 32 AS col0 FROM tab0 AS cor0
----
-6529
227879
87644
query I rowsort
SELECT + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7217
SELECT DISTINCT + + ( 72 ) * col0 * CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + + ( 72 ) * col0 * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + 42 AS col2 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT ALL + ( ( + cor0.col0 ) ) * + 79 AS col0 FROM tab0 AS cor0
----
1896
2765
7031
query I rowsort
SELECT ALL + - ( 77 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-42
-53
12
query I rowsort
SELECT ALL 48 * - col1 * col1 + - 75 * - col2 FROM tab0 AS cor0
----
-352533
-391338
-451557
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * - col0 col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT cor0.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 39 FROM tab1
----
39
39
39
query I rowsort
SELECT + 80 * 81 AS col1 FROM tab2
----
6480
6480
6480
query I rowsort
SELECT + cor0.col0 * - col1 + - cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2236
-3589
-8281
query I rowsort
SELECT DISTINCT - - 70 * col0 + + 33 + - col2 AS col0 FROM tab0 AS cor0
----
1680
2482
6181
query I rowsort
SELECT DISTINCT - 98 * cor0.col0 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL cor0.col1 + + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + col1 * col2 AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7232
SELECT + CAST( NULL AS DECIMAL ) + - col2 * col2 - - tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7232
SELECT + CAST ( NULL AS REAL ) + - col2 * col2 - - tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + tab1.col2 + + col1 * - tab1.col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - ( + col2 ) + col2 AS col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT - col0 * + 7 * + col1 FROM tab0 cor0
----
-14448
-23765
-56693
query I rowsort
SELECT ALL + + col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col0 * - 45 AS col0 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT col1 + 18 * col0 AS col0 FROM tab2 cor0
----
1439
1463
157
query I rowsort
SELECT cor0.col0 * col2 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 + + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + ( 50 ) * cor0.col0 + - 67 - + col1 FROM tab2 AS cor0
----
252
3774
3866
query I rowsort
SELECT ( col1 ) * + col2 - + col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT - 54 * + 72 * col0 - col0 AS col2 FROM tab1 AS cor0
----
-11667
-248896
-311120
query I rowsort
SELECT ALL - - 39 AS col1 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0
----
56
query I rowsort
SELECT - 6 * col0 * col2 FROM tab2 AS cor0
----
-1134
-12168
-18012
query I rowsort
SELECT ALL tab2.col2 + tab2.col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + + col0 * col1 * - col2 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT DISTINCT - col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT - col1 / col1 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 48 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
48
query I rowsort
SELECT 55 AS col2 FROM tab1 AS cor0
----
55
55
55
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT ALL 91 * col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT ALL 86 FROM tab2 cor0
----
86
86
86
query I rowsort
SELECT - + col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 77 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL 23 AS col2 FROM tab1
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT + col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7266
SELECT + col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 73 AS col2 FROM tab2
----
73
73
73
query I rowsort
SELECT - tab0.col1 + - col0 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT DISTINCT 48 DIV - col0 col0 FROM tab2
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT 48 / - col0 col0 FROM tab2
----
-6
0
query I rowsort
SELECT + 28 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT - - col0 + + col0 AS col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + - 87 + - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 52dac45f33d6404e37f10f4a0ca24a50
query I rowsort
SELECT DISTINCT col0 * + 59 FROM tab2
----
413
4602
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 47906197307eee6829150d762058792a
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT 22 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT DISTINCT col2 * + tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 26 + + col2 FROM tab2 cor0
----
52
53
64
query I rowsort
SELECT DISTINCT col1 + 64 FROM tab1
----
74
77
90
query I rowsort
SELECT + tab2.col1 * 56 AS col1 FROM tab2
----
1736
3304
952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT CAST( col0 AS SIGNED ) * col1 col0 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7284
SELECT CAST ( col0 AS INTEGER ) * col1 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + tab2.col2 * 38 FROM tab2
----
1026
1444
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-7286
SELECT ALL col1 * col2 - col0 DIV 2 AS col0 FROM tab2 AS cor0
----
1495
607
834
skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL col1 * col2 - col0 / 2 AS col0 FROM tab2 AS cor0
----
1495
607
834
query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + 40 AS col0 FROM tab0 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT - col0 * col0 + + 9 FROM tab2 AS cor0
----
-40
-6075
-6232
query I rowsort
SELECT DISTINCT + col1 - col0 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - 87 * col1 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-15838
-8058
-9664
query I rowsort
SELECT + 75 * + col0 FROM tab1 AS cor0
----
225
4800
6000
onlyif mysql # use DIV operator for integer division
query I rowsort label-7296
SELECT 30 * col1 DIV col2 FROM tab1 cor0
----
14
4
5
skipif mysql # not compatible
query I rowsort label-7296
SELECT 30 * col1 / col2 FROM tab1 cor0
----
14
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + + col0 col1 FROM tab2
----
162
163
91
query I rowsort
SELECT ALL + col1 * 30 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT + 89 * - col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 81 + cor0.col0 * - col2 * col2 col0 FROM tab0 AS cor0
----
-26055
-598355
46
query I rowsort
SELECT DISTINCT - 72 * - col2 + cor0.col0 FROM tab2 AS cor0
----
1950
1951
2815
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab0 AS cor0
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL - col2 * col2 DIV 64 AS col2 FROM tab2 AS cor0
----
-10
-11
-22
skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL - col2 * col2 / 64 AS col2 FROM tab2 AS cor0
----
-10
-11
-22
query I rowsort
SELECT ALL - - cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - 85 * col0 FROM tab1
----
-255
-5440
-6800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 64 AS REAL ) AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 - + col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT - col2 * col1 + 98 AS col1 FROM tab1 AS cor0
----
-1150
-1306
-472
query I rowsort
SELECT + + col2 + + 39 + ( + col2 ) FROM tab0 cor0
----
105
203
41
query I rowsort
SELECT DISTINCT col2 * 14 AS col1 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT + cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - cor0.col1 + - 96 FROM tab1 AS cor0
----
-106
-109
-122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7315
SELECT col2 + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-7315
SELECT col2 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT DISTINCT - cor0.col2 + - col0 DIV - col2 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-7316
SELECT DISTINCT - cor0.col2 + - col0 / - col2 FROM tab0 AS cor0
----
-33
-81
34
query I rowsort
SELECT + col2 + col2 * - 76 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT col2 + col1 * + col1 + col1 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT DISTINCT - + col0 * 63 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT + + col2 + + col2 + col0 FROM tab0 cor0
----
253
37
90
query I rowsort
SELECT DISTINCT + 19 * + tab1.col1 * + col0 FROM tab1
----
12160
1482
19760
query I rowsort
SELECT ALL - 54 * col0 AS col2 FROM tab1 cor0
----
-162
-3456
-4320
query I rowsort
SELECT + + col0 * 29 + + col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
2387
2399
241
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - col1 + col2 * + col2 - - 93 FROM tab0 AS cor0
----
-3
1096
6726
query I rowsort
SELECT - 64 * col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2088
-29
-5159
query I rowsort
SELECT DISTINCT 43 + ( col1 ) FROM tab1 AS cor0
----
53
56
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT ALL - col2 DIV + col2 + tab1.col1 * + col0 col2 FROM tab1
----
1039
639
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL - col2 / + col2 + tab1.col1 * + col0 col2 FROM tab1
----
1039
639
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7329
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 83 * + cor0.col0 * + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
111548
18018
382044
query I rowsort
SELECT - ( cor0.col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 + 8 * col0 AS col1 FROM tab1 AS cor0
----
569
736
78
query I rowsort
SELECT ALL ( - col2 ) * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7334
SELECT - 7 + + col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-7
-7
-7
skipif mysql # not compatible
query I rowsort label-7334
SELECT - 7 + + col0 / - col1 AS col1 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT + col1 * + col1 * col0 AS col1 FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT DISTINCT col2 + + tab0.col2 DIV - 10 AS col2 FROM tab0
----
1
30
74
skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT col2 + + tab0.col2 / - 10 AS col2 FROM tab0
----
1
30
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT DISTINCT - col0 DIV - col0 + - 49 FROM tab1
----
-48
skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT - col0 / - col0 + - 49 FROM tab1
----
-48
query I rowsort
SELECT ALL - col2 + - 91 FROM tab0
----
-124
-173
-92
query I rowsort
SELECT + col0 + + col0 + - col1 * col0 AS col0 FROM tab0
----
-2016
-3325
-7921
query I rowsort
SELECT ALL + col2 + 71 AS col0 FROM tab0
----
104
153
72
query I rowsort
SELECT DISTINCT col0 + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT col0 + + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL - col0 + - 0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - 60 FROM tab1, tab2 AS cor0
----
-60
query I rowsort
SELECT ALL 99 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab0
----
6
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + 15 FROM tab2 AS cor0
----
41
42
53
query I rowsort
SELECT ALL 39 AS col1 FROM tab1 cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + col2 * + ( col0 + col2 ) AS col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT DISTINCT - + col0 * 17 AS col0 FROM tab0 AS cor0
----
-1513
-408
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 + + col2 col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT col0 * + col1 + col0 + + 36 FROM tab1 AS cor0
----
1156
117
740
onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT - 60 * + col0 DIV col0 + + col1 FROM tab2
----
-1
-29
-43
skipif mysql # not compatible
query I rowsort label-7354
SELECT - 60 * + col0 / col0 + + col1 FROM tab2
----
-1
-29
-43
query I rowsort
SELECT ALL + col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col1 + col2 + col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + + col2 + - 53 AS col0 FROM tab0 AS cor0
----
-20
-52
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 55 ) col2 FROM tab0, tab2 cor0, tab1 cor1
----
55
query I rowsort
SELECT + 0 - + col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT ALL - + 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT + col1 * col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1
query I rowsort
SELECT - - col1 * ( col2 ) - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT cor0.col1 + - 63 FROM tab0 AS cor0
----
23
28
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT DISTINCT tab1.col0 * 96 + + col1 DIV col1 AS col2 FROM tab1
----
289
6145
7681
skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT tab1.col0 * 96 + + col1 / col1 AS col2 FROM tab1
----
289
6145
7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + CAST ( col2 AS REAL ) col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL tab2.col0 + + 8 * col1 * + col1 AS col0 FROM tab2
----
2391
27926
7695
query I rowsort
SELECT DISTINCT - col1 * + col2 + 15 * + tab2.col1 AS col1 FROM tab2
----
-372
-391
-649
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT + + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7372
SELECT + + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7374
SELECT ALL cor0.col1 * CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL cor0.col1 * CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + + col0 + + col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + col1 + col0 * - 40 AS col2 FROM tab1 cor0
----
-2550
-3187
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7380
SELECT + - col1 - + CAST( - col0 * col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
18
6025
6224
skipif mysql # not compatible
query I rowsort label-7380
SELECT + - col1 - + CAST ( - col0 * col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
18
6025
6224
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT ( - 29 ) AS col2 FROM tab2
----
-29
-29
-29
query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 7 * - ( col0 ) + + col0 AS col0 FROM tab1
----
-18
-384
-480
query I rowsort
SELECT - ( col2 ) + col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT + 97 * - col1 FROM tab2
----
-1649
-3007
-5723
query I rowsort
SELECT ALL + ( 39 ) * col1 + col1 FROM tab1 cor0
----
1040
400
520
query I rowsort
SELECT 24 * - col1 FROM tab0 AS cor0
----
-2064
-2184
-2328
onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT DISTINCT - + 40 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-33
-35
-38
skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - + 40 + col2 / col1 AS col0 FROM tab1 AS cor0
----
-33
-35
-38
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab2 AS cor0
----
37
query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab2 AS cor0
----
-28
query I rowsort
SELECT - 59 + 63 * + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
40261
4855
65461
onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT 18 DIV 11 + - col1 * 32 AS col0 FROM tab1
----
-319
-415
-831
skipif mysql # not compatible
query I rowsort label-7394
SELECT 18 / 11 + - col1 * 32 AS col0 FROM tab1
----
-319
-415
-831
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab1 cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT 38 * tab1.col2 AS col0 FROM tab1
----
2052
2166
3648
query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab1
----
3
query I rowsort
SELECT + 74 + - col1 * + col1 FROM tab1 AS cor0
----
-26
-602
-95
query I rowsort
SELECT DISTINCT + col1 * col2 + + 47 AS col1 FROM tab0 AS cor0
----
144
2885
7509
query I rowsort
SELECT + 39 AS col0 FROM tab1 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT DISTINCT col0 + col1 DIV - 17 AS col2 FROM tab1 AS cor0
----
2
64
80
skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT col0 + col1 / - 17 AS col2 FROM tab1 AS cor0
----
2
64
80
query I rowsort
SELECT ALL + col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 * col0 + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL - col0 * ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7409
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - col1 * + 22 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT 97 AS col0 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + col2 + ( - col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT - 18 * 9 * + col0 FROM tab0 cor0
----
-14418
-3888
-5670
query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 - col0 * + col2 AS col0 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT DISTINCT col0 + col2 DIV col1 AS col0 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT col0 + col2 / col1 AS col0 FROM tab2
----
7
78
81
query I rowsort
SELECT col2 + tab2.col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col1 * - col2 * ( + col1 ) FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT + col0 + - 7 FROM tab1
----
-4
57
73
query I rowsort
SELECT ALL - tab0.col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT ALL + 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT - ( - tab0.col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 71 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT ALL + 5 AS col2 FROM tab1 cor0
----
5
5
5
query I rowsort
SELECT - + col1 + 90 AS col2 FROM tab0 AS cor0
----
-1
-7
4
query I rowsort
SELECT + - col0 * col0 * - 95 FROM tab1 AS cor0
----
389120
608000
855
query I rowsort
SELECT DISTINCT - - 11 + + col1 FROM tab0 AS cor0
----
102
108
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT + col2 * + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7429
SELECT + col2 * + cor0.col1 / - col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - + col2 * - cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab2
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT - 67 DIV 27 AS col0 FROM tab2
----
-2
skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - 67 / 27 AS col0 FROM tab2
----
-2
query I rowsort
SELECT ALL - 48 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT DISTINCT + col0 * + 98 FROM tab2
----
686
7644
7742
query I rowsort
SELECT ALL tab0.col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7437
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT - - col2 - 70 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-26
-283
23
skipif mysql # not compatible
query I rowsort label-7439
SELECT - - col2 - 70 * col1 / col0 AS col0 FROM tab2 AS cor0
----
-26
-283
23
query I rowsort
SELECT - + cor0.col1 - - ( - 89 ) FROM tab2 AS cor0
----
-106
-120
-148
query I rowsort
SELECT - col0 * ( + col2 ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 * col2 + + col0 AS col1 FROM tab0
----
132
611973
93678
query I rowsort
SELECT ( col2 ) AS col2 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT + col1 + + col2 DIV + tab2.col1 + - col0 AS col0 FROM tab2
----
-19
-60
24
skipif mysql # not compatible
query I rowsort label-7444
SELECT + col1 + + col2 / + tab2.col1 + - col0 AS col0 FROM tab2
----
-19
-60
24
query I rowsort
SELECT 14 * tab2.col1 AS col2 FROM tab2
----
238
434
826
query I rowsort
SELECT DISTINCT 67 * col2 + - tab0.col1 * 89 FROM tab0
----
-2605
-5443
-8566
query I rowsort
SELECT + col0 * + col2 + - col1 + + col0 AS col1 FROM tab1
----
139
3702
7747
query I rowsort
SELECT col1 * + ( + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + - col1 + 29 FROM tab0 AS cor0
----
-57
-62
-68
query I rowsort
SELECT cor0.col2 * - 25 + col1 FROM tab2 AS cor0
----
-591
-644
-933
query I rowsort
SELECT DISTINCT + + col1 * - 37 FROM tab0 AS cor0
----
-3182
-3367
-3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7452
SELECT tab0.col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7452
SELECT tab0.col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7453
SELECT ALL cor0.col1 + - 54 * - 36 + col1 * + CAST( - col0 * col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-104136
-356953
456
skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL cor0.col1 + - 54 * - 36 + col1 * + CAST ( - col0 * col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-104136
-356953
456
query I rowsort
SELECT col2 * + tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 18 + + col1 * - col2 FROM tab0
----
-2820
-7444
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + tab2.col0 - tab2.col2 * - col0 col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT 47 AS col2 FROM tab2
----
47
47
47
query I rowsort
SELECT + + col2 * col2 + ( + col0 ) * cor0.col1 FROM tab0 AS cor0
----
14823
3153
3396
query I rowsort
SELECT cor0.col2 + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + col1 + - col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT ALL cor0.col1 * ( col0 ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - col1 * + 43 + cor0.col2 FROM tab0 cor0
----
-3665
-3831
-4170
query I rowsort
SELECT - + col1 * 85 + 37 + col1 AS col1 FROM tab2 AS cor0
----
-1391
-2567
-4919
query I rowsort
SELECT - + col0 * 73 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT + tab2.col0 + + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * 20 FROM tab1 AS cor0
----
1080
1140
1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT - - col0 DIV + ( + col1 ) + col2 * + 94 FROM tab1 AS cor0
----
5076
5364
9030
skipif mysql # not compatible
query I rowsort label-7468
SELECT - - col0 / + ( + col1 ) + col2 * + 94 FROM tab1 AS cor0
----
5076
5364
9030
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 DISTINCT + col1 * - 97 * + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-275253
-723732
-9408
query I rowsort
SELECT DISTINCT col1 * 85 AS col0 FROM tab2 AS cor0
----
1445
2635
5015
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 * - ( - ( cor0.col2 ) * + CAST ( col1 AS REAL ) ) + col2 col1 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT col1 * col2 - - 28 * col0 AS col1 FROM tab2 cor0
----
1033
2858
3718
query I rowsort
SELECT ALL + + col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7475
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col0 * ( ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 91 + col0 AS col2 FROM tab2 AS cor0
----
169
170
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * + 71 - + col1 col1 FROM tab2 AS cor0
----
-869
-883
-911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 - tab0.col2 col1 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT + + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT cor0.col1 + + col1 DIV - col0 FROM tab0 cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-7483
SELECT cor0.col1 + + col1 / - col0 FROM tab0 cor0
----
83
90
95
query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab2 AS cor0
----
59
query I rowsort
SELECT + 89 * - col0 AS col2 FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT ALL + ( + col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 85 * + col2 FROM tab0 AS cor0
----
-2805
-6970
-85
query I rowsort
SELECT - 9 FROM tab2 AS cor0
----
-9
-9
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7489
SELECT cor0.col1 + + col1 * col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7489
SELECT cor0.col1 + + col1 * col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 9 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1239
1395
561
query I rowsort
SELECT DISTINCT + 99 FROM tab1 AS cor0
----
99
query I rowsort
SELECT 98 * col0 FROM tab2 cor0
----
686
7644
7742
query I rowsort
SELECT DISTINCT - 71 FROM tab1 AS cor0
----
-71
query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col0 - - col2 * - 93 FROM tab2 cor0
----
-2496
-2518
-3613
onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT DISTINCT + + col0 DIV - col1 - - 97 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-7496
SELECT DISTINCT + + col0 / - col1 - - 97 FROM tab0 AS cor0
----
97
query I rowsort
SELECT DISTINCT - + 10 FROM tab0 AS cor0
----
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7498
SELECT + col0 * + col1 + CAST( + col1 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
1398
275
4687
skipif mysql # not compatible
query I rowsort label-7498
SELECT + col0 * + col1 + CAST ( + col1 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + col0 + + col1 * + cor0.col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + 19 + - col2 AS col1 FROM tab0 AS cor0
----
-14
-63
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT ALL 41 * col2 * + CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-149568
-314880
-6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL 41 * col2 * + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-149568
-314880
-6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-7503
SELECT DISTINCT + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT + col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col1 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL tab2.col1 - + col1 * - col1 AS col0 FROM tab2
----
306
3540
992
query I rowsort
SELECT 7 + - col0 + tab1.col0 * + col1 * - col0 AS col1 FROM tab1
----
-230
-41017
-83273
query I rowsort
SELECT 48 * ( + col0 ) * + 21 + + col2 AS col1 FROM tab1
----
3078
64569
80736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT DISTINCT - CAST( col0 AS SIGNED ) - col0 AS col1 FROM tab1
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - col0 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT - + 69 + + col1 FROM tab0 AS cor0
----
17
22
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 * - ( 3 ) col0 FROM tab2 AS cor0
----
-199
-208
6
query I rowsort
SELECT ALL + - 41 FROM tab0 AS cor0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT col2 + col0 DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7512
SELECT col2 + col0 / col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL + - col2 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT DISTINCT + - col1 DIV col2 col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + - col1 / col2 col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + 20 * + col1 * - cor0.col2 FROM tab0 AS cor0
----
-149240
-1940
-56760
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 + + 51 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + - col1 col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT col1 * + col1 * ( - col0 ) - col1 AS col1 FROM tab0
----
-177590
-329412
-737100
query I rowsort
SELECT ALL col1 + col1 + - col2 FROM tab1
----
-2
-37
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7521
SELECT DISTINCT + - col0 * col0 + CAST( - 36 AS SIGNED ) FROM tab2 AS cor0
----
-6120
-6277
-85
skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT + - col0 * col0 + CAST ( - 36 AS INTEGER ) FROM tab2 AS cor0
----
-6120
-6277
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT + col1 * + col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7522
SELECT + col1 * + col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col0 - + 2 FROM tab0
----
108
130
178
query I rowsort
SELECT ALL tab2.col0 * col1 + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL + col1 * 7 AS col0 FROM tab0
----
602
637
679
query I rowsort
SELECT 23 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col1 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 32 + col1 * col0 FROM tab1 AS cor0
----
1072
110
672
onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT DISTINCT col0 DIV - col1 + col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT col0 / - col1 + col0 / + cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + 54 * - ( - col0 + 48 ) AS col1 FROM tab0 cor0
----
-2214
1296
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab0, tab2 AS cor0
----
56
query I rowsort
SELECT ALL + ( - ( - cor0.col2 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - col0 * + col2 + - cor0.col1 * - 56 AS col1 FROM tab0 AS cor0
----
-2202
4024
5397
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7536
SELECT - + CAST( 93 AS SIGNED ) FROM tab2 AS cor0
----
-93
-93
-93
skipif mysql # not compatible
query I rowsort label-7536
SELECT - + CAST ( 93 AS INTEGER ) FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT - 4 AS col0 FROM tab0 cor0
----
-4
-4
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7538
SELECT ALL CAST( - 8 AS SIGNED ) FROM tab2 cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL CAST ( - 8 AS INTEGER ) FROM tab2 cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) + col0 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + cor0.col1 + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 95 AS col2 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - ( - 56 ) * col2 AS col2 FROM tab1 AS cor0
----
3024
3192
5376
onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT col2 DIV col2 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7543
SELECT col2 / col2 AS col2 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT - - 94 * col1 + col0 DIV + 20 FROM tab0 AS cor0
----
8085
8558
9119
skipif mysql # not compatible
query I rowsort label-7544
SELECT - - 94 * col1 + col0 / + 20 FROM tab0 AS cor0
----
8085
8558
9119
onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT - tab0.col0 + col0 DIV + col1 col0 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7545
SELECT - tab0.col0 + col0 / + col1 col0 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df
query I rowsort
SELECT - col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col2 * tab0.col1 + - col1 * + tab0.col1 AS col0 FROM tab0
----
-10234
-15743
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT DISTINCT col0 * 52 DIV - 80 AS col0 FROM tab2
----
-4
-50
-51
skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT col0 * 52 / - 80 AS col0 FROM tab2
----
-4
-50
-51
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7551
SELECT DISTINCT 57 DIV + tab0.col2 AS col1 FROM tab0
----
0
1
57
skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT 57 / + tab0.col2 AS col1 FROM tab0
----
0
1
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7552
SELECT CAST( col0 AS SIGNED ) + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-7552
SELECT CAST ( col0 AS INTEGER ) + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT DISTINCT - ( - col1 ) DIV + col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - ( - col1 ) / + col0 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT DISTINCT + col2 * - 30 + - col1 * - 92 AS col1 FROM tab1 AS cor0
----
-1684
-790
772
query I rowsort
SELECT - 9 * + col1 FROM tab0 AS cor0
----
-774
-819
-873
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT - - 76 * - col0 DIV col0 col0 FROM tab2 cor0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7556
SELECT - - 76 * - col0 / col0 col0 FROM tab2 cor0
----
-76
-76
-76
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - 54 * col2 + + col1 AS col1 FROM tab0
----
-1696
-4337
43
query I rowsort
SELECT - - col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT ALL - 65 * + col1 + + 79 FROM tab0 cor0
----
-5511
-5836
-6226
onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT ALL cor0.col2 DIV 33 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL cor0.col2 / 33 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - 71 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT DISTINCT col2 + + col2 * 69 DIV col1 + col2 AS col2 FROM tab0 cor0
----
2
226
92
skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT col2 + + col2 * 69 / col1 + col2 AS col2 FROM tab0 cor0
----
2
226
92
query I rowsort
SELECT col2 * - col1 * col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - + tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - col1 + + 58 AS col2 FROM tab0 AS cor0
----
-28
-33
-39
query I rowsort
SELECT - col2 - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - + col2 * col1 + + 35 AS col0 FROM tab1 AS cor0
----
-1213
-1369
-535
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7572
SELECT ALL - - col2 + + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL - - col2 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
164
2
66
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0, tab2 cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT DISTINCT - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7576
SELECT + col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-7576
SELECT + col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col1 * col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT - col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7579
SELECT ALL col1 / CAST( NULL AS DECIMAL ) - - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL col1 / CAST ( NULL AS REAL ) - - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - 17 + col0 AS col0 FROM tab2 cor0
----
-10
61
62
query I rowsort
SELECT - 60 FROM tab2, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT - col1 * - tab2.col0 - + tab2.col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT DISTINCT - tab0.col1 + + tab0.col0 FROM tab0
----
-2
-62
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT ALL - 52 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1196
1352
518
query I rowsort
SELECT - - col0 + col0 * 51 FROM tab1 cor0
----
156
3328
4160
query I rowsort
SELECT + 88 * cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 91971bd8db5ff149ef406b59f8a95975
query I rowsort
SELECT cor1.col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - 70 * - col2 FROM tab1 AS cor0
----
3780
3990
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT - - col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7591
SELECT - - col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT 59 * + col1 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT - + col1 + 14 - col1 FROM tab2 AS cor0
----
-104
-20
-48
query I rowsort
SELECT - col1 + 56 * - ( col2 ) + ( 7 ) FROM tab1 cor0
----
-3043
-3195
-5382
query I rowsort
SELECT + + col0 * 66 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
489
5174
5252
query I rowsort
SELECT ALL - cor0.col1 + ( + col1 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 - + 9 AS col0 FROM tab2 cor0
----
-16
-87
-88
query I rowsort
SELECT + col1 + col1 - col2 * col1 * ( col0 ) AS col0 FROM tab1 cor0
----
-36460
-4160
-99814
query I rowsort
SELECT ALL col1 + - col1 + col1 * col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL + tab2.col2 + + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - + 9 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - - 77 - cor0.col1 * col2 * - 51 FROM tab1 cor0
----
29147
63725
71681
query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT + + 2 * - cor0.col2 - - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 93 + cor0.col0 AS col0 FROM tab2 AS cor0
----
100
171
172
query I rowsort
SELECT ALL - - col2 * col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - col0 + col2 * col1 AS col2 FROM tab0 cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT + col1 DIV - tab0.col2 AS col1 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7610
SELECT + col1 / - tab0.col2 AS col1 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT col0 * col0 * col2 FROM tab2
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT ALL tab1.col1 DIV - tab1.col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL tab1.col1 / - tab1.col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab1.col0 * + col0 * - col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT col1 * col2 * col2 + tab2.col1 FROM tab2
----
22630
24565
39943
query I rowsort
SELECT - col2 * - tab2.col2 + + tab2.col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT - tab2.col2 * col2 FROM tab2 WHERE ( col0 * - col1 ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col0 + - col2 AS col0 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT ALL col1 DIV - col1 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL col1 / - col1 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 98 * col2 * col2 + + 40 FROM tab0
----
106762
138
658992
query I rowsort
SELECT col2 * + col2 * col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT + + 54 - col0 AS col1 FROM tab0 AS cor0
----
-35
19
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT DISTINCT - col1 * - col0 + + 40 DIV + col1 AS col2 FROM tab1 AS cor0
----
1043
644
79
skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT - col1 * - col0 + + 40 / + col1 AS col2 FROM tab1 AS cor0
----
1043
644
79
query I rowsort
SELECT ALL - cor0.col0 * - col0 * col2 AS col1 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + col2 + - col2 * + ( col2 + - col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 8 + - col1 FROM tab0 AS cor0
----
-78
-83
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT DISTINCT + tab0.col1 + + col1 + + col2 DIV 18 AS col0 FROM tab0
----
173
186
194
skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT + tab0.col1 + + col1 + + col2 / 18 AS col0 FROM tab0
----
173
186
194
query I rowsort
SELECT col2 + col1 + tab1.col0 FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT + col0 - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT tab2.col2 + + tab2.col0 - + tab2.col2 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT col1 + - col2 * + tab0.col0 AS col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL col2 + col2 * tab0.col2 FROM tab0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab2.col2 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col2 = NULL
----
query I rowsort
SELECT tab2.col1 * col2 AS col0 FROM tab2
----
1534
646
837
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1 + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col0 - col0 )
----
query I rowsort
SELECT ALL + col1 - + col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col2 + + tab0.col0 * col1 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT col1 * col1 DIV + col1 col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7641
SELECT col1 * col1 / + col1 col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT ALL - col0 DIV + col1 AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - col0 / + col1 AS col2 FROM tab2
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7643
SELECT ALL + tab1.col0 DIV col0 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL + tab1.col0 / col0 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT + col2 * - col0 * + col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT + tab1.col0 FROM tab1 WHERE - col0 - + col0 IN ( + col0 )
----
query I rowsort
SELECT - col1 + + tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - tab2.col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab2, tab0 AS cor0
----
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7649
SELECT ALL CAST( - col0 AS SIGNED ) * tab0.col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL CAST ( - col0 AS INTEGER ) * tab0.col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7650
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT ( - 79 ) + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
-53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7653
SELECT ALL - + ( col2 ) * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL - + ( col2 ) * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col1 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( - col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT DISTINCT + + col2 + 6 DIV cor0.col1 AS col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT + + col2 + 6 / cor0.col1 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + col1 - - col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 * - col1 col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col2 - col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 + col2 col1 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT DISTINCT + ( - col1 ) * + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT - col2 + - col1 * col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-7667
SELECT - col2 + - col1 * col2 / + col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT ALL - col1 + cor0.col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
136
3638
7667
skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - col1 + cor0.col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT 99 + col0 * col2 FROM tab1
----
261
3747
7779
onlyif mysql # use DIV operator for integer division
query I rowsort label-7670
SELECT + 66 DIV + 39 + col2 AS col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7670
SELECT + 66 / + 39 + col2 AS col2 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT + 22 * col2 AS col1 FROM tab2 cor0
----
572
594
836
query I rowsort
SELECT cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + col0 + + cor0.col0 + + col1 FROM tab2 cor0
----
175
215
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7675
SELECT - - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7675
SELECT - - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT ALL col0 DIV + 50 + - ( col2 ) * - col2 FROM tab1 AS cor0
----
2916
3250
9217
skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL col0 / + 50 + - ( col2 ) * - col2 FROM tab1 AS cor0
----
2916
3250
9217
query I rowsort
SELECT ALL + + col2 * + cor0.col1 + 29 * col1 AS col0 FROM tab2 AS cor0
----
1139
1736
3245
query I rowsort
SELECT DISTINCT - + col2 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col2 * + ( col2 + + col1 ) AS col0 FROM tab1 cor0
----
-10464
-3819
-4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7681
SELECT - - col0 + col0 DIV col0 + + col0 * 78 FROM tab0 AS cor0
----
1897
2766
7032
skipif mysql # not compatible
query I rowsort label-7681
SELECT - - col0 + col0 / col0 + + col0 * 78 FROM tab0 AS cor0
----
1897
2766
7032
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 43 + cor0.col0 col2 FROM tab0 AS cor0
----
113
221
91
query I rowsort
SELECT + col0 + ( 78 ) * + col0 FROM tab2 AS cor0
----
553
6162
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7684
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) / - col2 + + col0 * col0 + 70 * + col1 * 55 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) / - col2 + + col0 * col0 + 70 * + col1 * 55 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + - col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7687
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7687
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT 49 FROM tab0, tab0 cor0
----
49
query I rowsort
SELECT ALL + + 17 AS col1 FROM tab0 AS cor0
----
17
17
17
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 60 + col2 AS col1 FROM tab2 AS cor0
----
86
87
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col0 FROM tab0 AS cor0
----
42
query I rowsort
SELECT ALL - 12 FROM tab2, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + - 67 col2 FROM tab2
----
-29
-40
-41
query I rowsort
SELECT col0 * + ( col2 ) * tab2.col2 + - col0 FROM tab2
----
113997
5096
52650
query I rowsort
SELECT ALL 10 + cor0.col1 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
-159
-666
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * col1 + col2 * 75 col2 FROM tab0 cor0
----
13066
7447
9011
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7701
SELECT DISTINCT - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7703
SELECT col0 + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7703
SELECT col0 + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col0 * 64 * col0 col0 FROM tab1 AS cor0
----
262201
409696
630
query I rowsort
SELECT DISTINCT 44 * col1 + cor0.col1 FROM tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT 55 * - col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT ALL + 66 * col0 DIV 68 + 30 col0 FROM tab0 cor0
----
116
53
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 66 * col0 / 68 + 30 col0 FROM tab0 cor0
----
116
53
63
query I rowsort
SELECT ALL + + 83 + col0 AS col2 FROM tab2 AS cor0
----
161
162
90
query I rowsort
SELECT DISTINCT + col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - 80 - - col0 FROM tab1 AS cor0
----
144
160
83
query I rowsort
SELECT - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7713
SELECT ALL col2 + + 71 DIV - col0 FROM tab1
----
31
56
96
skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL col2 + + 71 / - col0 FROM tab1
----
31
56
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7714
SELECT - 86 + - col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7714
SELECT - 86 + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 77 * - col0 AS col1 FROM tab2 cor0
----
539
6006
6083
query I rowsort
SELECT + col0 + col2 * - col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT - - 24 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + - col0 + 77 * - cor0.col0 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT ALL + tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT ALL - 31 + col0 AS col2 FROM tab1 AS cor0
----
-28
33
49
query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0
query I rowsort
SELECT DISTINCT + ( col1 ) + - tab0.col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT 86 + - 17 * col0 + ( + 80 + col1 ) AS col2 FROM tab2
----
-1101
-1160
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7727
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 * - col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 * - col0 FROM tab2
----
NULL
query I rowsort
SELECT + 70 FROM tab2, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT col2 * col1 + - col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT + 77 - col2 AS col0 FROM tab0 AS cor0
----
-5
44
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT DISTINCT - - ( 42 ) * - cor0.col1 + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - - ( 42 ) * - cor0.col1 + cor0.col2 / + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
query I rowsort
SELECT - 6 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT ( col1 ) + col1 - 30 FROM tab1 AS cor0
----
-10
-4
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT DISTINCT tab0.col1 DIV + col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT tab0.col1 / + col0 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + 75 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7736
SELECT + 75 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL 16 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - col1 - - col0 AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 37 + - tab1.col0 FROM tab1, tab0 AS cor0
----
-27
-43
34
query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab2, tab1 cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT 74 * col1 - col0 AS col2 FROM tab0
----
6340
6645
7143
query I rowsort
SELECT DISTINCT + ( col2 ) - col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT - col0 * + col0 + 6 AS col0 FROM tab2 cor0
----
-43
-6078
-6235
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7745
SELECT + - 96 * col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7745
SELECT + - 96 * col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 18 * col0 - ( col0 ) AS col2 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT - + 45 + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1180
531
7876
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL 7 FROM tab1, tab0 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT col0 DIV 33 + col1 AS col0 FROM tab2 AS cor0
----
19
31
61
skipif mysql # not compatible
query I rowsort label-7750
SELECT col0 / 33 + col1 AS col0 FROM tab2 AS cor0
----
19
31
61
query I rowsort
SELECT - + cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + col1 * + 12 AS col0 FROM tab0 AS cor0
----
-1032
-1092
-1164
query I rowsort
SELECT - 87 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
-16443
-176436
-261174
query I rowsort
SELECT ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - + col1 * + ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 + - 89 FROM tab2 cor0
----
-51
-62
-63
query I rowsort
SELECT ( + 64 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col0 * - col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7760
SELECT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7760
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + col1 col1 FROM tab2 AS cor0
----
103
117
145
query I rowsort
SELECT - 57 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
32
query I rowsort
SELECT DISTINCT + col0 + col2 * 6 * - col1 + - col1 FROM tab1 AS cor0
----
-3366
-7421
-8447
query I rowsort
SELECT - cor0.col1 + + col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT ALL tab1.col0 DIV + col2 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL tab1.col0 / + col2 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT + cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7768
SELECT + cor0.col1 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + col0 - col1 AS col1 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7771
SELECT col0 DIV - col0 - col0 AS col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-7771
SELECT col0 / - col0 - col0 AS col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT - ( 73 ) + + col0 * col2 AS col0 FROM tab2 cor0
----
116
1955
2929
query I rowsort
SELECT ALL col2 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 33 * + col2 col1 FROM tab1 AS cor0
----
-1782
-1881
-3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-7775
SELECT - col1 DIV 17 FROM tab0 cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-7775
SELECT - col1 / 17 FROM tab0 cor0
----
-5
-5
-5
query I rowsort
SELECT ALL ( ( - col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - ( 36 ) * col0 FROM tab2 AS cor0
----
-252
-2808
-2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7778
SELECT DISTINCT + 59 DIV col0 AS col0 FROM tab2 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + 59 / col0 AS col0 FROM tab2 AS cor0
----
0
8
query I rowsort
SELECT + col2 + 32 FROM tab0
----
114
33
65
query I rowsort
SELECT - col1 + ( col0 ) * col1 * + 23 FROM tab1
----
14710
1768
23907
onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT 35 DIV 58 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7781
SELECT 35 / 58 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7782
SELECT ALL col0 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - ( + col0 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT + col1 + - col0 * 48 FROM tab1 AS cor0
----
-118
-3062
-3827
query I rowsort
SELECT DISTINCT + col2 - + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + - col2 * - col0 + - 36 FROM tab0 AS cor0
----
-1
7262
756
query I rowsort
SELECT ALL - 16 + col2 FROM tab1 AS cor0
----
38
41
80
query I rowsort
SELECT DISTINCT col0 - + col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 * - col0 * - col2 FROM tab0 cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col2 FROM tab1 AS cor0
----
6
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7792
SELECT DISTINCT CAST( 65 AS SIGNED ) AS col1 FROM tab1
----
65
skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab1
----
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + + col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 + 51 FROM tab1
----
-13
-29
48
query I rowsort
SELECT 30 + - col2 FROM tab0
----
-3
-52
29
query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2
----
16
query I rowsort
SELECT - cor0.col0 + - 19 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c1edf722ea5746dc351c915d26d352a7
query I rowsort
SELECT - - 46 * - cor0.col2 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT 99 AS col1 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT ( + col0 ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT 98 FROM tab2
----
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * cor0.col1 col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT - col1 * + col1 - + 12 * 78 AS col2 FROM tab2 AS cor0
----
-1225
-1897
-4417
query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT 6 FROM tab1
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT ALL col2 + 47 FROM tab1 AS cor0
----
101
104
143
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col1 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + cor0.col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col1 + + cor0.col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col2 * + col2 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col2 + + ( + col0 ) * ( - ( + col1 ) ) AS col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT + + col2 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7818
SELECT ALL CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT + CAST( col2 AS SIGNED ) DIV col2 + - CAST( - col0 AS SIGNED ) DIV + col1 FROM tab1 AS cor0
----
1
7
7
skipif mysql # not compatible
query I rowsort label-7819
SELECT + CAST ( col2 AS INTEGER ) / col2 + - CAST ( - col0 AS INTEGER ) / + col1 FROM tab1 AS cor0
----
1
7
7
query I rowsort
SELECT ALL - - cor0.col0 * 5 AS col0 FROM tab2 AS cor0
----
35
390
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT ALL + col2 * - col1 DIV - col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL + col2 * - col1 / - col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT col2 * col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT + - ( 86 ) FROM tab2 AS cor0
----
-86
query I rowsort
SELECT DISTINCT + col2 * - col1 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT - - ( col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL ( ( - col2 ) ) + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - 87 * - col0 FROM tab2 cor0
----
609
6786
6873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 20 - col1 * col0 col1 FROM tab1 cor0
----
-1060
-660
-98
query I rowsort
SELECT + 95 * col1 - col0 FROM tab1 AS cor0
----
1155
2467
886
query I rowsort
SELECT ALL - col0 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7831
SELECT - CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7831
SELECT - CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 46 FROM tab1 cor0
----
20
33
36
query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab0 cor0
----
52
query I rowsort
SELECT ALL + 43 * col0 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT DISTINCT + + col1 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - cor0.col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + cor0.col2 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - ( - col1 ) * 55 * + cor0.col2 FROM tab2 AS cor0
----
35530
46035
84370
query I rowsort
SELECT ALL - 93 AS col2 FROM tab2, tab1 AS cor0, tab0, tab1 cor1
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT ALL + - col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT tab2.col1 * 80 FROM tab2
----
1360
2480
4720
query I rowsort
SELECT - col1 * tab1.col0 * + col2 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - tab1.col0 + - col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT col0 * 11 FROM tab0
----
264
385
979
query I rowsort
SELECT - 31 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT - col0 * - tab2.col0 + col1 AS col2 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT DISTINCT - - cor0.col2 DIV 85 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - - cor0.col2 / 85 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * 1 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab0, tab0 AS cor0
----
73
query I rowsort
SELECT - - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 54 * + col1 + + col1 FROM tab1 AS cor0
----
1430
550
715
query I rowsort
SELECT col1 + + ( + col2 ) * ( ( + cor0.col2 ) ) FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - 68 + 85 AS col0 FROM tab2 AS cor0
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * col1 col2 FROM tab2 AS cor0
----
-155
-295
-85
query I rowsort
SELECT + col0 * + 54 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3399
4224
query I rowsort
SELECT + - ( col1 ) AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - cor0.col0 + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab1 AS cor0
----
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT - col2 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7861
SELECT - col2 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + col1 * + 20 FROM tab2 AS cor0
----
1206
378
647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor1.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + 91 * + col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT - - cor0.col0 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - 62 * col2 FROM tab0 AS cor0
----
-2046
-5084
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT + col2 * col1 DIV 45 FROM tab0 cor0
----
165
2
63
skipif mysql # not compatible
query I rowsort label-7868
SELECT + col2 * col1 / 45 FROM tab0 cor0
----
165
2
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab2 cor0
----
-71
-71
-71
query I rowsort
SELECT + + 16 * + col1 FROM tab1 cor0
----
160
208
416
query I rowsort
SELECT - 75 FROM tab1 AS cor0
----
-75
-75
-75
query I rowsort
SELECT col0 + + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2, tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT - 38 DIV col1 + + ( col2 * col2 ) FROM tab0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-7874
SELECT - 38 / col1 + + ( col2 * col2 ) FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7875
SELECT + + col1 DIV 26 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7875
SELECT + + col1 / 26 FROM tab2 AS cor0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 97 * col1 col2 FROM tab1 AS cor0
----
1248
2496
960
query I rowsort
SELECT col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col2 * + 49 + + col2 * + col1 FROM tab1 AS cor0
----
3363
4050
5952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col1 col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - 97 FROM tab0
----
-97
-97
-97
query I rowsort
SELECT ALL 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-7883
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + 19 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT - - 93 * col1 AS col2 FROM tab2 cor0
----
1581
2883
5487
query I rowsort
SELECT ALL col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7888
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 59 AS col2 FROM tab2 AS cor0
----
-59
-59
-59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7892
SELECT - ( - 11 ) * + col0 * CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-45056
-70400
-99
skipif mysql # not compatible
query I rowsort label-7892
SELECT - ( - 11 ) * + col0 * CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-45056
-70400
-99
query I rowsort
SELECT ALL 37 AS col1 FROM tab2
----
37
37
37
query I rowsort
SELECT DISTINCT - 29 * - col0 AS col1 FROM tab2
----
203
2262
2291
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7895
SELECT col0 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7895
SELECT col0 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 74 * - col2 FROM tab2
----
-1924
-1998
-2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT - + cor0.col2 + col1 DIV 4 FROM tab1 AS cor0
----
-48
-55
-93
skipif mysql # not compatible
query I rowsort label-7897
SELECT - + cor0.col2 + col1 / 4 FROM tab1 AS cor0
----
-48
-55
-93
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + 68 * 1 FROM tab0, tab0 AS cor0
----
68
query I rowsort
SELECT + cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT ALL col0 DIV + col0 + + col1 + + col0 * + col2 FROM tab0 AS cor0
----
133
7390
879
skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL col0 / + col0 + + col1 + + col0 * + col2 FROM tab0 AS cor0
----
133
7390
879
query I rowsort
SELECT - - col0 + 18 AS col2 FROM tab2 AS cor0
----
25
96
97
query I rowsort
SELECT + 83 * - 22 AS col1 FROM tab1 cor0
----
-1826
-1826
-1826
query I rowsort
SELECT DISTINCT col2 + col1 - + cor0.col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( col0 ) * col0 - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-448
1280
153
onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT - 7 * + 45 + - cor0.col1 DIV + col0 FROM tab0 AS cor0
----
-316
-317
-318
skipif mysql # not compatible
query I rowsort label-7906
SELECT - 7 * + 45 + - cor0.col1 / + col0 FROM tab0 AS cor0
----
-316
-317
-318
query I rowsort
SELECT DISTINCT + 41 + - col2 AS col0 FROM tab1 AS cor0
----
-13
-16
-55
query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 + - col2 col2 FROM tab0 AS cor0
----
-38
11
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7910
SELECT ALL - CAST( NULL AS DECIMAL ) + + 60 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-7910
SELECT ALL - CAST ( NULL AS REAL ) + + 60 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 33 + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-2
-7265
-759
query I rowsort
SELECT ALL cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL 73 + - col1 FROM tab0 AS cor0
----
-13
-18
-24
query I rowsort
SELECT ALL 8 AS col1 FROM tab2 AS cor0
----
8
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + - 1 + col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT DISTINCT 67 * cor0.col2 + 5 AS col2 FROM tab1 AS cor0
----
3623
3824
6437
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - 76 + + col0 * + col2 FROM tab1 AS cor0
----
3572
7604
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - + 70 + - col0 FROM tab1 cor0
----
-134
-150
-73
query I rowsort
SELECT + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - 47 + col0 FROM tab2 cor0
----
-40
31
32
query I rowsort
SELECT + + col2 * col0 - + col2 * - col2 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT cor0.col0 + + ( cor0.col1 ) * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 * 45 FROM tab0 AS cor0
----
1485
3690
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab1 cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7930
SELECT ALL CAST( - col1 AS SIGNED ) * - cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL CAST ( - col1 AS INTEGER ) * - cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + + 20 AS col0 FROM tab2 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab1.col2 ) col1 FROM tab1, tab0 cor0
----
54
57
96
query I rowsort
SELECT 77 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL + col2 * col0 * 78 FROM tab0
----
2730
569244
61776
query I rowsort
SELECT + 68 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - ( + col0 ) + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 82 + col2 AS col0 FROM tab0 AS cor0
----
115
164
83
query I rowsort
SELECT DISTINCT - col1 + col2 + + col2 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7940
SELECT ALL - + CAST( col1 AS SIGNED ) DIV + col2 + - col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL - + CAST ( col1 AS INTEGER ) / + col2 + - col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col2 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 * col0 * col1 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT ALL col0 DIV col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL col0 / col0 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL - col2 + + col0 * + tab0.col0 + + col0 FROM tab0
----
1259
567
7928
query I rowsort
SELECT DISTINCT + col2 + + col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 + + 70 FROM tab0
----
103
152
71
query I rowsort
SELECT - ( cor0.col2 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - + 34 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + 71 FROM tab1, tab1 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor2.col0 ) col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL ( col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + + col1 + - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 28 + - col0 AS col1 FROM tab0
----
2384
2459
2681
query I rowsort
SELECT DISTINCT col1 * 47 * - col0 + col1 FROM tab1
----
-30070
-3640
-48867
query I rowsort
SELECT ALL col2 * + 54 + 92 * tab2.col0 FROM tab2
----
2102
8580
9320
query I rowsort
SELECT DISTINCT col1 * + 10 * tab1.col2 AS col1 FROM tab1
----
12480
14040
5700
query I rowsort
SELECT ALL 72 FROM tab2, tab2 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT 80 * + ( col0 ) + + ( + 88 * tab0.col1 ) FROM tab0
----
11336
15128
9488
query I rowsort
SELECT - ( - tab0.col1 ) * col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab0.col0 FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - - 81 * + col0 FROM tab0 AS cor0
----
1944
2835
7209
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7962
SELECT 87 * col0 + + CAST( NULL AS SIGNED ) + + 20 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7962
SELECT 87 * col0 + + CAST ( NULL AS INTEGER ) + + 20 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 75 * - col0 FROM tab0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT ( 86 ) * col1 AS col1 FROM tab0
----
7396
7826
8342
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
query I rowsort
SELECT - - 93 * col1 + col2 FROM tab2 AS cor0
----
1619
2910
5513
query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT 30 FROM tab2
----
30
query I rowsort
SELECT + 86 FROM tab0
----
86
86
86
query I rowsort
SELECT col0 + col0 * col2 + 66 * tab0.col1 AS col0 FROM tab0
----
13393
6472
6492
query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0
----
78
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7974
SELECT + col1 + - CAST( NULL AS SIGNED ) * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7974
SELECT + col1 + - CAST ( NULL AS INTEGER ) * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7975
SELECT ALL + + col2 DIV 70 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-7975
SELECT ALL + + col2 / 70 col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + col2 * col1 - col0 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT + col0 + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col2 * col1 * col1 + + col2 FROM tab1 cor0
----
16320
36558
5757
query I rowsort
SELECT DISTINCT 34 FROM tab2
----
34
query I rowsort
SELECT ALL + ( - col0 ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 95 + - col2 AS col2 FROM tab1
----
-1
38
41
query I rowsort
SELECT col0 * col2 + - col0 AS col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL col1 * - col1 * + col1 AS col2 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL - tab2.col1 + col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT tab1.col0 * - 26 FROM tab1
----
-1664
-2080
-78
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col2 - + cor0.col0 * 82 FROM tab1 cor0
----
-300
-5305
-6656
query I rowsort
SELECT ALL - col1 + 70 FROM tab1 AS cor0
----
44
57
60
query I rowsort
SELECT DISTINCT - col1 * + ( - col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7992
SELECT + col1 - CAST( + 78 * - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
1027
2054
790
skipif mysql # not compatible
query I rowsort label-7992
SELECT + col1 - CAST ( + 78 * - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT col0 * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + ( 95 ) * col2 col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT + + col1 - ( + 93 ) * col2 FROM tab2 AS cor0
----
-2359
-2480
-3517
query I rowsort
SELECT ALL + - col2 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col1 + - 52 * 60 AS col2 FROM tab0 AS cor0
----
-3023
-3029
-3034
query I rowsort
SELECT col0 * - ( - cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( col1 ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
7
78
79
query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ( + tab1.col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ( + col2 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL 34 AS col0 FROM tab1
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8006
SELECT - col1 DIV + col1 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8006
SELECT - col1 / + col1 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT col1 * col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col2 + col2 - col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8009
SELECT 63 DIV cor0.col0 FROM tab1 AS cor0
----
0
0
21
skipif mysql # not compatible
query I rowsort label-8009
SELECT 63 / cor0.col0 FROM tab1 AS cor0
----
0
0
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT col1 + col1 DIV col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-8010
SELECT col1 + col1 / col0 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT DISTINCT col0 * ( + ( col2 ) ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT - ( - 92 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + - col0 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8015
SELECT col1 * CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8015
SELECT col1 * CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT ALL cor0.col0 DIV col0 - col2 * - col2 FROM tab2 AS cor0
----
1445
677
730
skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL cor0.col0 / col0 - col2 * - col2 FROM tab2 AS cor0
----
1445
677
730
query I rowsort
SELECT - col1 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + + col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + ( 66 ) FROM tab0, tab0 AS cor0
----
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab2, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT + + col0 + ( col1 ) FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col1 + - col1 col1 FROM tab1 AS cor0
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + ( 90 ) + col2 * - col1 col2 FROM tab0 cor0
----
-678
3053
548
query I rowsort
SELECT - cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + col1 + + col0 * 93 AS col2 FROM tab0 AS cor0
----
2318
3352
8368
query I rowsort
SELECT - col2 * col1 + + col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0
----
17
query I rowsort
SELECT + 48 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab2
----
79
79
79
query I rowsort
SELECT - 26 AS col2 FROM tab1 cor0
----
-26
-26
-26
query I rowsort
SELECT ALL - - ( col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT + col0 * col2 + - col0 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL + col2 + - tab1.col0 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8035
SELECT + col1 DIV col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-8035
SELECT + col1 / col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT - + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col1 * col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col0 + + cor0.col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col0 * - col0 * + col0 AS col0 FROM tab2
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col0 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col1 * col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 < col2 * - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col2 - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT col2 - col1 * - col0 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT + + col2 * col0 + cor0.col0 DIV col1 FROM tab2 AS cor0
----
189
2029
3006
skipif mysql # not compatible
query I rowsort label-8047
SELECT + + col2 * col0 + cor0.col0 / col1 FROM tab2 AS cor0
----
189
2029
3006
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT - col0 * + col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + col1 * col1 - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL - tab1.col2 * - tab1.col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8052
SELECT tab2.col1 DIV + col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8052
SELECT tab2.col1 / + col1 AS col2 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT DISTINCT + col0 DIV col0 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT + col0 / col0 AS col1 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 * col1 + + col1 col2 FROM tab2 AS cor0
----
1023
323
3599
query I rowsort
SELECT + + cor0.col0 + + col2 * col0 AS col0 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8056
SELECT col2 + - col2 * col2 + col1 DIV + col1 FROM tab2
----
-1405
-649
-701
skipif mysql # not compatible
query I rowsort label-8056
SELECT col2 + - col2 * col2 + col1 / + col1 FROM tab2
----
-1405
-649
-701
onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT DISTINCT + col1 DIV - tab0.col0 AS col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT + col1 / - tab0.col0 AS col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL col1 * + tab2.col0 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8059
SELECT col0 DIV col0 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8059
SELECT col0 / col0 AS col0 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT col0 DIV col0 + col1 * col1 DIV col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8060
SELECT col0 / col0 + col1 * col1 / col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8062
SELECT DISTINCT + cor0.col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT + cor0.col0 / - col0 AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT ALL + - col2 + + col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT 5 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
5
query I rowsort
SELECT - col0 + - col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT 19 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + 31 + col1 AS col1 FROM tab0
----
117
122
128
query I rowsort
SELECT ALL col2 + - tab0.col2 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + + col1 col1 FROM tab2
----
22
36
64
query I rowsort
SELECT col2 * - 88 + - 77 FROM tab2 AS cor0
----
-2365
-2453
-3421
onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT ALL col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL col0 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - 56 FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT + col2 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 - + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * 28 AS col2 FROM tab0 cor0
----
-2296
-28
-924
query I rowsort
SELECT DISTINCT + - col0 * ( + 61 ) + cor0.col1 * + ( - col0 ) + + cor0.col2 FROM tab1 AS cor0
----
-207
-4487
-5824
query I rowsort
SELECT ALL - col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 56 + 49 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ALL + 91 - + col2 FROM tab0
----
58
9
90
query I rowsort
SELECT + 8 + - cor0.col1 * cor0.col0 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to f902959c9cc8084b8da1a5d71ff76eb8
query I rowsort
SELECT ALL tab0.col2 + col1 - col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + ( - col1 ) - col2 AS col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + - col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL ( - ( col2 ) ) * + ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + ( 32 ) - col2 * 33 * col2 AS col2 FROM tab1 AS cor0
----
-107185
-304096
-96196
query I rowsort
SELECT - - ( cor0.col2 ) * - cor0.col0 * ( cor0.col1 + - col1 * col1 ) FROM tab0 AS cor0
----
325920
5789520
59770620
query I rowsort
SELECT DISTINCT - ( col0 ) + + ( - 84 ) - col1 FROM tab0 AS cor0
----
-194
-216
-264
query I rowsort
SELECT + + col2 + + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - - 45 + col1 AS col2 FROM tab0 AS cor0
----
131
136
142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT + col1 * col0 + - CAST( 58 AS SIGNED ) FROM tab0 AS cor0
----
2006
3337
8041
skipif mysql # not compatible
query I rowsort label-8093
SELECT + col1 * col0 + - CAST ( 58 AS INTEGER ) FROM tab0 AS cor0
----
2006
3337
8041
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col1 FROM tab1 AS cor0
----
-11
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - - 55 * - col2 AS col0 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT - - col1 + + col2 * + ( - 88 ) * col1 FROM tab2 AS cor0
----
-134933
-56831
-73625
query I rowsort
SELECT ALL + + 72 AS col1 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT + 27 FROM tab0 AS cor0
----
27
27
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 - - col0 col2 FROM tab1 AS cor0
----
111
34
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col2 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - - col1 - col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8103
SELECT tab0.col2 * + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8103
SELECT tab0.col2 * + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 87 + + col1 AS col2 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT DISTINCT - 89 * - col1 AS col2 FROM tab1 AS cor0
----
1157
2314
890
query I rowsort
SELECT + cor0.col0 * col2 + - 66 AS col2 FROM tab0 AS cor0
----
-31
7232
726
onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT ALL + col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + col0 / col1 AS col1 FROM tab2 cor0
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8108
SELECT ALL + + ( col1 ) * CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL + + ( col1 ) * CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 91 FROM tab0 AS cor0
----
91
query I rowsort
SELECT DISTINCT - - col2 + col1 * col1 + + 40 * + col2 FROM tab0 cor0
----
11643
8749
9450
query I rowsort
SELECT col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col2 * + col0 + + col2 FROM tab2 AS cor0
----
2132
223
3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT + ( 96 ) DIV + tab2.col1 AS col1 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-8113
SELECT + ( 96 ) / + tab2.col1 AS col1 FROM tab2
----
1
3
5
query I rowsort
SELECT ALL col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col2 * col0 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT tab2.col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col0 + + col0 + col0 FROM tab1
----
192
240
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT + col1 * col0 DIV col0 - - col0 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8118
SELECT + col1 * col0 / col0 - - col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + 40 * col1 + col0 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
11650
5480
7240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8121
SELECT - ( col0 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8121
SELECT - ( col0 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + col2 + - 21 * - col0 AS col2 FROM tab0 cor0
----
1951
537
736
query I rowsort
SELECT col2 - tab1.col1 * 4 FROM tab1
----
-50
17
44
query I rowsort
SELECT ALL 98 + - col2 + - col1 FROM tab0
----
-21
-75
0
query I rowsort
SELECT - col2 + - 2 FROM tab1 AS cor0
----
-56
-59
-98
query I rowsort
SELECT DISTINCT col1 + ( - 52 ) * - col1 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT - - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8130
SELECT + + col1 * CAST( + col1 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
skipif mysql # not compatible
query I rowsort label-8130
SELECT + + col1 * CAST ( + col1 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT + col2 + tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT ( col2 ) * - ( - ( col1 ) ) + tab2.col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL 63 + + col1 FROM tab2
----
122
80
94
query I rowsort
SELECT DISTINCT 12 + col2 FROM tab1
----
108
66
69
query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col0 + + 89 FROM tab1
----
146
210
265
query I rowsort
SELECT DISTINCT + 60 + col1 * col1 AS col0 FROM tab1
----
160
229
736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * + col1 * + 34 + col2 col2 FROM tab1
----
30997
40318
80498
query I rowsort
SELECT 43 * col2 * - col1 + + col2 + + tab1.col0 FROM tab1
----
-24389
-53488
-60315
query I rowsort
SELECT DISTINCT + col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL 86 * col1 AS col0 FROM tab2 AS cor0
----
1462
2666
5074
query I rowsort
SELECT DISTINCT - - 97 + - 24 AS col2 FROM tab1 AS cor0
----
73
query I rowsort
SELECT + 61 + + col0 FROM tab0 AS cor0
----
150
85
96
query I rowsort
SELECT ALL - 29 * + col2 FROM tab0 AS cor0
----
-2378
-29
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT ALL col1 * + col1 DIV col1 + + col2 * + 1 AS col2 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL col1 * + col1 / col1 + + col2 * + 1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - cor0.col1 * col1 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( + col1 * col1 ) col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - col2 + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT ALL - - cor0.col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - - cor0.col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + tab2.col2 + + col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT col0 * + col0 + - col1 * col1 AS col1 FROM tab1
----
-667
3996
6231
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT + col1 * - 7 - + col0 FROM tab1
----
-134
-171
-185
query I rowsort
SELECT DISTINCT - col2 * 17 FROM tab2
----
-442
-459
-646
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT - col1 - + col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 43 FROM tab1
----
43
query I rowsort
SELECT - 6 AS col1 FROM tab1
----
-6
-6
-6
query I rowsort
SELECT DISTINCT - 55 FROM tab0, tab2 cor0 CROSS JOIN tab0 AS cor1
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-8159
SELECT DISTINCT - tab0.col0 DIV + col1 col0 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - tab0.col0 / + col1 col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
1
33
82
query I rowsort
SELECT ALL - col1 * col0 + cor0.col2 * col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT col2 * - 80 * - col2 FROM tab2 AS cor0
----
115520
54080
58320
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 DISTINCT - 8 * - col1 col2 FROM tab2 AS cor0
----
136
248
472
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT CAST( col0 AS SIGNED ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8165
SELECT CAST ( col0 AS INTEGER ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT 73 FROM tab1
----
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8167
SELECT CAST( + col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-8167
SELECT CAST ( + col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - 75 * - 11 FROM tab0 AS cor0
----
825
825
825
query I rowsort
SELECT ALL - 43 * col2 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT + ( - col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ( + ( col1 ) ) FROM tab1
----
10
13
26
query I rowsort
SELECT 49 + cor0.col0 FROM tab0 AS cor0
----
138
73
84
query I rowsort
SELECT col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - tab2.col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8177
SELECT col1 DIV - 1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8177
SELECT col1 / - 1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col1 * + ( - col2 ) - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT - col1 DIV + 56 + col2 + col2 * + 98 FROM tab1 AS cor0
----
5346
5643
9504
skipif mysql # not compatible
query I rowsort label-8180
SELECT - col1 / + 56 + col2 + col2 * + 98 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT + col1 + + ( ( col0 ) ) FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col1 + col1 * ( - col0 * ( 49 ) ) + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-31407
-3850
-51043
query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8184
SELECT DISTINCT + 36 DIV - col0 + col2 + - 48 AS col0 FROM tab2
----
-10
-22
-26
skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT + 36 / - col0 + col2 + - 48 AS col0 FROM tab2
----
-10
-22
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8185
SELECT - col0 + tab2.col1 * CAST( 91 AS SIGNED ) * + col0 + ( ( col1 ) * - col1 ) AS col0 FROM tab2
----
121845
18779
415223
skipif mysql # not compatible
query I rowsort label-8185
SELECT - col0 + tab2.col1 * CAST ( 91 AS INTEGER ) * + col0 + ( ( col1 ) * - col1 ) AS col0 FROM tab2
----
121845
18779
415223
query I rowsort
SELECT tab1.col1 * - col1 * ( + col0 * col1 ) FROM tab1
----
-175760
-52728
-64000
onlyif mysql # use DIV operator for integer division
query I rowsort label-8187
SELECT + ( col0 ) DIV tab2.col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8187
SELECT + ( col0 ) / tab2.col0 FROM tab2
----
1
1
1
query I rowsort
SELECT - col0 + - col0 + ( col1 ) FROM tab1
----
-118
-147
20
query I rowsort
SELECT ALL + 56 + - col1 FROM tab0
----
-30
-35
-41
query I rowsort
SELECT 90 * + col0 * - col0 AS col0 FROM tab2
----
-4410
-547560
-561690
query I rowsort
SELECT ALL - col0 + - col0 FROM tab2
----
-14
-156
-158
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53
query I rowsort
SELECT + col1 * 68 * ( + tab2.col0 ) AS col1 FROM tab2
----
14756
312936
91324
query I rowsort
SELECT ALL + col0 * + tab0.col2 * col1 AS col0 FROM tab0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT ALL - + col0 * CAST( + 35 AS SIGNED ) AS col2 FROM tab2 cor0
----
-245
-2730
-2765
skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - + col0 * CAST ( + 35 AS INTEGER ) AS col2 FROM tab2 cor0
----
-245
-2730
-2765
query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + 89 - - col1 * col0 AS col0 FROM tab0 AS cor0
----
12028
16198
9718
query I rowsort
SELECT - + col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + col1 - - cor0.col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8200
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) + col2 / + cor0.col1 + - col1 / 3 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) + col2 / + cor0.col1 + - col1 / 3 AS col1 FROM tab2 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT DISTINCT + col1 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col1 * 70 FROM tab2
----
-1190
-2170
-4130
query I rowsort
SELECT - 78 FROM tab1, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 75 col1 FROM tab2 AS cor0
----
106
134
92
query I rowsort
SELECT ALL - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8208
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - col2 * 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - col2 * 69 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 + col2 * + ( - 30 + col1 ) col1 FROM tab2 AS cor0
----
152
2288
864
query I rowsort
SELECT col0 - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 80 + col0 * col2 FROM tab0 AS cor0
----
115
7378
872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * col1 * col1 - col0 * + 70 col1 FROM tab2
----
-276978
-28361
-7217
query I rowsort
SELECT tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - - ( col2 ) AS col2 FROM tab1 cor0
----
54
57
96
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
query I rowsort
SELECT ALL + col0 * 30 FROM tab0 AS cor0
----
1050
2670
720
query I rowsort
SELECT ALL 2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
5
66
82
query I rowsort
SELECT + + col1 * + col1 - col2 FROM tab0 cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - 13 AS col1 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 78 + - col2 + col0 AS col1 FROM tab1 AS cor0
----
27
62
85
query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1 AS cor0
----
-87
query I rowsort
SELECT col0 + - cor0.col2 * col2 + + col0 FROM tab2 AS cor0
----
-1286
-520
-715
skipif mysql # not compatible
query I rowsort
SELECT + ( 61 ) * - col0 + + CAST ( + 7 AS REAL ) AS col2 FROM tab2 AS cor0
----
-420
-4751
-4812
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8226
SELECT + CAST( NULL AS SIGNED ) + + 61 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8226
SELECT + CAST ( NULL AS INTEGER ) + + 61 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT 69 + - col2 AS col1 FROM tab1 AS cor0
----
-27
12
15
query I rowsort
SELECT + + 74 FROM tab0 AS cor0
----
74
74
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8230
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8230
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT - col1 + - 95 DIV + ( - col2 ) FROM tab0 AS cor0
----
-2
-84
-90
skipif mysql # not compatible
query I rowsort label-8232
SELECT - col1 + - 95 / + ( - col2 ) FROM tab0 AS cor0
----
-2
-84
-90
query I rowsort
SELECT + + col2 + + col2 * col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
157518
185250
884832
query I rowsort
SELECT - col2 - 21 FROM tab0 AS cor0
----
-103
-22
-54
query I rowsort
SELECT DISTINCT col2 - cor0.col0 * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 55 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 * 52 FROM tab1 AS cor0
----
1298
463
580
query I rowsort
SELECT + cor0.col2 + - col0 - col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - - 15 * col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
12555
23010
9690
query I rowsort
SELECT ALL - - col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + - col1 - - col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8247
SELECT DISTINCT + cor0.col1 + - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT + cor0.col1 + - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + - 59 + + col2 FROM tab0 AS cor0
----
-26
-58
23
query I rowsort
SELECT - + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + 5 FROM tab0 AS cor0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT - CAST( col2 + - col2 AS SIGNED ) DIV col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8253
SELECT - CAST ( col2 + - col2 AS INTEGER ) / col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - + cor0.col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - 24 + col1 * 41 * col2 FROM tab2 AS cor0
----
26462
34293
62870
onlyif mysql # use DIV operator for integer division
query I rowsort label-8258
SELECT ALL col2 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8258
SELECT ALL col2 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 74 + - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-109
-7372
-866
query I rowsort
SELECT - tab2.col1 * + 81 FROM tab2
----
-1377
-2511
-4779
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8265
SELECT ALL + col1 + + tab0.col2 * + CAST( ( + col1 ) AS SIGNED ) + - tab0.col2 AS col1 FROM tab0
----
193
2891
7471
skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + col1 + + tab0.col2 * + CAST ( ( + col1 ) AS INTEGER ) + - tab0.col2 AS col1 FROM tab0
----
193
2891
7471
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + col1 col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 34 + col0 + + col1 * ( col0 ) FROM tab2 AS cor0
----
1456
258
4714
query I rowsort
SELECT + col0 + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL 59 + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4037
-6341
50
query I rowsort
SELECT ALL + 81 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT col0 + + 2 * - 48 AS col2 FROM tab1
----
-16
-32
-93
query I rowsort
SELECT ( + ( col0 ) ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL ( + col2 + col2 ) * + 42 FROM tab2
----
2184
2268
3192
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 + 12 - - col1 col0 FROM tab0
----
70
75
81
query I rowsort
SELECT - ( - col1 + col2 ) * ( - tab0.col0 * + col0 ) FROM tab0
----
-117600
-30528
-71289
query I rowsort
SELECT 89 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT + + 56 + + col2 AS col2 FROM tab0 AS cor0
----
138
57
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - 92 AS col1 FROM tab2 cor0
----
-92
-92
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT + CAST( 17 AS SIGNED ) * col2 FROM tab1 cor0
----
1632
918
969
skipif mysql # not compatible
query I rowsort label-8281
SELECT + CAST ( 17 AS INTEGER ) * col2 FROM tab1 cor0
----
1632
918
969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8282
SELECT DISTINCT + 94 * ( - col0 + - CAST( 41 AS SIGNED ) ) * - col1 AS col2 FROM tab0 AS cor0
----
1112020
525460
692968
skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT + 94 * ( - col0 + - CAST ( 41 AS INTEGER ) ) * - col1 AS col2 FROM tab0 AS cor0
----
1112020
525460
692968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8283
SELECT ALL + CAST( 67 AS SIGNED ) DIV cor0.col1 FROM tab1 AS cor0
----
2
5
6
skipif mysql # not compatible
query I rowsort label-8283
SELECT ALL + CAST ( 67 AS INTEGER ) / cor0.col1 FROM tab1 AS cor0
----
2
5
6
query I rowsort
SELECT - 72 FROM tab2 AS cor0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + 16 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1024
-62
-624
query I rowsort
SELECT + 93 AS col0 FROM tab2
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8287
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col1 * - col2 * col2 AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT - CAST ( NULL AS REAL ) + col1 * - col2 * col2 AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT 25 * + tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 736f0bd0d851c53eb4226edbc0c0dd3e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col1 FROM tab1 AS cor0
----
90
90
90
query I rowsort
SELECT + ( - 4 ) FROM tab0 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT DISTINCT - 96 DIV + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT - 96 / + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT DISTINCT + col1 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT ALL 98 FROM tab0
----
98
98
98
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - 85 AS col1 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8298
SELECT DISTINCT - ( - col0 ) DIV + 34 AS col0 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - ( - col0 ) / + 34 AS col0 FROM tab1
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 * cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + tab1.col2 * 6 AS col0 FROM tab1
----
324
342
576
query I rowsort
SELECT + - cor0.col1 + 71 * - col1 FROM tab0 cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ALL + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT col2 DIV col2 + 96 FROM tab1
----
97
97
97
skipif mysql # not compatible
query I rowsort label-8304
SELECT col2 / col2 + 96 FROM tab1
----
97
97
97
query I rowsort
SELECT ALL + col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * col1 col2 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + - col1 + + col2 AS col1 FROM tab1 cor0
----
28
47
83
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 ALL + col2 + - 93 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-624
-7228
-7309
query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab1 cor0
----
-46
query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + + 5 * 98 - col1 * col2 AS col2 FROM tab0 AS cor0
----
-2348
-6972
393
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 * - col1 col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ( ( - col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + ( col0 ) + col1 + col2 AS col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT - col0 + + tab2.col2 AS col1 FROM tab2
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT + col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + 14 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT - + 10 + - cor0.col0 AS col2 FROM tab0 cor0
----
-34
-45
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * col0 col1 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT DISTINCT - 76 FROM tab2, tab0, tab2 cor0
----
-76
query I rowsort
SELECT - - col1 * col0 * - col2 - + col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT + col1 + col0 * cor0.col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - + col1 * col2 + 43 FROM tab0 AS cor0
----
-2795
-54
-7419
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( + 68 ) * col1 * + 96 col2 FROM tab0 AS cor0
----
561441
594130
633217
query I rowsort
SELECT ALL 61 * - cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d740146500a26bf86c4858cefb49b300
query I rowsort
SELECT 47 + - col2 * + col2 FROM tab1
----
-2869
-3202
-9169
query I rowsort
SELECT + + cor0.col2 * - 31 FROM tab2 AS cor0
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8332
SELECT - + cor0.col1 DIV + 7 AS col1 FROM tab0 cor0
----
-12
-13
-13
skipif mysql # not compatible
query I rowsort label-8332
SELECT - + cor0.col1 / + 7 AS col1 FROM tab0 cor0
----
-12
-13
-13
query I rowsort
SELECT + 93 * + cor0.col1 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT ALL - - 59 + - col2 * col0 * col1 FROM tab2 AS cor0
----
-119593
-50975
-5800
query I rowsort
SELECT + 88 AS col2 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT ALL col0 + cor0.col0 FROM tab2 cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT ALL ( + col0 ) DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL ( + col0 ) / + col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - ( + 29 ) FROM tab0 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + tab1.col0 + - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL + col1 * + col2 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 39 * 83 FROM tab2 cor0
----
-3237
-3237
-3237
query I rowsort
SELECT ( + col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 + - 5 FROM tab0
----
-38
-6
-87
query I rowsort
SELECT 52 FROM tab0 cor0
----
52
52
52
query I rowsort
SELECT - + 85 * + cor0.col1 FROM tab1 AS cor0
----
-1105
-2210
-850
query I rowsort
SELECT + + 37 FROM tab1, tab1 AS cor0, tab2, tab1 cor1
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
query I rowsort
SELECT - + col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col1 + - 35 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1296
-1465
-615
skipif mysql # not compatible
query I rowsort
SELECT ALL - - 64 * - col1 + CAST ( col1 + + col1 AS REAL ) * 19 * 12 AS col1 FROM tab0 AS cor0
----
33712
35672
38024
query I rowsort
SELECT - - 54 + + col2 * - 85 * + col0 FROM tab2 AS cor0
----
-16011
-172326
-255116
query I rowsort
SELECT ALL - cor0.col2 * - col2 + 64 AS col2 FROM tab0 AS cor0
----
1153
65
6788
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - ( - cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT ( - 2 ) AS col1 FROM tab1
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8356
SELECT 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-8356
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - - ( col0 ) - + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 90 + col1 * ( + col0 ) AS col0 FROM tab0 cor0
----
1974
3305
8009
query I rowsort
SELECT col1 + - col2 + + col0 AS col0 FROM tab0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8361
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8361
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 82 + + 95 + + col2 FROM tab1 AS cor0
----
231
234
273
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 66 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 18b0c368baac0e3433d1e072f8b49f81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 59 col2 FROM tab1
----
177
3776
4720
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab1, tab2 cor0
----
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8366
SELECT - ( ( col1 ) + CAST( + tab2.col0 AS SIGNED ) ) FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-8366
SELECT - ( ( col1 ) + CAST ( + tab2.col0 AS INTEGER ) ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + ( 89 ) FROM tab0
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT + tab2.col1 - 70 * col2 DIV - 87 AS col0 FROM tab2
----
47
52
79
skipif mysql # not compatible
query I rowsort label-8368
SELECT + tab2.col1 - 70 * col2 / - 87 AS col0 FROM tab2
----
47
52
79
query I rowsort
SELECT + 76 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8370
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8371
SELECT + + CAST( NULL AS SIGNED ) * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8371
SELECT + + CAST ( NULL AS INTEGER ) * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT col0 + - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col1 * ( + 44 ) FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT + + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - - col1 * - ( + 43 ) AS col2 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT col1 * - ( - 44 ) AS col1 FROM tab0 cor0
----
3784
4004
4268
onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT ALL + col0 DIV - cor0.col1 - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2029
-3006
skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + col0 / - cor0.col1 - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2029
-3006
query I rowsort
SELECT DISTINCT + col0 * + ( col0 + - col2 * + ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-25560
-590515
1190
query I rowsort
SELECT DISTINCT + col1 * 68 FROM tab0 cor0
----
5848
6188
6596
query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + col2 * + ( - 27 * col2 + - col1 ) FROM tab0 AS cor0
----
-124
-189010
-32241
query I rowsort
SELECT - cor0.col0 * col1 * 55 AS col2 FROM tab2 AS cor0
----
-11935
-253110
-73865
query I rowsort
SELECT DISTINCT + col0 * + 40 + - cor0.col2 FROM tab0 AS cor0
----
1399
3478
927
query I rowsort
SELECT DISTINCT - col0 * - col0 + - ( col1 ) * - 53 AS col1 FROM tab0 AS cor0
----
12744
5134
6366
query I rowsort
SELECT DISTINCT - + col1 + col2 * col2 - 78 AS col1 FROM tab2 AS cor0
----
1349
539
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT col0 * 16 + col2 DIV ( - 43 ) - col0 FROM tab1 AS cor0
----
1198
44
959
skipif mysql # not compatible
query I rowsort label-8388
SELECT col0 * 16 + col2 / ( - 43 ) - col0 FROM tab1 AS cor0
----
1198
44
959
onlyif mysql # use DIV operator for integer division
query I rowsort label-8389
SELECT DISTINCT + - 33 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + - 33 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT DISTINCT + col0 + col0 - ( col0 ) * - tab1.col0 FROM tab1
----
15
4224
6560
query I rowsort
SELECT ALL - col0 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
148
159
93
query I rowsort
SELECT ALL 55 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT col0 * col0 - + col0 * 37 AS col1 FROM tab1 AS cor0
----
-102
1728
3440
query I rowsort
SELECT DISTINCT - 30 * + 29 - col1 FROM tab2 AS cor0
----
-887
-901
-929
query I rowsort
SELECT - ( - 94 + - tab1.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 7beaac63b2b0d5e3c2df409531e6410f
query I rowsort
SELECT + col0 - + ( 5 ) AS col1 FROM tab1
----
-2
59
75
query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 + col1 * + 34 FROM tab0 AS cor0
----
3010
3185
3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT DISTINCT 46 DIV col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT 46 / col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT cor1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT - + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 75 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT ( + col2 + col2 ) * col1 FROM tab2
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 22 * tab2.col2 + - ( col2 ) * col0 * - 10 FROM tab2
----
20852
2484
30856
query I rowsort
SELECT + 12 + col1 FROM tab0
----
103
109
98
query I rowsort
SELECT ALL - - col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab1
----
41
query I rowsort
SELECT col1 * - col2 - + 79 FROM tab0
----
-176
-2917
-7541
query I rowsort
SELECT col2 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT 58 * col1 AS col0 FROM tab1
----
1508
580
754
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT + - col1 + col1 * + col0 * 39 FROM tab0 cor0
----
132308
315770
80410
query I rowsort
SELECT - col2 - col0 * + 42 AS col0 FROM tab0
----
-1041
-1471
-3820
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT + col0 DIV ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8417
SELECT + col0 / ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT 89 FROM tab1, tab1 cor0
----
89
query I rowsort
SELECT ALL + - ( + cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 71 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT cor0.col2 - tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 346ecce5023d3440fcfb161aa071fa19
query I rowsort
SELECT ALL - + tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - 14 FROM tab1, tab0 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT ALL + 76 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8425
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * 49 FROM tab1 AS cor0
----
147
3136
3920
query I rowsort
SELECT - col2 + - ( ( col2 ) ) * 96 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT + col2 + 36 AS col1 FROM tab1 cor0
----
132
90
93
query I rowsort
SELECT DISTINCT + - col0 * - 78 AS col2 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT DISTINCT - + col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8432
SELECT ( + 21 ) DIV - col2 AS col2 FROM tab0
----
-21
0
0
skipif mysql # not compatible
query I rowsort label-8432
SELECT ( + 21 ) / - col2 AS col2 FROM tab0
----
-21
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT col2 * - 71 + tab1.col1 * col0 DIV col2 AS col0 FROM tab1
----
-3833
-4036
-6806
skipif mysql # not compatible
query I rowsort label-8433
SELECT col2 * - 71 + tab1.col1 * col0 / col2 AS col0 FROM tab1
----
-3833
-4036
-6806
query I rowsort
SELECT cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col1 FROM tab2
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8436
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * - col0 + - col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT cor0.col2 + + 99 AS col2 FROM tab1 AS cor0
----
153
156
195
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8440
SELECT + - CAST( + col0 AS SIGNED ) + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
skipif mysql # not compatible
query I rowsort label-8440
SELECT + - CAST ( + col0 AS INTEGER ) + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 7 + col1 * 32 AS col0 FROM tab0 AS cor0
----
2338
2521
3097
onlyif mysql # use DIV operator for integer division
query I rowsort label-8442
SELECT ALL col0 * 64 + cor0.col1 DIV cor0.col1 FROM tab0 cor0
----
1537
2241
5697
skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL col0 * 64 + cor0.col1 / cor0.col1 FROM tab0 cor0
----
1537
2241
5697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 47 + - col2 col2 FROM tab1 AS cor0
----
-10
-49
-7
query I rowsort
SELECT - 71 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to ac364708ef97c5cf80f126fc088b952e
query I rowsort
SELECT ALL + - ( 28 ) - + col1 AS col2 FROM tab1 AS cor0
----
-38
-41
-54
query I rowsort
SELECT + col0 + + col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT ( - ( col1 ) ) DIV + col1 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8447
SELECT ( - ( col1 ) ) / + col1 AS col0 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT + col2 * + ( col0 ) DIV 1 + - col2 + col0 * col2 AS col1 FROM tab1
----
15264
270
7239
skipif mysql # not compatible
query I rowsort label-8448
SELECT + col2 * + ( col0 ) / 1 + - col2 + col0 * col2 AS col1 FROM tab1
----
15264
270
7239
query I rowsort
SELECT - 85 * col1 + - col2 * + col0 FROM tab2 AS cor0
----
-2824
-4447
-7043
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - col0 + - cor0.col2 * + col1 FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - + col0 * col0 + 90 * - cor0.col2 FROM tab1 AS cor0
----
-15040
-4869
-9226
query I rowsort
SELECT ALL - + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col1 + cor0.col1 - - 33 * col2 FROM tab2 AS cor0
----
1288
953
976
query I rowsort
SELECT col1 + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 31 * - col0 + - 26 FROM tab2 cor0
----
-243
-2444
-2475
query I rowsort
SELECT DISTINCT + - col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 * + col1 col1 FROM tab2
----
1612
3068
884
query I rowsort
SELECT DISTINCT + 72 * 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
4464
query I rowsort
SELECT + col1 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8462
SELECT DISTINCT + + col2 + col0 DIV + 40 + + cor0.col2 FROM tab1 AS cor0
----
108
115
194
skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + + col2 + col0 / + 40 + + cor0.col2 FROM tab1 AS cor0
----
108
115
194
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2 AS cor0
----
38
query I rowsort
SELECT + col1 + - cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + tab2.col0 + - col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - 70 * col1 * + col1 + col0 FROM tab1 AS cor0
----
-11750
-47317
-6936
query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + col2 * col2 + - 9 AS col0 FROM tab2 AS cor0
----
-1453
-685
-738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8470
SELECT - col1 * col2 * CAST( - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-8470
SELECT - col1 * col2 * CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - - cor0.col2 * cor0.col1 * col0 + - col1 * - col1 FROM tab1 cor0
----
100009
36580
4888
query I rowsort
SELECT ALL + + col2 + + col0 - 87 * - col0 FROM tab1 AS cor0
----
318
5689
7136
query I rowsort
SELECT + 94 FROM tab0, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ( + col1 ) - col2 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL - col0 + 86 AS col0 FROM tab2 cor0
----
7
79
8
query I rowsort
SELECT ALL - 53 + 82 - + col2 FROM tab1
----
-25
-28
-67
query I rowsort
SELECT ALL + col0 * - col0 - + tab2.col2 * col1 AS col2 FROM tab2
----
-6887
-7618
-886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + - 40 - - col0 col2 FROM tab2
----
121
122
50
query I rowsort
SELECT ALL ( + col0 * col1 ) + col1 - - col2 AS col1 FROM tab0
----
2183
3493
8272
onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT ALL - col2 * 49 * col1 - col1 DIV col1 AS col2 FROM tab0
----
-139063
-365639
-4754
skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL - col2 * 49 * col1 - col1 / col1 AS col2 FROM tab0
----
-139063
-365639
-4754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col0 * + col0 * cor0.col2 col2 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT + 9 - 74 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT - + cor0.col0 * + col0 + + col0 * + col1 FROM tab2 AS cor0
----
-1482
-4898
168
query I rowsort
SELECT - col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - - col2 * col0 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 cor0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT - 51 AS col2 FROM tab1
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + - 81 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab2
----
33
33
33
query I rowsort
SELECT + - ( col1 ) * + ( col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT - ( - col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8493
SELECT - ( - col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT cor0.col2 * - 77 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT - cor0.col0 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col1 + col0 * col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT DISTINCT - col0 * + tab2.col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8500
SELECT ALL - col2 DIV col0 + - col0 FROM tab2 AS cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL - col2 / col0 + - col0 FROM tab2 AS cor0
----
-10
-78
-79
query I rowsort
SELECT ALL - col1 * - col0 + - col2 * col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT ALL + col0 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * - col0 col2 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 * - col0 col2 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8507
SELECT ALL - col2 + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - col2 + + col2 / cor0.col1 FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT ALL - - col0 + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + col2 * + cor0.col1 - - col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - tab2.col2 * tab2.col2 * col0 - - col1 * col2 FROM tab2
----
-113430
-4266
-51194
query I rowsort
SELECT col1 - col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + - cor0.col0 * - col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( cor0.col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 9 + - col0 AS col1 FROM tab2 AS cor0
----
-16
-87
-88
query I rowsort
SELECT - 62 * col1 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT - - col0 * - col2 + col2 * - cor0.col2 FROM tab0 cor0
----
-14022
-1881
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8519
SELECT - - 84 + col0 DIV + col0 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4181
6485
94
skipif mysql # not compatible
query I rowsort label-8519
SELECT - - 84 + col0 / + col0 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4181
6485
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT - col0 * + col2 + col2 DIV - col2 FROM tab1 AS cor0
----
-163
-3649
-7681
skipif mysql # not compatible
query I rowsort label-8520
SELECT - col0 * + col2 + col2 / - col2 FROM tab1 AS cor0
----
-163
-3649
-7681
query I rowsort
SELECT ALL 89 * col0 AS col1 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ALL + 14 * col2 FROM tab1 AS cor0
----
1344
756
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-8523
SELECT ALL - - 33 + col2 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
26
28
31
skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - - 33 + col2 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
26
28
31
query I rowsort
SELECT DISTINCT 51 * col1 * col1 + + col2 * cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
128815
230259
54114
query I rowsort
SELECT DISTINCT + 52 FROM tab2
----
52
query I rowsort
SELECT ALL + ( + tab2.col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT 34 AS col1 FROM tab1
----
34
34
34
query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 85 AS col1 FROM tab2
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + + col0 + - col0 col2 FROM tab0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * + col1 + col2 * col0 col2 FROM tab1 AS cor0
----
186
4231
8624
query I rowsort
SELECT ALL tab1.col1 + - col0 + col2 * - col1 FROM tab1
----
-1315
-1381
-624
query I rowsort
SELECT + col2 + col2 AS col0 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT ALL 6 + + col1 DIV col0 + col0 * col0 AS col0 FROM tab1
----
23
4102
6406
skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL 6 + + col1 / col0 + col0 * col0 AS col0 FROM tab1
----
23
4102
6406
query I rowsort
SELECT 2 * tab0.col1 AS col1 FROM tab0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 31 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col0 + + 9 FROM tab2
----
16
87
88
query I rowsort
SELECT 92 + - ( tab2.col2 + ( tab2.col0 ) ) * + col1 AS col2 FROM tab2
----
-1897
-6044
-962
query I rowsort
SELECT 97 + + col2 FROM tab0
----
130
179
98
query I rowsort
SELECT + col0 + - tab0.col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT ( - col2 ) AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL 13 * col0 AS col0 FROM tab2
----
1014
1027
91
query I rowsort
SELECT ALL + cor0.col2 * + col2 * + col1 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab0 cor0
----
22
22
22
query I rowsort
SELECT ALL 88 FROM tab0
----
88
88
88
query I rowsort
SELECT ALL - + col0 * col0 + col1 * + col2 * col0 + + col0 AS col1 FROM tab0 cor0
----
2205
656286
67560
query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - col2 * col0 * col1 + cor0.col0 * + col1 + + col2 FROM tab2 AS cor0
----
-115024
-49653
-5615
query I rowsort
SELECT ALL + col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - - 12 AS col2 FROM tab0 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + + col0 col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL + col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 + 59 AS col0 FROM tab0 cor0
----
-30
24
35
query I rowsort
SELECT ALL - col1 + + 17 AS col2 FROM tab1
----
-9
4
7
query I rowsort
SELECT - tab0.col1 * + 27 FROM tab0
----
-2322
-2457
-2619
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8559
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8561
SELECT + - col1 DIV col1 - col1 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-8561
SELECT + - col1 / col1 - col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL - + cor0.col0 - - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + 64 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col0 * + ( - col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT DISTINCT - col0 DIV - 79 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - col0 / - 79 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT - + 64 FROM tab2 AS cor0
----
-64
query I rowsort
SELECT ALL - + ( - col1 ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL 52 * col1 * col0 AS col2 FROM tab1 AS cor0
----
33280
4056
54080
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - + 62 * col1 + - col0 FROM tab2 AS cor0
----
-1133
-1929
-3736
query I rowsort
SELECT col0 * + ( - col0 ) AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - col0 + col0 * tab2.col0 AS col2 FROM tab2
----
42
6006
6162
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
query I rowsort
SELECT + col1 * + 57 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT ALL col2 + - col1 * + tab2.col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 80 * col2 FROM tab1 cor0
----
4320
4560
7680
query I rowsort
SELECT col2 * 63 FROM tab2 cor0
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT - col0 DIV - col2 + col2 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-8581
SELECT - col0 / - col2 + col2 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT ALL + 35 AS col2 FROM tab0 AS cor0
----
35
35
35
query I rowsort
SELECT + 56 * + col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT + + col2 + 67 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT ALL + ( ( - col1 ) ) + col2 * - 46 AS col0 FROM tab0 AS cor0
----
-143
-1604
-3863
query I rowsort
SELECT ALL - cor0.col2 * + col0 - col0 * 52 FROM tab2 AS cor0
----
-553
-6084
-7110
query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT cor0.col2 + - col0 DIV - cor0.col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8588
SELECT cor0.col2 + - col0 / - cor0.col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL - col0 + col0 * + tab1.col1 FROM tab1
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8590
SELECT + ( - col0 ) * + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8590
SELECT + ( - col0 ) * + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8591
SELECT + col2 + 66 DIV col0 AS col0 FROM tab2 AS cor0
----
26
36
38
skipif mysql # not compatible
query I rowsort label-8591
SELECT + col2 + 66 / col0 AS col0 FROM tab2 AS cor0
----
26
36
38
query I rowsort
SELECT - 71 * col1 + - col1 * 32 * col2 AS col2 FROM tab0 AS cor0
----
-245245
-96922
-9991
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8593
SELECT - + CAST( col0 AS SIGNED ) * col2 + col1 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif mysql # not compatible
query I rowsort label-8593
SELECT - + CAST ( col0 AS INTEGER ) * col2 + col1 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c
query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab0, tab0 AS cor0
----
37
query I rowsort
SELECT 34 * col1 FROM tab0
----
2924
3094
3298
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT + + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8597
SELECT + + col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 2 col2 FROM tab1 AS cor0
----
-52
-55
-94
query I rowsort
SELECT - - col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT 33 FROM tab1
----
33
query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab1
----
39
query I rowsort
SELECT 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT tab1.col0 + - col0 * - ( + 90 * - col0 ) FROM tab1
----
-368576
-575920
-807
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT col0 DIV - col0 + 10 col1 FROM tab1
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8604
SELECT col0 / - col0 + 10 col1 FROM tab1
----
9
9
9
query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8606
SELECT DISTINCT col2 + + CAST( NULL AS DECIMAL ) * + col2 + - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT col2 + + CAST ( NULL AS REAL ) * + col2 + - col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL col0 * + 44 + + tab1.col0 AS col1 FROM tab1
----
135
2880
3600
query I rowsort
SELECT ALL col0 + - 98 * - col0 FROM tab2
----
693
7722
7821
query I rowsort
SELECT - col0 * - 59 FROM tab0
----
1416
2065
5251
query I rowsort
SELECT ALL - - col0 * col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + - col2 * - cor0.col2 + col1 * col0 * - cor0.col0 FROM tab0 AS cor0
----
-118824
-48447
-714087
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + - col0 * + 28 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-2210
-223
-2250
query I rowsort
SELECT + col2 * cor0.col0 * col1 + + col0 * col2 FROM tab0 AS cor0
----
3430
671416
68904
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8616
SELECT cor0.col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8616
SELECT cor0.col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT ALL col0 * CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL col0 * CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 28 FROM tab0, tab1 cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0 AS cor0
----
17
31
59
query I rowsort
SELECT + col2 * + 53 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT - + col0 * - 43 FROM tab0 cor0
----
1032
1505
3827
query I rowsort
SELECT col1 * - ( - col2 + - col1 ) * + 57 AS col1 FROM tab1 AS cor0
----
118560
38190
80769
query I rowsort
SELECT 58 + + col0 FROM tab2
----
136
137
65
query I rowsort
SELECT 51 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT ( - 22 ) * col2 AS col2 FROM tab2
----
-572
-594
-836
query I rowsort
SELECT col2 * ( col2 + col2 ) AS col0 FROM tab2
----
1352
1458
2888
query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab1
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col1 ) ) + + 77 * 41 col0 FROM tab1
----
3131
3144
3147
query I rowsort
SELECT - col2 + - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - + 97 AS col2 FROM tab2 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL 73 FROM tab2
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8632
SELECT ALL col0 * tab0.col2 DIV - col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8632
SELECT ALL col0 * tab0.col2 / - col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + 11 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab2.col0 ) col0 FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT ALL CAST( - 82 AS SIGNED ) + + cor1.col2 DIV 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 52868b9577c6a6b3b09940d1246b6f81
skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL CAST ( - 82 AS INTEGER ) + + cor1.col2 / 39 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 52868b9577c6a6b3b09940d1246b6f81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8638
SELECT - col2 / + col0 AS col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col1 * col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT - col1 * tab0.col0 + col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + 22 * col1 FROM tab2
----
1298
374
682
query I rowsort
SELECT - col0 * col0 * ( col1 ) FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT 70 + col0 AS col0 FROM tab1
----
134
150
73
query I rowsort
SELECT + ( tab1.col0 ) + 53 * col1 FROM tab1
----
1381
594
769
query I rowsort
SELECT 19 * 19 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 113af7ec6933cfdfd4d9043f3604b0d4
query I rowsort
SELECT - col1 + + col0 * + cor0.col0 AS col2 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT - + col1 + + ( col2 ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col2 * + ( 61 * col0 ) + 61 AS col1 FROM tab2 AS cor0
----
11590
123769
183183
query I rowsort
SELECT ALL - + col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col0 + ( col1 ) FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 * col1 + col2 + col0 FROM tab1 cor0
----
221
345
733
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col0 + + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL - cor0.col0 * - col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + col0 * + 3 - + cor0.col2 FROM tab2 AS cor0
----
-6
199
208
query I rowsort
SELECT col1 * - col2 + - cor0.col0 * col0 AS col0 FROM tab2 cor0
----
-6887
-7618
-886
query I rowsort
SELECT ALL + cor0.col2 * + 28 AS col2 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col1 * col2 - + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT ALL - cor0.col1 - 41 FROM tab2 AS cor0
----
-100
-58
-72
query I rowsort
SELECT - - col2 + + ( - cor0.col1 ) * - col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8665
SELECT - 35 DIV + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-82
skipif mysql # not compatible
query I rowsort label-8665
SELECT - 35 / + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8666
SELECT + CAST( NULL AS SIGNED ) * 13 - - 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-8666
SELECT + CAST ( NULL AS INTEGER ) * 13 - - col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col2 - + col0 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col0 * 19 * col2 FROM tab1
----
145920
3078
69312
query I rowsort
SELECT 57 * col1 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT DISTINCT col2 * - col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - col2 - - col0 col2 FROM tab1 AS cor0
----
-213
-3641
-7696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8674
SELECT + + CAST( NULL AS DECIMAL ) * + 87 + col0 * 9 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8674
SELECT + + CAST ( NULL AS REAL ) * + 87 + col0 * 9 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + col1 + - col0 - - 87 * col0 AS col2 FROM tab0 AS cor0
----
12419
15935
9460
query I rowsort
SELECT 27 * + cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1deec5c60d105ce478021515aa7dda70
query I rowsort
SELECT + - ( col1 ) * + 52 + col0 FROM tab1 AS cor0
----
-1349
-456
-596
query I rowsort
SELECT + + 50 * col0 * - 44 FROM tab2 AS cor0
----
-15400
-171600
-173800
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26
27
38
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT col0 * col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT tab1.col0 * col1 AS col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8683
SELECT col2 DIV tab0.col0 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8683
SELECT col2 / tab0.col0 col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT col0 * col1 + col0 DIV col0 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-8685
SELECT col0 * col1 + col0 / col0 FROM tab1
----
1041
641
79
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * col0 / col1 IN ( + tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL tab0.col0 FROM tab0 WHERE NULL BETWEEN col0 * col2 AND col0
----
query I rowsort
SELECT col0 * + col2 * col0 - + col2 * - col2 FROM tab0
----
1226
20097
656246
query I rowsort
SELECT DISTINCT + col1 + col0 * col0 + + tab2.col2 * col0 AS col0 FROM tab2
----
269
8171
9260
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----
query I rowsort
SELECT ALL tab0.col2 + - col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT col2 + col0 FROM tab0 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT col1 + + col0 * col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL - tab2.col1 * + tab2.col2 * col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col1 * - tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col1 + + col0 * col1 + col2 FROM tab1
----
1149
158
707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col1 + col0 - + col0 AS col0 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab1.col0 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 + col2 * col0 * col2 AS col2 FROM tab2
----
114114
5130
52754
query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NULL <> NULL
----
query I rowsort
SELECT DISTINCT col2 + col1 * col2 * - col0 AS col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT col2 * - tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 * - col2 * col2 - col0 FROM tab2
----
-114155
-5110
-52806
query III rowsort
SELECT ALL * FROM tab0 WHERE col2 = - col2
----
query I rowsort
SELECT col0 + - col2 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 - col0 col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL = - col2 * col1 * col2
----
query I rowsort
SELECT ALL - col0 * col0 - + col1 AS col2 FROM tab2
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT - col1 + - col0 DIV - tab0.col2 FROM tab0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-8712
SELECT - col1 + - col0 / - tab0.col2 FROM tab0
----
-62
-86
-90
query I rowsort
SELECT col0 * tab2.col2 + - col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL tab0.col2 - - tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT col0 * col1 - col2 AS col2 FROM tab1
----
24
583
944
query I rowsort
SELECT col1 * col1 + col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT col0 - - col0 DIV col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-8717
SELECT col0 - - col0 / col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL col1 - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT + col2 * col2 - + col0 AS col1 FROM tab2
----
1365
598
722
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab0
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col1 - col1 * col0 * col2 AS col2 FROM tab1
----
-36470
-4186
-99827
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab0.col0 col2 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT - col1 DIV col0 + col2 FROM tab2 cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8725
SELECT - col1 / col0 + col2 FROM tab2 cor0
----
23
26
38
query I rowsort
SELECT DISTINCT col1 + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col1 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col2 * col2 + + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL tab2.col1 * + col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col2 + col0 + col1 * col2 FROM tab0 cor0
----
133
2895
7633
query I rowsort
SELECT - col2 - - col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT col1 * + cor0.col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT ALL col1 + col1 DIV col0 col1 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL col1 + col1 / col0 col1 FROM tab2 AS cor0
----
17
35
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2 cor0
----
17
31
59
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + cor0.col1 + + col0 * - col1 * + col1 IN ( - col2 )
----
query I rowsort
SELECT DISTINCT col1 * cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col2 - cor0.col0 * - col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT DISTINCT col0 DIV + col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT col0 / + col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT DISTINCT 9 FROM tab0, tab0 AS cor0
----
9
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 + - ( - cor0.col2 * - 59 ) FROM tab1 AS cor0
----
-3134
-3343
-5638
query I rowsort
SELECT ALL + col2 * 67 - - ( col2 ) AS col1 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT + + col0 * 82 + - cor0.col1 FROM tab2 cor0
----
543
6337
6461
query I rowsort
SELECT cor0.col2 + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - + col1 * ( 62 ) FROM tab1 AS cor0
----
-1612
-620
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8746
SELECT ALL - col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 * cor0.col0 AS col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT ( - 57 ) * col1 + col1 FROM tab2 AS cor0
----
-1736
-3304
-952
query I rowsort
SELECT col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT + - 43 FROM tab0 AS cor0
----
-43
-43
-43
query I rowsort
SELECT ( 63 ) FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT + col1 - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT ALL - 16 DIV - cor0.col0 FROM tab1 cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - 16 / - cor0.col0 FROM tab1 cor0
----
0
0
5
query I rowsort
SELECT - col2 * col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 29 + + col1 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT + + col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col1 FROM tab1 cor0
----
-162
-3648
-7680
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79
query I rowsort
SELECT - 94 * + cor0.col2 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT DISTINCT + 13 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT tab1.col0 DIV + col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8762
SELECT tab1.col0 / + col0 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT + col2 * - col0 FROM tab2
----
-189
-2028
-3002
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT - + col1 DIV col1 col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8765
SELECT - + col1 / col1 col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 31 - + col2 AS col2 FROM tab2
----
-7
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 73 * tab2.col1 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
-24
-35
-89
query I rowsort
SELECT 69 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT col0 * 57 FROM tab2
----
399
4446
4503
query I rowsort
SELECT + + 47 FROM tab2 AS cor0
----
47
47
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 14 ) - + col1 col1 FROM tab2 AS cor0
----
-17
-3
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8776
SELECT + CAST( NULL AS SIGNED ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8776
SELECT + CAST ( NULL AS INTEGER ) * + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 19 + col0 AS col2 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT ALL col2 * cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + 59 + col2 FROM tab0 AS cor0
----
141
60
92
query I rowsort
SELECT DISTINCT + col0 + col0 * col2 * 53 AS col1 FROM tab1 AS cor0
----
193408
407120
8589
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 + col0 * col0 * - cor0.col2 AS col2 FROM tab1 cor0
----
-1136
-233562
-614556
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8785
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8785
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 90 * + col1 AS col0 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT DISTINCT 77 * col2 AS col0 FROM tab0
----
2541
6314
77
query I rowsort
SELECT col2 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - cor0.col1 * ( col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT - col1 DIV col0 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-8790
SELECT - col1 / col0 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT DISTINCT 22 + + col0 FROM tab1
----
102
25
86
query I rowsort
SELECT ALL col1 + + col2 * + col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - - col1 * col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col2 * - 66 AS col2 FROM tab0
----
-2178
-5412
-66
query I rowsort
SELECT tab1.col1 * - 56 AS col0 FROM tab1
----
-1456
-560
-728
query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) * - col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 10 + - col2 FROM tab1 cor0
----
-44
-47
-86
query I rowsort
SELECT - 28 AS col1 FROM tab2 AS cor0
----
-28
-28
-28
query I rowsort
SELECT - + 52 + col0 AS col2 FROM tab1 AS cor0
----
-49
12
28
query I rowsort
SELECT DISTINCT - 96 FROM tab2 AS cor0
----
-96
query I rowsort
SELECT DISTINCT - 1 + 29 FROM tab2 AS cor0
----
28
query I rowsort
SELECT DISTINCT 99 FROM tab1, tab0 cor0
----
99
query I rowsort
SELECT ALL + col2 * + 41 + + col2 - - col0 AS col2 FROM tab1
----
2271
2458
4112
query I rowsort
SELECT ALL + col2 - 32 FROM tab1
----
22
25
64
query I rowsort
SELECT ALL - col0 * + ( - col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + ( + col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( 8 ) * col2 AS col2 FROM tab0 AS cor0
----
264
656
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8808
SELECT + + col0 DIV + 37 + col2 AS col2 FROM tab0 cor0
----
1
33
84
skipif mysql # not compatible
query I rowsort label-8808
SELECT + + col0 / + 37 + col2 AS col2 FROM tab0 cor0
----
1
33
84
query I rowsort
SELECT ALL 6 AS col0 FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT ALL + 6 + + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ffac43a071faf385202728a95311c71
query I rowsort
SELECT ALL + 69 + cor1.col2 * - 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 16d3bcc943847ccddf10d73fb1d930d8
query I rowsort
SELECT + col0 * ( 32 ) FROM tab1
----
2048
2560
96
query I rowsort
SELECT + col0 + + 93 * - col2 AS col0 FROM tab1
----
-5019
-5237
-8848
query I rowsort
SELECT DISTINCT tab2.col0 - 87 FROM tab2
----
-8
-80
-9
query I rowsort
SELECT + ( tab0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + col2 * col1 * col1 + - col0 AS col2 FROM tab0
----
244044
678953
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8817
SELECT DISTINCT col0 DIV 43 + - col2 * + 88 AS col0 FROM tab2
----
-2287
-2376
-3343
skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT col0 / 43 + - col2 * + 88 AS col0 FROM tab2
----
-2287
-2376
-3343
query I rowsort
SELECT ALL + 6 * + col2 + col0 * col2 + col1 AS col2 FROM tab2
----
2243
3247
382
onlyif mysql # use DIV operator for integer division
query I rowsort label-8819
SELECT col0 + + col1 DIV + col1 + + col1 * + col2 FROM tab0
----
133
2863
7552
skipif mysql # not compatible
query I rowsort label-8819
SELECT col0 + + col1 / + col1 + + col1 * + col2 FROM tab0
----
133
2863
7552
query I rowsort
SELECT DISTINCT 95 FROM tab2, tab0 AS cor0
----
95
query I rowsort
SELECT ALL - col1 * col1 + col1 * + 67 * col1 FROM tab2
----
19074
229746
63426
query I rowsort
SELECT ALL + ( - col1 ) + - col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + 95 + tab0.col2 * col1 FROM tab0
----
192
2933
7557
query I rowsort
SELECT - col2 * col2 - col0 AS col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT ALL tab2.col0 + + col2 FROM tab2
----
104
117
34
query I rowsort
SELECT col2 * 64 + - col2 AS col1 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT DISTINCT col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col2 + + 99 FROM tab0 cor0
----
17
66
98
query I rowsort
SELECT DISTINCT + ( - col0 ) + col1 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT 68 + col0 FROM tab1
----
132
148
71
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 AS col0 FROM tab0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab0, tab2, tab0 AS cor0
----
93
query I rowsort
SELECT ALL - ( + col2 ) AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 84 AS col1 FROM tab0
----
84
84
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - col1 + + col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 * - col0 - - ( 3 ) * - col1 AS col1 FROM tab1
----
0
1001
610
query I rowsort
SELECT 9 FROM tab0
----
9
9
9
query I rowsort
SELECT - + cor0.col0 + col2 * col2 - + col2 FROM tab2 AS cor0
----
1327
572
695
onlyif mysql # use DIV operator for integer division
query I rowsort label-8842
SELECT + - col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8842
SELECT + - col1 / - col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT col1 + - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8843
SELECT col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * + ( col0 * col0 ) + col0 FROM tab1 AS cor0
----
-231
-40896
-83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8845
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) * - 62 + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) * - 62 + col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT ALL cor0.col0 + + col0 DIV 69 + col0 AS col2 FROM tab0 cor0
----
179
48
70
skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL cor0.col0 + + col0 / 69 + col0 AS col2 FROM tab0 cor0
----
179
48
70
query I rowsort
SELECT DISTINCT + - col0 + + 4 AS col1 FROM tab1 AS cor0
----
-60
-76
1
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + + ( + ( + col2 ) * - col1 + col1 ) col0 FROM tab2 AS cor0
----
-1767
-4956
-918
query I rowsort
SELECT + col2 * - col1 * - 8 + - col2 FROM tab0 AS cor0
----
22671
59614
775
query I rowsort
SELECT 50 - - col1 AS col1 FROM tab2 AS cor0
----
109
67
81
query I rowsort
SELECT DISTINCT + col2 * + col0 - col2 * col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - col1 + col0 - col2 AS col2 FROM tab2 AS cor0
----
-51
-7
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT - col1 DIV + col0 + col2 AS col0 FROM tab0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-8854
SELECT - col1 / + col0 + col2 AS col0 FROM tab0
----
-1
30
81
query I rowsort
SELECT DISTINCT - 29 * col2 + ( + col1 + col0 ) AS col1 FROM tab1
----
-1537
-1579
-2691
query I rowsort
SELECT DISTINCT col0 + - col2 - ( 12 ) FROM tab0 cor0
----
-21
-5
22
query I rowsort
SELECT - + col2 - + col1 AS col1 FROM tab2 cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col1 - + 90 col2 FROM tab2 AS cor0
----
-28
-56
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT 49 * - col1 DIV + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-113
-129
-52
skipif mysql # not compatible
query I rowsort label-8859
SELECT 49 * - col1 / + col1 - + col0 AS col1 FROM tab1 AS cor0
----
-113
-129
-52
query I rowsort
SELECT ALL - col0 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT ALL + - col0 * - col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col1 * - col1 + + cor0.col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT tab2.col2 + - col0 * - ( + 60 + + col0 ) * col0 FROM tab2
----
3310
839618
867537
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 cor0, tab2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col0 + CAST ( - cor0.col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8868
SELECT DISTINCT + + col2 DIV ( col1 ) col0 FROM tab2 AS cor0
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT + + col2 / ( col1 ) col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL - col2 * 52 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT + col0 * - col1 + - 95 FROM tab2 AS cor0
----
-1438
-312
-4697
query I rowsort
SELECT ALL + ( 75 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT DISTINCT - col2 * col2 + + 23 * - col1 * - col1 AS col0 FROM tab1
----
-5329
-949
12632
query I rowsort
SELECT ALL 87 + - col1 FROM tab2
----
28
56
70
query I rowsort
SELECT tab0.col2 + tab0.col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT 10 * - 25 + - cor0.col1 FROM tab0 AS cor0
----
-336
-341
-347
query I rowsort
SELECT ALL 19 + col1 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT + - 90 AS col2 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT + cor0.col2 - - 13 AS col1 FROM tab1 AS cor0
----
109
67
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8879
SELECT ALL + - CAST( - col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + - CAST ( - col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL 57 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT - tab1.col1 - - col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + col2 - ( - 51 + + col0 ) AS col1 FROM tab2
----
-1
10
71
query I rowsort
SELECT + col0 + - ( col0 + + col2 ) FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT DISTINCT + col2 DIV + 44 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + col2 / + 44 FROM tab0
----
0
1
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 cor0, tab1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b
query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT tab2.col2 * - 46 FROM tab2, tab0 cor0, tab1 AS cor1
----
-1196
-1242
-1748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8890
SELECT + + CAST( - col2 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-8890
SELECT + + CAST ( - col2 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + + 42 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT + 7 * - col0 AS col2 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab0 AS cor0
----
-95
query I rowsort
SELECT ALL - col1 + + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT DISTINCT col0 DIV + 43 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT col0 / + 43 FROM tab2
----
0
1
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 89 * - col0 AS col1 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT + ( - col2 ) * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab0, tab0 AS cor0
----
61
query I rowsort
SELECT 9 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - 97 AS col2 FROM tab0
----
-97
-97
-97
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 51 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT - + 75 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT + - 37 * col2 FROM tab0 AS cor0
----
-1221
-3034
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT DISTINCT - - cor0.col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT - - cor0.col2 / + col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ( - cor0.col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 + + col0 * + 31 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT col2 * ( + col2 ) AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - cor1.col2 FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT ALL + + cor0.col0 - 45 AS col1 FROM tab2 AS cor0
----
-38
33
34
query I rowsort
SELECT DISTINCT - - col0 * 42 FROM tab2 AS cor0
----
294
3276
3318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT DISTINCT - + cor0.col1 + 62 / cor0.col0 - - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - + cor0.col1 + 62 / cor0.col0 - - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - cor0.col2 + - ( - col2 ) * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
244035
678960
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - ( cor0.col0 ) + + col0 col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT col2 + 51 * - 48 FROM tab0 AS cor0
----
-2366
-2415
-2447
query I rowsort
SELECT DISTINCT + - col2 - col1 * - col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ALL - col0 * - col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8921
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + + 8 * 69 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 524e19bf7b59aeaf70ccc225292d21ad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + 48 * col1 col0 FROM tab1 AS cor0
----
1194
423
528
query I rowsort
SELECT - - col0 + 40 AS col2 FROM tab0 AS cor0
----
129
64
75
query I rowsort
SELECT 46 + - col2 * col0 * + col0 FROM tab0 AS cor0
----
-1179
-18962
-649476
query I rowsort
SELECT DISTINCT + 78 * col0 AS col2 FROM tab2
----
546
6084
6162
query I rowsort
SELECT DISTINCT - - 52 * + col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT ALL + + col1 + - 32 * col0 AS col2 FROM tab1 AS cor0
----
-2038
-2547
-70
query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0
----
78
query I rowsort
SELECT 33 + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 469bee6a48ed6db862e5c963bddb4473
query I rowsort
SELECT - 75 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT ( cor0.col1 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - 89 FROM tab0
----
-89
-89
-89
query I rowsort
SELECT - 9 * tab1.col2 AS col1 FROM tab1
----
-486
-513
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT - - ( - col1 ) + ( col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-8936
SELECT - - ( - col1 ) + ( col1 ) / col0 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT ( - col0 ) + ( - col2 ) AS col1 FROM tab0 cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT col2 * col2 DIV ( - col1 ) FROM tab2
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-8938
SELECT col2 * col2 / ( - col1 ) FROM tab2
----
-11
-23
-84
query I rowsort
SELECT + cor0.col1 * col1 - col0 * - col1 FROM tab2 AS cor0
----
1178
1632
8083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8940
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8940
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 + - tab1.col0 + 63 AS col0 FROM tab1
----
114
56
79
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-8943
SELECT + col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8943
SELECT + col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8944
SELECT col1 * CAST( NULL AS DECIMAL ) + 35 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8944
SELECT col1 * CAST ( NULL AS REAL ) + 35 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - col2 + + 2 AS col1 FROM tab0 AS cor0
----
-2836
-7460
-95
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
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 DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - ( - col2 ) * + col1 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61c64d7c972af4105004f57e1913df08
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab2
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8952
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - - cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + - 39 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ( 13 ) * + col1 AS col2 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT + 28 + col0 * + 11 * + 13 AS col1 FROM tab1 AS cor0
----
11468
457
9180
query I rowsort
SELECT - - cor0.col2 * col1 * - ( cor0.col2 ) + - col2 FROM tab2 AS cor0
----
-22626
-24586
-39910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8958
SELECT + 32 DIV + col2 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8958
SELECT + 32 / + col2 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ( col2 ) * + cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + col1 * col1 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + + 81 - col2 AS col2 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT DISTINCT - ( - 51 + - col2 ) AS col2 FROM tab1
----
105
108
147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 69 * col2 col2 FROM tab2
----
-1870
-1872
-2701
query I rowsort
SELECT tab2.col0 * col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL 34 + + tab0.col0 AS col0 FROM tab0
----
123
58
69
query I rowsort
SELECT 80 FROM tab1, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - 58 * col0 * + col1 FROM tab1 AS cor0
----
-37120
-4524
-60320
query I rowsort
SELECT ALL 59 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT ALL - 12 * col2 FROM tab2 AS cor0
----
-312
-324
-456
query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8972
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * - col2 + - col2 AS col1 FROM tab0 cor0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 - col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + cor0.col2 + + ( 24 ) FROM tab1 AS cor0
----
120
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL + - col2 DIV + CAST( - col1 AS SIGNED ) + - col2 FROM tab2 cor0
----
-26
-27
-36
skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + - col2 / + CAST ( - col1 AS INTEGER ) + - col2 FROM tab2 cor0
----
-26
-27
-36
query I rowsort
SELECT ALL - - col2 + ( col1 ) - - cor0.col2 AS col0 FROM tab1 cor0
----
124
134
205
query I rowsort
SELECT ALL - col1 + + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT col0 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT ALL - col2 DIV - col2 + + 14 AS col1 FROM tab1 cor0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - col2 / - col2 + + 14 AS col1 FROM tab1 cor0
----
15
15
15
query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab1
----
15
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 - CAST ( col1 * col1 + + ( + col2 ) AS REAL ) FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8984
SELECT ALL col1 DIV + col1 + - col2 - + col2 AS col1 FROM tab0
----
-1
-163
-65
skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL col1 / + col1 + - col2 - + col2 AS col1 FROM tab0
----
-1
-163
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8985
SELECT ALL + col2 - + col1 DIV col0 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + col2 - + col1 / col0 FROM tab1
----
46
57
96
query I rowsort
SELECT DISTINCT + 8 - col0 FROM tab1
----
-56
-72
5
query I rowsort
SELECT ALL - col1 - - tab2.col1 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * - col0 + + col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8990
SELECT DISTINCT CAST( tab0.col2 AS SIGNED ) * + tab0.col2 + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT CAST ( tab0.col2 AS INTEGER ) * + tab0.col2 + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT + - 16 * 36 FROM tab0 cor0
----
-576
-576
-576
query I rowsort
SELECT ALL - - col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - 68 * - col1 AS col1 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT DISTINCT + - ( col2 ) * + col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 41 * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977
onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT ALL - + col2 DIV - col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - + col2 / - col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col0 * - 45 AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT + + 36 AS col2 FROM tab2 AS cor0
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col1 ) col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - 83 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT tab0.col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
3
64
80
query I rowsort
SELECT ( - tab0.col1 ) * - col1 + 76 AS col2 FROM tab0
----
7472
8357
9485
query I rowsort
SELECT + col1 + - col2 * - col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - col1 * 0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + col2 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT - + 4 + col1 * col0 DIV ( + col0 ) AS col1 FROM tab1 AS cor0
----
22
6
9
skipif mysql # not compatible
query I rowsort label-9008
SELECT - + 4 + col1 * col0 / ( + col0 ) AS col1 FROM tab1 AS cor0
----
22
6
9
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT ALL col1 + - col1 DIV - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL col1 + - col1 / - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
194
88
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9011
SELECT ALL CAST( 34 AS SIGNED ) + col0 col0 FROM tab2 AS cor0
----
112
113
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL CAST ( 34 AS INTEGER ) + col0 col0 FROM tab2 AS cor0
----
112
113
41
query I rowsort
SELECT + cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + col2 * 4 AS col1 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT ALL - col2 + 94 FROM tab0 cor0
----
12
61
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT DISTINCT + ( 69 ) * + col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT + ( 69 ) * + col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( + 85 ) FROM tab2 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT DISTINCT 95 DIV - col1 FROM tab2 AS cor0
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-9017
SELECT DISTINCT 95 / - col1 FROM tab2 AS cor0
----
-1
-3
-5
query I rowsort
SELECT - - ( col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9019
SELECT - CAST( NULL AS SIGNED ) * - 84 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9019
SELECT - CAST ( NULL AS INTEGER ) * - 84 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * + 8 + col0 col2 FROM tab0 AS cor0
----
808
819
873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 91 - col1 col2 FROM tab0 AS cor0
----
-6
0
5
query I rowsort
SELECT DISTINCT - 41 + cor0.col2 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT ALL + col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col2 + + 95 AS col2 FROM tab1 AS cor0
----
-1
38
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT DISTINCT 8 * col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
3
7
skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT 8 * col2 / + col1 AS col2 FROM tab0 AS cor0
----
0
3
7
query I rowsort
SELECT DISTINCT + + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 67 * - col1 col2 FROM tab2 AS cor0
----
-1101
-2050
-3927
query I rowsort
SELECT + col1 - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - ( - 36 ) FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT ALL - col0 + - col1 - col1 * - col0 AS col0 FROM tab1 AS cor0
----
49
566
947
query I rowsort
SELECT + 23 AS col0 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT ( col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - ( col2 ) * 13 AS col1 FROM tab2 AS cor0
----
-338
-351
-494
query I rowsort
SELECT + col1 * - col2 + ( + col2 ) * col2 + 13 FROM tab1 AS cor0
----
1525
2692
7981
query I rowsort
SELECT ALL + - col0 * - col2 - ( + col2 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-540
1352
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT DISTINCT + col2 DIV col1 + + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2914
-3244
-9209
skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + col2 / col1 + + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2914
-3244
-9209
query I rowsort
SELECT + col2 * col2 * col1 + 81 * - col0 + + ( + ( col0 ) ) FROM tab2 AS cor0
----
18228
22039
33644
query I rowsort
SELECT DISTINCT - col2 * col2 * 73 FROM tab1 AS cor0
----
-212868
-237177
-672768
query I rowsort
SELECT DISTINCT + 29 AS col2 FROM tab2 AS cor0
----
29
query I rowsort
SELECT cor0.col0 * - cor0.col1 * + col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL col0 * + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT DISTINCT + col2 DIV col1 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + col2 / col1 FROM tab2 cor0
----
0
2
query I rowsort
SELECT ALL - - 72 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT - col0 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT 69 + col2 + + cor0.col0 FROM tab1 AS cor0
----
126
190
245
query I rowsort
SELECT ALL - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 82 * col0 FROM tab2 cor0
----
574
6396
6478
query I rowsort
SELECT DISTINCT 18 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
18
query I rowsort
SELECT col0 * + col0 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT DISTINCT + + col2 + 23 * - col0 AS col0 FROM tab2 AS cor0
----
-134
-1768
-1779
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col0 FROM tab0 cor0
----
2
62
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col2 FROM tab1
----
-14
-14
-14
query I rowsort
SELECT DISTINCT + 60 * - 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2940
query I rowsort
SELECT ALL + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9059
SELECT ALL - col1 * - col0 * CAST( 25 AS SIGNED ) AS col0 FROM tab1
----
16000
1950
26000
skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - col1 * - col0 * CAST ( 25 AS INTEGER ) AS col0 FROM tab1
----
16000
1950
26000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col0 + - col1 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT - - col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT DISTINCT col2 * col0 DIV + 24 FROM tab0
----
1
304
33
skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT col2 * col0 / + 24 FROM tab0
----
1
304
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab1.col2 col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1, tab1 AS cor0
----
1
query I rowsort
SELECT + - cor0.col0 * ( col2 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 * + col0 + cor0.col1 FROM tab0 cor0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 - 6 * 10 col1 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT DISTINCT - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT col1 * + col0 * - ( col2 + col2 * - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
115430
1566576
58442384
query I rowsort
SELECT DISTINCT + 12 FROM tab1, tab1 AS cor0
----
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT ALL - ( col0 ) DIV col2 + 24 FROM tab0
----
-11
23
24
skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - ( col0 ) / col2 + 24 FROM tab0
----
-11
23
24
query I rowsort
SELECT ALL + + cor0.col1 * - col0 + - 11 FROM tab2 AS cor0
----
-1354
-228
-4613
query I rowsort
SELECT ALL cor0.col0 * + col2 + + col2 AS col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT ALL tab1.col1 * - tab1.col2 * 85 AS col0 FROM tab1
----
-106080
-119340
-48450
query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - 77 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT ALL + + ( - col2 ) + ( - col0 ) + + col1 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT DISTINCT + 88 + - col2 FROM tab0 cor0
----
55
6
87
query I rowsort
SELECT 85 + col1 FROM tab2 cor0
----
102
116
144
query I rowsort
SELECT - col1 - col2 * cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT DISTINCT + + 14 DIV col0 AS col0 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + + 14 / col0 AS col0 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - 11 + col1 - - 47 * - ( + cor0.col2 ) FROM tab2 AS cor0
----
-1174
-1249
-1780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab2
----
54
query I rowsort
SELECT ( ( - col1 ) + 43 ) AS col0 FROM tab2
----
-16
12
26
query I rowsort
SELECT 50 - - col0 FROM tab2
----
128
129
57
query I rowsort
SELECT + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + + col0 + col2 - 15 AS col2 FROM tab2 AS cor0
----
102
19
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT col1 * col0 + 7 + col2 DIV col0 FROM tab2
----
1350
227
4609
skipif mysql # not compatible
query I rowsort label-9093
SELECT col1 * col0 + 7 + col2 / col0 FROM tab2
----
1350
227
4609
query I rowsort
SELECT + ( - 60 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9095
SELECT DISTINCT - CAST( NULL AS SIGNED ) * cor0.col1 * col0 + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * cor0.col1 * col0 + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( + ( cor0.col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - 67 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1028
-3548
-356
query I rowsort
SELECT - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 31 col2 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT col0 + cor0.col1 * col2 * cor0.col1 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT 23 - 10 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + 94 * col2 AS col2 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT DISTINCT ( + 62 ) AS col2 FROM tab0
----
62
query I rowsort
SELECT DISTINCT + 24 FROM tab0
----
24
query I rowsort
SELECT col2 * 32 - col0 * 72 AS col1 FROM tab2
----
-4472
-4784
360
query I rowsort
SELECT 22 * col2 - col2 * - col1 FROM tab1
----
1824
2592
3360
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT DISTINCT 44 DIV 44 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-9110
SELECT DISTINCT 44 / 44 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT ALL col1 DIV - tab1.col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL col1 / - tab1.col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab0 AS cor0
----
33
query I rowsort
SELECT ALL + col1 - - 18 FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT DISTINCT 52 * - 85 * + col1 AS col0 FROM tab1 AS cor0
----
-114920
-44200
-57460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT - - CAST( NULL AS SIGNED ) * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9115
SELECT - - CAST ( NULL AS INTEGER ) * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 13 + 43 * + col2 + 38 AS col2 FROM tab2 cor0
----
1169
1212
1685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9117
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9117
SELECT DISTINCT - CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( + 82 ) + col2 * col2 FROM tab0
----
1171
6806
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 5 * + col1 + 23 col2 FROM tab2 cor0
----
1108
23033
6738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * col0 col2 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT ALL col0 + cor0.col2 * 84 AS col2 FROM tab0 cor0
----
119
2796
6977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + 41 * - col1 AS col0 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT + + cor0.col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col2 * col2 + - ( col1 ) FROM tab0 AS cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 col1 FROM tab1
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 * col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + 96 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT ALL + 47 * + col2 + col1 FROM tab2 AS cor0
----
1281
1300
1803
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab1 cor1
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 + + cor0.col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col0 * col2 + - 19 AS col2 FROM tab1 AS cor0
----
143
3629
7661
query I rowsort
SELECT - + col2 + + col0 * 17 AS col0 FROM tab0 AS cor0
----
1431
375
594
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9137
SELECT - col1 * CAST( NULL AS SIGNED ) + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9137
SELECT - col1 * CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 53 AS col1 FROM tab0 AS cor0
----
-36
18
29
query I rowsort
SELECT - col1 * + col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT col0 * + 86 + tab0.col0 * + col2 FROM tab0
----
14952
2856
3045
query I rowsort
SELECT col0 * tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + 47 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + col2 * 32 * + col1 AS col2 FROM tab0 cor0
----
238784
3104
90816
query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col2 * col1 * + col1 AS col1 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + 94 FROM tab1 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL 74 * col0 AS col1 FROM tab0 AS cor0
----
1776
2590
6586
query I rowsort
SELECT + 64 + - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8d1726bc4ac728971c7fd3062cfd795c
query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col1 * - cor0.col2 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-774
3298
637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL + + col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + 4 AS col2 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 * - col2 FROM tab0 cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col0 + - col0 * + col0 col0 FROM tab1
----
-448
1280
153
query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 AS col1 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL - tab1.col2 + + col2 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT ALL col0 DIV - col0 + + 77 FROM tab0
----
76
76
76
skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL col0 / - col0 + + 77 FROM tab0
----
76
76
76
query I rowsort
SELECT ALL 55 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT tab1.col2 + + 89 FROM tab1
----
143
146
185
query I rowsort
SELECT col0 * - col0 - + tab2.col1 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col0 NOT IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9169
SELECT col1 + col1 DIV col2 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9169
SELECT col1 + col1 / col2 FROM tab0
----
194
88
92
query I rowsort
SELECT ALL + tab1.col1 + - col2 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT tab1.col0 * col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - col1 * - tab2.col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND + col2
----
query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab1
----
-54
-67
23
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col0 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col1 FROM tab2
----
137
38
96
query I rowsort
SELECT ALL col2 / + col1 AS col0 FROM tab2 WHERE NULL < tab2.col2 + - col1 + + col0 * col2
----
query I rowsort
SELECT ALL + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE col0 NOT IN ( + tab1.col0 + tab1.col0 )
----
54
57
96
query I rowsort
SELECT col0 + col0 + + col1 AS col1 FROM tab1
----
138
173
32
query I rowsort
SELECT - col1 * + col0 * + col0 AS col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL col0 * col2 + + col1 + + col2 AS col2 FROM tab1
----
242
3715
7789
query I rowsort
SELECT ALL - col2 * col0 + - col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT ALL col0 + tab2.col2 * col2 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + - col2 + + col1 * col1 col1 FROM tab1
----
3691
7753
784
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col0 * + col0 * cor0.col1 - col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 col1 FROM tab1 cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-16198
-4128
-6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT tab0.col1 + - col2 + tab0.col2 * col1 * - col2 AS col2 FROM tab0
----
-1
-611875
-93601
query I rowsort
SELECT ALL + - col2 * col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 * col2 * - cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL - col1 * col0 * + cor0.col0 FROM tab0 cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT col1 DIV - col1 + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9199
SELECT col1 / - col1 + col2 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col1 * - cor0.col0 * col0 col1 FROM tab1 cor0
----
-288
-41017
-83296
query I rowsort
SELECT col2 * col0 + - col0 * col0 AS col1 FROM tab0 cor0
----
-1190
-623
216
query I rowsort
SELECT - - col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9203
SELECT ALL - col1 + - col0 DIV + col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - col1 + - col0 / + col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT + col2 + + col2 + - cor0.col0 FROM tab1 cor0
----
105
112
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT DISTINCT col0 + col2 DIV + col1 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT col0 + col2 / + col1 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * 85 col1 FROM tab1
----
-54400
-6630
-88400
query I rowsort
SELECT + 86 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT - 86 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT + 22 * col1 - col2 FROM tab2 AS cor0
----
1272
336
655
query I rowsort
SELECT 96 * cor0.col1 FROM tab0 AS cor0
----
8256
8736
9312
query I rowsort
SELECT cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9213
SELECT col1 DIV 84 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9213
SELECT col1 / 84 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - 31 AS col0 FROM tab0 AS cor0
----
-7
4
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9215
SELECT col2 DIV - col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9215
SELECT col2 / - col2 FROM tab0 AS cor0
----
-1
-1
-1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col0 FROM tab1
----
52
52
52
query I rowsort
SELECT cor0.col0 * 95 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 74d8404425fae93311b1b301bfea41ec
query I rowsort
SELECT ALL col0 + 55 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 76 * col1 + - col1 * - ( col0 * + 98 ) AS col0 FROM tab1
----
102908
63480
9620
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) < col0
----
query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( tab2.col2 / - col2 - + col0 * col1 * + col1 )
----
query I rowsort
SELECT - col2 + tab2.col1 * + col2 AS col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT col2 + + col0 * - col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT tab1.col2 + col0 * col2 * + tab1.col2 AS col1 FROM tab1
----
207993
737376
8802
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( col2 + col0 )
----
query I rowsort
SELECT ALL + col1 + + col0 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col0 - + tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col0 * + col0 + col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL tab2.col2 * col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT - col1 * + col0 - + cor0.col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + - col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - tab2.col0 + - col1 * - col0 AS col1 FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT col1 DIV - tab1.col1 - col2 AS col0 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-9237
SELECT col1 / - tab1.col1 - col2 AS col0 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT ALL - col2 - col2 * - col1 * + col0 AS col0 FROM tab2
----
119626
50996
5832
query I rowsort
SELECT DISTINCT col1 * + tab1.col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL col2 - col0 FROM tab0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 * tab1.col1 + col0 col0 FROM tab1
----
-16144
-36501
-5636
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9242
SELECT col1 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-9242
SELECT col1 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col1 * - 68 * + col1 FROM tab2 AS cor0
----
19652
236708
65348
query I rowsort
SELECT - col1 * 82 FROM tab1 cor0
----
-1066
-2132
-820
query I rowsort
SELECT - col2 * - cor0.col0 + ( col2 ) AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9247
SELECT col1 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-9247
SELECT col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + - col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - col2 * 31 * + col2 FROM tab0 AS cor0
----
-208444
-31
-33759
query I rowsort
SELECT ALL + col0 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col1 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col2 FROM tab2, tab2 AS cor0
----
90
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 11 * - col1 AS col0 FROM tab0 AS cor0
----
-1001
-1067
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9257
SELECT CAST( + col2 AS SIGNED ) + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9257
SELECT CAST ( + col2 AS INTEGER ) + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) + 6 AS col1 FROM tab2 AS cor0
----
13
84
85
query I rowsort
SELECT ALL - col0 * + col1 - - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT - - col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - 39 FROM tab0
----
-39
query I rowsort
SELECT ALL tab1.col1 * + col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT 17 + - col1 FROM tab1
----
-9
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 * - 1 col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col2 * + col0 + ( 89 ) AS col1 FROM tab2
----
2117
278
3091
query I rowsort
SELECT DISTINCT - col2 * tab0.col1 + col1 + col1 FROM tab0
----
-2666
-7280
97
query I rowsort
SELECT ALL tab0.col1 + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - 13 * col2 FROM tab0
----
-1066
-13
-429
query I rowsort
SELECT + col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 * 93 FROM tab0
----
-2232
-3255
-8277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * col0 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT tab0.col2 * col0 + + col0 FROM tab0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-9273
SELECT - col1 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9273
SELECT - col1 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT ALL + cor0.col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 56 FROM tab2, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9276
SELECT ALL - CAST( col0 AS SIGNED ) * col1 + - tab2.col2 FROM tab2
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - CAST ( col0 AS INTEGER ) * col1 + - tab2.col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + 24 - - col1 * col0 AS col2 FROM tab2
----
1367
241
4626
query I rowsort
SELECT ALL + col1 * - 52 - + tab0.col2 * 65 AS col1 FROM tab0
----
-10062
-5109
-6617
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9279
SELECT - CAST( NULL AS DECIMAL ) * - col0 - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9279
SELECT - CAST ( NULL AS REAL ) * - col0 - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 14 * col0 + cor0.col2 FROM tab2 cor0
----
-1066
-1068
-71
query I rowsort
SELECT col2 * + 95 AS col0 FROM tab0 AS cor0
----
3135
7790
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9283
SELECT + + 83 - - ( col1 * + CAST( NULL AS SIGNED ) + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9283
SELECT + + 83 - - ( col1 * + CAST ( NULL AS INTEGER ) + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * - 43 * col1 + ( col1 ) FROM tab1 AS cor0
----
-29042
-4290
-7254
query I rowsort
SELECT ALL + 44 AS col0 FROM tab0 AS cor0
----
44
44
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9286
SELECT col2 + col0 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
6110
6279
76
skipif mysql # not compatible
query I rowsort label-9286
SELECT col2 + col0 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9287
SELECT - ( - col2 ) * CAST( NULL AS SIGNED ) + col0 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-9287
SELECT - ( - col2 ) * CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT ALL - - col1 * - col0 + + 72 AS col0 FROM tab0 cor0
----
-1992
-3323
-8027
query I rowsort
SELECT + + 53 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 + - 90 FROM tab0 AS cor0
----
-187
-2928
-7552
query I rowsort
SELECT - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT cor0.col0 DIV col2 + ( col1 ) * col0 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-177480
-329245
-736919
skipif mysql # not compatible
query I rowsort label-9293
SELECT cor0.col0 / col2 + ( col1 ) * col0 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-177480
-329245
-736919
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + 78 + col1 AS col1 FROM tab0 cor0
----
210
7467
956
query I rowsort
SELECT ALL - - 80 * + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
1053
2106
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-9296
SELECT + + ( cor0.col0 ) + + ( - col1 ) + + col0 DIV ( - col0 * col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-9296
SELECT + + ( cor0.col0 ) + + ( - col1 ) + + col0 / ( - col0 * col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - + 1 * - col0 + col1 + - col0 * - col1 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT + 33 + + cor0.col2 FROM tab1 AS cor0
----
129
87
90
query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT cor1.col1 * 44 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to abd914d90121adc55f87780ed6959f8c
query I rowsort
SELECT DISTINCT - - 26 FROM tab1 AS cor0
----
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + 20 * - 87 * + col1 AS col0 FROM tab1
----
-17400
-22620
-45240
query I rowsort
SELECT col0 + + 15 AS col2 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT DISTINCT - 79 * - col1 AS col2 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT DISTINCT ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - + ( + col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + ( 74 ) * + col1 AS col2 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT ALL - 17 * + 28 - - col1 AS col0 FROM tab2 AS cor0
----
-417
-445
-459
query I rowsort
SELECT 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f
query I rowsort
SELECT ALL + col2 * - col0 + 85 + - col1 AS col0 FROM tab2
----
-135
-2002
-2934
query I rowsort
SELECT DISTINCT col0 + - 71 * 86 AS col2 FROM tab2
----
-6027
-6028
-6099
query I rowsort
SELECT + 2 * - 70 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 761074d4d2a0b0258948034a123a6f2a
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col1 AS REAL ) * col0 + - 62 AS col2 FROM tab1
----
-1102
-140
-702
query I rowsort
SELECT 8 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT + 9 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + col2 * col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT 2 AS col2 FROM tab2
----
2
2
2
query I rowsort
SELECT ( col1 ) * col1 * - ( + ( + col1 ) ) FROM tab0
----
-636056
-753571
-912673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT ALL 1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 - - col2 AS col2 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9326
SELECT ALL 9 * col2 + col0 - - tab0.col1 DIV + col0 AS col1 FROM tab0
----
324
46
828
skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL 9 * col2 + col0 - - tab0.col1 / + col0 AS col1 FROM tab0
----
324
46
828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9327
SELECT DISTINCT tab2.col0 * col2 + - CAST( NULL AS SIGNED ) - + 99 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT tab2.col0 * col2 + - CAST ( NULL AS INTEGER ) - + 99 FROM tab2
----
NULL
query I rowsort
SELECT - 25 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT - 40 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-40
query I rowsort
SELECT - + col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT DISTINCT - cor0.col1 DIV ( col0 ) FROM tab1 cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - cor0.col1 / ( col0 ) FROM tab1 cor0
----
-8
0
query I rowsort
SELECT ALL col2 * - 29 AS col1 FROM tab1 AS cor0
----
-1566
-1653
-2784
query I rowsort
SELECT + col0 * 85 FROM tab1 AS cor0
----
255
5440
6800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9334
SELECT - cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9334
SELECT - cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 78 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
query I rowsort
SELECT 71 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT tab1.col1 + - tab1.col0 AS col2 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9338
SELECT - col2 + - col2 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
162
2002
2964
skipif mysql # not compatible
query I rowsort label-9338
SELECT - col2 + - col2 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
162
2002
2964
query I rowsort
SELECT 58 FROM tab0, tab0 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + + col1 + ( + col0 + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT ALL + + col1 + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL + + col1 + col1 / col0 AS col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT DISTINCT col2 + col0 * 62 AS col2 FROM tab1
----
240
4025
5056
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to e678818485e7b492c8b5d6db976ebc7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col1 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 * 21 + + ( - col2 ) FROM tab0 AS cor0
----
1773
1829
2036
query I rowsort
SELECT DISTINCT + + col1 * col2 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT + col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-9349
SELECT - col0 + - 18 DIV 8 FROM tab1 AS cor0
----
-5
-66
-82
skipif mysql # not compatible
query I rowsort label-9349
SELECT - col0 + - 18 / 8 FROM tab1 AS cor0
----
-5
-66
-82
query I rowsort
SELECT ALL - cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT DISTINCT - + col0 + col1 DIV - 60 FROM tab0 cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - + col0 + col1 / - 60 FROM tab0 cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT DISTINCT col0 + col1 DIV - 11 FROM tab0
----
17
27
81
skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT col0 + col1 / - 11 FROM tab0
----
17
27
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9353
SELECT col1 DIV + 50 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9353
SELECT col1 / + 50 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT col1 * + 88 * + 99 FROM tab2
----
148104
270072
514008
onlyif mysql # use DIV operator for integer division
query I rowsort label-9355
SELECT - col2 DIV col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9355
SELECT - col2 / col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + ( - 94 ) FROM tab1, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT ALL col2 + - 69 * 35 DIV - col1 AS col2 FROM tab0
----
108
25
61
skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL col2 + - 69 * 35 / - col1 AS col2 FROM tab0
----
108
25
61
query I rowsort
SELECT - tab2.col1 + 17 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to cbc2d59ecafd04b0855325793cbed5a6
query I rowsort
SELECT 76 FROM tab0, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9360
SELECT + col2 DIV col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9360
SELECT + col2 / col1 FROM tab2
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT DISTINCT col0 * - ( + col1 * + col2 ) + ( col1 ) DIV col2 col0 FROM tab0 AS cor0
----
-3298
-664117
-68110
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT col0 * - ( + col1 * + col2 ) + ( col1 ) / col2 col0 FROM tab0 AS cor0
----
-3298
-664117
-68110
onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT DISTINCT + cor0.col1 * cor0.col1 DIV 94 AS col2 FROM tab0 cor0
----
100
78
88
skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + cor0.col1 * cor0.col1 / 94 AS col2 FROM tab0 cor0
----
100
78
88
query I rowsort
SELECT - + col1 + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 89 FROM tab2, tab0 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT + col0 * - 4 * + tab1.col1 AS col0 FROM tab1
----
-2560
-312
-4160
query I rowsort
SELECT - tab1.col2 * 42 AS col1 FROM tab1
----
-2268
-2394
-4032
query I rowsort
SELECT col2 + + col0 * - col1 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9368
SELECT - + CAST( NULL AS SIGNED ) * + ( col1 ) 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-9368
SELECT - + CAST ( NULL AS INTEGER ) * + ( col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 31 * col0 FROM tab0
----
-1085
-2759
-744
query I rowsort
SELECT - 48 * - col1 FROM tab1
----
1248
480
624
query I rowsort
SELECT 3 * ( col1 ) + - col1 + - col0 * col1 FROM tab2 AS cor0
----
-1309
-155
-4484
query I rowsort
SELECT + col1 - ( col2 + cor0.col0 ) * - col1 FROM tab0 AS cor0
----
15652
3589
4988
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT - - col2 * + col1 + cor0.col2 DIV 46 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9373
SELECT - - col2 * + col1 + cor0.col2 / 46 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col0 + - col0 * col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col2 - + ( cor0.col2 ) * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - ( 37 ) + - col1 AS col2 FROM tab1 cor0
----
-47
-50
-63
query I rowsort
SELECT DISTINCT + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 64 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT 19 AS col2 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT cor0.col0 * ( 34 ) FROM tab0 AS cor0
----
1190
3026
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + - col2 col2 FROM tab1
----
-104
-107
-146
query I rowsort
SELECT ALL + 78 + col1 + col0 * tab1.col1 AS col2 FROM tab1
----
1131
182
728
query I rowsort
SELECT tab2.col0 + + tab2.col0 FROM tab2
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT - col1 DIV col1 + - tab1.col1 * col0 FROM tab1
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-9386
SELECT - col1 / col1 + - tab1.col1 * col0 FROM tab1
----
-1041
-641
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * tab2.col0 * + 73 col0 FROM tab2
----
15872
336005
98056
query I rowsort
SELECT DISTINCT ( - tab0.col2 ) + + col2 * + 6 FROM tab0
----
165
410
5
query I rowsort
SELECT ALL + tab1.col0 + col0 + - col2 FROM tab1
----
-48
64
71
query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + 30 * 70 + - col1 * + 75 FROM tab1 AS cor0
----
1125
1350
150
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9392
SELECT DISTINCT CAST( 6 AS SIGNED ) + tab0.col0 col1 FROM tab0
----
30
41
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT CAST ( 6 AS INTEGER ) + tab0.col0 col1 FROM tab0
----
30
41
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9393
SELECT - CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9393
SELECT - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT ALL cor0.col0 + col0 DIV - 83 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL cor0.col0 + col0 / - 83 AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT - cor0.col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9395
SELECT - cor0.col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL col0 * - col2 + col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col0 + col0 * + col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 79 AS col0 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT + - col2 * - cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * col2 * - col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT DISTINCT + 38 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9404
SELECT DISTINCT + 38 / col1 AS col2 FROM tab2 AS cor0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT - - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9405
SELECT - - col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( - col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
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 - + 90 * + col1 AS col2 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT ALL - 41 + col2 AS col0 FROM tab1 AS cor0
----
13
16
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT + col2 - + 35 DIV - col0 FROM tab1 AS cor0
----
57
65
96
skipif mysql # not compatible
query I rowsort label-9410
SELECT + col2 - + 35 / - col0 FROM tab1 AS cor0
----
57
65
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 * + col0 col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + col1 - ( + 90 ) AS col1 FROM tab0
----
-4
1
7
query I rowsort
SELECT + col1 + - 17 + 20 * + col2 FROM tab1
----
1089
1133
1916
query I rowsort
SELECT - col1 + + col2 - - col2 FROM tab1
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT - + col2 DIV col2 - 11 FROM tab1 AS cor0
----
-12
-12
-12
skipif mysql # not compatible
query I rowsort label-9415
SELECT - + col2 / col2 - 11 FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT + col1 - + col2 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col1 * 23 AS col0 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT - - col0 * - ( 97 ) + + col2 FROM tab1 AS cor0
----
-237
-6151
-7664
query I rowsort
SELECT + col0 * col1 - + col2 * col0 FROM tab0 cor0
----
1272
3360
801
query I rowsort
SELECT + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9421
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT ALL + CAST( NULL AS SIGNED ) * + ( + cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( + cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT ALL + 41 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + 41 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
5
query I rowsort
SELECT DISTINCT + 93 * col0 AS col1 FROM tab2 cor0
----
651
7254
7347
query I rowsort
SELECT ALL - 97 * col1 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + col0 * - col0 * - 43 FROM tab0
----
24768
340603
52675
query I rowsort
SELECT - 95 FROM tab1, tab2 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT ALL - 8 AS col1 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT col2 * col2 * col1 - col2 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT DISTINCT 85 + + 49 - - col2 AS col1 FROM tab0 AS cor0
----
135
167
216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9432
SELECT DISTINCT - + ( col1 ) * col0 + CAST( NULL AS SIGNED ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT - + ( col1 ) * col0 + CAST ( NULL AS INTEGER ) * + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 - + col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT + + col0 DIV 97 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9434
SELECT + + col0 / 97 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - cor0.col1 * + col0 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - ( 60 ) - col2 * col2 FROM tab0 AS cor0
----
-1149
-61
-6784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 88 * col1 col0 FROM tab0 AS cor0
----
-181632
-298760
-712712
query I rowsort
SELECT + ( - col2 ) + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL 86 * 19 FROM tab0 AS cor0
----
1634
1634
1634
query I rowsort
SELECT DISTINCT - col2 * - ( cor0.col2 ) * - col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - 13 * col0 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT - 71 + 75 * col0 AS col0 FROM tab0 AS cor0
----
1729
2554
6604
query I rowsort
SELECT 2 + - col2 FROM tab0 AS cor0
----
-31
-80
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT ALL - + col1 * col0 + + col0 DIV col2 FROM tab1 AS cor0
----
-1040
-639
-78
skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - + col1 * col0 + + col0 / col2 FROM tab1 AS cor0
----
-1040
-639
-78
query I rowsort
SELECT ALL - 33 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1175
-780
-884
query I rowsort
SELECT col0 - - col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT tab1.col1 * 73 FROM tab1
----
1898
730
949
query I rowsort
SELECT ALL + col0 * col1 + col2 * - cor0.col1 - col0 * + col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 67 + col1 col0 FROM tab0 cor0
----
-5676
-6006
-6402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 73 col1 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT 11 FROM tab0 AS cor0
----
11
query I rowsort
SELECT - + col2 * + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col1 - + 45 FROM tab1
----
-19
-32
-35
query I rowsort
SELECT - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 64 + 51 AS col0 FROM tab0 cor0
----
115
115
115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9457
SELECT - CAST( col2 AS SIGNED ) FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9457
SELECT - CAST ( col2 AS INTEGER ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - + 77 + + col0 FROM tab2 AS cor0
----
-70
1
2
query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - ( - col0 * col1 ) + col1 AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT ALL col0 + - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - + col2 * + col0 + + 82 FROM tab1 AS cor0
----
-3566
-7598
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9464
SELECT + col2 DIV + ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9464
SELECT + col2 / + ( - ( cor0.col2 ) ) FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9465
SELECT DISTINCT + col1 + col1 DIV col0 FROM tab2 AS cor0
----
17
35
59
skipif mysql # not compatible
query I rowsort label-9465
SELECT DISTINCT + col1 + col1 / col0 FROM tab2 AS cor0
----
17
35
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9466
SELECT DISTINCT - col1 * - CAST( + 96 AS SIGNED ) FROM tab0 cor0
----
8256
8736
9312
skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT - col1 * - CAST ( + 96 AS INTEGER ) FROM tab0 cor0
----
8256
8736
9312
query I rowsort
SELECT ALL - col2 * + 97 AS col0 FROM tab1 AS cor0
----
-5238
-5529
-9312
query I rowsort
SELECT DISTINCT + ( + cor1.col2 ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9469
SELECT col1 DIV col0 AS col2 FROM tab2 cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9469
SELECT col1 / col0 AS col2 FROM tab2 cor0
----
0
0
4
query I rowsort
SELECT 14 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT ALL - col1 - col2 * - col2 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT ALL - col1 - col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-9473
SELECT + col2 + - tab1.col0 DIV 64 - + col2 * col1 AS col0 FROM tab1
----
-1153
-1350
-514
skipif mysql # not compatible
query I rowsort label-9473
SELECT + col2 + - tab1.col0 / 64 - + col2 * col1 AS col0 FROM tab1
----
-1153
-1350
-514
query I rowsort
SELECT DISTINCT - cor0.col2 * 98 AS col2 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT + 80 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + cor2.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT col2 * 99 FROM tab1 cor0
----
5346
5643
9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL - 32 DIV - col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - 32 / - col1 FROM tab1
----
1
2
3
query I rowsort
SELECT ALL + 32 AS col2 FROM tab2
----
32
32
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9481
SELECT ALL - ( + col0 ) DIV - col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - ( + col0 ) / - col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
query I rowsort
SELECT - 17 * col1 * + ( col0 ) FROM tab1
----
-10880
-1326
-17680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT - 70 * - col2 - - ( + 52 ) * col0 DIV CAST( + 50 AS SIGNED ) FROM tab0 AS cor0
----
106
2334
5832
skipif mysql # not compatible
query I rowsort label-9483
SELECT - 70 * - col2 - - ( + 52 ) * col0 / CAST ( + 50 AS INTEGER ) FROM tab0 AS cor0
----
106
2334
5832
query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab1 cor0
----
-128
-160
-6
query I rowsort
SELECT + col2 * col2 + ( 44 ) * + col1 AS col2 FROM tab2 cor0
----
2093
2192
3272
query I rowsort
SELECT col2 + + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT - 80 * + col2 + - ( - col1 ) AS col0 FROM tab2 cor0
----
-2021
-2129
-3023
query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + 34 * col2 - - 89 AS col1 FROM tab1 AS cor0
----
1925
2027
3353
query I rowsort
SELECT DISTINCT - + col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT ALL + + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL + + col2 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT - + col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + col1 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col2 * - 5 FROM tab0 cor0
----
-165
-410
-5
query I rowsort
SELECT ALL col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col2 * - col1 + - ( + col2 + tab2.col2 ) * 43 * 58 FROM tab2
----
-131222
-135513
-190190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9499
SELECT DISTINCT ( cor0.col2 ) / col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT ( cor0.col2 ) / col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 28 * 42 FROM tab1 AS cor0
----
1176
1176
1176
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 * - 56 + cor0.col0 FROM tab1 cor0
----
-1453
-496
-648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9503
SELECT ALL + + CAST( NULL AS SIGNED ) + col2 / + 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-9503
SELECT ALL + + CAST ( NULL AS INTEGER ) + col2 / + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 FROM tab1, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT CAST( NULL AS SIGNED ) * col0 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-9505
SELECT CAST ( NULL AS INTEGER ) * col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9506
SELECT - CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9506
SELECT - CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 + 69 AS col0 FROM tab1 cor0
----
133
149
72
query I rowsort
SELECT + ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT 86 AS col1 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT col1 * + tab1.col2 + + col2 * col2 AS col2 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col2 * 59 * - col2 AS col0 FROM tab1
----
-172044
-191691
-543744
query I rowsort
SELECT + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1, tab1 cor2
----
44
query I rowsort
SELECT 92 + - col0 AS col1 FROM tab1 AS cor0
----
12
28
89
query I rowsort
SELECT 68 FROM tab0
----
68
68
68
query I rowsort
SELECT ALL ( - col0 * col1 ) AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 27 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT - 69 * - col1 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - 57 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT 38 AS col1 FROM tab0
----
38
38
38
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 cor0
----
10
13
26
query I rowsort
SELECT - col0 * + col0 + ( + col2 ) * col1 AS col2 FROM tab0 cor0
----
-1128
-459
2262
query I rowsort
SELECT - + cor0.col2 * - col0 * + ( col0 ) AS col1 FROM tab2 cor0
----
1323
158184
237158
query I rowsort
SELECT col1 + - tab1.col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - col2 * 38 AS col2 FROM tab0
----
-1254
-3116
-38
query I rowsort
SELECT DISTINCT col0 * - 83 AS col1 FROM tab0
----
-1992
-2905
-7387
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT DISTINCT + col2 * 63 DIV 41 AS col2 FROM tab1
----
147
82
87
skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + col2 * 63 / 41 AS col2 FROM tab1
----
147
82
87
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col1 * 30 AS col1 FROM tab0
----
2580
2730
2910
query I rowsort
SELECT DISTINCT col1 * 25 FROM tab1
----
250
325
650
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col0 + + cor0.col1 + col1 * cor0.col2 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT - 77 * col1 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT + - col0 + + ( col1 ) * + col0 + 70 * col0 FROM tab2 AS cor0
----
6794
700
9984
query I rowsort
SELECT ( cor0.col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * 96 FROM tab2 AS cor0
----
-1632
-2976
-5664
query I rowsort
SELECT col1 + col2 + col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + - 72 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT - + 8 * col2 AS col1 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT 74 * col2 AS col0 FROM tab2
----
1924
1998
2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT ALL cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9543
SELECT ALL cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT ALL - col0 + + 73 * - col2 AS col2 FROM tab2 AS cor0
----
-1976
-1978
-2853
query I rowsort
SELECT + cor0.col0 * 87 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
2002
2948
7652
query I rowsort
SELECT DISTINCT + cor0.col2 * + ( col2 ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col2 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col2 + col2 * - 17 + + col1 AS col1 FROM tab1 AS cor0
----
-1016
-1715
-946
query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * - col2 col2 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9553
SELECT ALL - col2 * tab2.col2 DIV 12 - - 92 AS col0 FROM tab2
----
-28
32
36
skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL - col2 * tab2.col2 / 12 - - 92 AS col0 FROM tab2
----
-28
32
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9554
SELECT col0 * col2 DIV + 76 + col0 DIV + col0 FROM tab0
----
1
11
97
skipif mysql # not compatible
query I rowsort label-9554
SELECT col0 * col2 / + 76 + col0 / + col0 FROM tab0
----
1
11
97
query I rowsort
SELECT ALL - 51 + + col0 - - ( col1 * col0 ) FROM tab2
----
1371
173
4629
query I rowsort
SELECT ALL tab2.col0 + col1 + + col0 AS col0 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT tab1.col0 + 90 * - 15 FROM tab1
----
-1270
-1286
-1347
query I rowsort
SELECT col0 * - ( + ( col1 ) ) * - col0 + col1 + col1 FROM tab2 AS cor0
----
106131
1581
359074
query I rowsort
SELECT ALL - col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT DISTINCT + col1 DIV - ( - col1 ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + col1 / - ( - col1 ) FROM tab1 AS cor0
----
1
query I rowsort
SELECT col0 * + 63 + + col0 * col2 + col2 * col2 FROM tab0 AS cor0
----
19629
2241
3393
query I rowsort
SELECT DISTINCT + col2 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - cor0.col2 + - ( col0 ) FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9565
SELECT ALL - col1 + CAST( 91 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1530
2790
5310
skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL - col1 + CAST ( 91 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT DISTINCT + cor0.col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT col2 * + col2 + - 75 FROM tab0 AS cor0
----
-74
1014
6649
query I rowsort
SELECT - col1 * + 58 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT - col2 + 58 FROM tab2 AS cor0
----
20
31
32
query I rowsort
SELECT + 92 * + col2 FROM tab2 AS cor0
----
2392
2484
3496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 col1 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 50 AS REAL ) AS col0 FROM tab1
----
50
50
50
query I rowsort
SELECT ALL - 4 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT DISTINCT - - col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 40 - col1 AS col0 FROM tab1 cor0
----
14
27
30
query I rowsort
SELECT DISTINCT 19 * col0 * + col2 FROM tab0 AS cor0
----
138662
15048
665
query I rowsort
SELECT + + col0 * col0 - - col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - col0 * + col2 + - 0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - - col1 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + 2 * col1 AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT DISTINCT col2 + + col1 DIV - col0 FROM tab2 cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT col2 + + col1 / - col0 FROM tab2 cor0
----
23
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab0
----
-96
query I rowsort
SELECT col1 * - col0 * - col1 + + col1 AS col1 FROM tab0
----
177590
329412
737100
query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - - col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col0 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 7 + + col1 AS col1 FROM tab1 AS cor0
----
17
20
33
query I rowsort
SELECT ALL - 8 * col0 FROM tab2 cor0
----
-56
-624
-632
query I rowsort
SELECT DISTINCT 65 + + col0 FROM tab0 AS cor0
----
100
154
89
query I rowsort
SELECT - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + col1 - - col0 * col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL - - col1 * col2 + cor0.col2 * col2 AS col0 FROM tab0 cor0
----
14186
3927
98
query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col1 FROM tab1, tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col0 * col0 - tab0.col2 AS col0 FROM tab0
----
1224
543
7839
query I rowsort
SELECT ALL col2 - - tab1.col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT 30 + 20 * - cor0.col2 FROM tab0 AS cor0
----
-1610
-630
10
query I rowsort
SELECT ALL + + col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col0 * 67 FROM tab0 AS cor0
----
-1608
-2345
-5963
query I rowsort
SELECT - 45 + col1 FROM tab1 cor0
----
-19
-32
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT DISTINCT + col0 + 77 DIV + 56 + col2 AS col2 FROM tab0
----
172
37
58
skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + col0 + 77 / + 56 + col2 AS col2 FROM tab0
----
172
37
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab2, tab2 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - tab2.col1 * col1 - col0 FROM tab2
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9614
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 64 AS col1 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT DISTINCT - ( col1 + col2 ) AS col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT + 26 * + 33 - - col1 * + col2 * + col2 AS col2 FROM tab0
----
612742
94512
955
query I rowsort
SELECT cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 17 + col0 FROM tab2
----
-10
61
62
query I rowsort
SELECT 96 FROM tab0
----
96
96
96
query I rowsort
SELECT + 35 - col1 * col0 AS col0 FROM tab0
----
-2029
-3360
-8064
query I rowsort
SELECT - ( col1 * col1 ) AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 19 FROM tab0
----
-19
query I rowsort
SELECT DISTINCT + col1 * 68 FROM tab1
----
1768
680
884
query I rowsort
SELECT + 30 + tab0.col1 FROM tab0
----
116
121
127
query I rowsort
SELECT col0 + ( col1 ) FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT DISTINCT - col0 DIV + cor0.col1 + - 99 * + col0 AS col2 FROM tab1 AS cor0
----
-297
-6342
-7926
skipif mysql # not compatible
query I rowsort label-9628
SELECT DISTINCT - col0 / + cor0.col1 + - 99 * + col0 AS col2 FROM tab1 AS cor0
----
-297
-6342
-7926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9629
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 + + 71 * cor0.col0 FROM tab2 AS cor0
----
504
5616
5688
query I rowsort
SELECT ALL col1 + 32 AS col2 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 78 + 37 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 8ea29c11e2d920a09e8656cafe5a9642
query I rowsort
SELECT ALL - ( + 7 ) FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ALL - 41 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT ALL + - ( - 75 ) FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + 47 * + col0 FROM tab2 cor0
----
329
3666
3713
query I rowsort
SELECT - ( col2 ) - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9639
SELECT CAST( - col2 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-9639
SELECT CAST ( - col2 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT 14 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - ( col2 * - col0 ) AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - 11 FROM tab2, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT - 90 * 92 + + col0 * col1 - - col0 AS col1 FROM tab2 AS cor0
----
-3600
-6858
-8056
query I rowsort
SELECT col0 * + 21 FROM tab0 cor0
----
1869
504
735
query I rowsort
SELECT - + col1 * 2 * - col0 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT - 17 + col2 AS col2 FROM tab1
----
37
40
79
query I rowsort
SELECT + - col2 + col2 * 63 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT + 21 * + col1 AS col1 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + + col1 col0 FROM tab0 AS cor0
----
103
92
97
query I rowsort
SELECT DISTINCT col1 + + col0 * col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - cor0.col1 + ( col0 ) * + col2 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - 85 + 58 col2 FROM tab1 cor0
----
-1
-14
-17
query I rowsort
SELECT DISTINCT + col2 - - col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - col0 * 62 FROM tab2 cor0
----
-434
-4836
-4898
onlyif mysql # use DIV operator for integer division
query I rowsort label-9657
SELECT col1 + col1 DIV + col2 AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9657
SELECT col1 + col1 / + col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - 19 + col2 FROM tab2
----
19
7
8
query I rowsort
SELECT col1 * - tab2.col1 + 6 AS col0 FROM tab2
----
-283
-3475
-955
query I rowsort
SELECT - - cor0.col1 * 44 AS col1 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab1 cor0
----
96
query I rowsort
SELECT + cor0.col0 * cor0.col0 * 36 FROM tab2 AS cor0
----
1764
219024
224676
query I rowsort
SELECT ALL ( + col1 ) + col0 + + 53 AS col0 FROM tab1 AS cor0
----
127
146
82
query I rowsort
SELECT + 39 + - col2 AS col2 FROM tab1 cor0
----
-15
-18
-57
query I rowsort
SELECT - - 48 AS col0 FROM tab0 cor0
----
48
48
48
query I rowsort
SELECT + + 90 * - 20 FROM tab1 AS cor0
----
-1800
-1800
-1800
query I rowsort
SELECT ALL col0 * + col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col2 * - ( + tab1.col1 + col1 ) * - 59 FROM tab1
----
147264
165672
67260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT 63 - col1 FROM tab2 AS cor0
----
32
4
46
query I rowsort
SELECT + col0 * col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - + col1 + col2 * + 35 FROM tab1 AS cor0
----
1864
1985
3347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9674
SELECT 0 + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9674
SELECT 0 + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * - col1 * col2 + + cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444
query I rowsort
SELECT - col2 - col0 * - 56 FROM tab2 AS cor0
----
365
4342
4386
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT + tab2.col0 DIV col0 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9677
SELECT + tab2.col0 / col0 AS col0 FROM tab2
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9678
SELECT DISTINCT + CAST( - tab2.col1 AS SIGNED ) AS col2 FROM tab2, tab0, tab0 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + CAST ( - tab2.col1 AS INTEGER ) AS col2 FROM tab2, tab0, tab0 cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - ( 26 * col1 ) + - col2 AS col0 FROM tab1
----
-317
-434
-730
query I rowsort
SELECT ALL 76 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col1 + - col2 col1 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT ALL - ( col0 ) DIV - col0 + col1 * ( col2 ) col2 FROM tab2
----
1535
647
838
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL - ( col0 ) / - col0 + col1 * ( col2 ) col2 FROM tab2
----
1535
647
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-9683
SELECT - + ( + col0 ) DIV + 90 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9683
SELECT - + ( + col0 ) / + 90 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col1 * col0 - ( 40 * - col0 ) FROM tab1 AS cor0
----
198
3200
4240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col0 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9686
SELECT + ( col2 ) * CAST( col0 + col1 AS SIGNED ) FROM tab0
----
132
14760
3630
skipif mysql # not compatible
query I rowsort label-9686
SELECT + ( col2 ) * CAST ( col0 + col1 AS INTEGER ) FROM tab0
----
132
14760
3630
query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab1 AS cor0
----
43
query I rowsort
SELECT ALL - - 99 * col2 FROM tab2 cor0
----
2574
2673
3762
query I rowsort
SELECT ALL - col2 * col0 + - col1 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL - cor0.col2 - + col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT ALL 4 DIV cor0.col0 + + 69 AS col1 FROM tab1 AS cor0
----
69
69
70
skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 4 / cor0.col0 + + 69 AS col1 FROM tab1 AS cor0
----
69
69
70
query I rowsort
SELECT ALL + + 70 * + cor0.col0 - + col0 AS col1 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT + col0 - col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 85 + col1 AS col0 FROM tab2 AS cor0
----
102
116
144
query I rowsort
SELECT - 24 + - col0 * ( + tab1.col1 ) FROM tab1
----
-102
-1064
-664
query I rowsort
SELECT DISTINCT col1 - - col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + tab0.col1 - + col1 * col0 AS col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + 94 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT DISTINCT - col1 * - 31 + - 23 AS col2 FROM tab2 AS cor0
----
1806
504
938
query I rowsort
SELECT + col1 * 91 + col0 AS col2 FROM tab1 cor0
----
1263
2369
974
query I rowsort
SELECT ALL - col1 + - col2 - + 31 FROM tab1 AS cor0
----
-111
-140
-98
query I rowsort
SELECT DISTINCT col2 * - 81 FROM tab2 AS cor0
----
-2106
-2187
-3078
query I rowsort
SELECT DISTINCT - - col0 + + 92 + - col2 * col1 * 95 AS col2 FROM tab2 AS cor0
----
-145560
-61199
-79416
query I rowsort
SELECT + - cor0.col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col2 - + 19 FROM tab0 cor0
----
-101
-20
-52
query I rowsort
SELECT ALL - 27 + + col1 FROM tab2
----
-10
32
4
query I rowsort
SELECT ALL ( tab0.col1 ) * 33 + 5 * col1 FROM tab0
----
3268
3458
3686
query I rowsort
SELECT ALL 62 + col2 * col2 AS col2 FROM tab1
----
2978
3311
9278
query I rowsort
SELECT ALL col2 * - col1 - 20 FROM tab1
----
-1268
-1424
-590
query I rowsort
SELECT + tab2.col0 + - tab2.col2 * - ( 10 ) + + col2 AS col2 FROM tab2
----
304
364
497
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) * + col2 - 73 col2 FROM tab1
----
-2989
-3322
-9289
query I rowsort
SELECT ALL 90 - - col2 AS col0 FROM tab0 AS cor0
----
123
172
91
query I rowsort
SELECT ALL - 10 + + ( col2 ) * - 29 * - col0 FROM tab0 AS cor0
----
1005
211632
22958
query I rowsort
SELECT ALL + col2 * + 85 AS col1 FROM tab0
----
2805
6970
85
query I rowsort
SELECT DISTINCT 34 * col2 + col2 AS col1 FROM tab0 cor0
----
1155
2870
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT + 9 DIV 10 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9718
SELECT + 9 / 10 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 95 * - 97 AS col2 FROM tab1 AS cor0
----
-9215
query I rowsort
SELECT ALL - ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + ( cor0.col2 ) * - cor0.col2 * 86 AS col0 FROM tab2 AS cor0
----
-124184
-58136
-62694
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT + ( col0 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9722
SELECT + ( col0 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9723
SELECT DISTINCT + 79 DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
79
skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT + 79 / col2 AS col2 FROM tab0 AS cor0
----
0
2
79
query I rowsort
SELECT + cor0.col0 * + 81 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to e00e0221af273e5cb8a3fce2eab35b4d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9725
SELECT ALL col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 39 AS col2 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT + ( ( + col2 ) ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col1 + - 44 FROM tab0 AS cor0
----
-130
-135
-141
onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT ALL + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 96 + col2 * col0 AS col0 FROM tab1 AS cor0
----
258
3744
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 + - col0 col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT - 78 + - col2 FROM tab2 AS cor0
----
-104
-105
-116
query I rowsort
SELECT - ( - col1 * + col0 ) AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9734
SELECT col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( 8 ) FROM tab1
----
8
8
8
query I rowsort
SELECT col2 * + tab1.col2 + - col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT ALL + + 37 * col0 AS col1 FROM tab2 AS cor0
----
259
2886
2923
query I rowsort
SELECT + col2 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col1 * 38 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab0, tab1 AS cor0
----
28
query I rowsort
SELECT + 36 * + 0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 1 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0 AS cor0
----
84
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 AS col0 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9746
SELECT - + col1 + col2 * CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9746
SELECT - + col1 + col2 * CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + + col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - ( - col1 ) + 52 * 30 AS col2 FROM tab0 AS cor0
----
1463
1469
1474
query I rowsort
SELECT DISTINCT + + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - 76 + col1 FROM tab2 AS cor0
----
-17
-45
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * - cor0.col1 col2 FROM tab2 cor0
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - 43 col0 FROM tab0 AS cor0
----
2021
3352
8056
query I rowsort
SELECT + 96 * + col2 FROM tab0 AS cor0
----
3168
7872
96
query I rowsort
SELECT - + col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0 AS cor0
----
56
query I rowsort
SELECT - 66 * - col0 FROM tab0 cor0
----
1584
2310
5874
query I rowsort
SELECT ALL - cor0.col0 + + 7 * - 25 FROM tab0 cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to a8edfd7e2bd0d4a9641d54c0b3bb2d5d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 93 * - col2 + - col1 col0 FROM tab1
----
-5051
-5375
-9021
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * + col0 col2 FROM tab2
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9761
SELECT DISTINCT col1 * - CAST( + col2 AS SIGNED ) + col2 + 7 FROM tab2 AS cor0
----
-1501
-601
-803
skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT col1 * - CAST ( + col2 AS INTEGER ) + col2 + 7 FROM tab2 AS cor0
----
-1501
-601
-803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9762
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * - col2 - 89 FROM tab1 AS cor0
----
-251
-3737
-7769
query I rowsort
SELECT - + col2 * - col0 + - col1 * + col0 AS col1 FROM tab2 cor0
----
-2574
-28
1659
query I rowsort
SELECT - col0 * 34 - col2 FROM tab2 AS cor0
----
-265
-2678
-2724
query I rowsort
SELECT + col0 * + ( col0 ) + + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + col0 * col1 + + col1 * col1 * col2 + + col1 AS col1 FROM tab1 cor0
----
17277
36608
6350
query I rowsort
SELECT DISTINCT - - col0 * + 35 + 51 FROM tab2 AS cor0
----
2781
2816
296
query I rowsort
SELECT - col0 * 94 - 31 FROM tab1 AS cor0
----
-313
-6047
-7551
query I rowsort
SELECT ALL col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col2 + ( - 55 ) AS col1 FROM tab1 AS cor0
----
-1
2
41
query I rowsort
SELECT ALL - col2 * ( - col1 ) + col1 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT 59 FROM tab1 AS cor0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT ALL 18 DIV col2 FROM tab0 AS cor0
----
0
0
18
skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL 18 / col2 FROM tab0 AS cor0
----
0
0
18
query I rowsort
SELECT ALL + 93 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT DISTINCT - - col2 * 68 FROM tab0 AS cor0
----
2244
5576
68
query I rowsort
SELECT - - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 * + 89 FROM tab1
----
267
5696
7120
query I rowsort
SELECT DISTINCT + tab0.col2 + + col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL cor0.col2 * + ( - 45 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 72c98f70263cd4aee94820671db31536
query I rowsort
SELECT + ( - col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + cor0.col2 * ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 34 + col0 AS col2 FROM tab2
----
112
113
41
query I rowsort
SELECT DISTINCT - tab0.col0 * col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col1 * + col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * col2 * - col0 + - col1 AS col0 FROM tab2
----
-1354
-158243
-237175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT tab2.col1 * tab2.col2 + 10 FROM tab2
----
1544
656
847
query I rowsort
SELECT DISTINCT - col1 * ( cor0.col1 ) + - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT - col1 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * - col0 col1 FROM tab2
----
-18
-6025
-6224
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT ALL + 6 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT 73 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - col2 + + tab1.col1 AS col1 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9796
SELECT DISTINCT + col0 DIV col0 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT + col0 / col0 FROM tab2
----
1
query I rowsort
SELECT ALL col0 + + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT + 17 + col0 AS col1 FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT + + cor0.col0 + col1 + 52 AS col0 FROM tab2 AS cor0
----
148
189
90
query I rowsort
SELECT + 12 * col1 + col2 AS col1 FROM tab0 AS cor0
----
1065
1165
1174
query I rowsort
SELECT - + 98 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT tab0.col0 + + col0 - + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col1 + col0 * + tab1.col0 AS col2 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT ALL - col0 + col0 DIV - col2 AS col2 FROM tab0
----
-24
-70
-90
skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL - col0 + col0 / - col2 AS col2 FROM tab0
----
-24
-70
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT cor0.col1 + + col2 * - col2 + + col0 DIV cor0.col1 AS col0 FROM tab2 cor0
----
-1423
-616
-698
skipif mysql # not compatible
query I rowsort label-9805
SELECT cor0.col1 + + col2 * - col2 + + col0 / cor0.col1 AS col0 FROM tab2 cor0
----
-1423
-616
-698
query I rowsort
SELECT DISTINCT ( cor0.col2 * cor0.col2 ) FROM tab0, tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL ( - cor0.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col0 + ( col2 ) * + col2 AS col0 FROM tab2
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9812
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL
query I rowsort
SELECT + 20 FROM tab2 cor0
----
20
20
20
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab0
----
2
query I rowsort
SELECT + 38 FROM tab0 AS cor0
----
38
38
38
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col1 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT ( cor0.col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL cor0.col2 + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col2 * col2 - col0 AS col0 FROM tab1 cor0
----
2913
3185
9136
query I rowsort
SELECT ALL + 44 FROM tab0
----
44
44
44
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab2, tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT + 50 DIV - col1 AS col0 FROM tab1
----
-1
-3
-5
skipif mysql # not compatible
query I rowsort label-9825
SELECT + 50 / - col1 AS col0 FROM tab1
----
-1
-3
-5
query I rowsort
SELECT col0 * + ( col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + tab2.col0 + - ( - tab2.col1 ) + + 29 FROM tab2
----
125
166
67
query I rowsort
SELECT - 6 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT col0 DIV 19 - - col0 FROM tab2
----
7
82
83
skipif mysql # not compatible
query I rowsort label-9830
SELECT col0 / 19 - - col0 FROM tab2
----
7
82
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9831
SELECT - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9831
SELECT - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col0 FROM tab2, tab0 AS cor0
----
95
query I rowsort
SELECT DISTINCT + col1 + 52 AS col1 FROM tab1 AS cor0
----
62
65
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT ALL + col2 * CAST( NULL AS SIGNED ) / col1 + - cor0.col1 + 24 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) / col1 + - cor0.col1 + 24 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col0 * col1 * col1 col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT - - col2 * col2 + + 72 FROM tab1 AS cor0
----
2988
3321
9288
onlyif mysql # use DIV operator for integer division
query I rowsort label-9837
SELECT - 35 + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-33
-34
62
skipif mysql # not compatible
query I rowsort label-9837
SELECT - 35 + cor0.col1 / + col2 FROM tab0 AS cor0
----
-33
-34
62
query I rowsort
SELECT DISTINCT - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT - - col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9839
SELECT - - col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT + col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9840
SELECT + col0 / + col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - - col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 45 + - col0 FROM tab1 AS cor0
----
-19
-35
42
query I rowsort
SELECT DISTINCT + - cor0.col2 - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL cor0.col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - col2 + + 3 FROM tab2
----
-23
-24
-35
query I rowsort
SELECT + col2 * - col2 + col0 * - col1 FROM tab2
----
-2787
-5278
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9848
SELECT CAST( NULL AS SIGNED ) - 1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9848
SELECT CAST ( NULL AS INTEGER ) - 1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col2 + - ( col2 ) * col0 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 56 FROM tab0 AS cor0
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT ALL - col2 * + col0 + + ( cor0.col0 ) DIV - col0 col0 FROM tab0 AS cor0
----
-36
-7299
-793
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL - col2 * + col0 + + ( cor0.col0 ) / - col0 col0 FROM tab0 AS cor0
----
-36
-7299
-793
query I rowsort
SELECT DISTINCT - - 89 - + col2 * col2 FROM tab2 AS cor0
----
-1355
-587
-640
query I rowsort
SELECT ALL cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT col2 DIV - cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
144
3648
7679
skipif mysql # not compatible
query I rowsort label-9855
SELECT col2 / - cor0.col0 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
144
3648
7679
query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - ( col1 ) + - 20 FROM tab0 AS cor0
----
-106
-111
-117
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT CAST( - tab1.col1 + + col1 AS SIGNED ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9859
SELECT CAST ( - tab1.col1 + + col1 AS INTEGER ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT + CAST( tab0.col2 AS SIGNED ) * + col0 AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-9860
SELECT + CAST ( tab0.col2 AS INTEGER ) * + col0 AS col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT ( + col2 ) + + 51 AS col2 FROM tab2 cor0
----
77
78
89
query I rowsort
SELECT - col1 * col2 * - cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
16237
36530
5710
query I rowsort
SELECT DISTINCT 82 * col0 + - 94 FROM tab0 AS cor0
----
1874
2776
7204
query I rowsort
SELECT ALL + + 3 AS col2 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col0 + - col1 * col1 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + tab1.col0 * - col0 AS col0 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT ALL - col2 DIV - col0 + + col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - col2 / - col0 + + col0 FROM tab0 AS cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col0 + + tab1.col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col1 + + ( 24 ) * cor0.col1 AS col0 FROM tab1 cor0
----
250
325
650
query I rowsort
SELECT cor0.col2 * 86 AS col2 FROM tab0 cor0
----
2838
7052
86
query I rowsort
SELECT + col2 + - ( - col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - - cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 + - ( - col2 ) * col0 * 24 AS col0 FROM tab1 AS cor0
----
184240
3885
87488
query I rowsort
SELECT ALL col1 - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - col0 + col1 * + ( - ( col1 ) ) * + col0 AS col0 FROM tab1
----
-13600
-2031
-6464
query I rowsort
SELECT - 78 * col0 FROM tab1
----
-234
-4992
-6240
query I rowsort
SELECT - 0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col2 + + col0 * ( - col1 ) + + col0 FROM tab0
----
-2007
-3359
-7928
query I rowsort
SELECT ALL + tab1.col2 + col2 + - 98 FROM tab1
----
10
16
94
query I rowsort
SELECT tab2.col2 * col2 + - col0 * col0 * col0 + 93 AS col0 FROM tab2
----
-473783
-491502
479
query I rowsort
SELECT ALL - col2 + col2 + col1 AS col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ( - cor1.col0 ) DIV + cor0.col1 + - cor1.col2 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30d9ff6a0a1896847c10e64a95021962
skipif mysql # not compatible
query I rowsort label-9889
SELECT ( - cor1.col0 ) / + cor0.col1 + - cor1.col2 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30d9ff6a0a1896847c10e64a95021962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 + - col2 * - cor0.col2 col1 FROM tab0 cor0
----
1080
35
6731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT - + col2 * - CAST( + 14 AS SIGNED ) FROM tab1 AS cor0
----
1344
756
798
skipif mysql # not compatible
query I rowsort label-9891
SELECT - + col2 * - CAST ( + 14 AS INTEGER ) FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT ALL + cor0.col1 * - 54 FROM tab0 AS cor0
----
-4644
-4914
-5238
query I rowsort
SELECT ALL - + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9895
SELECT DISTINCT col2 * col0 DIV 71 col1 FROM tab2 cor0
----
2
28
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT col2 * col0 / 71 col1 FROM tab2 cor0
----
2
28
42
query I rowsort
SELECT - col2 * ( 53 ) FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT 56 + - col2 FROM tab2
----
18
29
30
query I rowsort
SELECT + + ( + col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + 88 + - 14 AS col2 FROM tab2 AS cor0
----
-102
query I rowsort
SELECT ALL col1 + cor0.col0 * col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + 73 + 60 + + col1 AS col2 FROM tab1
----
143
146
159
query I rowsort
SELECT + 88 * - 11 AS col1 FROM tab2
----
-968
-968
-968
query I rowsort
SELECT ALL + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col0 * - col0 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + col0 + cor0.col2 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - 46 + col2 AS col1 FROM tab2 AS cor0
----
-19
-20
-8
query I rowsort
SELECT ALL 54 AS col2 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT DISTINCT - 52 * - 55 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
2860
query I rowsort
SELECT + 55 AS col2 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + 61 FROM tab2 AS cor0
----
61
query I rowsort
SELECT + + 91 + col1 FROM tab2 AS cor0
----
108
122
150
query I rowsort
SELECT DISTINCT + + 61 + - col0 FROM tab0 cor0
----
-28
26
37
query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col2 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT ALL - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + col2 + col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col2 * col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT 72 + - col1 AS col0 FROM tab1 AS cor0
----
46
59
62
query I rowsort
SELECT ALL 78 * col2 AS col1 FROM tab0 cor0
----
2574
6396
78
query I rowsort
SELECT ALL - ( + col0 ) * col0 + ( col1 ) FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col2 + + col1 * col0 AS col0 FROM tab1 cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT - ( + col2 ) * col2 DIV + 62 - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1467
-686
-740
skipif mysql # not compatible
query I rowsort label-9929
SELECT - ( + col2 ) * col2 / + 62 - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1467
-686
-740
query I rowsort
SELECT col1 * 44 + col0 FROM tab0 AS cor0
----
3808
4093
4303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9931
SELECT CAST( - ( col2 ) AS SIGNED ) FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9931
SELECT CAST ( - ( col2 ) AS INTEGER ) FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT 37 * - cor0.col1 + + col1 * col0 FROM tab0 AS cor0
----
-1118
-194
4732
query I rowsort
SELECT + - 16 FROM tab2 cor0
----
-16
-16
-16
query I rowsort
SELECT ALL 79 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 * col0 AS REAL ) col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col2 - - col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - col2 * + cor0.col0 - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT 23 + cor1.col2 * + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to b0b0e64ebe6a912fc9070e5e88440c59
query I rowsort
SELECT DISTINCT + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 * 16 + col1 AS col1 FROM tab0 AS cor0
----
113
1403
614
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col1 FROM tab2
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9944
SELECT - col0 * CAST( - col0 AS SIGNED ) * - col2 + 12 + + ( col0 ) FROM tab1
----
-233396
-471
-614308
skipif mysql # not compatible
query I rowsort label-9944
SELECT - col0 * CAST ( - col0 AS INTEGER ) * - col2 + 12 + + ( col0 ) FROM tab1
----
-233396
-471
-614308
query I rowsort
SELECT ALL tab2.col2 * - 27 + + col1 FROM tab2
----
-1009
-643
-698
query I rowsort
SELECT DISTINCT - col1 * 46 + + 31 AS col2 FROM tab1
----
-1165
-429
-567
query I rowsort
SELECT ALL col2 + - 89 * - 34 * + tab2.col1 FROM tab2
----
178560
51480
93833
query I rowsort
SELECT col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + + CAST ( col0 AS REAL ) * + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9950
SELECT DISTINCT + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + col0 / + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - cor0.col1 + col0 - col1 FROM tab2 AS cor0
----
-40
-55
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9952
SELECT + col1 * + CAST( NULL AS SIGNED ) + - 62 * + col1 - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9952
SELECT + col1 * + CAST ( NULL AS INTEGER ) + - 62 * + col1 - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT col0 * - col1 DIV - col1 col2 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9953
SELECT col0 * - col1 / - col1 col2 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9954
SELECT tab1.col0 * + CAST( 93 AS SIGNED ) FROM tab1
----
279
5952
7440
skipif mysql # not compatible
query I rowsort label-9954
SELECT tab1.col0 * + CAST ( 93 AS INTEGER ) FROM tab1
----
279
5952
7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT DISTINCT col0 DIV + ( col1 ) + - col0 * col2 col0 FROM tab1
----
-162
-3642
-7674
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT col0 / + ( col1 ) + - col0 * col2 col0 FROM tab1
----
-162
-3642
-7674
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor2.col2 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT - col0 + col1 * col1 - + cor0.col1 FROM tab2 cor0
----
193
3344
923
query I rowsort
SELECT 24 + col2 - col0 FROM tab0 AS cor0
----
-10
17
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9959
SELECT DISTINCT ( col0 ) + - col0 DIV + ( 26 + cor0.col2 ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT ( col0 ) + - col0 / + ( 26 + cor0.col2 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - 77 * col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT ALL 40 * 64 - col2 AS col1 FROM tab0
----
2478
2527
2559
query I rowsort
SELECT ALL - col2 - + col0 * tab1.col2 AS col1 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT ALL - col1 - col2 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - 30 FROM tab0
----
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9966
SELECT CAST( 54 AS SIGNED ) AS col1 FROM tab0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-9966
SELECT CAST ( 54 AS INTEGER ) AS col1 FROM tab0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9967
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9968
SELECT CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + - col0 - col0 FROM tab2 cor0
----
-141
-97
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9970
SELECT col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9971
SELECT + col2 * col0 + + col1 DIV col1 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-9971
SELECT + col2 * col0 + + col1 / col1 FROM tab1 AS cor0
----
163
3649
7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT - - col0 * 72 + col2 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1729
2520
6408
skipif mysql # not compatible
query I rowsort label-9972
SELECT - - col0 * 72 + col2 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1729
2520
6408
query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - 75 AS col0 FROM tab1
----
-75
-75
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT DISTINCT ( col2 + CAST( NULL AS SIGNED ) ) * + 23 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT ( col2 + CAST ( NULL AS INTEGER ) ) * + 23 AS col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab0
----
3
3
3
query I rowsort
SELECT ALL - 21 AS col2 FROM tab2
----
-21
-21
-21
query I rowsort
SELECT - - 64 * + col0 AS col1 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT - col0 + col0 * + col2 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - - col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col2 * + 30 AS col0 FROM tab0 cor0
----
2460
30
990
query I rowsort
SELECT ALL col1 + - ( - ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT - + col0 DIV ( + col1 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9984
SELECT - + col0 / ( + col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 * 68 AS col2 FROM tab2 AS cor0
----
1156
2108
4012
query I rowsort
SELECT - cor0.col2 * - 75 AS col1 FROM tab1 AS cor0
----
4050
4275
7200
query I rowsort
SELECT + + col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 * 58 AS col2 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT + ( col0 ) * + col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 46 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2484
-2622
-4416
query I rowsort
SELECT ALL + 27 * tab0.col0 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 279bd4cfe7bb93189cfd25e32dc885e3
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT + 87 * + ( col2 * + ( cor0.col2 ) ) AS col0 FROM tab0 AS cor0
----
584988
87
94743
onlyif mysql # use DIV operator for integer division
query I rowsort label-9994
SELECT DISTINCT - 73 DIV - col1 + col0 col2 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - 73 / - col1 + col0 col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - 6 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-6
query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 AS cor0
----
73
query I rowsort
SELECT ALL + col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + 96 FROM tab2, tab0, tab0 AS cor0
----
96