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 + cor1.col1 FROM tab2, tab1 AS cor0, tab1, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT - col1 + - col0 * - col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT - + 70 AS col1 FROM tab1 AS cor0
----
-70
-70
-70
query I rowsort
SELECT col0 + + col1 * 25 AS col0 FROM tab2 cor0
----
1553
504
782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT DISTINCT - 56 + - cor0.col0 / CAST( NULL AS SIGNED ) + + col2 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT - 56 + - cor0.col0 / CAST ( NULL AS INTEGER ) + + col2 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + col0 * - col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - + 90 AS col1 FROM tab0 cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT - + 51 + col2 FROM tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT ALL + + 12 - col0 FROM tab0 AS cor0
----
-12
-23
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-10
SELECT ALL + - cor0.col2 + - CAST( NULL AS SIGNED ) * 58 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-10
SELECT ALL + - cor0.col2 + - CAST ( NULL AS INTEGER ) * 58 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * + 45 + col1 - + col2 AS col1 FROM tab0 AS cor0
----
3923
4104
4461
onlyif mysql # use DIV operator for integer division
query I rowsort label-12
SELECT col1 + - 77 DIV col0 AS col0 FROM tab1 AS cor0
----
1
13
9
skipif mysql # not compatible
query I rowsort label-12
SELECT col1 + - 77 / col0 AS col0 FROM tab1 AS cor0
----
1
13
9
query I rowsort
SELECT DISTINCT + col1 + 68 * - ( - col1 ) AS col2 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT ALL - col2 * - 48 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT - + col1 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-16
SELECT ALL col2 * CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-16
SELECT ALL col2 * CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * col0 col0 FROM tab1 AS cor0
----
210
4480
5600
query I rowsort
SELECT + 67 + - col0 FROM tab2 AS cor0
----
-11
-12
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT DISTINCT + col2 DIV - col1 - - col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1047
-645
-80
skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + col2 / - col1 - - col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1047
-645
-80
query I rowsort
SELECT ALL + - 49 + + col2 * - col1 FROM tab1 cor0
----
-1297
-1453
-619
query I rowsort
SELECT + 42 + 20 AS col1 FROM tab0 AS cor0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT DISTINCT - 60 * col0 - - col0 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
-1440
-2065
-5339
skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - 60 * col0 - - col0 / ( col2 ) AS col0 FROM tab0 AS cor0
----
-1440
-2065
-5339
query I rowsort
SELECT - cor0.col1 + - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to bdd04a15c7f6060b912a3c21908a1cde
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-24
SELECT - CAST( NULL AS SIGNED ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-24
SELECT - CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 + - col0 col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col0 col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-29
SELECT DISTINCT + col0 + + col0 DIV col1 AS col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + col0 + + col0 / col1 AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + ( col0 ) * - 0 FROM tab0 cor0
----
1
33
82
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-32
SELECT + col0 - ( + col2 ) DIV col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-32
SELECT + col0 - ( + col2 ) / col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 5 * col0 AS col0 FROM tab1
----
-15
-320
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-34
SELECT + CAST( NULL AS DECIMAL ) / - col1 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-34
SELECT + CAST ( NULL AS REAL ) / - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 - + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col2 ) * + col0 + cor0.col2 * col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT 58 + col1 DIV cor0.col1 AS col1 FROM tab2 cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-37
SELECT 58 + col1 / cor0.col1 AS col1 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT ALL 16 + col1 FROM tab0
----
102
107
113
query I rowsort
SELECT - - ( + col0 ) * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT tab2.col1 * + tab2.col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + col2 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col1 + - ( - 97 ) FROM tab2 AS cor0
----
38
66
80
query I rowsort
SELECT - + col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 48 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT DISTINCT 21 FROM tab2, tab1 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-46
SELECT ALL + col2 * ( ( col1 ) * - CAST( NULL AS DECIMAL ) ) + col0 * col2 * + 99 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + col2 * ( ( col1 ) * - CAST ( NULL AS REAL ) ) + col0 * col2 * + 99 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 29 FROM tab1
----
290
377
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-48
SELECT - 6 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-48
SELECT - 6 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col2 * ( - 39 ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 09be94d84b2323d591dd0d594e34f33f
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 col1 FROM tab2, tab0 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + 15 * + col0 * + col1 AS col2 FROM tab1
----
1170
15600
9600
query I rowsort
SELECT DISTINCT + col0 + + 56 * col2 FROM tab2 AS cor0
----
1519
1534
2207
query I rowsort
SELECT + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 65 * cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8d54786c2c041d305c28e3a564e468a2
query I rowsort
SELECT + 64 FROM tab0, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + + col1 col1 FROM tab0 AS cor0
----
104
93
98
query I rowsort
SELECT - - ( 93 ) + col2 * cor0.col2 FROM tab1 AS cor0
----
3009
3342
9309
query I rowsort
SELECT - col1 * + col0 * - col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL cor0.col2 * + 69 FROM tab1 AS cor0
----
3726
3933
6624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-61
SELECT + CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-61
SELECT + CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-62
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-63
SELECT + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-63
SELECT + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( cor1.col0 ) AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
94
query I rowsort
SELECT ALL col2 * ( - 48 ) AS col1 FROM tab1
----
-2592
-2736
-4608
query I rowsort
SELECT + ( 1 ) * + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 * 83 + - col2 AS col0 FROM tab1 AS cor0
----
-1175
-2212
-887
query I rowsort
SELECT - + col2 - + col2 * cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT 21 * + col2 + + col0 FROM tab1 AS cor0
----
1137
1261
2096
query I rowsort
SELECT col1 * - col2 + col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT + col1 - ( col2 + col2 ) * + col2 FROM tab1
----
-18419
-5806
-6488
query I rowsort
SELECT 64 - + col1 FROM tab1
----
38
51
54
query I rowsort
SELECT DISTINCT - col2 + - ( - col1 ) FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 93 ) col1 FROM tab0
----
93
93
93
query I rowsort
SELECT - col0 * + 20 AS col0 FROM tab0
----
-1780
-480
-700
query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT - ( col1 ) + + col2 FROM tab1
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-80
SELECT CAST( ( - col2 ) + ( + 10 ) AS SIGNED ) FROM tab1
----
-44
-47
-86
skipif mysql # not compatible
query I rowsort label-80
SELECT CAST ( ( - col2 ) + ( + 10 ) AS INTEGER ) FROM tab1
----
-44
-47
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col2 - col2 col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - 19 + + col2 AS col2 FROM tab2
----
19
7
8
query I rowsort
SELECT ALL 77 + - 25 * col2 AS col1 FROM tab2
----
-573
-598
-873
query I rowsort
SELECT DISTINCT + col1 + ( col2 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT col2 * 35 + col2 + + ( - 50 * - col2 ) AS col0 FROM tab1
----
4644
4902
8256
query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 78 AS col2 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT ALL - - col0 + col1 + col1 * + col1 FROM tab1 AS cor0
----
174
262
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT 19 + + col1 * cor0.col2 DIV + ( cor0.col1 * col2 ) AS col1 FROM tab1 AS cor0
----
20
20
20
skipif mysql # not compatible
query I rowsort label-89
SELECT 19 + + col1 * cor0.col2 / + ( cor0.col1 * col2 ) AS col1 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + - 82 * cor0.col1 + col0 FROM tab0 AS cor0
----
-7028
-7373
-7919
query I rowsort
SELECT + col1 * - col0 + - 38 AS col1 FROM tab0 AS cor0
----
-2102
-3433
-8137
query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT ALL 96 AS col2 FROM tab0
----
96
96
96
query I rowsort
SELECT col1 + cor0.col2 * + 86 FROM tab0 AS cor0
----
183
2924
7143
query I rowsort
SELECT ALL - 11 FROM tab1 cor0
----
-11
-11
-11
query I rowsort
SELECT - col0 + + col2 * - 98 AS col2 FROM tab0 AS cor0
----
-133
-3258
-8125
onlyif mysql # use DIV operator for integer division
query I rowsort label-97
SELECT ALL + + 29 + col1 * - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-57
-62
-68
skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + + 29 + col1 * - col0 / col0 AS col2 FROM tab0 AS cor0
----
-57
-62
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 + col2 col0 FROM tab0 AS cor0
----
131
180
99
query I rowsort
SELECT ALL 41 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT - 84 + + col1 FROM tab0 cor0
----
13
2
7
query I rowsort
SELECT DISTINCT col2 + col0 * col2 + - col0 * - col0 FROM tab1 AS cor0
----
14176
225
7801
query I rowsort
SELECT 7 + col2 FROM tab2 AS cor0
----
33
34
45
query I rowsort
SELECT ( 96 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - col0 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 98 col2 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT + cor0.col1 + - ( + col0 ) * col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col0 + + 12 * col2 FROM tab2 AS cor0
----
331
390
535
query I rowsort
SELECT ALL cor0.col1 + 2 * + col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
13539
2264
99
query I rowsort
SELECT DISTINCT + - col0 * col1 + col0 * + cor0.col0 + ( 52 ) AS col2 FROM tab1 cor0
----
-17
3508
5412
query I rowsort
SELECT + - cor0.col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL + cor0.col2 + - col1 * + cor0.col1 + col1 AS col0 FROM tab2 cor0
----
-234
-3396
-903
query I rowsort
SELECT DISTINCT + 60 FROM tab2 cor0
----
60
query I rowsort
SELECT ALL + cor0.col1 + col1 * + col1 * 93 FROM tab2 AS cor0
----
26894
323792
89404
query I rowsort
SELECT col2 - col1 * col1 FROM tab0 cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT ALL col1 + + col1 DIV col0 FROM tab0 AS cor0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-115
SELECT ALL col1 + + col1 / col0 FROM tab0 AS cor0
----
89
92
99
query I rowsort
SELECT + 91 - 45 AS col1 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT + 59 * cor0.col0 FROM tab0 cor0
----
1416
2065
5251
query I rowsort
SELECT + col0 * + 24 + col2 AS col1 FROM tab1 AS cor0
----
126
1593
2016
query I rowsort
SELECT 56 * + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7ea964627ba7d45095a0e294fb501473
onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT ALL + + cor0.col2 DIV col1 + - col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-120
SELECT ALL + + cor0.col2 / col1 + - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 * ( 83 + + col0 ) FROM tab0
----
-11446
-15652
-9202
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT col0 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-122
SELECT col0 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-124
SELECT ALL - + col1 - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - + col1 - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + cor0.col1 + + col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT tab0.col0 - + col1 FROM tab0
----
-2
-62
query I rowsort
SELECT + col1 + col1 * 10 + col0 FROM tab1
----
174
223
289
query I rowsort
SELECT + 95 + col2 FROM tab0
----
128
177
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-130
SELECT + 90 * col0 + col0 * col0 DIV - col1 + - col0 FROM tab0
----
2130
3103
7834
skipif mysql # not compatible
query I rowsort label-130
SELECT + 90 * col0 + col0 * col0 / - col1 + - col0 FROM tab0
----
2130
3103
7834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * col1 + - col1 col1 FROM tab0
----
-1978
-2093
-2231
onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT ALL tab2.col2 DIV 87 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-132
SELECT ALL tab2.col2 / 87 FROM tab2
----
0
0
0
query I rowsort
SELECT + tab0.col1 * - 77 AS col0 FROM tab0
----
-6622
-7007
-7469
query I rowsort
SELECT - 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL col0 * ( + col2 ) * col2 + + col1 FROM tab0
----
132
26222
598527
onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT - col1 DIV ( ( col2 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-136
SELECT - col1 / ( ( col2 ) ) + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + - cor0.col0 + + ( - cor0.col1 ) * col2 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - + col2 * - 69 + col0 FROM tab2 AS cor0
----
1870
1872
2701
query I rowsort
SELECT ALL - 57 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT - col2 * col0 + + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + ( + ( col2 ) ) FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-142
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-142
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 51 * col0 FROM tab1 AS cor0
----
153
3264
4080
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 * - 23 * col0 + col2 FROM tab1 AS cor0
----
-14023
-1662
-22784
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-145
SELECT - CAST( 47 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif mysql # not compatible
query I rowsort label-145
SELECT - CAST ( 47 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT + 75 * cor0.col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT DISTINCT + col1 + - col1 + ( + 94 ) * col0 AS col2 FROM tab1 cor0
----
282
6016
7520
query I rowsort
SELECT ALL - + 24 + + col2 AS col1 FROM tab0 AS cor0
----
-23
58
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT DISTINCT - col0 DIV - col0 - 91 FROM tab2 AS cor0
----
-90
skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - col0 / - col0 - 91 FROM tab2 AS cor0
----
-90
query I rowsort
SELECT DISTINCT - 60 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-60
query I rowsort
SELECT ALL - 80 AS col2 FROM tab0 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT + 33 + col1 FROM tab1 AS cor0
----
43
46
59
query I rowsort
SELECT cor0.col2 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - col2 + 17 * col0 AS col0 FROM tab1 AS cor0
----
-3
1031
1264
query I rowsort
SELECT + col1 + ( 28 ) FROM tab1 AS cor0
----
38
41
54
query I rowsort
SELECT ALL + 40 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 68 ) col2 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT 44 * 89 AS col1 FROM tab0 AS cor0
----
3916
3916
3916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * col1 col1 FROM tab2 AS cor0
----
1649
3007
5723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-161
SELECT CAST( col1 AS SIGNED ) + - col2 * - 62 FROM tab1 AS cor0
----
3374
3544
5965
skipif mysql # not compatible
query I rowsort label-161
SELECT CAST ( col1 AS INTEGER ) + - col2 * - 62 FROM tab1 AS cor0
----
3374
3544
5965
query I rowsort
SELECT + 5 AS col1 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-163
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-163
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT + ( col0 ) + col0 * tab2.col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT - col2 + - cor0.col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2808
3135
9024
query I rowsort
SELECT - col0 * 30 AS col0 FROM tab1 AS cor0
----
-1920
-2400
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-168
SELECT - col0 DIV ( col1 ) - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-168
SELECT - col0 / ( col1 ) - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col1 * - col2 + 71 FROM tab2 AS cor0
----
-1463
-575
-766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT col1 * CAST( col2 + col1 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
113360
42880
6240
skipif mysql # not compatible
query I rowsort label-171
SELECT col1 * CAST ( col2 + col1 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
113360
42880
6240
query I rowsort
SELECT + + col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-173
SELECT DISTINCT CAST( - 70 AS SIGNED ) * col0 col0 FROM tab0 cor0
----
-1680
-2450
-6230
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT CAST ( - 70 AS INTEGER ) * col0 col0 FROM tab0 cor0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL + cor0.col2 + - col0 + col0 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col2 * + col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT - ( 37 ) FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT ALL ( + 80 ) FROM tab1 AS cor0
----
80
80
80
query I rowsort
SELECT ALL + 18 + - col1 FROM tab2 AS cor0
----
-13
-41
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT DISTINCT - - col0 + cor0.col2 DIV + col1 + cor0.col1 FROM tab1 AS cor0
----
100
31
79
skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - - col0 + cor0.col2 / + col1 + cor0.col1 FROM tab1 AS cor0
----
100
31
79
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col0 * col2 + + 86 FROM tab0 AS cor0
----
121
7384
878
query I rowsort
SELECT + + 35 AS col2 FROM tab1 cor0
----
35
35
35
query I rowsort
SELECT ALL 45 * - col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + col0 * - tab0.col0 AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - col1 + 69 * + col0 FROM tab1 cor0
----
181
4406
5507
query I rowsort
SELECT ALL + - col1 * col2 * 23 FROM tab1 AS cor0
----
-13110
-28704
-32292
query I rowsort
SELECT - col0 * + col2 + col1 * col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT col1 * tab0.col1 AS col2 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT - col1 * col0 + col2 * col2 DIV col1 + col2 AS col0 FROM tab1
----
-236
-259
88
skipif mysql # not compatible
query I rowsort label-191
SELECT - col1 * col0 + col2 * col2 / col1 + col2 AS col0 FROM tab1
----
-236
-259
88
query I rowsort
SELECT 49 + col1 + - 85 AS col1 FROM tab0
----
50
55
61
query I rowsort
SELECT col0 + tab0.col0 * col2 - ( + tab0.col1 + - col2 * - col2 ) AS col2 FROM tab0
----
-28
-359
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-194
SELECT 40 + - col0 DIV col1 AS col0 FROM tab1
----
34
34
40
skipif mysql # not compatible
query I rowsort label-194
SELECT 40 + - col0 / col1 AS col0 FROM tab1
----
34
34
40
query I rowsort
SELECT DISTINCT + col1 * - col1 + + 21 - - 51 FROM tab0
----
-7324
-8209
-9337
query I rowsort
SELECT DISTINCT + - col2 - col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-106135
-1546
-358982
query I rowsort
SELECT ALL - - col0 - col1 * - cor0.col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - cor0.col0 + col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT + col2 * - cor0.col0 - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT 41 + col2 FROM tab2
----
67
68
79
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 AS col0 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-202
SELECT ALL + col0 + + tab0.col0 DIV - col2 + + col0 AS col2 FROM tab0
----
177
35
48
skipif mysql # not compatible
query I rowsort label-202
SELECT ALL + col0 + + tab0.col0 / - col2 + + col0 AS col2 FROM tab0
----
177
35
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-203
SELECT ALL + col1 * col2 DIV col1 + col1 AS col2 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-203
SELECT ALL + col1 * col2 / col1 + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col1 - + col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col0 * + col0 - col1 AS col2 FROM tab0
----
1128
490
7830
query I rowsort
SELECT col0 * tab0.col0 + - col0 + col1 * col1 FROM tab0
----
10599
16113
7948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + col1 col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - + col1 + col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT DISTINCT - col2 DIV + cor0.col0 col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - col2 / + cor0.col0 col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + tab1.col1 + - col1 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT tab2.col2 + - col1 AS col2 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 + + col1 col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL + col1 * col0 + + col2 + - col1 * - col1 AS col1 FROM tab0
----
12805
16462
9493
query I rowsort
SELECT - ( - col1 ) + tab1.col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT + 45 * + 49 - col0 FROM tab0
----
2116
2170
2181
query I rowsort
SELECT ALL + 95 * col1 + - col1 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0, tab2 cor0
----
73
query I rowsort
SELECT ALL + ( + 90 ) AS col2 FROM tab1
----
90
90
90
query I rowsort
SELECT - col0 + 42 * - col1 FROM tab1
----
-1095
-484
-626
query I rowsort
SELECT + ( 24 ) + + col2 * - col1 FROM tab1 cor0
----
-1224
-1380
-546
query I rowsort
SELECT ALL + ( tab2.col0 ) AS col1 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-224
SELECT - CAST( NULL AS SIGNED ) * + col2 + col2 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-224
SELECT - CAST ( NULL AS INTEGER ) * + col2 + col2 / col2 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT ALL + 43 DIV + col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-225
SELECT ALL + 43 / + col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT 19 + col2 AS col2 FROM tab1 AS cor0
----
115
73
76
query I rowsort
SELECT ALL - + 35 + col2 * col2 * + col2 AS col2 FROM tab2 AS cor0
----
17541
19648
54837
query I rowsort
SELECT DISTINCT + + col0 * - col2 * - col0 + col2 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - 50 * col0 * col0 FROM tab1 AS cor0
----
-204800
-320000
-450
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + cor0.col0 - col1 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col1 * - col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT ALL - - 45 * col0 AS col1 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT ALL + col1 * col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT - - ( + tab0.col0 ) + + cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 48eb5da0c25f5490d4d40e7a9f41d2c4
onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT - 93 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-93
skipif mysql # not compatible
query I rowsort label-238
SELECT - 93 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-93
query I rowsort
SELECT DISTINCT + - col1 * + 46 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT ALL cor0.col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 43 + 96 FROM tab0 AS cor0
----
139
139
139
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT + col1 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-244
SELECT + col1 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT - - 92 + col0 AS col2 FROM tab0 AS cor0
----
116
127
181
query I rowsort
SELECT + 60 + + ( col1 + + col0 ) AS col2 FROM tab2
----
156
197
98
query I rowsort
SELECT 30 + - col0 FROM tab1
----
-34
-50
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT - col0 DIV - 63 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-248
SELECT - col0 / - 63 AS col0 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT 19 DIV + col1 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-249
SELECT 19 / + col1 AS col1 FROM tab1
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-250
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col2 + + col0 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-250
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col2 + + col0 AS col2 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL + col2 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + col2 / - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + 10 * - col0 + col0 + tab1.col0 AS col1 FROM tab1
----
-24
-512
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT + col2 * col1 + cor0.col1 DIV col1 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-253
SELECT + col2 * col1 + cor0.col1 / col1 FROM tab1 AS cor0
----
1249
1405
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 47 col1 FROM tab2 AS cor0
----
-106
-64
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-255
SELECT ALL - col2 * 52 DIV - col1 + col0 AS col0 FROM tab0 AS cor0
----
135
35
43
skipif mysql # not compatible
query I rowsort label-255
SELECT ALL - col2 * 52 / - col1 + col0 AS col0 FROM tab0 AS cor0
----
135
35
43
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) - - col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT + + col1 + ( + 97 ) * + cor0.col0 FROM tab1 AS cor0
----
317
6218
7773
query I rowsort
SELECT ALL - ( + col1 ) + + 63 * - 13 AS col1 FROM tab2
----
-836
-850
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + + col2 col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + col2 + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT 70 + col2 AS col2 FROM tab0
----
103
152
71
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT + 18 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - + 25 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT ALL + 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - 1 * col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - 61 * 4 + + col0 * + 55 AS col0 FROM tab2 AS cor0
----
141
4046
4101
query I rowsort
SELECT - - 28 * - col0 AS col0 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT - col1 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-270
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
NULL
query I rowsort
SELECT + + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - + col0 * 33 FROM tab2 AS cor0
----
-231
-2574
-2607
onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT DISTINCT + - col2 + - col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + - col2 + - col1 / col1 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT col2 * + col2 * - 21 FROM tab2 AS cor0
----
-14196
-15309
-30324
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col0 * col2 * 68 col2 FROM tab1 cor0
----
11019
248128
522320
query I rowsort
SELECT DISTINCT ( col2 ) * col0 AS col1 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-277
SELECT - - cor0.col0 + + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-277
SELECT - - cor0.col0 + + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * + col2 col1 FROM tab0 AS cor0
----
2838
7052
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT + col0 * col2 DIV + 53 AS col2 FROM tab2
----
3
38
56
skipif mysql # not compatible
query I rowsort label-279
SELECT + col0 * col2 / + 53 AS col2 FROM tab2
----
3
38
56
query I rowsort
SELECT DISTINCT + col1 - ( col2 ) * cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 87 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT 77 * + col2 AS col2 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + col1 * tab1.col0 + - col2 * + tab1.col0 * - col0 AS col1 FROM tab1
----
234112
564
615440
query I rowsort
SELECT + 64 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT + + cor0.col2 * 59 + - cor0.col0 FROM tab2 AS cor0
----
1456
1586
2163
query I rowsort
SELECT - col2 + - ( col1 ) * tab0.col0 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + col0 + ( + ( - col1 ) ) * tab2.col0 AS col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + col0 * + 19 FROM tab1
----
1216
1520
57
query I rowsort
SELECT DISTINCT + col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-292
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) - col2 * col1 * 47 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) - col2 * col1 * 47 AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 35 - - cor0.col2 col0 FROM tab1 AS cor0
----
-293
-359
-856
query I rowsort
SELECT ALL - col2 + 95 AS col0 FROM tab2 AS cor0
----
57
68
69
query I rowsort
SELECT col1 * 59 - + col0 * - col0 AS col2 FROM tab2 AS cor0
----
1878
7244
9565
query I rowsort
SELECT ALL 36 AS col2 FROM tab0
----
36
36
36
query I rowsort
SELECT cor0.col2 * 17 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 105f3ce9cefe1bdb17ce2c7c3ffaecb6
query I rowsort
SELECT ( col0 ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 96 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT DISTINCT - 5 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
10320
16975
40495
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + cor0.col2 + col2 * col2 * - col2 - col0 * - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-35112
-543988
35
query I rowsort
SELECT DISTINCT + - col0 * - col2 + + col1 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT ALL col2 * + col2 - + col2 * col1 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT 57 * col1 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT ( + col1 ) + + col0 * + col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT DISTINCT - 7 DIV col2 col0 FROM tab0
----
-7
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT - 7 / col2 col0 FROM tab0
----
-7
0
query I rowsort
SELECT 48 * + col1 AS col1 FROM tab0 AS cor0
----
4128
4368
4656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 53 * + cor0.col2 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT ALL + col2 + col0 + col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT - 38 * col1 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col0 * - cor0.col2 + col1 FROM tab1 AS cor0
----
233482
512
614413
query I rowsort
SELECT DISTINCT + - 33 * + col2 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT - col2 + - col2 * col0 * + col2 AS col0 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT DISTINCT - 77 + col0 * col0 AS col2 FROM tab0 cor0
----
1148
499
7844
onlyif mysql # use DIV operator for integer division
query I rowsort label-318
SELECT ALL - cor0.col1 DIV - col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-318
SELECT ALL - cor0.col1 / - col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-319
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * col0 + - col0 col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * col0 + - col0 col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - - col0 + - ( - col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + ( tab0.col2 ) * + 20 + + col2 * + tab0.col1 FROM tab0
----
117
3498
9102
query I rowsort
SELECT DISTINCT col0 * - col1 * col2 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT DISTINCT col1 * + col2 DIV + ( - tab0.col2 ) FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT col1 * + col2 / + ( - tab0.col2 ) FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - - 67 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-327
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-327
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - col0 + - col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - 90 * col2 + - col0 FROM tab2 AS cor0
----
-2418
-2437
-3499
query I rowsort
SELECT + - col1 + - 50 AS col2 FROM tab1 AS cor0
----
-60
-63
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-331
SELECT CAST( NULL AS SIGNED ) + + 15 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-331
SELECT CAST ( NULL AS INTEGER ) + + 15 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + + 89 * col1 AS col0 FROM tab0 AS cor0
----
7678
8188
8668
query I rowsort
SELECT DISTINCT - + 99 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
2515
2642
3745
query I rowsort
SELECT ALL - cor0.col2 * + 11 FROM tab2 AS cor0
----
-286
-297
-418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * - col2 col0 FROM tab0 AS cor0
----
-165
-410
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT ALL + ( col0 ) - col1 DIV col0 AS col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + ( col0 ) - col1 / col0 AS col0 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT col2 * 74 AS col1 FROM tab1
----
3996
4218
7104
query I rowsort
SELECT DISTINCT - tab0.col0 + - 42 FROM tab0
----
-131
-66
-77
query I rowsort
SELECT + col0 * + 27 FROM tab1
----
1728
2160
81
query I rowsort
SELECT + tab0.col2 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT 7 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT DISTINCT - col2 + - 96 FROM tab1
----
-150
-153
-192
query I rowsort
SELECT - + col2 + - col1 * col0 * + 74 AS col2 FROM tab0 AS cor0
----
-152769
-251231
-599408
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT ALL 24 DIV - 50 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-345
SELECT ALL 24 / - 50 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 70 + + ( + cor0.col2 ) AS col0 FROM tab0 cor0
----
103
152
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-347
SELECT ALL CAST( 59 AS SIGNED ) + + cor0.col1 FROM tab0 AS cor0
----
145
150
156
skipif mysql # not compatible
query I rowsort label-347
SELECT ALL CAST ( 59 AS INTEGER ) + + cor0.col1 FROM tab0 AS cor0
----
145
150
156
query I rowsort
SELECT - 78 + + cor0.col2 AS col0 FROM tab2 cor0
----
-40
-51
-52
query III rowsort
SELECT * FROM tab2 WHERE col1 * col1 NOT IN ( tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col0 - - col1 * col2 * col0 AS col1 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT DISTINCT - col0 + + col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col2 * col2 + col1 * col0 AS col1 FROM tab0 WHERE NOT ( - col0 ) IN ( col0 * tab0.col0 )
----
14823
3153
3396
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT DISTINCT - col2 DIV col1 + col0 * + col1 AS col2 FROM tab1
----
1033
635
76
skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT - col2 / col1 + col0 * + col1 AS col2 FROM tab1
----
1033
635
76
query I rowsort
SELECT - tab0.col1 + col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT col1 - col1 DIV + col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-356
SELECT col1 - col1 / + col1 FROM tab1
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT DISTINCT + col0 + col0 DIV + tab2.col0 col1 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT + col0 + col0 / + tab2.col0 col1 FROM tab2
----
79
8
80
query I rowsort
SELECT col0 * col2 AS col0 FROM tab1 WHERE NULL IN ( - col1 + col1 )
----
query I rowsort
SELECT ALL col0 * col1 + col0 AS col1 FROM tab2
----
1422
224
4680
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( col2 * col2 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 - col1 * + col2 AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT col0 + tab2.col1 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT + col2 - col1 / col0 AS col1 FROM tab2 WHERE NOT NULL > col1 * col2 + col2 * col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT DISTINCT col2 DIV col0 + - col2 * tab2.col1 FROM tab2
----
-1534
-646
-834
skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT col2 / col0 + - col2 * tab2.col1 FROM tab2
----
-1534
-646
-834
onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT ALL - col1 DIV - col0 + + col1 AS col2 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - col1 / - col0 + + col1 AS col2 FROM tab0
----
89
92
99
query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT DISTINCT - - col1 DIV + cor0.col0 + col1 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - - col1 / + cor0.col0 + col1 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT - col0 * col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT ALL + - col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-370
SELECT ALL + - col0 / - col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT DISTINCT - col1 DIV + col0 col1 FROM tab1
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - col1 / + col0 col1 FROM tab1
----
-8
0
query I rowsort
SELECT - - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1 * - col1 OR NOT col2 >= ( NULL )
----
query I rowsort
SELECT - col1 + - cor0.col1 + + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col0 * col1 + - col1 + col0 * - col1 * - col2 FROM tab2 AS cor0
----
124195
52360
6045
query I rowsort
SELECT DISTINCT - col2 - + col0 AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT col0 * - cor0.col2 + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
-7289
-739
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT + col0 DIV col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-379
SELECT + col0 / col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col2 + cor0.col1 + col2 * + col2 FROM tab0 cor0
----
1208
6897
99
query I rowsort
SELECT col0 + + col0 * col2 * col0 + + col1 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
-189
-200694
131140
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT NULL NOT IN ( col1 * col1 - + col0 )
----
query I rowsort
SELECT - tab0.col0 * col0 * - col2 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col2 + - tab1.col1 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT - - col2 + - 94 * - ( col2 ) FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT - col0 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col1 * 1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT cor0.col2 + 35 AS col1 FROM tab0 AS cor0
----
117
36
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-391
SELECT col0 DIV 7 FROM tab1 AS cor0
----
0
11
9
skipif mysql # not compatible
query I rowsort label-391
SELECT col0 / 7 FROM tab1 AS cor0
----
0
11
9
query I rowsort
SELECT - col2 * cor0.col2 + - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1382
-657
-753
onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT 32 DIV 3 FROM tab2 cor0
----
10
10
10
skipif mysql # not compatible
query I rowsort label-393
SELECT 32 / 3 FROM tab2 cor0
----
10
10
10
query I rowsort
SELECT 74 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT + col1 * 77 + col1 FROM tab0 AS cor0
----
6708
7098
7566
query I rowsort
SELECT DISTINCT col2 * - col2 * - col1 + + col0 * - col0 + col2 * - col0 FROM tab0
----
-1163
596665
92286
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT - col0 + col1 > - col2
----
query I rowsort
SELECT tab2.col2 * - col2 * - col0 AS col2 FROM tab2
----
114076
5103
52728
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col2 * + col1 )
----
query I rowsort
SELECT - + col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT ALL col0 DIV + col2 + col2 AS col1 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-402
SELECT ALL col0 / + col2 + col2 AS col1 FROM tab1
----
54
58
96
query I rowsort
SELECT ALL col2 * + col2 + - col2 AS col1 FROM tab2
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT DISTINCT tab1.col0 DIV col1 + col1 * col1 col1 FROM tab1
----
106
175
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT tab1.col0 / col1 + col1 * col1 col1 FROM tab1
----
106
175
676
query I rowsort
SELECT col0 * col2 * col1 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT ( col0 + 96 ) DIV 34 AS col2 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-406
SELECT ( col0 + 96 ) / 34 AS col2 FROM tab1
----
2
4
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col0 FROM tab1, tab0, tab2 AS cor0
----
87
query I rowsort
SELECT ALL col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + 34 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
2900
3005
3263
query I rowsort
SELECT + col2 * cor0.col0 + col2 * col2 * col2 AS col2 FROM tab0 AS cor0
----
36
36729
558666
query I rowsort
SELECT - col0 * - col0 + - 59 FROM tab1 AS cor0
----
-50
4037
6341
query I rowsort
SELECT ALL + + 65 + + col2 FROM tab0 AS cor0
----
147
66
98
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT DISTINCT CAST( + col2 AS SIGNED ) * - col2 + + col1 * cor0.col0 AS col2 FROM tab1 cor0
----
-2609
-2838
-8176
skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col2 + + col1 * cor0.col0 AS col2 FROM tab1 cor0
----
-2609
-2838
-8176
query I rowsort
SELECT ALL + 22 + - ( col1 * ( - ( + col0 ) ) ) + 92 FROM tab2 AS cor0
----
1457
331
4716
query I rowsort
SELECT + col2 + - 46 AS col2 FROM tab2 AS cor0
----
-19
-20
-8
query I rowsort
SELECT ALL - - ( - 9 ) + col1 AS col0 FROM tab0 AS cor0
----
77
82
88
query I rowsort
SELECT ALL + + 89 + 8 AS col1 FROM tab2 cor0
----
97
97
97
query I rowsort
SELECT 13 AS col1 FROM tab1 cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-421
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 + cor0.col2 col0 FROM tab2 cor0
----
-49
-60
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT DISTINCT tab2.col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT tab2.col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-424
SELECT DISTINCT 10 + + col2 DIV col2 FROM tab0 cor0
----
11
skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT 10 + + col2 / col2 FROM tab0 cor0
----
11
query I rowsort
SELECT - col0 + + col1 * col1 AS col2 FROM tab1 cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-426
SELECT - - col2 DIV 33 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-426
SELECT - - col2 / 33 AS col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col0 * ( tab1.col2 + - col0 ) * tab1.col2 AS col1 FROM tab1
----
-25536
122880
8262
query I rowsort
SELECT ( - 5 ) - col2 * - col1 AS col0 FROM tab2
----
1529
641
832
query I rowsort
SELECT ALL 89 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-431
SELECT + CAST( col2 * - col2 AS SIGNED ) AS col2 FROM tab2
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-431
SELECT + CAST ( col2 * - col2 AS INTEGER ) AS col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT - col2 + 40 DIV col2 AS col2 FROM tab0
----
-32
-82
39
skipif mysql # not compatible
query I rowsort label-432
SELECT - col2 + 40 / col2 AS col2 FROM tab0
----
-32
-82
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-433
SELECT - + CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-433
SELECT - + CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT + col0 + + col2 DIV col2 AS col1 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-434
SELECT + col0 + + col2 / col2 AS col1 FROM tab1 cor0
----
4
65
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-435
SELECT + col0 + 99 * - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-435
SELECT + col0 + 99 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-436
SELECT CAST( + 80 * + col2 AS SIGNED ) + + 57 AS col0 FROM tab1
----
4377
4617
7737
skipif mysql # not compatible
query I rowsort label-436
SELECT CAST ( + 80 * + col2 AS INTEGER ) + + 57 AS col0 FROM tab1
----
4377
4617
7737
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-437
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) + col1 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab2.col2 col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL col2 * + 61 FROM tab2 AS cor0
----
1586
1647
2318
query I rowsort
SELECT DISTINCT - col1 * + col2 + ( - col2 ) AS col1 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col0 + 22 + - ( cor0.col2 * + col2 ) AS col0 FROM tab1 AS cor0
----
-2891
-3163
-9114
query I rowsort
SELECT ALL + + col1 - + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT col2 * + 41 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT col0 * + 36 FROM tab2
----
252
2808
2844
query I rowsort
SELECT col0 * ( + 76 ) AS col2 FROM tab0
----
1824
2660
6764
query I rowsort
SELECT ALL - - 67 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cdaa91088e3d795974518f8ccfc5fcca
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - - col1 + + 18 + + col1 * - col1 * + 43 FROM tab2 AS cor0
----
-12392
-149606
-41274
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 17 col2 FROM tab1 cor0
----
1632
918
969
query I rowsort
SELECT - ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL ( 86 ) FROM tab2 cor0
----
86
86
86
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT + ( + 21 ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab0
----
-30
query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab0, tab2 AS cor0
----
-51
query I rowsort
SELECT ALL - col1 * + ( 85 ) + - col1 AS col2 FROM tab2
----
-1462
-2666
-5074
query I rowsort
SELECT ALL + cor0.col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - ( 71 ) FROM tab1 cor0
----
-71
-71
-71
query I rowsort
SELECT + 36 + col2 * - col1 FROM tab1 AS cor0
----
-1212
-1368
-534
query I rowsort
SELECT ALL - - col0 * col0 + + ( 71 ) FROM tab2 AS cor0
----
120
6155
6312
query I rowsort
SELECT ALL 11 + col2 AS col0 FROM tab1 AS cor0
----
107
65
68
query I rowsort
SELECT - 42 + - 57 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT + - col2 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT 48 FROM tab0 AS cor0
----
48
query I rowsort
SELECT + col2 + cor0.col2 - 68 AS col2 FROM tab1 AS cor0
----
124
40
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT + col0 + col1 DIV col1 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-471
SELECT + col0 + col1 / col1 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT DISTINCT - col2 DIV ( + 36 ) FROM tab1 AS cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - col2 / ( + 36 ) FROM tab1 AS cor0
----
-1
-2
query I rowsort
SELECT + + cor0.col0 * - col0 * 15 AS col2 FROM tab1 cor0
----
-135
-61440
-96000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-475
SELECT ALL - + cor0.col0 + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-475
SELECT ALL - + cor0.col0 + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * col1 + col2 + - col0 * - 42 AS col2 FROM tab0 AS cor0
----
11282
1568
3879
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-477
SELECT - 97 - - col2 * - CAST( NULL AS DECIMAL ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-477
SELECT - 97 - - col2 * - CAST ( NULL AS REAL ) * tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 + - col2 FROM tab1 cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT ALL + col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-479
SELECT ALL + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-480
SELECT ALL - - col1 * - CAST( 69 AS SIGNED ) + + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1118
-590
-728
skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - - col1 * - CAST ( 69 AS INTEGER ) + + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1118
-590
-728
query I rowsort
SELECT ALL + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-482
SELECT DISTINCT + col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT + col1 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 23 + col0 AS col0 FROM tab0
----
1
12
66
query I rowsort
SELECT ALL + 89 + col2 * + 55 AS col2 FROM tab0
----
144
1904
4599
query I rowsort
SELECT DISTINCT - 47 - col1 FROM tab2
----
-106
-64
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT ALL - col0 + col1 DIV + col0 AS col0 FROM tab0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-486
SELECT ALL - col0 + col1 / + col0 AS col0 FROM tab0
----
-21
-33
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT DISTINCT + 74 + col2 DIV + col2 FROM tab1
----
75
skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT + 74 + col2 / + col2 FROM tab1
----
75
query I rowsort
SELECT 33 AS col0 FROM tab1 AS cor0
----
33
33
33
query I rowsort
SELECT ALL + 68 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - 82 + ( col0 * tab0.col0 ) FROM tab0
----
1143
494
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT 61 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab1
----
0
query I rowsort
SELECT ALL 30 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - cor2.col1 * + 20 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab2 cor2
----
243 values hashing to 327efe8687571e8ceb554dda5b84238c
query I rowsort
SELECT DISTINCT + 46 * + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
138092
8694
93288
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + + cor0.col0 + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col2 * 14 * + 92 + col1 AS col0 FROM tab1 AS cor0
----
123661
69578
73426
query I rowsort
SELECT DISTINCT + col1 + col0 * - 11 + - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-1264
-1411
-2115
query I rowsort
SELECT DISTINCT - - col2 + - col2 * ( - col0 ) + + 14 * col0 FROM tab0 AS cor0
----
1161
526
8626
query I rowsort
SELECT DISTINCT + col1 + 76 AS col0 FROM tab1
----
102
86
89
query I rowsort
SELECT col2 + 11 * - col1 + - col2 FROM tab0
----
-1001
-1067
-946
query I rowsort
SELECT ALL + col2 + - col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL - + ( + 71 ) * + col2 + - ( 95 * + col2 ) AS col0 FROM tab1 AS cor0
----
-15936
-8964
-9462
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + col2 - + col1 * cor0.col1 FROM tab2 cor0
----
-327
-3507
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-508
SELECT - CAST( + col1 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-508
SELECT - CAST ( + col1 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT ALL + + cor0.col1 DIV - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-509
SELECT ALL + + cor0.col1 / - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT ( + col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col0 + col0 * col2 * col2 FROM tab0 cor0
----
26160
598525
70
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 ALL 38 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT + col0 + 5 FROM tab2 AS cor0
----
12
83
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-515
SELECT - CAST( NULL AS SIGNED ) * + 63 + + col2 * + col2 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-515
SELECT - CAST ( NULL AS INTEGER ) * + 63 + + col2 * + col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - - cor0.col0 * + col0 AS col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT cor0.col1 * + 16 FROM tab0 AS cor0
----
1376
1456
1552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-518
SELECT ( 49 ) * + col1 + CAST( - 40 AS SIGNED ) col1 FROM tab0 AS cor0
----
4174
4419
4713
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-518
SELECT ( 49 ) * + col1 + CAST ( - 40 AS INTEGER ) col1 FROM tab0 AS cor0
----
4174
4419
4713
query I rowsort
SELECT - cor0.col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col1 * 27 AS col2 FROM tab1
----
-270
-351
-702
query I rowsort
SELECT + ( col2 ) - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL + ( - col1 + + col2 ) * ( col2 ) FROM tab1
----
1512
2679
7968
query I rowsort
SELECT + col1 * - col0 - col0 * + ( col1 ) FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT DISTINCT + 77 + cor0.col1 FROM tab1, tab1 cor0
----
103
87
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 16 * + col1 col0 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT + - 97 + col0 FROM tab0 AS cor0
----
-62
-73
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + 77 * col2 + 18 AS col1 FROM tab2 AS cor0
----
2020
2097
2944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-529
SELECT col2 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-529
SELECT col2 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * tab2.col1 AS col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - + col0 * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 * + cor0.col0 + 24 AS col1 FROM tab2 AS cor0
----
-22807
-271494
-6703
onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT ( col2 ) DIV - col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT ( col2 ) / - col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + - col0 - ( - ( col0 ) ) col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - col0 + - cor0.col0 AS col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 * ( - col0 ) AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - cor0.col0 * - col2 * + 20 FROM tab1 AS cor0
----
153600
3240
72960
query I rowsort
SELECT - - col1 + - 38 * col2 FROM tab1 cor0
----
-2026
-2156
-3635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col1 ) col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * 63 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT ALL - col1 * col0 * + col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + 18 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT ALL col0 DIV 6 col0 FROM tab1
----
0
10
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-545
SELECT ALL col0 / 6 col0 FROM tab1
----
0
10
13
query I rowsort
SELECT + 7 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT + ( + 57 ) * - col1 FROM tab2 AS cor0
----
-1767
-3363
-969
query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col0 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + 88 * - col1 + 32 FROM tab2 AS cor0
----
-1464
-2696
-5160
query I rowsort
SELECT - 51 * col0 * + ( - col2 ) FROM tab1 AS cor0
----
186048
391680
8262
query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab2 cor0
----
29
query I rowsort
SELECT ALL - 85 + + col2 AS col0 FROM tab0 AS cor0
----
-3
-52
-84
query I rowsort
SELECT DISTINCT - 76 + cor0.col0 * - 78 FROM tab1 AS cor0
----
-310
-5068
-6316
query I rowsort
SELECT - 0 * col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 80 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
6880
7280
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-557
SELECT ( - col2 ) DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-557
SELECT ( - col2 ) / col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT + col2 + - col1 * - CAST( - 48 AS SIGNED ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-4062
-4204
-4654
skipif mysql # not compatible
query I rowsort label-558
SELECT + col2 + - col1 * - CAST ( - 48 AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-4062
-4204
-4654
onlyif mysql # use DIV operator for integer division
query I rowsort label-559
SELECT DISTINCT 96 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT 96 / - col2 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - col1 * 84 FROM tab2 AS cor0
----
-1428
-2604
-4956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-561
SELECT - cor0.col1 * ( + ( col0 ) * - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-561
SELECT - cor0.col1 * ( + ( col0 ) * - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT col2 + + cor0.col0 DIV - 64 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-563
SELECT col2 + + cor0.col0 / - 64 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT DISTINCT + 3 * - tab1.col1 AS col2 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT 21 * tab2.col2 FROM tab2
----
546
567
798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-567
SELECT ALL CAST( + cor0.col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-567
SELECT ALL CAST ( + cor0.col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - col0 - col0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col1 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 87 * - col2 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
122
2895
7223
query I rowsort
SELECT - 81 + - 80 FROM tab0 AS cor0
----
-161
-161
-161
query I rowsort
SELECT + ( 4 ) AS col1 FROM tab1 cor0
----
4
4
4
query I rowsort
SELECT DISTINCT + 19 FROM tab0, tab0 AS cor0
----
19
query I rowsort
SELECT - ( col0 + col0 ) FROM tab2
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-575
SELECT DISTINCT + col1 * + 78 + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT + col1 * + 78 + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT + 28 * col1 FROM tab1
----
280
364
728
query I rowsort
SELECT + col0 * + 74 + col0 + col1 * - col2 FROM tab1 AS cor0
----
-1179
4230
4752
query I rowsort
SELECT cor0.col2 - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * + col0 + - col0 col1 FROM tab1
----
228
4864
6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT DISTINCT col0 + col0 * col0 DIV tab0.col2 FROM tab0
----
1260
185
41
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT col0 + col0 * col0 / tab0.col2 FROM tab0
----
1260
185
41
query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) AS col2 FROM tab0
----
0
query I rowsort
SELECT 83 + ( col0 + - col0 ) * col0 AS col1 FROM tab1
----
83
83
83
query I rowsort
SELECT DISTINCT col1 + ( - col2 ) AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT ALL + - col2 + + col0 DIV 43 + 46 AS col0 FROM tab2 AS cor0
----
19
21
9
skipif mysql # not compatible
query I rowsort label-584
SELECT ALL + - col2 + + col0 / 43 + 46 AS col0 FROM tab2 AS cor0
----
19
21
9
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + - 9 * - col2 AS col0 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT ALL col0 * - cor0.col0 + 10 AS col1 FROM tab0 AS cor0
----
-1215
-566
-7911
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT ALL + 16 * cor0.col1 + cor0.col0 * col2 DIV col1 FROM tab2 AS cor0
----
448
502
978
skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + 16 * cor0.col1 + cor0.col0 * col2 / col1 FROM tab2 AS cor0
----
448
502
978
query I rowsort
SELECT + col2 + cor0.col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col1 * col0 + - 87 * + col2 * - col2 + + ( + 7 * cor0.col1 ) FROM tab0 cor0
----
4161
593724
97409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-591
SELECT ALL col2 * CAST( - 82 AS SIGNED ) FROM tab0
----
-2706
-6724
-82
skipif mysql # not compatible
query I rowsort label-591
SELECT ALL col2 * CAST ( - 82 AS INTEGER ) FROM tab0
----
-2706
-6724
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-592
SELECT tab0.col1 DIV col0 + + col1 AS col1 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-592
SELECT tab0.col1 / col0 + + col1 AS col1 FROM tab0
----
89
92
99
query I rowsort
SELECT tab2.col0 + col1 * + 10 FROM tab2
----
249
317
668
query I rowsort
SELECT col0 * 7 - col0 FROM tab1
----
18
384
480
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT ALL col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 98 AS col1 FROM tab1 cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 25 * - col1 AS col0 FROM tab1 AS cor0
----
-16900
-2500
-4225
query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab0 AS cor0
----
64
query I rowsort
SELECT ( - col2 ) + cor0.col0 - - ( cor0.col2 + col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 36 ) col0 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT ALL + - col2 + - col1 * - col2 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - ( - 54 ) * - col2 + - col1 FROM tab0 AS cor0
----
-151
-1868
-4519
query I rowsort
SELECT ALL - 51 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-61
-64
-77
query I rowsort
SELECT 80 + - 82 FROM tab2 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-608
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - col2 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - col2 AS col0 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + 49 - cor0.col0 col0 FROM tab2 AS cor0
----
-47
-88
11
query I rowsort
SELECT - col1 + + cor0.col2 * + col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-613
SELECT CAST( NULL AS SIGNED ) + - 35 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-613
SELECT CAST ( NULL AS INTEGER ) + - 35 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + cor0.col0 + col0 * - 62 AS col0 FROM tab2 AS cor0
----
-400
-4732
-4781
query I rowsort
SELECT + 66 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
224
4234
5293
query I rowsort
SELECT DISTINCT - - 7 * + col1 * cor0.col1 FROM tab2 AS cor0
----
2023
24367
6727
query I rowsort
SELECT + ( cor0.col0 ) * cor0.col2 - 63 * col0 AS col2 FROM tab2 AS cor0
----
-1975
-252
-2886
query I rowsort
SELECT ALL + col1 * 87 + col0 + col1 FROM tab0 AS cor0
----
7592
8097
8571
query I rowsort
SELECT ALL + 23 + + col2 AS col1 FROM tab1 AS cor0
----
119
77
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-620
SELECT ALL + ( ( - col2 ) ) * CAST( - col2 AS SIGNED ) * col1 + cor0.col2 col1 FROM tab2 AS cor0
----
22626
24586
39910
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + ( ( - col2 ) ) * CAST ( - col2 AS INTEGER ) * col1 + cor0.col2 col1 FROM tab2 AS cor0
----
22626
24586
39910
query I rowsort
SELECT DISTINCT - + cor0.col1 - - col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col2 * + col2 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + col2 * + 76 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col1 * - col0 * col2 - col0 * + 33 FROM tab2 AS cor0
----
-122226
-53641
-6090
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-628
SELECT - col0 * - ( 99 ) * - col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-628
SELECT - col0 * - ( 99 ) * - col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 22 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT ALL col1 * ( 26 ) + + col1 + - 48 FROM tab1
----
222
303
654
query I rowsort
SELECT + col1 * + ( + col0 + col2 * - col0 ) AS col1 FROM tab2
----
-115050
-49691
-5642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + 74 * - 42 FROM tab1 cor0
----
-3108
-3108
-3108
query I rowsort
SELECT - col1 + col2 * col1 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
10965
25916
90447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-636
SELECT col2 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-636
SELECT col2 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 90 + + 28 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col0 * 9 FROM tab1
----
-27
-576
-720
query I rowsort
SELECT tab2.col0 - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - - 6 AS col1 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ( col0 ) + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT - tab1.col0 * + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1091576b2dabfc91057486e7b5f493ef
query I rowsort
SELECT + + 24 AS col2 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT ALL - cor0.col1 + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT ALL - 63 DIV col1 + - 80 * 67 FROM tab0 AS cor0
----
-5360
-5360
-5360
skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - 63 / col1 + - 80 * 67 FROM tab0 AS cor0
----
-5360
-5360
-5360
query I rowsort
SELECT DISTINCT + col0 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col1 * col0 + + 87 AS col1 FROM tab0 AS cor0
----
2151
3482
8186
query I rowsort
SELECT DISTINCT + 51 + col2 AS col1 FROM tab1 AS cor0
----
105
108
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-650
SELECT - col1 + + col0 * - CAST( + col2 + - col1 * col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3263
656729
67234
skipif mysql # not compatible
query I rowsort label-650
SELECT - col1 + + col0 * - CAST ( + col2 + - col1 * col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3263
656729
67234
query I rowsort
SELECT ALL + 95 * cor0.col1 + - ( + 18 ) AS col2 FROM tab0 cor0
----
8152
8627
9197
onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT DISTINCT - + col2 + ( + 88 ) DIV + col2 + + 80 * + ( col1 + + 15 ) AS col2 FROM tab0 AS cor0
----
8049
8399
9047
skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - + col2 + ( + 88 ) / + col2 + + 80 * + ( col1 + + 15 ) AS col2 FROM tab0 AS cor0
----
8049
8399
9047
query I rowsort
SELECT ALL col0 - - col0 * + cor0.col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * - col2 + - 58 FROM tab0
----
-7356
-850
-93
query I rowsort
SELECT DISTINCT 20 FROM tab2, tab1, tab1 AS cor0
----
20
query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2, tab0, tab0 AS cor0
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT + col1 * 29 + - ( + col1 * CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-658
SELECT + col1 * 29 + - ( + col1 * CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * col2 - tab1.col2 * - col1 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT ALL + col1 * 96 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT - col1 * ( - cor0.col0 ) FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( 34 ) col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ALL 87 + - col0 AS col1 FROM tab2 AS cor0
----
8
80
9
query I rowsort
SELECT 66 * 13 FROM tab0
----
858
858
858
query I rowsort
SELECT - + 79 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-176
-2917
-7541
query I rowsort
SELECT - + col0 + - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + col2 + + ( - col0 ) * - col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT 53 + - 50 AS col1 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT - ( col0 ) + - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT col0 + + col2 * - ( 6 ) FROM tab1 AS cor0
----
-278
-321
-496
query I rowsort
SELECT - tab2.col2 + - col0 + col2 AS col1 FROM tab2
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col1 * col1 ) col1 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT - col1 DIV 30 - col2 AS col2 FROM tab0
----
-35
-4
-85
skipif mysql # not compatible
query I rowsort label-673
SELECT - col1 / 30 - col2 AS col2 FROM tab0
----
-35
-4
-85
query I rowsort
SELECT DISTINCT - 25 + - tab1.col2 FROM tab1
----
-121
-79
-82
query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT DISTINCT col1 + 11 * cor0.col2 DIV cor0.col2 - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-17
-36
-72
skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT col1 + 11 * cor0.col2 / cor0.col2 - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-17
-36
-72
query I rowsort
SELECT - 7 + - col2 * - col1 FROM tab0 cor0
----
2831
7455
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT DISTINCT 10 + 94 DIV + col1 AS col1 FROM tab2
----
11
13
15
skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT 10 + 94 / + col1 AS col1 FROM tab2
----
11
13
15
query I rowsort
SELECT ALL + 87 * + 66 + - col0 + col0 FROM tab0
----
5742
5742
5742
query I rowsort
SELECT DISTINCT + 58 + 91 AS col2 FROM tab0
----
149
onlyif mysql # use DIV operator for integer division
query I rowsort label-681
SELECT + col2 + col0 DIV col0 + col1 FROM tab0
----
120
174
99
skipif mysql # not compatible
query I rowsort label-681
SELECT + col2 + col0 / col0 + col1 FROM tab0
----
120
174
99
query I rowsort
SELECT ALL + 72 + 76 FROM tab0
----
148
148
148
query I rowsort
SELECT DISTINCT - 62 + cor0.col1 + - 86 FROM tab0 AS cor0
----
-51
-57
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT ALL + 13 DIV - col1 + - cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 13 / - col1 + - cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
26103
34
598354
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col2 FROM tab1 AS cor0
----
-58
query I rowsort
SELECT 57 + col0 AS col1 FROM tab0 AS cor0
----
146
81
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-689
SELECT DISTINCT + 48 + - cor0.col0 * + CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + 48 + - cor0.col0 * + CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - col2 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT + + col1 * col0 * - col0 + + col2 * + col0 FROM tab0 cor0
----
-118790
-48744
-713513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - 21 + col0 AS col0 FROM tab2 AS cor0
----
-14
57
58
query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab0 AS cor0
----
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-695
SELECT DISTINCT + col2 * col1 + CAST( 73 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
170
2911
7535
skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT + col2 * col1 + CAST ( 73 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
170
2911
7535
query I rowsort
SELECT + 12 + - col2 FROM tab2 AS cor0
----
-14
-15
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col1 * col2 + + ( + col0 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - + col0 * col1 - col2 * col1 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT DISTINCT + - col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - col2 * ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT DISTINCT + col1 + + ( col1 ) DIV col0 FROM tab1 AS cor0
----
10
13
34
skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + col1 + + ( col1 ) / col0 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT - col1 * + ( - col0 ) * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL + cor0.col0 + 0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL cor0.col1 - - 36 AS col1 FROM tab1 AS cor0
----
46
49
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-706
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) * 92 + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) * 92 + + col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 24 + + col2 * col1 FROM tab0 AS cor0
----
121
2862
7486
query I rowsort
SELECT col2 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - col2 * col2 - + col1 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL col2 * 34 AS col2 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT ALL col0 - + 68 FROM tab2
----
-61
10
11
query I rowsort
SELECT + col1 * ( 26 + tab2.col2 ) FROM tab2
----
1088
1643
3068
query I rowsort
SELECT + ( - col1 ) + + col0 - - 33 FROM tab0 AS cor0
----
-29
-29
31
query I rowsort
SELECT col1 * 59 FROM tab0
----
5074
5369
5723
query I rowsort
SELECT ALL 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + - col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT + + 30 AS col0 FROM tab2 AS cor0
----
30
query I rowsort
SELECT 6 AS col1 FROM tab1 cor0
----
6
6
6
query I rowsort
SELECT ALL - + col1 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
-51
-7
24
query I rowsort
SELECT ALL + 96 * + col0 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT DISTINCT + 6 + + 61 * col1 AS col0 FROM tab0 AS cor0
----
5252
5557
5923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-722
SELECT CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-722
SELECT CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col1 FROM tab0 AS cor0
----
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-724
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-724
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - 39 + col0 FROM tab2 cor0
----
117
118
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-726
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-726
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col2 * + col2 + col2 + col2 FROM tab1 AS cor0
----
3024
3363
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col1 FROM tab0 cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - - col0 - cor0.col0 * col2 AS col2 FROM tab0 cor0
----
-7209
-768
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb
query I rowsort
SELECT DISTINCT - col1 * - col2 * col2 + col2 AS col2 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 FROM tab2
----
-19
-62
24
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22
query I rowsort
SELECT DISTINCT + + col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 * + col0 + cor0.col0 + - col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT tab1.col1 + + tab1.col0 FROM tab1
----
29
74
93
query I rowsort
SELECT 15 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-740
SELECT + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-740
SELECT + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 14 * cor0.col2 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 38cf0cd96af6d87585202ed0663f30d8
query I rowsort
SELECT ALL + cor0.col0 * + 79 * - col1 AS col1 FROM tab0 AS cor0
----
-163056
-268205
-639821
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT + col0 * + col1 + + col0 * col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT - col2 + 39 FROM tab1
----
-15
-18
-57
query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT col0 * col2 >= NULL
----
query I rowsort
SELECT DISTINCT + col2 * col0 * col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + - cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + cor0.col2 + col0 + - col2 * + col1 FROM tab0 AS cor0
----
-2781
-61
-7291
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col1 - + col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col1 - col0 AS col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT col2 - - col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-757
SELECT col1 DIV - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-757
SELECT col1 / - col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT col1 - + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT - cor0.col0 + col0 DIV - col1 col1 FROM tab2 cor0
----
-7
-79
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-759
SELECT - cor0.col0 + col0 / - col1 col1 FROM tab2 cor0
----
-7
-79
-83
query I rowsort
SELECT ALL + + col2 * cor0.col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + col0 * cor0.col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT col1 + - cor0.col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT col0 * tab1.col2 + - col2 AS col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL + tab2.col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + col1 * + col0 + - col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT - tab1.col0 + col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 49 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT ALL + + ( col2 ) + 41 AS col0 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT ALL col0 * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * - 19 * + ( col1 ) FROM tab1 AS cor0
----
-12818
-1890
-3198
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-771
SELECT ( + col0 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-771
SELECT ( + col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT + col1 + col1 * ( + col0 ) DIV col1 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-772
SELECT + col1 + col1 * ( + col0 ) / col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT col1 * col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab0 WHERE col2 / col0 NOT IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT - - col0 * - 81 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL - + col1 + 25 AS col1 FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT DISTINCT - cor0.col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - tab0.col0 * + col1 * + ( col1 ) FROM tab0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-780
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-780
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 76 FROM tab1
----
-76
-76
-76
query I rowsort
SELECT DISTINCT - col0 + + tab2.col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col2 FROM tab2 WHERE NULL = - col1
----
query I rowsort
SELECT ALL tab0.col2 * + col2 - - col1 * col1 FROM tab0
----
15005
8485
9410
query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col2 * - col1 + col2 * col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * col0 + + col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col1 + - tab1.col2 * col1 FROM tab1 WHERE NOT + col2 IN ( tab1.col1 * - col0 )
----
-1235
-1378
-560
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) BETWEEN + col2 AND - col2 / + col2 + col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT - col1 * col2 DIV - col0 + + col2 AS col0 FROM tab0
----
151
165
3
skipif mysql # not compatible
query I rowsort label-790
SELECT - col1 * col2 / - col0 + + col2 AS col0 FROM tab0
----
151
165
3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col1 * - col2 )
----
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col0 * col0 + - tab2.col2 FROM tab2
----
22
6058
6203
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * - col1 IN ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col2 + - col1 + col1 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + tab2.col0 * - col0 AS col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + tab1.col2 * - tab1.col0 * + tab1.col1 + col2 + col2 FROM tab1
----
-36366
-4104
-99648
query I rowsort
SELECT ALL + col1 * tab2.col2 + col1 * col0 * - col1 FROM tab2 WHERE NULL = ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-800
SELECT DISTINCT col1 + + col0 DIV + col0 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-800
SELECT DISTINCT col1 + + col0 / + col0 FROM tab0
----
87
92
98
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND ( col0 + col1 )
----
query I rowsort
SELECT ALL col1 + + col0 FROM tab1 WHERE NOT - col0 NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL tab2.col2 * col1 + tab2.col2 DIV - col0 FROM tab2
----
1534
646
834
skipif mysql # not compatible
query I rowsort label-803
SELECT ALL tab2.col2 * col1 + tab2.col2 / - col0 FROM tab2
----
1534
646
834
query I rowsort
SELECT - col1 / col0 + - col2 AS col2 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col0 * - col2 * col0 AS col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT + tab2.col0 + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab1.col2 * - col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 * col1 FROM tab2
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT DISTINCT - col0 * col0 DIV - col0 + col0 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - col0 * col0 / - col0 + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT col1 + col0 - + col2 AS col0 FROM tab0
----
131
77
98
query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab1
----
162
3648
7680
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * - col1 * + col2 + col2 * - col2 ) NOT IN ( - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( col0 - col0 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-815
SELECT + - col0 - - CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-815
SELECT + - col0 - - CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT 37 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-816
SELECT 37 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * ( 11 ) + col2 * 50 AS col1 FROM tab0 AS cor0
----
2013
5002
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-818
SELECT DISTINCT - col2 + CAST( + 81 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
2640
6560
80
skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT - col2 + CAST ( + 81 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
2640
6560
80
query I rowsort
SELECT col1 * + col1 - col2 * + col0 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT col2 * - col1 + col0 FROM tab0 cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT ALL + + col2 DIV col2 + - col2 AS col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + + col2 / col2 + - col2 AS col2 FROM tab0 AS cor0
----
-32
-81
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT ALL ( - col0 * - 76 ) - col2 DIV col0 AS col1 FROM tab1
----
210
4864
6079
skipif mysql # not compatible
query I rowsort label-822
SELECT ALL ( - col0 * - 76 ) - col2 / col0 AS col1 FROM tab1
----
210
4864
6079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT + col2 + CAST( NULL AS DECIMAL ) * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-823
SELECT + col2 + CAST ( NULL AS REAL ) * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + 28 AS col1 FROM tab1 AS cor0
----
-26
-29
-68
query I rowsort
SELECT DISTINCT + + col2 + 36 AS col1 FROM tab0 AS cor0
----
118
37
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + cor0.col1 + 67 col1 FROM tab1 cor0
----
134
147
176
query I rowsort
SELECT ALL col2 * 72 + - col0 AS col2 FROM tab1 cor0
----
3885
4040
6832
query I rowsort
SELECT col0 * - 26 + col0 AS col0 FROM tab0 cor0
----
-2225
-600
-875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-829
SELECT col1 * + CAST( col1 AS SIGNED ) + cor0.col0 * 74 + - col0 FROM tab1 cor0
----
4772
6009
895
skipif mysql # not compatible
query I rowsort label-829
SELECT col1 * + CAST ( col1 AS INTEGER ) + cor0.col0 * 74 + - col0 FROM tab1 cor0
----
4772
6009
895
query I rowsort
SELECT ALL + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - col0 * 15 AS col2 FROM tab1 AS cor0
----
-1200
-45
-960
query I rowsort
SELECT - - 21 AS col1 FROM tab0 AS cor0
----
21
21
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-833
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-833
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 51 - col0 FROM tab0 AS cor0
----
-38
16
27
query I rowsort
SELECT 72 AS col0 FROM tab0 cor0
----
72
72
72
query I rowsort
SELECT - - col1 + + col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-837
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-837
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT col0 * col2 + - 28 FROM tab0 AS cor0
----
7
7270
764
query I rowsort
SELECT ALL - - col2 * col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT DISTINCT + + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 1 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT 79 AS col2 FROM tab2 cor0
----
79
79
79
query I rowsort
SELECT ( 97 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ALL + col0 * cor0.col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT 78 + - col2 * 3 FROM tab2 AS cor0
----
-3
-36
0
query I rowsort
SELECT ALL + 90 * col1 AS col2 FROM tab0 AS cor0
----
7740
8190
8730
onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT ALL - - ( col0 ) DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-848
SELECT ALL - - ( col0 ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + 23 AS col1 FROM tab1 AS cor0
----
23
23
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-850
SELECT ALL + + 57 DIV + col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + + 57 / + col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL - + col2 + + col1 FROM tab2 cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 93 * col1 FROM tab2 AS cor0
----
1581
2883
5487
query I rowsort
SELECT - - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab2, tab1 AS cor0
----
-75
query I rowsort
SELECT DISTINCT col0 * 79 + col1 FROM tab0 AS cor0
----
1982
2862
7122
query I rowsort
SELECT ALL + col2 * 13 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT DISTINCT - ( + 15 ) * cor0.col2 + ( cor1.col0 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d880d82b033c46bf2977206b091d0867
query I rowsort
SELECT DISTINCT + + 16 + - col2 * + cor0.col2 + - col0 FROM tab1 AS cor0
----
-2903
-3297
-9280
query I rowsort
SELECT col1 * cor0.col1 + col0 * ( + col2 * - col1 ) FROM tab0 AS cor0
----
-60716
-655837
6014
query I rowsort
SELECT ALL cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + 90 AS col1 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT + - ( 53 ) FROM tab0 AS cor0
----
-53
-53
-53
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to e5d0c84f32b5c6b50cb792b42ee09051
query I rowsort
SELECT ALL col1 + col1 * - col1 + tab2.col1 AS col2 FROM tab2
----
-255
-3363
-899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 49 ) col0 FROM tab2 cor0
----
49
49
49
query I rowsort
SELECT ALL 77 FROM tab1 AS cor0
----
77
77
77
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL col2 + tab2.col2 + + col2 FROM tab2
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-871
SELECT ALL + ( 42 ) + + tab1.col0 DIV col2 AS col0 FROM tab1
----
42
42
43
skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + ( 42 ) + + tab1.col0 / col2 AS col0 FROM tab1
----
42
42
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-872
SELECT + 5 DIV - cor0.col2 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-872
SELECT + 5 / - cor0.col2 FROM tab0 AS cor0
----
-5
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-873
SELECT CAST( + col0 AS SIGNED ) + tab1.col2 AS col2 FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-873
SELECT CAST ( + col0 AS INTEGER ) + tab1.col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + + ( col1 ) + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-875
SELECT ALL + + CAST( col0 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-875
SELECT ALL + + CAST ( col0 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + 96 + cor0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 04434a73501a0d393427d185c05aa5c9
query I rowsort
SELECT ALL col2 * - col0 * col0 AS col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT 68 DIV + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-879
SELECT 68 / + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + - col2 + - col0 * - col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + col0 + col0 * col1 + - cor0.col1 * ( cor0.col2 * col0 ) FROM tab0 AS cor0
----
-655930
-66024
35
query I rowsort
SELECT ALL 66 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + 11 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT cor1.col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + ( + 4 ) FROM tab0 cor0
----
4
4
4
query I rowsort
SELECT - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 13 * col2 * 91 FROM tab1
----
113568
63882
67431
query I rowsort
SELECT ALL - cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - col2 * - cor0.col0 - - 22 AS col2 FROM tab2 AS cor0
----
2050
211
3024
query I rowsort
SELECT - ( col1 ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + col0 + - col2 * col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + + col0 * + col1 - - col2 * + 1 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL 89 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col1 * - 7 + cor0.col1 FROM tab2 cor0
----
-102
-186
-354
query I rowsort
SELECT DISTINCT - col2 * + col2 - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1155
232
2805
query I rowsort
SELECT - col0 * + 42 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1094
-1567
-3829
query I rowsort
SELECT - - cor0.col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * + col2 + ( + col0 ) * - col2 col2 FROM tab2
----
2214
286
380
query I rowsort
SELECT - col0 + - 84 + col2 FROM tab1 AS cor0
----
-33
-68
-91
query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT col2 * 96 FROM tab2
----
2496
2592
3648
query I rowsort
SELECT - col0 + ( + cor0.col0 ) * col1 + ( 4 ) AS col2 FROM tab2 AS cor0
----
1268
214
4528
query I rowsort
SELECT cor0.col2 * + 32 AS col0 FROM tab2 AS cor0
----
1216
832
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-908
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-908
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + - 76 * - col0 * col1 FROM tab1 AS cor0
----
48640
5928
79040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-912
SELECT + CAST( NULL AS DECIMAL ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-912
SELECT + CAST ( NULL AS REAL ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( ( col0 ) ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 97 + cor0.col2 col0 FROM tab2 AS cor0
----
152
155
182
query I rowsort
SELECT DISTINCT - - col2 + + col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 64 ) col1 FROM tab0 AS cor0
----
-64
-64
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 80 col0 FROM tab0
----
1920
2800
7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - + col2 * + col0 col1 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - cor0.col2 * cor0.col1 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - col1 - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT 94 * - cor0.col2 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT + col1 * + col2 * col0 - 8 FROM tab0 cor0
----
3387
664110
68104
onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT DISTINCT - 77 DIV + col2 AS col2 FROM tab0
----
-2
-77
0
skipif mysql # not compatible
query I rowsort label-923
SELECT DISTINCT - 77 / + col2 AS col2 FROM tab0
----
-2
-77
0
query I rowsort
SELECT - col2 * col2 * + col2 + 5 * + 12 FROM tab0
----
-35877
-551308
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-925
SELECT DISTINCT + col1 DIV + tab2.col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT + col1 / + tab2.col0 FROM tab2
----
0
4
query I rowsort
SELECT ALL 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL tab1.col0 * ( 37 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ee43450a85e4c5537da3c485e3261ec5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 + + 84 col0 FROM tab2 AS cor0
----
108
22
65
query I rowsort
SELECT - - col1 + cor0.col1 * col1 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT 50 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT ALL - - col1 * - 80 FROM tab2 AS cor0
----
-1360
-2480
-4720
query I rowsort
SELECT ALL - ( + col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 51 + col2 AS col2 FROM tab2
----
77
78
89
query I rowsort
SELECT DISTINCT + col2 * + 24 FROM tab1
----
1296
1368
2304
query I rowsort
SELECT col0 * 37 FROM tab2 cor0
----
259
2886
2923
query I rowsort
SELECT - 56 * col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL ( + cor0.col0 ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT - 79 * col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab2 AS cor0
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT ( 79 ) * + col2 DIV + cor0.col2 FROM tab1 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-940
SELECT ( 79 ) * + col2 / + cor0.col2 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 95 * + 84 AS col0 FROM tab0 cor0
----
-7980
query I rowsort
SELECT ALL - col0 - + col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col0 FROM tab2
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - col1 + + col1 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT ALL - + 35 DIV - col1 - + ( - col2 * col1 ) FROM tab2 AS cor0
----
1534
648
838
skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - + 35 / - col1 - + ( - col2 * col1 ) FROM tab2 AS cor0
----
1534
648
838
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 + 7 AS col0 FROM tab0 AS cor0
----
7403
8288
9416
query I rowsort
SELECT ALL + - 28 * col1 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT + 68 * col0 + + tab2.col0 AS col1 FROM tab2
----
483
5382
5451
query I rowsort
SELECT - tab0.col0 * col2 + - col2 AS col2 FROM tab0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT + col0 DIV - 14 AS col1 FROM tab0 AS cor0
----
-1
-2
-6
skipif mysql # not compatible
query I rowsort label-952
SELECT + col0 / - 14 AS col1 FROM tab0 AS cor0
----
-1
-2
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 * + col0 + + col1 col0 FROM tab1 AS cor0
----
1439
4676
7661
query I rowsort
SELECT ALL 13 AS col0 FROM tab1
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + cor0.col2 * + col1 col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT + col2 + - 50 DIV + col1 FROM tab2 cor0
----
26
26
36
skipif mysql # not compatible
query I rowsort label-956
SELECT + col2 + - 50 / + col1 FROM tab2 cor0
----
26
26
36
query I rowsort
SELECT DISTINCT col1 + + col0 + 47 AS col1 FROM tab1
----
121
140
76
query I rowsort
SELECT ( + col2 ) + 75 * col1 FROM tab2
----
1313
2352
4451
query I rowsort
SELECT ALL + 32 + + col0 FROM tab0
----
121
56
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT col0 DIV ( 48 * col0 ) - 75 AS col1 FROM tab2
----
-75
-75
-75
skipif mysql # not compatible
query I rowsort label-960
SELECT col0 / ( 48 * col0 ) - 75 AS col1 FROM tab2
----
-75
-75
-75
query I rowsort
SELECT ALL col0 + col1 * cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT col2 * ( col1 * - col1 ) + + 24 DIV + col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-962
SELECT col2 * ( col1 * - col1 ) + + 24 / + col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + + cor0.col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + tab2.col0 * - 64 FROM tab2, tab0 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT - 99 FROM tab2 cor0
----
-99
-99
-99
query I rowsort
SELECT col2 + 94 FROM tab1 AS cor0
----
148
151
190
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 46 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 66 col2 FROM tab0
----
-152
-157
-163
onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT - + col1 DIV + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-970
SELECT - + col1 / + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT 7 + - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 057bc7de8489ae3093be99500424d503
query I rowsort
SELECT col0 * 82 * col1 FROM tab2 AS cor0
----
110126
17794
377364
query I rowsort
SELECT col2 + - 50 * + col2 FROM tab2 cor0
----
-1274
-1323
-1862
query I rowsort
SELECT + 91 + col1 AS col1 FROM tab1 AS cor0
----
101
104
117
query I rowsort
SELECT ALL + ( - col0 ) * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + 61 + 73 AS col2 FROM tab1 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 14 * - col1 + - cor0.col0 col2 FROM tab1 cor0
----
-204
-262
-367
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - + 59 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT - cor0.col1 * col2 + - col1 FROM tab1 cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + 66 + 33 * col1 FROM tab2 AS cor0
----
1089
2013
627
query I rowsort
SELECT 29 * col2 - col2 FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT - - 26 AS col2 FROM tab1 AS cor0
----
26
26
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT DISTINCT - + col2 DIV col1 - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - + col2 / col1 - ( col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * 42 - 48 col1 FROM tab2 AS cor0
----
1254
2430
666
query I rowsort
SELECT - + col1 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - col0 - - col1 AS col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-989
SELECT DISTINCT - - col1 DIV col2 + col0 * col1 + col0 FROM tab0 AS cor0
----
2090
3527
8189
skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - - col1 / col2 + col0 * col1 + col0 FROM tab0 AS cor0
----
2090
3527
8189
query I rowsort
SELECT - col0 * cor0.col2 * 40 + + col0 - - cor0.col1 FROM tab1 AS cor0
----
-145846
-307107
-6451
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT DISTINCT col1 DIV + col2 col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT col1 / + col2 col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-992
SELECT + 91 + + cor0.col2 DIV - cor0.col0 FROM tab0 AS cor0
----
90
91
91
skipif mysql # not compatible
query I rowsort label-992
SELECT + 91 + + cor0.col2 / - cor0.col0 FROM tab0 AS cor0
----
90
91
91
query I rowsort
SELECT ALL - 23 * col0 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT ALL + col1 * col0 + 71 + + col0 FROM tab1 AS cor0
----
1191
152
775
query I rowsort
SELECT ALL - 76 + - col1 * col2 AS col1 FROM tab1 cor0
----
-1324
-1480
-646
query I rowsort
SELECT ALL col2 - - ( - col2 + - col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - - col0 * ( col0 ) * col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT DISTINCT + col1 DIV + 26 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-998
SELECT DISTINCT + col1 / + 26 FROM tab0 AS cor0
----
3
query I rowsort
SELECT col2 + + ( ( - col0 ) ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 * + col0 - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL col1 * ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT - - col2 DIV ( col0 ) + col0 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-1002
SELECT - - col2 / ( col0 ) + col0 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT ALL col1 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
24
35
89
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 + cor0.col0 * + col1 + col0 * cor0.col1 + - col1 * col2 col1 FROM tab0 AS cor0
----
1290
6693
8736
query I rowsort
SELECT + col2 + col0 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT + + 11 + - col2 FROM tab2 AS cor0
----
-15
-16
-27
query I rowsort
SELECT - col2 + + col2 + - ( ( - col0 ) + 83 ) AS col1 FROM tab0 AS cor0
----
-48
-59
6
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 47 * col2 FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT col2 + + cor0.col0 DIV + 25 + + ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
2871
7547
99
skipif mysql # not compatible
query I rowsort label-1013
SELECT col2 + + cor0.col0 / + 25 + + ( cor0.col2 ) * + col1 FROM tab0 AS cor0
----
2871
7547
99
query I rowsort
SELECT ( + col1 ) * + col1 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col2 + - 35 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
293
359
856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1016
SELECT - - col2 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1016
SELECT - - col2 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT ALL - col0 DIV col1 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - col0 / col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 49 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT + ( 31 ) * + cor0.col2 - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
1047
2631
66
query I rowsort
SELECT DISTINCT tab2.col0 + - col1 * - col0 * col0 AS col1 FROM tab2
----
106176
1526
359034
query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab1, tab0 cor0
----
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1022
SELECT CAST( NULL AS SIGNED ) * + col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1022
SELECT CAST ( NULL AS INTEGER ) * + col0 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT ALL - + 44 * + col1 + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-1152
-440
-572
skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - + 44 * + col1 + - cor0.col1 / + col0 FROM tab1 AS cor0
----
-1152
-440
-572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT col2 + 62 AS col2 FROM tab2
----
100
88
89
query I rowsort
SELECT ALL cor1.col0 * 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eb8e4907382073cf46d4e4e322830309
onlyif mysql # use DIV operator for integer division
query I rowsort label-1028
SELECT - + col1 DIV - 84 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1028
SELECT - + col1 / - 84 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( + col1 ) + col2 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT ALL + col1 DIV - ( - col1 * - 41 ) - - 26 * col1 AS col1 FROM tab0
----
2236
2366
2522
skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + col1 / - ( - col1 * - 41 ) - - 26 * col1 AS col1 FROM tab0
----
2236
2366
2522
query I rowsort
SELECT + 4 * cor0.col1 + + 62 FROM tab2 AS cor0
----
130
186
298
query I rowsort
SELECT 81 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT - 70 DIV + col2 + ( + col0 + col1 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1565
4217
8928
skipif mysql # not compatible
query I rowsort label-1034
SELECT - 70 / + col2 + ( + col0 + col1 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1565
4217
8928
query I rowsort
SELECT DISTINCT - 31 + col1 * + tab0.col2 * col2 + col0 AS col2 FROM tab0
----
101
611942
93647
query I rowsort
SELECT DISTINCT 19 + - col2 FROM tab1
----
-35
-38
-77
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 82 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT DISTINCT + + col2 DIV - col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + + col2 / - col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 - + col2 col1 FROM tab1 cor0
----
-2
-41
1
query I rowsort
SELECT 65 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + 79 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - - ( col1 ) * cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL 25 + - col1 AS col2 FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT ALL - - col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + + col1 - - col0 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT DISTINCT col0 + + 2 DIV col1 col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT col0 + + 2 / col1 col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 * - 87 + col0 AS col2 FROM tab1 AS cor0
----
-4695
-4895
-8272
query I rowsort
SELECT - 27 AS col0 FROM tab2 cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - cor0.col0 * ( cor0.col0 * - col0 ) AS col1 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT ALL tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + 19 FROM tab0 cor0
----
19
query I rowsort
SELECT ALL - 57 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT 71 * cor0.col2 + + col1 FROM tab2 cor0
----
1905
1948
2715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 - col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 73 col0 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT - + col2 + ( + ( + col1 ) ) * col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + - col1 + + ( cor0.col0 ) * col0 * col2 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT DISTINCT + col1 * + 92 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT DISTINCT + cor0.col0 * 37 + + col2 * cor0.col0 FROM tab0 AS cor0
----
10591
1330
1680
query I rowsort
SELECT + ( col0 ) + 85 AS col0 FROM tab0
----
109
120
174
query I rowsort
SELECT ( col2 ) * ( col1 ) + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 * col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + - col2 * ( - 30 ) + col2 FROM tab0 cor0
----
1023
2542
31
query I rowsort
SELECT DISTINCT - col2 + + 41 * 38 AS col1 FROM tab0 AS cor0
----
1476
1525
1557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1070
SELECT CAST( NULL AS DECIMAL ) + - 98 * col0 * ( - 52 ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1070
SELECT CAST ( NULL AS REAL ) + - 98 * col0 * ( - 52 ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + cor0.col0 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1072
SELECT ALL + CAST( col0 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL + CAST ( col0 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col2 * col0 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-1074
SELECT - col1 DIV + cor0.col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1074
SELECT - col1 / + cor0.col1 AS col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - + ( 29 ) AS col2 FROM tab0 cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col2 - + ( - col1 ) * + 44 AS col1 FROM tab0 AS cor0
----
3817
4086
4269
query I rowsort
SELECT + col1 + - col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT 86 * ( - col1 + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1079
SELECT 86 * ( - col1 + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * 32 FROM tab0
----
1120
2848
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1081
SELECT DISTINCT - tab0.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT - tab0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - ( col0 ) * - col1 * cor0.col1 + + col0 * col1 FROM tab2 AS cor0
----
24174
276120
6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT ALL + 92 DIV + 58 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL + 92 / + 58 AS col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1084
SELECT ALL - - CAST( 39 AS SIGNED ) + col1 * - 56 FROM tab0 AS cor0
----
-4777
-5057
-5393
skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - - CAST ( 39 AS INTEGER ) + col1 * - 56 FROM tab0 AS cor0
----
-4777
-5057
-5393
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT DISTINCT - - col1 + + col2 DIV col2 FROM tab0 cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1085
SELECT DISTINCT - - col1 + + col2 / col2 FROM tab0 cor0
----
87
92
98
query I rowsort
SELECT + + ( - col1 ) * - col2 + ( - 2 + col0 ) AS col0 FROM tab2 AS cor0
----
1610
723
842
query I rowsort
SELECT DISTINCT + + ( col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL + + 74 * col1 AS col2 FROM tab2 AS cor0
----
1258
2294
4366
query I rowsort
SELECT DISTINCT + 30 FROM tab2 AS cor0
----
30
query I rowsort
SELECT ALL 5 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab0, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359
onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT ALL CAST( col1 AS SIGNED ) * col1 DIV col0 + + col1 FROM tab0
----
184
365
394
skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL CAST ( col1 AS INTEGER ) * col1 / col0 + + col1 FROM tab0
----
184
365
394
query I rowsort
SELECT ALL - col1 + + tab2.col0 + - col0 * col2 FROM tab2
----
-2009
-213
-2940
query I rowsort
SELECT + col2 + + col2 + - col2 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - - col2 * cor0.col2 + - col2 * cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-16900
-18954
-53428
query I rowsort
SELECT + 43 + + col2 FROM tab2 cor0
----
69
70
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT ALL + cor0.col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT 12 + + col2 + col1 FROM tab1 AS cor0
----
121
79
92
query I rowsort
SELECT DISTINCT 8 + + 70 AS col1 FROM tab0
----
78
query I rowsort
SELECT DISTINCT + col0 + 55 * col2 * col1 + + col2 FROM tab1
----
31471
68816
77277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1101
SELECT - CAST( NULL AS SIGNED ) + col2 + col2 / col1 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1101
SELECT - CAST ( NULL AS INTEGER ) + col2 + col2 / col1 col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT 46 DIV col0 FROM tab1
----
0
0
15
skipif mysql # not compatible
query I rowsort label-1102
SELECT 46 / col0 FROM tab1
----
0
0
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT ALL - CAST( + col2 AS SIGNED ) + col1 DIV col2 + col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL - CAST ( + col2 AS INTEGER ) + col1 / col2 + col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT + col0 * + 26 FROM tab2
----
182
2028
2054
query I rowsort
SELECT 35 * col1 + - col2 * col0 + + col1 FROM tab1
----
-3288
-7212
774
query I rowsort
SELECT col2 * + 81 + col1 FROM tab2
----
2165
2218
3095
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT DISTINCT 24 DIV + tab1.col0 AS col1 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT 24 / + tab1.col0 AS col1 FROM tab1
----
0
8
query I rowsort
SELECT - 83 + + col0 * - col1 * + col2 + + col0 FROM tab1
----
-36499
-4292
-99843
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 72 * + tab0.col0 * - col1 FROM tab0
----
-148608
-244440
-583128
query I rowsort
SELECT + col1 + cor0.col1 + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7568
8463
9603
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-1113
SELECT DISTINCT - + 50 DIV col1 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - + 50 / col1 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL + ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 73 * col2 * + tab0.col0 AS col0 FROM tab0
----
2555
532754
57816
query I rowsort
SELECT ALL - 12 AS col1 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT - - cor0.col1 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT tab1.col2 + + ( - col0 ) * col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab1, tab0 AS cor0
----
90
query I rowsort
SELECT - 12 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT + - col1 * + col1 + 0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col2 + 57 * + col1 FROM tab1 cor0
----
1536
627
837
query I rowsort
SELECT + - col1 * + cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 * col2 * - col1 FROM tab1 AS cor0
----
-119888
-32554
-75819
query I rowsort
SELECT 41 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT + col0 DIV + col2 + + cor0.col1 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-1130
SELECT + col0 / + col2 + + cor0.col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT DISTINCT - 33 + - col2 FROM tab0
----
-115
-34
-66
query I rowsort
SELECT - 44 * col1 * col2 AS col2 FROM tab2
----
-28424
-36828
-67496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col0 col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 9 AS REAL ) FROM tab1 cor0
----
9
9
9
query I rowsort
SELECT ALL - 63 - col0 FROM tab1 AS cor0
----
-127
-143
-66
query I rowsort
SELECT DISTINCT - col0 * - 76 + col1 * cor0.col2 * col2 FROM tab1 AS cor0
----
125888
37354
76044
onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT - ( col2 ) + - col1 * col1 DIV col0 + col1 * col1 * - col2 FROM tab0 AS cor0
----
-244409
-679217
-9678
skipif mysql # not compatible
query I rowsort label-1138
SELECT - ( col2 ) + - col1 * col1 / col0 + col1 * col1 * - col2 FROM tab0 AS cor0
----
-244409
-679217
-9678
query I rowsort
SELECT 83 - + col1 AS col0 FROM tab0 cor0
----
-14
-3
-8
query I rowsort
SELECT + + col1 + col2 * col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col0 * 32 * 4 AS col0 FROM tab1 AS cor0
----
10240
384
8192
query I rowsort
SELECT - col2 * 25 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT col2 * - col2 * - col2 - + col0 * - col2 AS col2 FROM tab2 AS cor0
----
19604
19872
57874
query I rowsort
SELECT col2 + ( + col0 ) - - cor0.col2 FROM tab1 cor0
----
111
178
272
query I rowsort
SELECT - ( + col0 ) * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1146
SELECT - + CAST( 56 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1344
1960
4984
skipif mysql # not compatible
query I rowsort label-1146
SELECT - + CAST ( 56 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT DISTINCT + col1 + + 71 * - col1 FROM tab1 AS cor0
----
-1820
-700
-910
query I rowsort
SELECT - 28 + 50 * - col0 FROM tab0 AS cor0
----
-1228
-1778
-4478
onlyif mysql # use DIV operator for integer division
query I rowsort label-1149
SELECT + col1 + - col0 DIV - col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1149
SELECT + col1 + - col0 / - col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + 8 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT col0 * + ( + 75 + col0 ) AS col1 FROM tab1
----
12400
234
8896
onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT + ( 27 ) DIV + tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-1152
SELECT + ( 27 ) / + tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL 55 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT 26 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT ( + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col0 + - ( tab0.col1 ) FROM tab0, tab2 cor0
----
9 values hashing to 4a88a96a89d4ececac205d3e45cfb39d
query I rowsort
SELECT DISTINCT 59 FROM tab1, tab0 AS cor0, tab2 cor1
----
59
query I rowsort
SELECT ALL - 36 * + tab1.col2 FROM tab1
----
-1944
-2052
-3456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1159
SELECT - col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1159
SELECT - col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT 78 * col2 * + CAST( + col1 AS SIGNED ) + col0 + col0 FROM tab1
----
109518
44588
97504
skipif mysql # not compatible
query I rowsort label-1160
SELECT 78 * col2 * + CAST ( + col1 AS INTEGER ) + col0 + col0 FROM tab1
----
109518
44588
97504
query I rowsort
SELECT - 43 * col1 FROM tab0
----
-3698
-3913
-4171
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + col2 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * - ( col1 ) + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL - col2 * ( - col0 ) + - col1 FROM tab1 cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1165
SELECT col2 + tab2.col0 - + 82 DIV col1 AS col1 FROM tab2
----
103
113
32
skipif mysql # not compatible
query I rowsort label-1165
SELECT col2 + tab2.col0 - + 82 / col1 AS col1 FROM tab2
----
103
113
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL col2 * col1 DIV col2 - - tab0.col0 AS col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL col2 * col1 / col2 - - tab0.col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 - 21 AS col1 FROM tab1
----
33
36
75
query I rowsort
SELECT ALL - tab2.col1 * col1 * - col0 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col0 - ( ( - col0 ) ) * + 53 AS col2 FROM tab0
----
1248
1820
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1171
SELECT DISTINCT - tab0.col0 - - CAST( + col0 AS SIGNED ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - tab0.col0 - - CAST ( + col0 AS INTEGER ) FROM tab0
----
0
query I rowsort
SELECT col2 * + 53 FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT + col1 * 43 AS col1 FROM tab1
----
1118
430
559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1174
SELECT - ( + tab1.col1 + - col2 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1174
SELECT - ( + tab1.col1 + - col2 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col2 * ( col0 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab2.col1 + + col2 col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT col1 + 26 FROM tab1
----
36
39
52
query I rowsort
SELECT 88 AS col0 FROM tab1
----
88
88
88
query I rowsort
SELECT + col1 * - col2 + ( cor0.col1 ) FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT 29 AS col2 FROM tab0 cor0
----
29
29
29
query I rowsort
SELECT - 12 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
1
14
query I rowsort
SELECT DISTINCT 43 * col2 AS col0 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT - + col0 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + col2 * + col1 + - 20 FROM tab0 AS cor0
----
2818
7442
77
query I rowsort
SELECT DISTINCT - + col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + 69 * col1 * - cor0.col2 + col2 + col1 AS col2 FROM tab0 AS cor0
----
-195703
-514705
-6595
query I rowsort
SELECT DISTINCT + tab1.col0 + 38 * col1 + col1 AS col2 FROM tab1
----
1017
454
587
query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT 32 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1888
544
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * 8 col0 FROM tab1, tab1 AS cor0
----
200
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT DISTINCT cor0.col1 * tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e8cccfbaf514cde36022d227725713e6
query I rowsort
SELECT - 89 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 1e1759ead845b97a0ef58dbd6a959d73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + + col1 + + 60 * + col1 col1 FROM tab0
----
13013
6014
8084
query I rowsort
SELECT DISTINCT - 47 FROM tab2 cor0
----
-47
query I rowsort
SELECT ALL + col2 * - cor0.col1 * 25 AS col0 FROM tab2 AS cor0
----
-16150
-20925
-38350
query I rowsort
SELECT ALL + + 37 FROM tab0 cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ALL - + col2 DIV + col1 + - col0 DIV + 15 AS col2 FROM tab0 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - + col2 / + col1 + - col0 / + 15 AS col2 FROM tab0 AS cor0
----
-1
-2
-5
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0, tab0 AS cor0
----
87
query I rowsort
SELECT DISTINCT - cor0.col0 * 7 FROM tab1, tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT DISTINCT - col2 + col2 * + 73 AS col0 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT - col0 * ( col2 ) FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col1 * + col0 + + 31 AS col2 FROM tab2 AS cor0
----
1374
248
4633
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT + - col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col1 * + ( col2 ) * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + - col1 * + col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - ( 42 ) AS col1 FROM tab1 AS cor0
----
-42
-42
-42
query I rowsort
SELECT + ( - col0 ) - + col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + col1 * 84 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - + col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - - col1 * - col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ( + cor0.col1 ) * col1 + 2 * + ( + col2 ) FROM tab2 AS cor0
----
1015
3533
365
query I rowsort
SELECT ALL + - col0 + + 20 AS col2 FROM tab1 AS cor0
----
-44
-60
17
query I rowsort
SELECT DISTINCT 47 * col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT 21 - - col2 FROM tab1 AS cor0
----
117
75
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT ALL + - col1 DIV - col1 + - cor0.col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + - col1 / - col1 + - cor0.col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT + + 61 * cor0.col2 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT - + ( 5 ) * col2 AS col2 FROM tab2 AS cor0
----
-130
-135
-190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT - 53 DIV + col2 + col0 + - col0 * col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-1225
SELECT - 53 / + col2 + col0 + - col0 * col1 / - col1 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + 44 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 col2 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL - 83 * col1 - col0 FROM tab2 AS cor0
----
-1490
-2580
-4975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + ( col1 ) * - col2 col1 FROM tab1 AS cor0
----
-1242
-1398
-564
query I rowsort
SELECT DISTINCT col0 + + col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT 82 * col0 + + col0 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT ALL col1 - 3 AS col0 FROM tab2 AS cor0
----
14
28
56
query I rowsort
SELECT DISTINCT - + ( + col2 ) FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1234
SELECT ALL - col1 * col2 / - tab0.col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - col1 * col2 / - tab0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 42 * col2 FROM tab0
----
1386
3444
42
query I rowsort
SELECT + ( - 82 ) AS col2 FROM tab0 cor0
----
-82
-82
-82
query I rowsort
SELECT - col2 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 75 * - col2 AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT DISTINCT - ( + 93 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3069
-7626
-93
query I rowsort
SELECT col1 + + ( col0 ) FROM tab2
----
137
38
96
query I rowsort
SELECT 73 * - col2 FROM tab0
----
-2409
-5986
-73
query I rowsort
SELECT DISTINCT ( 21 ) + col1 AS col2 FROM tab0
----
107
112
118
query I rowsort
SELECT DISTINCT + col0 + 20 FROM tab2
----
27
98
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col1 col0 FROM tab1
----
110
182
702
query I rowsort
SELECT ALL - tab1.col2 + + 27 AS col2 FROM tab1
----
-27
-30
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-1246
SELECT + col0 DIV 95 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1246
SELECT + col0 / 95 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 75 + 97 AS col1 FROM tab2
----
172
query I rowsort
SELECT - col2 * - ( + col2 ) FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT col0 + 96 * 7 FROM tab0 AS cor0
----
696
707
761
query I rowsort
SELECT cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 * col1 * cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT col2 * - 53 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT ALL + col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col0 ) col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col2 * + tab2.col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + col1 * - 85 AS col0 FROM tab2 AS cor0
----
-1445
-2635
-5015
query I rowsort
SELECT col0 + col0 * col1 * - col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT col0 + col0 * col2 AS col2 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1260
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL 74 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT ALL col0 * - 78 AS col2 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT col1 * - 12 AS col1 FROM tab1 AS cor0
----
-120
-156
-312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 + col1 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - - cor0.col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT + - col2 * + 76 * col2 + col1 FROM tab2 AS cor0
----
-109727
-51317
-55373
query I rowsort
SELECT - + col2 + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT DISTINCT - col0 + - ( col1 ) DIV cor0.col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT - col0 + - ( col1 ) / cor0.col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col2 ) ) * + col0 * col1 col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + col1 + + 51 * - col2 FROM tab1 AS cor0
----
-2728
-2897
-4883
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1275
SELECT CAST( 25 AS SIGNED ) FROM tab2 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-1275
SELECT CAST ( 25 AS INTEGER ) FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + 26 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT + 15 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT DISTINCT - col1 * 23 AS col0 FROM tab2
----
-1357
-391
-713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col0 + col2 * ( cor0.col2 ) col2 FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT ALL + 77 * + col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + ( col0 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - + 25 AS col0 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT ALL + 84 + + cor0.col1 - + 60 AS col0 FROM tab0 AS cor0
----
110
115
121
query I rowsort
SELECT DISTINCT - 44 + + col1 AS col2 FROM tab1 AS cor0
----
-18
-31
-34
query I rowsort
SELECT DISTINCT + 98 FROM tab1 AS cor0
----
98
query I rowsort
SELECT ALL - 65 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab1 AS cor0
----
58
query I rowsort
SELECT - 92 AS col2 FROM tab0 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + col0 + 89 AS col2 FROM tab2 AS cor0
----
167
168
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - col1 * + cor0.col0 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
180
40903
83104
query I rowsort
SELECT DISTINCT - + cor0.col0 * ( cor0.col0 ) - col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - col0 + - tab2.col2 * - ( 10 ) * col0 FROM tab2
----
1883
20202
29941
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT + 44 DIV col1 - col1 FROM tab1
----
-10
-25
-6
skipif mysql # not compatible
query I rowsort label-1296
SELECT + 44 / col1 - col1 FROM tab1
----
-10
-25
-6
query I rowsort
SELECT DISTINCT - ( 85 ) + - col1 AS col2 FROM tab2 AS cor0
----
-102
-116
-144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1298
SELECT ALL - - CAST( - col0 AS SIGNED ) * col2 * - ( ( - col1 ) + 32 ) FROM tab0 AS cor0
----
-2275
-42768
-430582
skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL - - CAST ( - col0 AS INTEGER ) * col2 * - ( ( - col1 ) + 32 ) FROM tab0 AS cor0
----
-2275
-42768
-430582
query I rowsort
SELECT DISTINCT - 81 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-81
query I rowsort
SELECT col0 * 11 AS col1 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab2 AS cor3
----
72
query I rowsort
SELECT ( + tab1.col0 ) * tab1.col0 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1303
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col1 ) * col0 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 * 18 + col1 AS col1 FROM tab0 AS cor0
----
-1511
-346
-533
query I rowsort
SELECT ( - col1 ) - + col2 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab2 cor0, tab1 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL + - col1 * 34 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-2867
-2923
-3262
onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT ALL + col1 DIV - col1 + col0 * + col1 FROM tab2 AS cor0
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL + col1 / - col1 + col0 * + col1 FROM tab2 AS cor0
----
1342
216
4601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1310
SELECT col2 - CAST( col1 + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1310
SELECT col2 - CAST ( col1 + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( + col1 ) + + cor0.col0 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - - col0 * ( 85 ) + col2 FROM tab0 AS cor0
----
2073
2976
7647
query I rowsort
SELECT - + 76 * 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8f92df4fa972c9eafe5d92cedbedaca0
query I rowsort
SELECT ALL + col0 * 51 + tab2.col0 AS col1 FROM tab2
----
364
4056
4108
query I rowsort
SELECT col0 - + tab2.col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ( 58 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL col1 * - col0 + - col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT + 66 - 30 FROM tab2
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT - 21 DIV - cor0.col2 FROM tab0 AS cor0
----
0
0
21
skipif mysql # not compatible
query I rowsort label-1319
SELECT - 21 / - cor0.col2 FROM tab0 AS cor0
----
0
0
21
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL + 53 FROM tab0 cor0
----
53
53
53
query I rowsort
SELECT ALL - 51 FROM tab2 AS cor0
----
-51
-51
-51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT col0 * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1323
SELECT col0 * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + 39 * ( cor0.col2 ) FROM tab1 AS cor0
----
12960
5022
5472
query I rowsort
SELECT ALL col2 * - 19 FROM tab1
----
-1026
-1083
-1824
query I rowsort
SELECT - - col2 * col0 * cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT ALL 46 AS col1 FROM tab1
----
46
46
46
query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab0
----
-76
query I rowsort
SELECT DISTINCT 54 * + cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1296
1890
4806
query I rowsort
SELECT ALL + 99 * col0 AS col1 FROM tab1
----
297
6336
7920
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2 AS cor0
----
95
query I rowsort
SELECT ALL - + cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 57 AS col1 FROM tab0 AS cor0
----
57
57
57
query I rowsort
SELECT ALL - 12 * col1 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT - col2 * - col0 + - 98 FROM tab1 AS cor0
----
3550
64
7582
onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT + - 9 + col2 DIV col0 FROM tab2 AS cor0
----
-6
-9
-9
skipif mysql # not compatible
query I rowsort label-1338
SELECT + - 9 + col2 / col0 FROM tab2 AS cor0
----
-6
-9
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT DISTINCT - - cor0.col2 * col2 + cor0.col1 + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
2942
3260
9229
skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT - - cor0.col2 * col2 + cor0.col1 + col0 / + col2 AS col1 FROM tab1 AS cor0
----
2942
3260
9229
query I rowsort
SELECT ALL - col0 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1341
SELECT DISTINCT + ( col1 ) / CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT + ( col1 ) / CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 95 + col1 FROM tab2 AS cor0
----
-36
-64
-78
query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1346
SELECT ALL + col0 * - col2 + + CAST( NULL AS DECIMAL ) * - cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL + col0 * - col2 + + CAST ( NULL AS REAL ) * - cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 69 * + col0 + col0 FROM tab1 AS cor0
----
210
4480
5600
query I rowsort
SELECT + + cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1349
SELECT - CAST( NULL AS SIGNED ) * 27 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1349
SELECT - CAST ( NULL AS INTEGER ) * 27 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + ( - 51 ) FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 * col1 + - 8 col1 FROM tab0 AS cor0
----
-8092
-8562
-9126
query I rowsort
SELECT - 72 + - col0 FROM tab1 cor0
----
-136
-152
-75
query I rowsort
SELECT ALL - - col0 * col1 + + cor0.col0 * - cor0.col0 FROM tab0 cor0
----
1488
178
2170
query I rowsort
SELECT DISTINCT col0 + - 32 * - cor0.col1 FROM tab1 AS cor0
----
384
496
835
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 66 col1 FROM tab1 cor0
----
-120
-123
-162
query I rowsort
SELECT ALL + - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 * + 14 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT DISTINCT - col1 * ( 7 ) + col0 FROM tab2 AS cor0
----
-210
-335
-40
query I rowsort
SELECT col1 * ( + col0 + col0 ) FROM tab2 AS cor0
----
2686
434
9204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1360
SELECT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1360
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col0 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + + cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1363
SELECT + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * col1 * col0 col0 FROM tab0 AS cor0
----
-24768
-40740
-97188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1365
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT - ( 70 ) DIV col1 + col0 + col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1366
SELECT - ( 70 ) / col1 + col0 + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1367
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT DISTINCT + - 70 DIV + col2 FROM tab0 AS cor0
----
-2
-70
0
skipif mysql # not compatible
query I rowsort label-1368
SELECT DISTINCT + - 70 / + col2 FROM tab0 AS cor0
----
-2
-70
0
query I rowsort
SELECT ( + col1 ) * + col0 + col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT 79 + - cor0.col0 FROM tab0 AS cor0
----
-10
44
55
query I rowsort
SELECT + col2 + + 80 * col2 FROM tab2 cor0
----
2106
2187
3078
query I rowsort
SELECT cor0.col2 * 31 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT ALL ( + 5 ) AS col2 FROM tab1 AS cor0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 col2 FROM tab1 AS cor0
----
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 12 ) * col0 col1 FROM tab1 AS cor0
----
-36
-768
-960
query I rowsort
SELECT DISTINCT + + col2 * 63 * + col2 FROM tab0 cor0
----
423612
63
68607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( - col1 * - col0 ) col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - + 50 + + col0 FROM tab0 AS cor0
----
-15
-26
39
query I rowsort
SELECT - 22 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7418
-8303
-9431
query I rowsort
SELECT ALL 93 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL tab1.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - cor1.col0 * 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f755fccb93df6d42bfdccca7cad16538
query I rowsort
SELECT ALL - 45 + + col2 FROM tab1 AS cor0
----
12
51
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1384
SELECT CAST( - 92 AS SIGNED ) DIV - col0 FROM tab2 cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-1384
SELECT CAST ( - 92 AS INTEGER ) / - col0 FROM tab2 cor0
----
1
1
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1385
SELECT + CAST( - col0 AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1385
SELECT + CAST ( - col0 AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 col0 FROM tab0
----
40
query I rowsort
SELECT - 31 FROM tab2, tab1 cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT + col0 * col0 - col1 FROM tab0
----
1128
490
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1390
SELECT CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1390
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 54 AS REAL ) * - col1 / col1 FROM tab2 AS cor0
----
54
54
54
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT + ( col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - + col2 * col2 * col1 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT + 74 AS col1 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT DISTINCT - 4 * col2 + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-190
-218
-371
query I rowsort
SELECT - - col2 * col0 - + col0 * + ( - col2 + + 94 ) FROM tab1 AS cor0
----
1280
42
7840
query I rowsort
SELECT cor0.col2 + - col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - tab0.col1 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + col0 + - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1401
SELECT - - cor0.col0 * col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-1401
SELECT - - cor0.col0 * col1 / + col2 AS col0 FROM tab1 AS cor0
----
1
10
11
query I rowsort
SELECT 9 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT + col1 + + ( - 45 ) * tab1.col0 + + 54 AS col2 FROM tab1
----
-2816
-3533
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + ( - 83 ) col2 FROM tab1 AS cor0
----
-137
-140
-179
query I rowsort
SELECT DISTINCT + + col1 - ( - 6 + + col1 ) AS col2 FROM tab2 AS cor0
----
6
query I rowsort
SELECT + col0 - + col2 * - 98 FROM tab1 AS cor0
----
5295
5650
9488
query I rowsort
SELECT - col2 + + 91 AS col1 FROM tab1 AS cor0
----
-5
34
37
query I rowsort
SELECT - col0 + 67 AS col1 FROM tab1 AS cor0
----
-13
3
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT DISTINCT - 8 * - cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT - 8 * - cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 46 * col0 AS col1 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT DISTINCT + col2 + + 59 FROM tab0 AS cor0
----
141
60
92
query I rowsort
SELECT ALL 2 * - col1 + + col1 + + 46 FROM tab1 cor0
----
20
33
36
query I rowsort
SELECT ALL - 44 AS col0 FROM tab0 AS cor0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 73 col2 FROM tab2 cor0
----
-5
-6
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1416
SELECT - + CAST( cor0.col0 AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-1416
SELECT - + CAST ( cor0.col0 AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - col0 col1 FROM tab1 AS cor0
----
-1120
-704
-81
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT - 87 + + col0 FROM tab0 AS cor0
----
-52
-63
2
query I rowsort
SELECT - 71 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 67 FROM tab0, tab2, tab2 AS cor0
----
67
query I rowsort
SELECT 96 + + col2 AS col0 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT ALL 0 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT ALL - 88 DIV - col0 col2 FROM tab0 AS cor0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL - 88 / - col0 col2 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT - col2 * - col1 + - ( col0 ) AS col0 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * + col2 * + col1 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT cor0.col0 * - 37 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a5390e62ca35683dade7c1bfdeeea9
query I rowsort
SELECT ALL + ( col1 * + col2 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT ALL + - col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL + - col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT DISTINCT + + col0 DIV - col0 - col2 * col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-1431
SELECT DISTINCT + + col0 / - col0 - col2 * col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT col0 + + 94 FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT DISTINCT - col1 * + col0 * col1 - + col0 AS col2 FROM tab2 AS cor0
----
-22910
-271596
-6734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 31 * col1 col0 FROM tab1 cor0
----
-253
-307
-752
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1435
SELECT DISTINCT cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL - + col1 * - col0 - 42 FROM tab1 AS cor0
----
36
598
998
query I rowsort
SELECT - col2 * + col1 * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
query I rowsort
SELECT ALL + + col2 * - 8 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT ALL 90 - + col2 * ( 92 ) AS col1 FROM tab1
----
-4878
-5154
-8742
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1440
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1440
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 65 * col0 FROM tab2
----
455
5070
5135
query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + 22 * + col2 + - col1 * col0 * cor0.col2 FROM tab0 AS cor0
----
-3373
-662314
-67386
query I rowsort
SELECT ALL + 36 AS col2 FROM tab0
----
36
36
36
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( cor0.col1 AS REAL ) * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col1 * + col1 * + cor0.col0 AS col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - ( col1 ) * - col2 + 14 FROM tab1 AS cor0
----
1262
1418
584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) * col1 col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + ( - col1 ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT ALL - 85 - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - 85 - col1 / + cor0.col1 FROM tab2 AS cor0
----
-86
-86
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1451
SELECT ALL - - CAST( col1 AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL - - CAST ( col1 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1427
617
698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 52 + - col2 col0 FROM tab0 AS cor0
----
-134
-53
-85
query I rowsort
SELECT col1 + tab1.col1 * tab1.col1 FROM tab1
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1456
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT ( col2 * col1 ) + - ( + col0 ) DIV + col0 col2 FROM tab2
----
1533
645
836
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1457
SELECT ( col2 * col1 ) + - ( + col0 ) / + col0 col2 FROM tab2
----
1533
645
836
query I rowsort
SELECT + - col2 * + 7 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + cor0.col1 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 - + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT cor0.col2 * - 92 + - col0 AS col2 FROM tab0 AS cor0
----
-127
-3060
-7633
query I rowsort
SELECT ALL 61 + - col2 * + col2 AS col2 FROM tab0
----
-1028
-6663
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + - 38 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT - cor0.col1 + col2 * cor0.col2 * + col1 FROM tab1 AS cor0
----
119795
32480
75790
onlyif mysql # use DIV operator for integer division
query I rowsort label-1466
SELECT DISTINCT cor0.col1 DIV + 49 AS col1 FROM tab1, tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT cor0.col1 / + 49 AS col1 FROM tab1, tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col2 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT + - 86 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT + + ( 26 ) AS col0 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT + col1 + - 41 * - col2 AS col0 FROM tab1
----
2240
2347
3949
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1471
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * 86 + + 62 - col2 FROM tab2 AS cor0
----
637
6744
6818
query I rowsort
SELECT ALL - col1 * + col0 * - ( - col2 * + tab1.col1 ) AS col2 FROM tab1
----
-109512
-1297920
-364800
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 74 AS REAL ) AS col1 FROM tab1 AS cor0
----
74
74
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 4 col0 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT col1 + - col0 * + col0 AS col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT ALL col0 * 43 FROM tab0
----
1032
1505
3827
query I rowsort
SELECT - col2 + ( - col1 ) * col0 AS col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT ( + 78 ) AS col0 FROM tab0
----
78
78
78
query I rowsort
SELECT ALL - 89 AS col2 FROM tab2
----
-89
-89
-89
query I rowsort
SELECT DISTINCT 36 * 49 AS col0 FROM tab0
----
1764
query I rowsort
SELECT ALL + 16 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL - 99 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT DISTINCT ( 88 ) AS col2 FROM tab1 cor0
----
88
query I rowsort
SELECT ALL - 85 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-1487
SELECT + + col1 * + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1487
SELECT + + col1 * + col2 / col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT 41 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT + 55 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + col2 * + 43 AS col1 FROM tab1
----
2322
2451
4128
query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT - ( ( col1 ) + + col2 ) DIV col0 FROM tab1
----
-1
-26
skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - ( ( col1 ) + + col2 ) / col0 FROM tab1
----
-1
-26
query I rowsort
SELECT DISTINCT - + 53 AS col2 FROM tab0 AS cor0
----
-53
query I rowsort
SELECT + col0 + tab0.col1 * + col1 AS col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT 79 + - col0 FROM tab2
----
0
1
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1496
SELECT DISTINCT + col1 DIV col2 + 51 AS col2 FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-1496
SELECT DISTINCT + col1 / col2 + 51 AS col2 FROM tab1
----
51
query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + col0 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL + col2 * col2 + tab2.col2 DIV - col0 FROM tab2
----
1444
676
726
skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + col2 * col2 + tab2.col2 / - col0 FROM tab2
----
1444
676
726
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * col2 col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + col1 * 45 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT DISTINCT + - col1 * + 94 + - ( - col0 * - col2 ) AS col1 FROM tab2 AS cor0
----
-3103
-4600
-7574
onlyif mysql # use DIV operator for integer division
query I rowsort label-1503
SELECT + col2 * 68 DIV ( - col0 * col2 ) + + col1 + - col0 FROM tab0 AS cor0
----
2
60
61
skipif mysql # not compatible
query I rowsort label-1503
SELECT + col2 * 68 / ( - col0 * col2 ) + + col1 + - col0 FROM tab0 AS cor0
----
2
60
61
query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT - - col2 + col2 + + 5 * col1 AS col0 FROM tab1 AS cor0
----
164
238
257
query I rowsort
SELECT col1 * col2 - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL ( - 38 ) FROM tab1, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT - - col1 + - 0 + - 32 FROM tab0 AS cor0
----
54
59
65
query I rowsort
SELECT ALL + col0 + 61 AS col2 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT + col1 + ( cor0.col0 + col0 ) AS col1 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT + col0 * + col0 + cor0.col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - col0 * - col0 + + 47 FROM tab0 cor0
----
1272
623
7968
query I rowsort
SELECT + 19 + col2 AS col2 FROM tab2 AS cor0
----
45
46
57
query I rowsort
SELECT DISTINCT - cor0.col0 + - 77 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-155
-156
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT DISTINCT col2 + - col1 DIV col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT col2 + - col1 / col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + 61 AS col0 FROM tab0
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 + col2 col1 FROM tab1
----
44
47
86
query I rowsort
SELECT ALL + + 57 AS col1 FROM tab2 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 * 36 AS col2 FROM tab2 AS cor0
----
1123
2202
691
query I rowsort
SELECT ALL - - col1 + - col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT DISTINCT - col2 DIV CAST( - 25 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-79
skipif mysql # not compatible
query I rowsort label-1521
SELECT DISTINCT - col2 / CAST ( - 25 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-1
-32
-79
query I rowsort
SELECT - col0 * - 1 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT ALL - col0 DIV - col1 + col0 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - col0 / - col1 + col0 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT DISTINCT + + col2 * - col0 + + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-673
-7125
63
query I rowsort
SELECT DISTINCT col0 + col2 * - col0 + col0 AS col2 FROM tab2 cor0
----
-175
-1872
-2844
query I rowsort
SELECT - col0 + + 43 * col2 FROM tab0 AS cor0
----
1395
3437
8
query I rowsort
SELECT + 54 * tab2.col2 FROM tab2
----
1404
1458
2052
query I rowsort
SELECT - col2 * - tab1.col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col1 FROM tab2
----
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT - - CAST( NULL AS SIGNED ) * - col2 + + col0 * col2 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-1531
SELECT - - CAST ( NULL AS INTEGER ) * - col2 + + col0 * col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 58 * + cor0.col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT - ( col0 ) - - col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 50 + + tab2.col2 FROM tab2, tab2 cor0
----
76
77
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1536
SELECT ALL col2 DIV + 79 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL col2 / + 79 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL + col1 + col1 * col1 AS col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1538
SELECT DISTINCT ( + col0 ) DIV col1 FROM tab1 cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT ( + col0 ) / col1 FROM tab1 cor0
----
0
6
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * + ( + tab0.col2 ) * + col0 + - CAST ( + col0 AS REAL ) FROM tab0
----
3360
664029
68088
query I rowsort
SELECT + col0 + + col2 * - tab0.col1 + - col1 FROM tab0
----
-159
-2900
-7464
query I rowsort
SELECT - col1 * - 18 AS col0 FROM tab1
----
180
234
468
query I rowsort
SELECT - 29 FROM tab1, tab0 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT ( - 98 ) * col0 FROM tab1
----
-294
-6272
-7840
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1545
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT - CAST( 63 AS SIGNED ) + col1 DIV - 23 AS col2 FROM tab1 AS cor0
----
-63
-63
-64
skipif mysql # not compatible
query I rowsort label-1546
SELECT - CAST ( 63 AS INTEGER ) + col1 / - 23 AS col2 FROM tab1 AS cor0
----
-63
-63
-64
query I rowsort
SELECT - col2 * cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT 87 + + 81 FROM tab2 cor0
----
168
168
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT cor0.col0 DIV cor0.col0 - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-1549
SELECT cor0.col0 / cor0.col0 - col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL + 17 * col2 FROM tab0 cor0
----
1394
17
561
query I rowsort
SELECT cor0.col0 * + col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - + 9 FROM tab2 AS cor0
----
-9
-9
-9
query I rowsort
SELECT cor0.col0 - - col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT + + 47 + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1554
SELECT + + 47 + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 13 * + col2 FROM tab1 AS cor0
----
1248
702
741
query I rowsort
SELECT 64 * 48 * col1 + + ( tab2.col0 ) + col0 AS col0 FROM tab2
----
181404
52382
95246
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1557
SELECT ALL col0 - + ( + col1 ) * CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-7372
-8192
-9374
skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL col0 - + ( + col1 ) * CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-1558
SELECT DISTINCT col0 * col2 - + col1 DIV tab2.col0 AS col0 FROM tab2
----
185
2028
3002
skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT col0 * col2 - + col1 / tab2.col0 AS col0 FROM tab2
----
185
2028
3002
query I rowsort
SELECT + ( + ( - col0 ) ) FROM tab0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT ALL + col1 DIV - 60 - col1 AS col2 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL + col1 / - 60 - col1 AS col2 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT DISTINCT + col2 - - 5 AS col2 FROM tab2
----
31
32
43
query I rowsort
SELECT DISTINCT + tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT ALL col2 DIV tab0.col2 + - 0 * tab0.col0 DIV + col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL col2 / tab0.col2 + - 0 * tab0.col0 / + col0 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - col0 * - tab0.col0 + ( 94 + col2 ) AS col2 FROM tab0
----
1320
703
8097
query I rowsort
SELECT col0 + col0 * ( 51 ) AS col2 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT ALL + - col1 * col2 * - col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT 48 * col1 AS col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT + + col2 * cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - - col0 * col2 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT 94 + col0 * col2 + - col2 AS col1 FROM tab1 AS cor0
----
202
3685
7678
query I rowsort
SELECT DISTINCT + 44 + cor0.col0 AS col1 FROM tab0 AS cor0
----
133
68
79
query I rowsort
SELECT DISTINCT + + col0 * + col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + col2 * col0 * - col0 - col0 FROM tab0 AS cor0
----
-1260
-19032
-649611
query I rowsort
SELECT - + 97 * + col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT col0 - - col0 AS col1 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1577
SELECT ALL col2 DIV 16 FROM tab0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL col2 / 16 FROM tab0
----
0
2
5
query I rowsort
SELECT col2 * + 57 * col2 AS col1 FROM tab2 AS cor0
----
38532
41553
82308
query I rowsort
SELECT col0 * + col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + - col2 + 36 * col1 AS col2 FROM tab2 AS cor0
----
1089
2098
574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 col2 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT - col1 * - 76 AS col2 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT 99 + + col0 AS col1 FROM tab2 AS cor0
----
106
177
178
query I rowsort
SELECT ALL + - col0 + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + - col0 + 42 AS col1 FROM tab0 AS cor0
----
-47
18
7
query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col0 * - 62 - - col1 AS col2 FROM tab1 AS cor0
----
-160
-3958
-4947
query I rowsort
SELECT ALL - ( + 73 ) + - col0 FROM tab0 AS cor0
----
-108
-162
-97
query I rowsort
SELECT DISTINCT + 19 + col0 AS col1 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT - 45 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1388
-262
-4647
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col0 * + 43 FROM tab2
----
-301
-3354
-3397
query I rowsort
SELECT DISTINCT - 51 FROM tab0, tab1 AS cor0
----
-51
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * + CAST ( + col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col2 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 + + 98 FROM tab2 cor0
----
132
202
215
query I rowsort
SELECT ALL col2 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT - + col1 + - ( col0 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + - col1 * 13 AS col1 FROM tab2 AS cor0
----
-221
-403
-767
query I rowsort
SELECT ALL + + col1 + + 81 FROM tab0 AS cor0
----
167
172
178
query I rowsort
SELECT DISTINCT - col1 * col1 - 10 * - col2 * + ( 14 * - col2 ) FROM tab0 AS cor0
----
-159856
-949641
-9549
query I rowsort
SELECT DISTINCT - 15 * 84 AS col0 FROM tab1 AS cor0
----
-1260
query I rowsort
SELECT - 93 * - col0 AS col0 FROM tab2 cor0
----
651
7254
7347
query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - 20 + col1 AS col1 FROM tab0 AS cor0
----
66
71
77
query I rowsort
SELECT + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT DISTINCT - col2 DIV - col2 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - col2 / - col2 AS col2 FROM tab1
----
1
query I rowsort
SELECT ALL + - 8 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + cor1.col0 * 13 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to 9cd65e99729d394efee07d0bb04b94d3
query I rowsort
SELECT ALL col1 * - 90 FROM tab0 AS cor0
----
-7740
-8190
-8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab1 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL + + 25 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1015
-53
-615
onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT ALL 65 DIV tab1.col0 + - col0 FROM tab1
----
-63
-80
18
skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL 65 / tab1.col0 + - col0 FROM tab1
----
-63
-80
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT - col2 DIV col0 + ( + 30 + cor0.col2 ) FROM tab2 AS cor0
----
54
56
68
skipif mysql # not compatible
query I rowsort label-1615
SELECT - col2 / col0 + ( + 30 + cor0.col2 ) FROM tab2 AS cor0
----
54
56
68
query I rowsort
SELECT DISTINCT col2 * col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL - 34 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT - ( - col2 ) - 86 FROM tab1 AS cor0
----
-29
-32
10
query I rowsort
SELECT ALL 88 AS col1 FROM tab1 cor0
----
88
88
88
query I rowsort
SELECT ALL - + ( + col2 ) + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 * col2 - + col0 * - 37 FROM tab1 AS cor0
----
10640
273
6016
query I rowsort
SELECT + - col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col0 * - col2 * - 92 AS col1 FROM tab1 AS cor0
----
14904
335616
706560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1624
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * - 81 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * - 81 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT DISTINCT col2 + + col0 DIV + col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT col2 + + col0 / + col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col0 + - 58 AS col2 FROM tab1 AS cor0
----
-55
22
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1628
SELECT - col2 * + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-1628
SELECT - col2 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 - 61 * col1 AS col2 FROM tab0 cor0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT - col1 * - col0 * 6 + + col2 FROM tab1 AS cor0
----
3897
522
6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT 23 DIV tab2.col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1631
SELECT 23 / tab2.col0 FROM tab2
----
0
0
3
query I rowsort
SELECT 41 * + col1 + - col1 AS col0 FROM tab2
----
1240
2360
680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 + - col1 * col1 * + tab0.col2 col2 FROM tab0
----
-244015
-678989
-9356
query I rowsort
SELECT + col1 + - col1 * ( + col0 ) FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT - 79 + col1 FROM tab1
----
-53
-66
-69
query I rowsort
SELECT - 77 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT - 59 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT - + col0 * 94 AS col0 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT ALL + col1 - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - + col1 - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 * ( col0 ) - col2 * + col2 * + 95 AS col1 FROM tab1 AS cor0
----
-277098
-309295
-876560
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23
query I rowsort
SELECT - col1 * + col1 * col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab1.col0 * col0 col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT + col1 + + col2 * 19 AS col2 FROM tab1
----
1052
1093
1837
query I rowsort
SELECT col0 + + 78 FROM tab1 AS cor0
----
142
158
81
query I rowsort
SELECT - col2 * 19 + - col2 FROM tab2 AS cor0
----
-520
-540
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1648
SELECT - - CAST( NULL AS DECIMAL ) + col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1648
SELECT - - CAST ( NULL AS REAL ) + col2 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 0 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT + col1 DIV - 21 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1650
SELECT + col1 / - 21 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL col1 * - 3 * - col2 AS col2 FROM tab2
----
1938
2511
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT ALL col0 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL col0 / col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1653
SELECT ALL CAST( - col1 * col0 + + 92 AS SIGNED ) FROM tab2
----
-125
-1251
-4510
skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL CAST ( - col1 * col0 + + 92 AS INTEGER ) FROM tab2
----
-125
-1251
-4510
query I rowsort
SELECT 60 + col1 * col2 FROM tab0
----
157
2898
7522
query I rowsort
SELECT + + 19 * - cor0.col2 * + 4 AS col1 FROM tab0 AS cor0
----
-2508
-6232
-76
query I rowsort
SELECT - cor1.col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT + CAST( NULL AS SIGNED ) + 43 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1657
SELECT + CAST ( NULL AS INTEGER ) + 43 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 17 AS col1 FROM tab2
----
17
17
17
query I rowsort
SELECT + ( cor1.col2 ) AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - + col2 + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - 17 + - col2 FROM tab0 AS cor0
----
-18
-50
-99
query I rowsort
SELECT + + col1 * col1 * - 47 AS col0 FROM tab2 cor0
----
-13583
-163607
-45167
query I rowsort
SELECT + - 32 FROM tab1 cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL - + 92 AS col1 FROM tab0 cor0
----
-92
-92
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT - col1 + + cor0.col1 DIV ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-1666
SELECT - col1 + + cor0.col1 / ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT ALL - col0 * - col2 + - 81 AS col2 FROM tab0 AS cor0
----
-46
711
7217
query I rowsort
SELECT DISTINCT col0 - - col2 * col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT + tab2.col2 * col1 + col2 + + col0 FROM tab2
----
1638
763
871
query I rowsort
SELECT + col2 + + col0 - - col0 FROM tab2
----
182
196
41
query I rowsort
SELECT col0 + - col0 + col1 * - col2 * col0 AS col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT col1 + + col1 * + tab2.col1 FROM tab2
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT ALL + col2 - col0 DIV col1 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + col2 - col0 / col1 FROM tab2
----
25
27
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT - col0 DIV col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-1674
SELECT - col0 / col1 + col0 AS col2 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT ALL + col2 + + col2 * + col0 AS col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
17635
19714
54889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + cor0.col1 * col1 * - cor0.col0 col0 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT + + col2 + + col0 * col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - - col1 * col2 - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col1 - cor0.col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col0 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-1683
SELECT ALL + col0 DIV + col0 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL + col0 / + col0 AS col0 FROM tab2 cor0
----
1
1
1
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 / col1 + col1 IN ( + col0 + col2 ) OR NOT ( NULL ) < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT DISTINCT col1 * + col1 * col0 + col2 DIV col2 FROM tab0 AS cor0
----
177505
329316
737010
skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT col1 * + col1 * col0 + col2 / col2 FROM tab0 AS cor0
----
177505
329316
737010
query I rowsort
SELECT + ( col2 ) AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col0 * col2 * col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + col1 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + col0 + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT + cor0.col0 - col2 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT - + col0 + col0 DIV + col2 FROM tab1 cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-1691
SELECT - + col0 + col0 / + col2 FROM tab1 cor0
----
-3
-63
-80
query I rowsort
SELECT ALL - col1 + + col0 - + col0 * + col0 FROM tab2 AS cor0
----
-6065
-6179
-73
query I rowsort
SELECT DISTINCT col2 * - col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL tab2.col2 + + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col1 + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 * col2 <> ( NULL )
----
query I rowsort
SELECT - tab2.col1 - col2 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col0 * col1 + - col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NOT NULL IN ( col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col2 * + col2 )
----
query I rowsort
SELECT ALL col1 * - tab0.col1 + col0 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT col0 - + col1 * col0 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT - col1 DIV + col1 + + col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - col1 / + col1 + + col2 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT - tab0.col1 - col0 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT col0 + col1 + col1 AS col2 FROM tab1
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT - tab2.col1 DIV col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - tab2.col1 / col0 FROM tab2
----
-4
0
query I rowsort
SELECT col1 FROM tab1 WHERE - col0 - col0 >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 + - tab2.col2 + col0 * col0 col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1709
SELECT ALL tab2.col0 DIV + col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL tab2.col0 / + col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 + + col2 - - col2 * col0 FROM tab2
----
2113
247
3057
onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT DISTINCT + col1 DIV + col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT + col1 / + col0 FROM tab1
----
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1712
SELECT ALL tab2.col1 * col0 DIV + tab2.col1 + - col1 DIV col0 AS col0 FROM tab2
----
3
78
79
skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL tab2.col1 * col0 / + tab2.col1 + - col1 / col0 AS col0 FROM tab2
----
3
78
79
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab1.col1 * col1 col1 FROM tab1
----
164
249
679
query I rowsort
SELECT col1 + + col1 * col0 + tab2.col1 AS col0 FROM tab2
----
1377
279
4720
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT cor0.col0 NOT IN ( - col0 * cor0.col0 + col0 + col0 )
----
query I rowsort
SELECT ALL col2 + col1 * + col2 AS col0 FROM tab0
----
2871
7544
98
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT DISTINCT - tab0.col1 + - col2 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT - tab1.col0 DIV col2 AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1720
SELECT - tab1.col0 / col2 AS col0 FROM tab1
----
-1
0
0
query I rowsort
SELECT DISTINCT + col0 + col0 * - tab1.col1 AS col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT - tab0.col2 * - col2 FROM tab0
----
1
1089
6724
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT 75 * + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
279
4857
6096
query I rowsort
SELECT - + col2 * col1 + 86 + col1 AS col0 FROM tab2 AS cor0
----
-1389
-543
-720
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT ALL + - col2 + - col0 + 50 DIV - col0 col0 FROM tab2 cor0
----
-104
-117
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + - col2 + - col0 + 50 / - col0 col0 FROM tab2 cor0
----
-104
-117
-41
query I rowsort
SELECT DISTINCT col1 + tab2.col0 + col0 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT - col0 DIV col0 + - col0 AS col1 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-1730
SELECT - col0 / col0 + - col0 AS col1 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT - col2 * - 10 AS col1 FROM tab1
----
540
570
960
query I rowsort
SELECT - col1 * - 13 FROM tab0
----
1118
1183
1261
query I rowsort
SELECT ALL 43 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1386
260
4645
query I rowsort
SELECT ALL + 53 * - col2 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT DISTINCT + 56 * col1 FROM tab1 cor0
----
1456
560
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1737
SELECT DISTINCT - 92 * col0 + + CAST( + col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1481
-7914
-8710
skipif mysql # not compatible
query I rowsort label-1737
SELECT DISTINCT - 92 * col0 + + CAST ( + col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1481
-7914
-8710
query I rowsort
SELECT + - col1 + col1 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2 AS cor0
----
60
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to a02dd7564e9916176c021434a3977a05
query I rowsort
SELECT - col1 * + 25 AS col1 FROM tab2 AS cor0
----
-1475
-425
-775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1742
SELECT - col1 + CAST( col2 AS SIGNED ) col0 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1742
SELECT - col1 + CAST ( col2 AS INTEGER ) col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL + cor0.col0 + - col1 - 98 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
5269
5640
9475
query I rowsort
SELECT ALL + col2 + + ( 63 ) AS col0 FROM tab1 AS cor0
----
117
120
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-1745
SELECT - 8 DIV tab2.col0 col1 FROM tab2
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1745
SELECT - 8 / tab2.col0 col1 FROM tab2
----
-1
0
0
query I rowsort
SELECT col0 * col0 + + col1 * - cor0.col0 * - col1 FROM tab1 AS cor0
----
10496
19920
2037
query I rowsort
SELECT 11 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT + 36 + col2 AS col1 FROM tab2 AS cor0
----
62
63
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT + 67 DIV col1 AS col1 FROM tab1
----
2
5
6
skipif mysql # not compatible
query I rowsort label-1749
SELECT + 67 / col1 AS col1 FROM tab1
----
2
5
6
query I rowsort
SELECT 90 * 27 AS col1 FROM tab2
----
2430
2430
2430
query I rowsort
SELECT DISTINCT + ( + ( tab0.col0 ) ) + + ( 81 ) + tab0.col2 FROM tab0
----
117
138
252
query I rowsort
SELECT DISTINCT + 25 * col1 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT + - 75 + + ( + cor0.col1 ) FROM tab0 AS cor0
----
11
16
22
query I rowsort
SELECT DISTINCT - cor0.col0 * - 91 + + col1 FROM tab1 AS cor0
----
299
5834
7293
onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT - - col0 DIV col2 - col2 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-1755
SELECT - - col0 / col2 - col2 FROM tab1 AS cor0
----
-54
-56
-96
query I rowsort
SELECT - ( + col1 ) - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + 90 + col1 AS col1 FROM tab0 AS cor0
----
176
181
187
query I rowsort
SELECT - ( - ( + cor0.col2 ) ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col0 * + 2 + col1 FROM tab0 AS cor0
----
134
167
269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col1 + - col0 col0 FROM tab2 AS cor0
----
131
3325
947
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-1764
SELECT + 0 DIV col1 - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1764
SELECT + 0 / col1 - col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1765
SELECT - 17 DIV - col2 + 34 FROM tab0 AS cor0
----
34
34
51
skipif mysql # not compatible
query I rowsort label-1765
SELECT - 17 / - col2 + 34 FROM tab0 AS cor0
----
34
34
51
query I rowsort
SELECT ALL - - col1 + - 55 * 76 FROM tab2 AS cor0
----
-4121
-4149
-4163
query I rowsort
SELECT ALL - col1 + 45 * - col0 FROM tab2 AS cor0
----
-346
-3569
-3572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1768
SELECT - col2 + + CAST( NULL AS DECIMAL ) * - 25 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1768
SELECT - col2 + + CAST ( NULL AS REAL ) * - 25 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - 86 * col0 + cor0.col2 FROM tab2 cor0
----
-582
-6760
-6835
query I rowsort
SELECT - + 74 AS col1 FROM tab2 AS cor0
----
-74
-74
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1771
SELECT - CAST( + cor0.col1 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-1771
SELECT - CAST ( + cor0.col1 AS INTEGER ) * 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-1772
SELECT - + tab2.col2 * + CAST( NULL AS SIGNED ) FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1772
SELECT - + tab2.col2 * + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - tab1.col1 + - 44 AS col2 FROM tab1
----
-54
-57
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1774
SELECT ALL + col1 * CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + col1 * CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT + col1 DIV - 26 + col2 FROM tab1
----
53
57
96
skipif mysql # not compatible
query I rowsort label-1775
SELECT + col1 / - 26 + col2 FROM tab1
----
53
57
96
query I rowsort
SELECT ALL + col0 + - col2 * - 44 FROM tab0 AS cor0
----
1476
3697
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT ALL - col2 * cor0.col0 DIV + col1 FROM tab2 AS cor0
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - col2 * cor0.col0 / + col1 FROM tab2 AS cor0
----
-176
-34
-6
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - + col2 * - cor0.col1 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
16237
36530
5710
query I rowsort
SELECT col1 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col2 * + 54 AS col0 FROM tab1 AS cor0
----
2916
3078
5184
onlyif mysql # use DIV operator for integer division
query I rowsort label-1782
SELECT DISTINCT col1 DIV 71 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1782
SELECT DISTINCT col1 / 71 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM tab1
----
18
18
18
query I rowsort
SELECT DISTINCT - 73 FROM tab1, tab2 AS cor0
----
-73
query I rowsort
SELECT ALL + tab2.col0 - ( - col2 ) AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - tab2.col2 * + 56 + - col2 FROM tab2
----
-1482
-1539
-2166
query I rowsort
SELECT - 55 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL col1 - ( col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT + 29 * 86 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c0b376e72ad14ae0e7e4a847dc518c90
query I rowsort
SELECT + col2 - + 63 * col1 FROM tab2 AS cor0
----
-1033
-1926
-3691
query I rowsort
SELECT ALL 76 FROM tab0, tab1 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL col0 * 3 FROM tab2
----
21
234
237
query I rowsort
SELECT DISTINCT - 95 + + 40 FROM tab0
----
-55
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 AS cor0, tab2 cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT - col1 * - col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT 47 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1797
SELECT 47 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT + - col0 + - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1798
SELECT + - col0 + - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 72 FROM tab0 AS cor0
----
-72
query I rowsort
SELECT ALL - - col1 * + col0 + col1 * col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT - - 89 AS col0 FROM tab2 cor0
----
89
89
89
query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col1 + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - - 9 AS col0 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1
----
15
query I rowsort
SELECT ALL + col2 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + col2 + col0 * + col1 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT 58 * - col0 FROM tab2 cor0
----
-406
-4524
-4582
query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col2 * + 19 * cor0.col2 FROM tab1 AS cor0
----
175104
55404
61731
query I rowsort
SELECT ALL + col2 * + col1 + col0 + col0 FROM tab2 AS cor0
----
1690
804
851
query I rowsort
SELECT ALL - col1 + ( col0 ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col1 * + 25 * col2 AS col0 FROM tab1 AS cor0
----
14250
31200
35100
query I rowsort
SELECT + col0 * 47 AS col2 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT ALL + - col2 * 3 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT ALL + + col0 + 76 FROM tab2 AS cor0
----
154
155
83
query I rowsort
SELECT - col2 * 27 FROM tab0 cor0
----
-2214
-27
-891
query I rowsort
SELECT + 68 + + col1 FROM tab1
----
78
81
94
query I rowsort
SELECT DISTINCT - 74 FROM tab0
----
-74
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 AS cor0, tab1 cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT col2 * col2 - + col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - - col0 * 33 AS col0 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT ALL cor0.col0 + + 52 AS col0 FROM tab1 AS cor0
----
116
132
55
query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 * col1 + - cor0.col1 FROM tab2 AS cor0
----
22814
271459
6696
query I rowsort
SELECT ALL 24 * + col2 - + col1 AS col1 FROM tab2 cor0
----
565
617
895
query I rowsort
SELECT cor0.col2 * 3 * col0 FROM tab2 AS cor0
----
567
6084
9006
query I rowsort
SELECT ALL - - cor0.col0 * - 32 - - col2 FROM tab0 AS cor0
----
-1119
-2766
-735
query I rowsort
SELECT + col0 + ( + col1 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + 40 * - cor0.col2 + + col0 AS col2 FROM tab2 cor0
----
-1073
-1441
-962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - - 56 * - col2 AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT + - col0 * col0 DIV col1 FROM tab2 AS cor0
----
-1
-103
-367
skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + - col0 * col0 / col1 FROM tab2 AS cor0
----
-1
-103
-367
query I rowsort
SELECT - ( 76 ) * - col0 FROM tab2
----
532
5928
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT - 84 * + col1 + + col0 DIV 21 AS col0 FROM tab0 AS cor0
----
-7223
-7640
-8147
skipif mysql # not compatible
query I rowsort label-1836
SELECT - 84 * + col1 + + col0 / 21 AS col0 FROM tab0 AS cor0
----
-7223
-7640
-8147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1837
SELECT - CAST( ( + col1 ) AS SIGNED ) - ( col2 ) FROM tab1 cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-1837
SELECT - CAST ( ( + col1 ) AS INTEGER ) - ( col2 ) FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 52 * cor0.col0 + + col0 * col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 52 * cor0.col0 + + col0 * col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + ( + col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 40 * - col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT ALL + - col2 * ( col0 ) + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT 46 * ( col1 ) FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT ALL 15 * 27 AS col0 FROM tab2 AS cor0
----
405
405
405
onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT ALL - + col2 * + col1 DIV + cor0.col1 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL - + col2 * + col1 / + cor0.col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * 84 - - col1 FROM tab2 AS cor0
----
2243
2299
3209
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 cor0
----
17
31
59
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
3645 values hashing to 1751d8ec783486b9121baa2709745253
query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * - col2 + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
15479
2889
3431
skipif mysql # not compatible
query I rowsort
SELECT - col0 + + CAST ( col0 * col1 AS REAL ) FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - + cor0.col2 + col1 * 7 FROM tab2 cor0
----
190
387
81
query I rowsort
SELECT - cor0.col1 * - ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + cor0.col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT col2 * - col0 - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL + - col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + col2 * ( - col1 + + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1860
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + 73 / + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + 73 / + col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col0 * + col1 - 76 FROM tab2 AS cor0
----
-1419
-293
-4678
query I rowsort
SELECT ALL - col1 - 65 FROM tab1 AS cor0
----
-75
-78
-91
query I rowsort
SELECT - + col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL 50 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + col2 * ( - 38 ) AS col2 FROM tab1 AS cor0
----
-2052
-2166
-3648
query I rowsort
SELECT DISTINCT col0 + + col0 * + 43 FROM tab2 AS cor0
----
308
3432
3476
query I rowsort
SELECT - - col0 + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col0 * + 53 FROM tab1 AS cor0
----
-159
-3392
-4240
query I rowsort
SELECT 11 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
149
314
623
query I rowsort
SELECT DISTINCT 90 * col1 FROM tab0 AS cor0
----
7740
8190
8730
query I rowsort
SELECT - + 4 * col2 * - col1 FROM tab0 AS cor0
----
11352
29848
388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 61 * col0 FROM tab2 cor0
----
427
4758
4819
query I rowsort
SELECT - ( 40 ) * col1 FROM tab1
----
-1040
-400
-520
query I rowsort
SELECT tab0.col1 * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe
query I rowsort
SELECT - 83 + + col2 AS col1 FROM tab0
----
-1
-50
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT ALL + ( ( - tab1.col0 ) ) DIV + ( 72 ) AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL + ( ( - tab1.col0 ) ) / + ( 72 ) AS col2 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT 49 + + col1 DIV 89 FROM tab0
----
49
50
50
skipif mysql # not compatible
query I rowsort label-1878
SELECT 49 + + col1 / 89 FROM tab0
----
49
50
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * col2 col2 FROM tab1
----
-2754
-2907
-4896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT DISTINCT - ( col1 + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - ( col1 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT col0 * col2 + 41 AS col0 FROM tab0
----
7339
76
833
query I rowsort
SELECT col0 * col1 * col2 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + 45 * + col2 AS col0 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT - 49 * + col0 AS col0 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT + - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT col1 DIV ( col0 ) col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1886
SELECT col1 / ( col0 ) col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
93
query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT + cor0.col1 * col0 DIV col0 + col1 AS col2 FROM tab1 cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-1889
SELECT + cor0.col1 * col0 / col0 + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - 16 * + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 769d27922d225e3f1c26527810e15e46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1891
SELECT ALL + tab0.col2 * CAST( NULL AS SIGNED ) / 95 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + tab0.col2 * CAST ( NULL AS INTEGER ) / 95 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1892
SELECT ALL col0 * + CAST( + 59 AS SIGNED ) AS col2 FROM tab0
----
1416
2065
5251
skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL col0 * + CAST ( + 59 AS INTEGER ) AS col2 FROM tab0
----
1416
2065
5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + ( - col0 ) col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT 28 * cor0.col2 FROM tab0, tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT + 21 * + ( col0 ) AS col1 FROM tab1
----
1344
1680
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT - - 80 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1896
SELECT - - 80 / col1 + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col1 * ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 85 - 40 FROM tab2 cor0
----
45
query I rowsort
SELECT - 90 * col0 - col0 FROM tab1 AS cor0
----
-273
-5824
-7280
query I rowsort
SELECT ( col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT DISTINCT + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT DISTINCT - ( col0 ) + - ( + 63 ) * + col2 AS col2 FROM tab1 AS cor0
----
-3405
-3655
-6128
query I rowsort
SELECT - + ( col2 ) + ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 34 * - cor0.col1 FROM tab0 cor0
----
2924
3094
3298
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * + col1 * + col2 col2 FROM tab2 AS cor0
----
22630
24565
39943
query I rowsort
SELECT - 96 + - cor0.col1 * col2 AS col2 FROM tab1 cor0
----
-1344
-1500
-666
query I rowsort
SELECT + col0 + + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + ( col1 ) + + cor0.col2 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - ( + col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT - - 48 * col1 FROM tab0 AS cor0
----
4128
4368
4656
query I rowsort
SELECT ALL + 40 * col1 * - 6 + col2 * + cor0.col0 FROM tab1 AS cor0
----
-6078
1248
4560
query I rowsort
SELECT ALL + ( - col2 ) * tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - ( - col1 ) * col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT - col0 * - col1 * + col2 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col2 * 88 FROM tab1 AS cor0
----
-4752
-5016
-8448
query I rowsort
SELECT ALL col2 * - 46 FROM tab1 AS cor0
----
-2484
-2622
-4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT ALL - + col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - + col1 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + col1 + + 4 AS col2 FROM tab1 AS cor0
----
24
30
56
query I rowsort
SELECT + + tab2.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL ( col0 + - col0 ) FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - tab1.col0 * col1 * + col1 AS col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT ALL + col1 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL + col1 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT cor0.col1 * ( - cor0.col1 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 38f503ad6f93db2d1a70a8c95bb8c2c2
query I rowsort
SELECT - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to f1b2d4fe76c1d323cc1ffd93b2fcab89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1927
SELECT cor0.col0 + CAST( 69 AS SIGNED ) + col0 * + 68 col0 FROM tab2 AS cor0
----
5451
552
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1927
SELECT cor0.col0 + CAST ( 69 AS INTEGER ) + col0 * + 68 col0 FROM tab2 AS cor0
----
5451
552
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - ( + ( col2 ) ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT - cor0.col2 DIV 93 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-1929
SELECT - cor0.col2 / 93 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 * col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
-3526
-5152
1395
query I rowsort
SELECT + tab2.col0 + 96 FROM tab2
----
103
174
175
onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT + col1 * col0 + ( col2 ) DIV col2 - + col2 DIV - tab0.col0 AS col0 FROM tab0
----
2066
3396
8100
skipif mysql # not compatible
query I rowsort label-1932
SELECT + col1 * col0 + ( col2 ) / col2 - + col2 / - tab0.col0 AS col0 FROM tab0
----
2066
3396
8100
query I rowsort
SELECT - col0 * tab0.col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT DISTINCT col0 DIV col1 + - tab2.col1 + + col0 FROM tab2
----
-24
20
66
skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT col0 / col1 + - tab2.col1 + + col0 FROM tab2
----
-24
20
66
query I rowsort
SELECT ALL + col0 * + 52 + + col2 * col2 AS col0 FROM tab0
----
11352
1821
2337
onlyif mysql # use DIV operator for integer division
query I rowsort label-1936
SELECT + - col1 - - col1 DIV - cor0.col2 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-1936
SELECT + - col1 - - col1 / - cor0.col2 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT DISTINCT col2 * col0 + col0 - col1 AS col2 FROM tab2 cor0
----
165
2047
3064
onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT DISTINCT tab2.col2 + + col1 DIV 13 AS col0 FROM tab2
----
29
30
39
skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT tab2.col2 + + col1 / 13 AS col0 FROM tab2
----
29
30
39
query I rowsort
SELECT col0 + - tab1.col1 + col1 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + - 65 FROM tab2
----
-27
-38
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-1941
SELECT DISTINCT col0 DIV tab0.col0 + ( col1 ) FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT col0 / tab0.col0 + ( col1 ) FROM tab0
----
87
92
98
query I rowsort
SELECT ALL - - 40 FROM tab1 AS cor0
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT + col2 DIV 98 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1943
SELECT + col2 / 98 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * 88 AS col1 FROM tab1 cor0
----
-1144
-2288
-880
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT - + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1945
SELECT - + col1 / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col0 * + 29 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT DISTINCT 0 + + 9 AS col1 FROM tab1 cor0
----
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1948
SELECT cor0.col1 + col0 * col2 + + CAST( col1 + col0 AS SIGNED ) FROM tab2 AS cor0
----
2224
258
3115
skipif mysql # not compatible
query I rowsort label-1948
SELECT cor0.col1 + col0 * col2 + + CAST ( col1 + col0 AS INTEGER ) FROM tab2 AS cor0
----
2224
258
3115
query I rowsort
SELECT ALL + + ( 70 ) FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT tab1.col2 + col1 * + col0 * col0 FROM tab1
----
288
41017
83296
query I rowsort
SELECT 95 AS col2 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT ALL - - col0 * col0 * col2 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL 42 + 57 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT + ( 99 ) AS col2 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT DISTINCT - ( + 0 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT - cor0.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-1958
SELECT - CAST( + col2 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1958
SELECT - CAST ( + col2 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT ALL col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ( - 84 ) * col1 + + 7 AS col2 FROM tab1 AS cor0
----
-1085
-2177
-833
query I rowsort
SELECT DISTINCT + + cor0.col0 + 69 AS col2 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT ALL - + col2 * 28 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT - 77 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-1271
-2360
-4517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - col0 * 41 col0 FROM tab1 cor0
----
-1527
-3194
-4528
query I rowsort
SELECT DISTINCT + - 55 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-1287
-1924
-4813
query I rowsort
SELECT DISTINCT - col1 - col2 * 99 AS col0 FROM tab2
----
-2633
-2704
-3779
query I rowsort
SELECT + 41 * col0 AS col0 FROM tab2 AS cor0
----
287
3198
3239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + col2 * + 45 col0 FROM tab2 AS cor0
----
1200
1245
1740
query I rowsort
SELECT DISTINCT - + col0 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - col0 + + col2 * + 80 * + col2 FROM tab2 AS cor0
----
115441
54002
58313
query I rowsort
SELECT ALL - - cor0.col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT DISTINCT + col2 + col2 * col2 DIV 64 + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
100
108
241
skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT + col2 + col2 * col2 / 64 + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
100
108
241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + col1 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1975
SELECT DISTINCT - col2 * - col1 + 4 DIV col2 FROM tab0 AS cor0
----
101
2838
7462
skipif mysql # not compatible
query I rowsort label-1975
SELECT DISTINCT - col2 * - col1 + 4 / col2 FROM tab0 AS cor0
----
101
2838
7462
query I rowsort
SELECT - + col2 - - ( col1 + + col2 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + + col0 + 87 * col2 + cor0.col0 * cor0.col2 FROM tab0 cor0
----
14521
157
3687
query I rowsort
SELECT DISTINCT - + col2 * col0 + col2 * + col2 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT - 9 * col2 + col1 * col1 FROM tab1
----
-413
-695
190
query I rowsort
SELECT DISTINCT 50 * col1 - + col1 AS col1 FROM tab2
----
1519
2891
833
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
64
query I rowsort
SELECT ALL - ( col0 * 48 ) FROM tab2
----
-336
-3744
-3792
query I rowsort
SELECT DISTINCT - 90 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-90
query I rowsort
SELECT ALL - - 67 + cor0.col1 * 89 FROM tab2 AS cor0
----
1580
2826
5318
query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2
----
92
query I rowsort
SELECT - col1 + - 25 FROM tab1 AS cor0
----
-35
-38
-51
query I rowsort
SELECT + - col1 * 93 FROM tab0 AS cor0
----
-7998
-8463
-9021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1988
SELECT ALL - cor0.col0 * + CAST( 63 + + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-267
-4672
-6080
skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - cor0.col0 * + CAST ( 63 + + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-267
-4672
-6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT - - col2 DIV 62 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1989
SELECT - - col2 / 62 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT cor0.col0 DIV col1 col0 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1990
SELECT cor0.col0 / col1 col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + col0 + - col2 * col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT - col1 * col1 + tab0.col2 AS col0 FROM tab0
----
-7363
-8199
-9408
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT col0 * - col2 + col2 * col1 * tab0.col0 FROM tab0
----
3360
656820
67320
onlyif mysql # use DIV operator for integer division
query III rowsort label-1996
SELECT DISTINCT * FROM tab0 WHERE NOT col2 DIV col0 + col0 NOT IN ( col0 )
----
35
97
1
89
91
82
skipif mysql # not compatible
query III rowsort label-1996
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / col0 + col0 NOT IN ( col0 )
----
35
97
1
89
91
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + col0 + col1 DIV + col1 col2 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1997
SELECT + col0 + col1 / + col1 col2 FROM tab2
----
79
8
80
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND ( NULL )
----
query I rowsort
SELECT ALL col0 * col0 * + col0 AS col2 FROM tab2
----
343
474552
493039
query I rowsort
SELECT ALL col1 + col1 - col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + col0 * col2 * col2 + - tab1.col0 * col1 + col0 * - col1 FROM tab1
----
206656
735200
8592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 + col0 col0 FROM tab1
----
121
176
57
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 BETWEEN - col1 * + col0 / + col1 AND col0 + - col0
----
query I rowsort
SELECT - tab2.col2 * + col0 - col1 * col0 AS col0 FROM tab2
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - - ( col0 ) + - 25 AS col1 FROM tab0 AS cor0
----
-1
10
64
query I rowsort
SELECT - 38 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT + 42 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2011
SELECT + 42 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col2 * col0 + + col2 AS col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT - col0 * - col0 + + tab1.col2 / col0 AS col1 FROM tab1 WHERE NOT + col1 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + col2 col2 FROM tab0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 80 + col2 col0 FROM tab2 AS cor0
----
106
107
118
query I rowsort
SELECT + col1 + + col1 + - 60 FROM tab2 AS cor0
----
-26
2
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT col2 + col0 DIV - ( + col0 ) AS col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2018
SELECT col2 + col0 / - ( + col0 ) AS col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - + 44 * col0 + col0 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT - 88 * col2 + col2 FROM tab0 AS cor0
----
-2871
-7134
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col1 * - 27 * - col2 FROM tab2
----
17442
22599
41418
query I rowsort
SELECT 30 * - 53 AS col1 FROM tab1
----
-1590
-1590
-1590
query I rowsort
SELECT + - 12 FROM tab0 cor0
----
-12
-12
-12
query I rowsort
SELECT col2 * cor0.col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT 46 * col2 AS col2 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT - col0 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT col1 * + 67 AS col2 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT ( 42 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT + col2 * col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT ALL - 51 + - col0 FROM tab1
----
-115
-131
-54
query I rowsort
SELECT ALL col2 * - ( + col1 ) + col0 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col1 + + ( tab2.col2 * col0 ) AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - 90 * 3 - col0 FROM tab0 AS cor0
----
-294
-305
-359
query I rowsort
SELECT - 75 * col1 * col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-100708
-16244
-345091
query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT - col1 DIV + ( - col0 ) FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2038
SELECT - col1 / + ( - col0 ) FROM tab2
----
0
0
4
query I rowsort
SELECT - - 12 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT + + 87 * + col1 * - col1 + - ( ( col0 ) * - col2 ) FROM tab2 cor0
----
-22141
-300819
-83418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 - 22 * col0 * + ( 21 ) col1 FROM tab1 AS cor0
----
-1466
-29648
-37040
query I rowsort
SELECT - 29 - + col2 AS col2 FROM tab2 AS cor0
----
-55
-56
-67
query I rowsort
SELECT col2 * - 50 AS col1 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT ALL - 43 + col0 AS col0 FROM tab2
----
-36
35
36
query I rowsort
SELECT ALL - col1 + col2 * col0 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT ALL - - 39 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-15
-18
-57
query I rowsort
SELECT - + 3 AS col2 FROM tab1 cor0
----
-3
-3
-3
query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab1 AS cor0
----
-6
query I rowsort
SELECT - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + col2 * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT col1 DIV - col2 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-2052
SELECT col1 / - col2 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + cor0.col1 * - col0 * + col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT cor0.col0 * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - 18 + col1 AS col0 FROM tab2
----
-1
13
41
query I rowsort
SELECT DISTINCT col1 * col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + 18 * + col1 - - col2 AS col1 FROM tab0 AS cor0
----
1581
1720
1747
query I rowsort
SELECT - 34 * col0 - + col2 FROM tab2 AS cor0
----
-265
-2678
-2724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT + CAST( - 82 AS SIGNED ) - - col2 AS col1 FROM tab1 AS cor0
----
-25
-28
14
skipif mysql # not compatible
query I rowsort label-2060
SELECT + CAST ( - 82 AS INTEGER ) - - col2 AS col1 FROM tab1 AS cor0
----
-25
-28
14
query I rowsort
SELECT DISTINCT - col1 - 95 * + col0 FROM tab1
----
-311
-6090
-7613
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 * - col2 - + col2 FROM tab1 AS cor0
----
-233529
-540
-614496
query I rowsort
SELECT ALL + 86 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT DISTINCT 75 + + col1 - col2 AS col2 FROM tab0 AS cor0
----
128
171
84
query I rowsort
SELECT ALL - 41 * 35 AS col0 FROM tab2 AS cor0
----
-1435
-1435
-1435
onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT ALL col1 * - cor0.col2 * - col1 + - cor0.col2 DIV + col2 + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
16223
36503
5699
skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL col1 * - cor0.col2 * - col1 + - cor0.col2 / + col2 + col1 / + col2 AS col0 FROM tab1 AS cor0
----
16223
36503
5699
query I rowsort
SELECT DISTINCT + 2 + col2 * - cor0.col2 * - col2 FROM tab2 cor0
----
17578
19685
54874
query I rowsort
SELECT DISTINCT - cor0.col0 - + col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + + col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL ( + col2 ) - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * - cor0.col0 + + col1 * col2 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT - - cor0.col0 + + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 92 * + col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT ALL - col0 - col0 * - tab1.col0 * + col2 FROM tab1
----
233408
483
614320
query I rowsort
SELECT ALL 11 - + col2 FROM tab0
----
-22
-71
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT - col0 * col1 + col2 DIV col0 - tab2.col0 FROM tab2
----
-1422
-221
-4680
skipif mysql # not compatible
query I rowsort label-2078
SELECT - col0 * col1 + col2 / col0 - tab2.col0 FROM tab2
----
-1422
-221
-4680
query I rowsort
SELECT + 26 * col0 FROM tab1
----
1664
2080
78
query I rowsort
SELECT ALL ( - col0 ) - col1 * col1 AS col2 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT ALL cor0.col2 - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
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 DISTINCT - cor0.col0 * + col1 - - col0 * + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col0 * col2 - col0 * + col0 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT ALL col0 - col1 * col2 * col0 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT - col2 * - col2 - col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT col2 * col2 * - col2 AS col2 FROM tab2
----
-17576
-19683
-54872
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= ( - col1 * + col0 - + col1 )
----
query I rowsort
SELECT col0 * + col0 + col0 AS col0 FROM tab1
----
12
4160
6480
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col1 / col2 - col2 )
----
query I rowsort
SELECT DISTINCT - col2 + col1 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col1 * col2 * - col2 AS col0 FROM tab2
----
22599
24548
39884
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( col0 )
----
query I rowsort
SELECT col2 FROM tab2 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT - tab1.col1 + col2 + + col1 * col2 AS col0 FROM tab1
----
1331
1432
617
query I rowsort
SELECT DISTINCT + col1 + + col1 * + col2 + tab1.col1 FROM tab1
----
1274
1456
590
onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT col0 DIV col1 + + col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-2097
SELECT col0 / col1 + + col0 FROM tab1
----
3
70
86
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT - col1 * col2 DIV col1 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2099
SELECT - col1 * col2 / col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - tab0.col1 * - col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL + tab2.col2 * col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - col0 * tab2.col0 + + col1 + - col2 AS col1 FROM tab2
----
-45
-6051
-6262
query I rowsort
SELECT col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 + col1 * + col2 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + tab2.col1 * - col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 * - col1 + col2 AS col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT tab0.col0 * col2 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - col0 + col2 * - col1 * + col0 AS col0 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT ALL - col2 * tab1.col0 * + col2 AS col0 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT + col0 - + col2 * - col1 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT col0 DIV + col0 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2113
SELECT col0 / + col0 + col1 FROM tab0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT ALL + + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + + col1 / col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + col1 DIV + col0 + + col2 AS col1 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-2117
SELECT + col1 / + col0 + + col2 AS col1 FROM tab0
----
3
36
83
query I rowsort
SELECT DISTINCT col1 * + col1 * col1 FROM tab0
----
636056
753571
912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT - + col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - + col2 / + col1 AS col2 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT DISTINCT col2 * + tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - - col0 * - col1 + col0 * + col2 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT + - col1 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT DISTINCT col2 * - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT col2 * - cor0.col1 / - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 84 * tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to c874d3a5df85f0be15f7aafaecbfbdee
onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT + col0 + + tab2.col2 DIV + 63 AS col2 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-2126
SELECT + col0 + + tab2.col2 / + 63 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + ( + col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT ALL col0 DIV col1 AS col2 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL col0 / col1 AS col2 FROM tab1
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT ALL col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 37 * - col0 FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2131
SELECT ALL + col0 DIV + col0 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL + col0 / + col0 AS col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT + ( 28 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2133
SELECT + ( 28 ) / col1 AS col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + 59 + col0 AS col0 FROM tab2 cor0
----
137
138
66
query I rowsort
SELECT ALL + col1 + 7 * + col0 FROM tab2 AS cor0
----
570
605
80
query I rowsort
SELECT - - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 93 * 86 AS col2 FROM tab1 cor0
----
7998
7998
7998
query I rowsort
SELECT ALL - 68 * + col2 + col2 AS col2 FROM tab0
----
-2211
-5494
-67
query I rowsort
SELECT DISTINCT - 56 + + cor0.col1 * + ( col1 ) + + cor0.col2 * - col0 * col2 FROM tab0 cor0
----
-18796
-590211
9318
query I rowsort
SELECT ALL + col1 * - col2 + 21 + col2 AS col2 FROM tab0 AS cor0
----
-2784
-7359
-75
query I rowsort
SELECT 59 + cor0.col1 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT ALL col1 * + col2 - + ( - 73 ) FROM tab1 AS cor0
----
1321
1477
643
query I rowsort
SELECT DISTINCT + 86 * col1 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL + ( - col0 ) * + col0 + + col1 * + col0 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT ALL - 86 + - col1 FROM tab2 AS cor0
----
-103
-117
-145
query I rowsort
SELECT DISTINCT - + 0 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT ALL col2 * + col1 + - ( col0 ) DIV col0 FROM tab0 cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL col2 * + col1 + - ( col0 ) / col0 FROM tab0 cor0
----
2837
7461
96
query I rowsort
SELECT + col1 * + col2 + 23 AS col2 FROM tab1 AS cor0
----
1271
1427
593
query I rowsort
SELECT DISTINCT + + 75 * col1 + - col0 AS col0 FROM tab0 cor0
----
6426
6736
7240
query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2152
SELECT + col1 / col0 AS col0 FROM tab1 AS cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT - col1 DIV col1 + col1 + col0 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-2153
SELECT - col1 / col1 + col1 + col0 FROM tab0 AS cor0
----
109
131
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT col0 * 83 DIV col1 col2 FROM tab1 AS cor0
----
510
531
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2154
SELECT col0 * 83 / col1 col2 FROM tab1 AS cor0
----
510
531
9
query I rowsort
SELECT DISTINCT col1 + - 5 AS col1 FROM tab2 AS cor0
----
12
26
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT - cor0.col1 * col0 DIV - ( col0 + - 29 ) AS col1 FROM tab0 AS cor0
----
-412
134
565
skipif mysql # not compatible
query I rowsort label-2156
SELECT - cor0.col1 * col0 / - ( col0 + - 29 ) AS col1 FROM tab0 AS cor0
----
-412
134
565
query I rowsort
SELECT - col1 + col2 * col0 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT cor0.col2 - - col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - col1 + - cor0.col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT col1 * - 62 + + ( col1 ) FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT - col2 + 65 FROM tab1 AS cor0
----
-31
11
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + + cor0.col0 col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT - col1 - - 75 DIV - 34 AS col0 FROM tab0 AS cor0
----
-88
-93
-99
skipif mysql # not compatible
query I rowsort label-2163
SELECT - col1 - - 75 / - 34 AS col0 FROM tab0 AS cor0
----
-88
-93
-99
query I rowsort
SELECT ALL + cor0.col1 + - 39 FROM tab0, tab1 AS cor0
----
9 values hashing to b03e0a9c3ccb263bd12460e1226c5050
query I rowsort
SELECT ALL + - ( + col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT DISTINCT - 72 + 39 FROM tab1 AS cor0
----
-33
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323
query I rowsort
SELECT DISTINCT 88 FROM tab2, tab2 AS cor0, tab2 cor1
----
88
query I rowsort
SELECT + ( col2 ) + + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - 63 * col1 * - col2 AS col1 FROM tab1 AS cor0
----
35910
78624
88452
query I rowsort
SELECT + col0 * - cor0.col0 + + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 + + col1 * col2 * col1 col2 FROM tab1
----
16234
36514
5710
query I rowsort
SELECT + 59 * col2 FROM tab0
----
1947
4838
59
query I rowsort
SELECT DISTINCT 44 FROM tab1, tab1 AS cor0, tab0 cor1
----
44
query I rowsort
SELECT DISTINCT - - 58 * col1 FROM tab0 cor0
----
4988
5278
5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT DISTINCT + 38 DIV - tab0.col1 FROM tab0, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + 38 / - tab0.col1 FROM tab0, tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT + + ( col1 ) DIV cor0.col0 - + cor0.col2 AS col0 FROM tab2 cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-2178
SELECT + + ( col1 ) / cor0.col0 - + cor0.col2 AS col0 FROM tab2 cor0
----
-23
-26
-38
query I rowsort
SELECT - + 54 - 95 * cor0.col1 FROM tab1 AS cor0
----
-1004
-1289
-2524
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0, tab2 cor1 WHERE NULL > NULL
----
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT col2 * + col2 + ( col0 ) * col1 + - col2 AS col2 FROM tab0 cor0
----
14741
3120
3395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col1 * + col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + 8 - cor0.col2 FROM tab1 AS cor0
----
-46
-49
-88
query I rowsort
SELECT DISTINCT 84 + - col0 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT - - col2 + ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT DISTINCT - cor0.col2 DIV + tab0.col2 FROM tab0, tab1 AS cor0
----
-1
-2
-54
-57
-96
0
skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - cor0.col2 / + tab0.col2 FROM tab0, tab1 AS cor0
----
-1
-2
-54
-57
-96
0
query I rowsort
SELECT col1 - 84 * - col0 AS col2 FROM tab1
----
278
5386
6733
query I rowsort
SELECT DISTINCT tab0.col2 * 22 AS col0 FROM tab0
----
1804
22
726
query I rowsort
SELECT - 28 + + 41 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col1 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT col2 + - col2 * col1 * + 80 AS col1 FROM tab1 AS cor0
----
-112266
-45543
-99744
query I rowsort
SELECT ALL + + cor0.col0 * - col1 * - cor0.col2 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + ( - col1 ) + - col2 * col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT 91 AS col0 FROM tab0 AS cor0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2197
SELECT DISTINCT ( cor0.col0 ) * col0 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT ( cor0.col0 ) * col0 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - ( - col1 ) ) + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 * col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT + + ( + 36 ) * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-102168
-268632
-3492
query I rowsort
SELECT ALL - 17 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-416
-432
-608
query I rowsort
SELECT ALL + 52 * + col1 + + col0 FROM tab2 cor0
----
1619
3146
963
onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT ALL col0 * - col2 + + col2 DIV - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL col0 * - col2 + + col2 / - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - 38 * + 33 FROM tab0 AS cor0
----
-1254
-1254
-1254
query I rowsort
SELECT ALL + - col1 + col1 + - cor0.col0 * 34 FROM tab2 cor0
----
-238
-2652
-2686
query I rowsort
SELECT DISTINCT + - col0 * col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - ( - col0 * col1 ) FROM tab2
----
1343
217
4602
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 cor0, tab0 AS cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT DISTINCT - col0 DIV - ( col0 + col0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT - col0 / - ( col0 + col0 ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - + ( col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT DISTINCT - col2 DIV + col2 + col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - col2 / + col2 + col1 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT + ( 36 ) FROM tab0 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - 13 * 36 + col0 AS col2 FROM tab2 AS cor0
----
-389
-390
-461
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - 81 FROM tab0
----
-81
-81
-81
query I rowsort
SELECT + + 42 - + col2 FROM tab0 AS cor0
----
-40
41
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT ALL cor0.col1 + col0 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
137
42
96
skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL cor0.col1 + col0 + col1 / col0 AS col1 FROM tab2 AS cor0
----
137
42
96
query I rowsort
SELECT DISTINCT + + col2 + + col2 - 57 AS col1 FROM tab1 AS cor0
----
135
51
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 + col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL + ( - tab1.col1 + tab1.col2 ) FROM tab1
----
28
47
83
query I rowsort
SELECT ALL - ( ( + col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT col0 * 40 + - 51 FROM tab2 AS cor0
----
229
3069
3109
query I rowsort
SELECT DISTINCT + - col1 * ( + col1 + - col1 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col1 * ( col1 ) + cor0.col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + col1 + 64 + col2 FROM tab2 AS cor0
----
119
122
149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT - col1 + + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-2228
SELECT - col1 + + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + - col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT + col0 DIV col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT + col0 / col0 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT ALL + col0 + ( + cor0.col1 ) * col1 * ( + cor0.col2 * - col1 ) FROM tab0 AS cor0
----
-20989824
-61792733
-912638
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT ALL col0 + CAST( + col0 + col2 AS SIGNED ) FROM tab2 cor0
----
182
196
41
skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL col0 + CAST ( + col0 + col2 AS INTEGER ) FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT ALL col2 - + 38 FROM tab2 AS cor0
----
-11
-12
0
query I rowsort
SELECT DISTINCT - col2 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT ALL + 86 + - col2 DIV 69 + - col0 FROM tab2
----
7
79
8
skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + 86 + - col2 / 69 + - col0 FROM tab2
----
7
79
8
query I rowsort
SELECT - 22 + col0 AS col2 FROM tab0
----
13
2
67
query I rowsort
SELECT - tab2.col1 + tab2.col1 - col2 * - col2 * col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT + 24 * - tab2.col1 * + 45 FROM tab2
----
-18360
-33480
-63720
query I rowsort
SELECT col1 * - tab2.col1 * col2 + + 63 AS col0 FROM tab2
----
-10919
-25884
-90443
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2240
SELECT 16 - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2240
SELECT 16 - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 62 * 74 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
4588
query I rowsort
SELECT ALL col1 + - 12 FROM tab1 cor0
----
-2
1
14
query I rowsort
SELECT DISTINCT + - col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col1 + + col0 * + 18 FROM tab2 AS cor0
----
1345
1405
95
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT - col0 + + col1 DIV + 14 AS col0 FROM tab1 AS cor0
----
-2
-64
-80
skipif mysql # not compatible
query I rowsort label-2246
SELECT - col0 + + col1 / + 14 AS col0 FROM tab1 AS cor0
----
-2
-64
-80
query I rowsort
SELECT - - cor0.col1 * + col0 - + 42 * - 73 FROM tab0 AS cor0
----
11165
5130
6461
onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT DISTINCT cor1.col0 DIV + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
0
1
skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT cor1.col0 / + cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
0
1
query I rowsort
SELECT 38 AS col0 FROM tab1
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab2.col0 ) col0 FROM tab2
----
7
78
79
query I rowsort
SELECT + col1 * - 49 FROM tab1 AS cor0
----
-1274
-490
-637
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * - col0 col2 FROM tab0
----
-1155
-2937
-792
query I rowsort
SELECT ALL ( col1 + + col1 ) AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT 21 AS col2 FROM tab2
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col0 FROM tab1
----
79
79
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 * - col1 col1 FROM tab1 cor0
----
360
468
936
query I rowsort
SELECT 92 AS col2 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT ALL - col1 * + ( - 18 ) FROM tab0
----
1548
1638
1746
query I rowsort
SELECT - 6 * 82 FROM tab1, tab0 cor0
----
9 values hashing to 4610a72432c7504e3aeaaf50ce45107a
query I rowsort
SELECT 70 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT col0 + + CAST( col2 AS SIGNED ) FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-2261
SELECT col0 + + CAST ( col2 AS INTEGER ) FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT + 26 * tab2.col0 DIV - col1 AS col1 FROM tab2
----
-120
-34
-5
skipif mysql # not compatible
query I rowsort label-2262
SELECT + 26 * tab2.col0 / - col1 AS col1 FROM tab2
----
-120
-34
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 + + col1 col1 FROM tab0 AS cor0
----
19
24
30
query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0 cor0
----
-24
query I rowsort
SELECT ALL + - col2 * 65 * col1 AS col0 FROM tab2 cor0
----
-41990
-54405
-99710
query I rowsort
SELECT col2 - 70 FROM tab0 AS cor0
----
-37
-69
12
query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2 AS cor0
----
30
query I rowsort
SELECT ALL + - cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + 22 * - col1 AS col2 FROM tab1 cor0
----
-220
-286
-572
query I rowsort
SELECT ALL ( + 89 ) * col2 AS col0 FROM tab1
----
4806
5073
8544
query I rowsort
SELECT ALL 76 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1976
760
988
query I rowsort
SELECT - - 61 - col1 * - col0 FROM tab0 AS cor0
----
2125
3456
8160
query I rowsort
SELECT + cor0.col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + 14 + - col1 * col1 FROM tab0 AS cor0
----
-7382
-8267
-9395
query I rowsort
SELECT ALL + 71 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT - cor0.col0 * tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 02551feb5ca40c11f08ef3f9e9603264
query I rowsort
SELECT DISTINCT + 27 * col2 FROM tab1
----
1458
1539
2592
onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT ALL col1 DIV tab2.col1 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL col1 / tab2.col1 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT + 5 AS col0 FROM tab0
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 65 AS REAL ) col2 FROM tab1, tab0, tab0 cor0
----
65
query I rowsort
SELECT + col0 * - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + - col2 col2 FROM tab2 cor0
----
-84
-85
-96
query I rowsort
SELECT col1 + - col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col0 * - cor0.col2 - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + + cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2287
SELECT + cor0.col2 * col1 DIV - 99 + col2 AS col1 FROM tab2 AS cor0
----
11
19
32
skipif mysql # not compatible
query I rowsort label-2287
SELECT + cor0.col2 * col1 / - 99 + col2 AS col1 FROM tab2 AS cor0
----
11
19
32
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col1 AS col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + 30 + col1 AS col1 FROM tab1 AS cor0
----
40
43
56
query I rowsort
SELECT ALL - - col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - 70 - + col2 * - 14 AS col1 FROM tab0 AS cor0
----
-56
1078
392
query I rowsort
SELECT col1 * cor0.col1 - col1 * col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-60716
-655837
6014
query I rowsort
SELECT + col1 + - 33 FROM tab0 AS cor0
----
53
58
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT col2 + CAST( - 26 + - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-10
-33
25
skipif mysql # not compatible
query I rowsort label-2294
SELECT col2 + CAST ( - 26 + - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-10
-33
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + col2 col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT - col2 DIV - col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2296
SELECT - col2 / - col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-2298
SELECT + col1 * col2 + 76 DIV col0 col1 FROM tab2
----
1534
646
847
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2298
SELECT + col1 * col2 + 76 / col0 col1 FROM tab2
----
1534
646
847
query I rowsort
SELECT ALL col2 * + col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
10256
2994
3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col0 + - col2 col0 FROM tab0 cor0
----
-2073
-3361
-8092
query I rowsort
SELECT ALL + col1 + col2 + + 34 * + col2 FROM tab1 AS cor0
----
1916
2005
3373
query I rowsort
SELECT DISTINCT - - col2 + - 69 AS col1 FROM tab1 AS cor0
----
-12
-15
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col1 * 10 AS col2 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT DISTINCT + 56 AS col0 FROM tab0
----
56
query I rowsort
SELECT DISTINCT + 67 FROM tab1
----
67
query I rowsort
SELECT col1 + col1 * col2 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT col2 * col2 - - col1 AS col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL col0 * + tab2.col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col1 - + 86 * col0 FROM tab2 AS cor0
----
-571
-6649
-6777
query I rowsort
SELECT DISTINCT + + col0 + + ( 98 ) FROM tab0 AS cor0
----
122
133
187
query I rowsort
SELECT ALL + col0 * col2 - + col2 * col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2314
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + col1 * + col2 + + tab1.col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT 47 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
query I rowsort
SELECT DISTINCT col1 - + col2 * col0 AS col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + 60 * - tab1.col0 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 46ee73c1c6ca8762b6a2669f44068900
query I rowsort
SELECT DISTINCT 96 FROM tab0, tab1 AS cor0
----
96
query I rowsort
SELECT ALL 75 * + tab0.col1 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT ALL tab2.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT 85 + + tab1.col2 FROM tab1
----
139
142
181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2323
SELECT DISTINCT + - 82 + - col2 * - CAST( + col2 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-47
26054
598354
skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + - 82 + - col2 * - CAST ( + col2 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-47
26054
598354
query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT + col0 - + tab1.col0 * ( - col1 ) DIV - tab1.col1 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2325
SELECT + col0 - + tab1.col0 * ( - col1 ) / - tab1.col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + 49 * + col0 + - col0 * col0 FROM tab2 AS cor0
----
-2262
-2370
294
query I rowsort
SELECT ALL + + col0 * - col2 + - cor0.col0 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT col1 * col0 + 25 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-632
2652
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2329
SELECT DISTINCT - cor0.col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - cor0.col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT - tab2.col2 * + col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col2 * col2 * - col0 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT ALL + col0 DIV - cor0.col2 col0 FROM tab0 cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2334
SELECT ALL + col0 / - cor0.col2 col0 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT 62 FROM tab1, tab2 cor0
----
62
query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT + cor0.col0 * + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2337
SELECT + cor0.col0 * + col0 / - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT + col1 + 77 DIV - col0 FROM tab0 AS cor0
----
83
91
95
skipif mysql # not compatible
query I rowsort label-2338
SELECT + col1 + 77 / - col0 FROM tab0 AS cor0
----
83
91
95
query I rowsort
SELECT ALL + - 66 * col1 * cor0.col1 FROM tab0 AS cor0
----
-488136
-546546
-620994
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT DISTINCT - 69 * col0 + + cor0.col1 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - 69 * col0 + + cor0.col1 / + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / 60 + col2 / col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / 60 + col2 / col1 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 41 * 4 AS col2 FROM tab2 cor0
----
164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + - col2 + + col1 col0 FROM tab2
----
16
41
70
query I rowsort
SELECT - 17 + - 54 * col1 * col1 AS col0 FROM tab1
----
-36521
-5417
-9143
query I rowsort
SELECT - ( - 42 ) AS col0 FROM tab1
----
42
42
42
query I rowsort
SELECT DISTINCT + 47 * 64 AS col2 FROM tab0 AS cor0
----
3008
query I rowsort
SELECT ALL - 99 + + col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-99
-99
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 + col2 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col1 * 11 + + col1 - ( col2 ) AS col1 FROM tab2 cor0
----
166
345
682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2350
SELECT DISTINCT ( col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT ( col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT - col1 + - col2 DIV + col0 + col0 FROM tab0 AS cor0
----
-2
-62
-63
skipif mysql # not compatible
query I rowsort label-2351
SELECT - col1 + - col2 / + col0 + col0 FROM tab0 AS cor0
----
-2
-62
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT + ( col0 ) DIV cor0.col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2352
SELECT + ( col0 ) / cor0.col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT cor0.col2 + col1 + col1 AS col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT ALL - ( + col2 ) + 99 AS col2 FROM tab2 AS cor0
----
61
72
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * - col1 + + col2 col1 FROM tab1 AS cor0
----
-123
-138
-414
query I rowsort
SELECT + 23 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT - 76 * + col2 FROM tab2
----
-1976
-2052
-2888
query I rowsort
SELECT col2 + ( col2 ) FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT tab0.col2 + col1 * - col1 AS col0 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT 0 * col0 + - cor0.col1 * + 76 AS col1 FROM tab1 AS cor0
----
-1976
-760
-988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col0 ) col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT col2 + - tab2.col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + + col0 * ( col2 ) * col0 - ( cor0.col0 ) FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT ALL - - col0 + + ( - col0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT + col0 DIV 50 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2365
SELECT + col0 / 50 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT - 50 + + cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-47
14
30
query I rowsort
SELECT + - 75 FROM tab2 AS cor0
----
-75
-75
-75
query I rowsort
SELECT - col2 * col0 - + col2 * + col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT - 84 * cor0.col2 * + cor0.col0 - - 41 * 65 FROM tab2 AS cor0
----
-13211
-167687
-249503
query I rowsort
SELECT + ( - 40 ) + col2 AS col1 FROM tab1 cor0
----
14
17
56
query I rowsort
SELECT col2 + ( - 58 + - col1 ) FROM tab1
----
-11
-30
25
query I rowsort
SELECT col2 + + 25 FROM tab1
----
121
79
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT - col1 - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-2373
SELECT - col1 - cor0.col1 / - col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT col1 * - 70 * col2 AS col0 FROM tab0
----
-198660
-522340
-6790
query I rowsort
SELECT DISTINCT + 95 FROM tab1, tab1 AS cor0
----
95
query I rowsort
SELECT + col2 + cor0.col2 * col1 AS col1 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - + 38 * cor0.col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT ALL - col2 + - col1 * - 69 FROM tab1 AS cor0
----
1740
633
801
query I rowsort
SELECT - ( cor0.col0 ) * - col1 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * - col0 col0 FROM tab2 AS cor0
----
-49
-546
-553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT ALL CAST( col2 AS SIGNED ) * tab2.col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL CAST ( col2 AS INTEGER ) * tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL 56 * + col0 AS col0 FROM tab0
----
1344
1960
4984
query I rowsort
SELECT - - 61 + cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-7335
-8220
-9348
query I rowsort
SELECT - col2 * - ( - 98 ) FROM tab1 AS cor0
----
-5292
-5586
-9408
query I rowsort
SELECT DISTINCT - 78 FROM tab0
----
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2388
SELECT col0 DIV col0 + - 39 FROM tab2
----
-38
-38
-38
skipif mysql # not compatible
query I rowsort label-2388
SELECT col0 / col0 + - 39 FROM tab2
----
-38
-38
-38
query I rowsort
SELECT ALL cor0.col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 87 * col1 AS col1 FROM tab0
----
7482
7917
8439
query I rowsort
SELECT col0 + 29 * + col1 FROM tab0 AS cor0
----
2518
2728
2848
query I rowsort
SELECT cor0.col1 * - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 13 * col2 AS col1 FROM tab0
----
1066
13
429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * + col0 col1 FROM tab1
----
228
4864
6080
query I rowsort
SELECT + + tab2.col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 92 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT - 48 FROM tab0, tab0 cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT col0 + - 55 * 73 AS col0 FROM tab2 AS cor0
----
-3936
-3937
-4008
query I rowsort
SELECT + col0 * + 17 AS col1 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT + - col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col2 + + col1 * + col1 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT - col0 * 35 FROM tab0 AS cor0
----
-1225
-3115
-840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT DISTINCT tab1.col0 DIV - 24 FROM tab1
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT tab1.col0 / - 24 FROM tab1
----
-2
-3
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2405
SELECT DISTINCT CAST( col0 AS SIGNED ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT + - col0 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2406
SELECT + - col0 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT col1 * + col2 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
10982
25947
90506
skipif mysql # not compatible
query I rowsort label-2407
SELECT col1 * + col2 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + col2 + + tab1.col0 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT + col0 * col0 + ( 61 ) AS col0 FROM tab2
----
110
6145
6302
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2410
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + ( col2 ) + + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + 50 AS col0 FROM tab1 cor0
----
50
50
50
query I rowsort
SELECT ALL + + 53 + col1 FROM tab0 AS cor0
----
139
144
150
query I rowsort
SELECT + + cor0.col0 * 51 FROM tab1 AS cor0
----
153
3264
4080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2415
SELECT DISTINCT - CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-24
-35
-89
query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
query I rowsort
SELECT + - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + + col2 * col1 * - cor0.col1 + col2 AS col0 FROM tab1 cor0
----
-16128
-36450
-5643
onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT ALL - 45 + + col0 DIV + col1 col0 FROM tab0 AS cor0
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - 45 + + col0 / + col1 col0 FROM tab0 AS cor0
----
-45
-45
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2420
SELECT + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2420
SELECT + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 39 + - cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-35
-54
10
query I rowsort
SELECT DISTINCT - 56 * col1 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-1618
-4208
-8408
query I rowsort
SELECT DISTINCT col1 + + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - ( col1 ) + col2 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + - 63 * col2 FROM tab0 cor0
----
-2079
-5166
-63
query I rowsort
SELECT ALL col2 + + col0 * + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 25 * 52 - col1 AS col0 FROM tab1 AS cor0
----
-1310
-1313
-1326
query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1 cor0
----
-65
query I rowsort
SELECT 69 * + col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT ALL - ( 21 ) * tab1.col1 * ( - 64 ) FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 172bd04db336b4d10dd09f4ddd99581d
query I rowsort
SELECT DISTINCT - col1 * + col2 + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - + cor0.col0 * - 51 col0 FROM tab1 AS cor0
----
3207
3984
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col0 FROM tab2 cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-2434
SELECT + col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2434
SELECT + col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 * + 59 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT ALL + + col2 * 17 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT + tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + col2 col0 FROM tab2
----
2574
2673
3762
query I rowsort
SELECT ( + col1 ) * col2 AS col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT col1 + col2 DIV ( col2 ) + - 82 DIV - col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2442
SELECT col1 + col2 / ( col2 ) + - 82 / - col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT col1 + + 90 AS col1 FROM tab1
----
100
103
116
query I rowsort
SELECT DISTINCT col1 * + ( 39 ) * col2 + + tab1.col0 FROM tab1
----
22294
48752
54759
query I rowsort
SELECT + + col2 + - 84 AS col1 FROM tab1 AS cor0
----
-27
-30
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + 60 col0 FROM tab0 AS cor0
----
-29
25
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col1 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2448
SELECT col0 DIV - 20 + - col2 AS col0 FROM tab1
----
-100
-54
-60
skipif mysql # not compatible
query I rowsort label-2448
SELECT col0 / - 20 + - col2 AS col0 FROM tab1
----
-100
-54
-60
query I rowsort
SELECT DISTINCT tab1.col1 + - 12 FROM tab1
----
-2
1
14
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT + col1 * col2 + col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL + 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 33 * col1 + tab1.col2 + col1 col0 FROM tab1
----
22388
3367
5686
query I rowsort
SELECT ALL + 78 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL - 48 FROM tab0, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT ALL ( col0 + col0 ) AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - + col2 * 2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL + + ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 75 * col2 AS col2 FROM tab2 AS cor0
----
1950
2025
2850
query I rowsort
SELECT DISTINCT - ( 27 ) FROM tab2 AS cor0
----
-27
query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT - tab1.col2 * - col2 + - tab1.col2 AS col0 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL + col1 - - col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL + col2 - tab0.col2 * - col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT 35 + - cor0.col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 39485aff7f743fa63854142a97231d6c
query I rowsort
SELECT ALL - 28 * - col1 + + col0 - + col0 FROM tab1
----
280
364
728
query I rowsort
SELECT - 53 + + col0 + col1 AS col2 FROM tab0
----
127
57
79
query I rowsort
SELECT DISTINCT + 72 + - col2 FROM tab1 AS cor0
----
-24
15
18
query I rowsort
SELECT - - col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT 55 * col2 + tab2.col2 * 0 AS col0 FROM tab2
----
1430
1485
2090
query I rowsort
SELECT 3 + col2 FROM tab1 AS cor0
----
57
60
99
query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - + col2 * col0 * ( col1 ) FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col1 * - ( - 77 ) + - cor0.col1 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT DISTINCT + col0 * - ( col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT - col1 * + CAST( col1 AS SIGNED ) + - col1 + + cor0.col2 FROM tab0 AS cor0
----
-7449
-8290
-9505
skipif mysql # not compatible
query I rowsort label-2477
SELECT - col1 * + CAST ( col1 AS INTEGER ) + - col1 + + cor0.col2 FROM tab0 AS cor0
----
-7449
-8290
-9505
query I rowsort
SELECT - + col2 * ( cor0.col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2479
SELECT - col0 + ( cor0.col2 ) * + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2479
SELECT - col0 + ( cor0.col2 ) * + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT - - col2 + CAST( col1 + col0 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
-131
-1943
-2947
skipif mysql # not compatible
query I rowsort label-2480
SELECT - - col2 + CAST ( col1 + col0 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
-131
-1943
-2947
query I rowsort
SELECT col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL col2 * 60 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT DISTINCT - cor0.col2 * + 97 AS col0 FROM tab2 AS cor0
----
-2522
-2619
-3686
onlyif mysql # use DIV operator for integer division
query I rowsort label-2484
SELECT ALL col1 DIV + col2 - col1 col0 FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2484
SELECT ALL col1 / + col2 - col1 col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col2 + col1 * ( col2 * - col0 ) FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT - col1 + - col2 * + col1 + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + col0 * - col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - col1 * + ( + 20 ) + col2 * col2 FROM tab0 AS cor0
----
-1939
-631
4904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2490
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT + col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2491
SELECT + col2 / + col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col2 * 97 + col1 AS col2 FROM tab1 AS cor0
----
5264
5539
9325
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2494
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2494
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 * 68 * 94 AS col2 FROM tab0
----
153408
223720
568888
query I rowsort
SELECT DISTINCT + 9 FROM tab0, tab1 AS cor0
----
9
query I rowsort
SELECT DISTINCT - 14 FROM tab1, tab0 AS cor0
----
-14
query I rowsort
SELECT - - cor0.col2 * col2 * - 79 FROM tab2 AS cor0
----
-114076
-53404
-57591
query I rowsort
SELECT - col0 * 80 AS col2 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT ALL - tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT 37 FROM tab0 cor0
----
37
37
37
query I rowsort
SELECT ALL - - cor0.col2 + 81 + - col0 * col2 FROM tab2 AS cor0
----
-1921
-2883
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + cor0.col2 col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - 52 * cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-105456
-156104
-9828
query I rowsort
SELECT + col1 * - cor0.col1 + 30 FROM tab0 cor0
----
-7366
-8251
-9379
query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0
----
-87
-87
-87
query I rowsort
SELECT + - col0 * cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col0 + + col1 * + col1 AS col2 FROM tab1
----
164
249
679
query I rowsort
SELECT - + col1 * col1 + 88 FROM tab2 AS cor0
----
-201
-3393
-873
query I rowsort
SELECT - 31 AS col0 FROM tab0 cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + col2 * - col2 + - 52 * col1 FROM tab1
----
-3769
-4268
-9892
query I rowsort
SELECT DISTINCT tab0.col0 * + col1 + ( col1 ) * col1 FROM tab0
----
12804
16380
9460
query I rowsort
SELECT + 17 * + tab2.col2 + + col0 AS col0 FROM tab2
----
466
520
725
query I rowsort
SELECT tab1.col2 + + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT 18 + col2 * 47 AS col1 FROM tab1
----
2556
2697
4530
query I rowsort
SELECT ALL + ( col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + + ( + cor0.col0 * col0 ) AS col1 FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT - + 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 ALL cor0.col2 * + 19 col1 FROM tab1 AS cor0
----
1026
1083
1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT ALL + col0 + col0 + ( + cor0.col2 ) DIV col2 FROM tab0 AS cor0
----
179
49
71
skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + col0 + col0 + ( + cor0.col2 ) / col2 FROM tab0 AS cor0
----
179
49
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
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 DISTINCT - - col1 * - ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT ALL + col2 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL - - col0 + + ( cor0.col1 ) FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL + col2 + - 11 FROM tab2 AS cor0
----
15
16
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT col0 * + col1 - CAST( + col0 * col1 AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2528
SELECT col0 * + col1 - CAST ( + col0 * col1 AS INTEGER ) FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL + tab0.col0 DIV col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + tab0.col0 / col2 FROM tab0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2530
SELECT CAST( NULL AS SIGNED ) + - col0 * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2530
SELECT CAST ( NULL AS INTEGER ) + - col0 * col1 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 41 * col2 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT ALL + + 26 AS col0 FROM tab2 cor0
----
26
26
26
query I rowsort
SELECT + ( col0 ) - + col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT col0 DIV + 66 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2535
SELECT col0 / + 66 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT col2 * col1 * - col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT + ( - col0 ) * + col0 * col0 - 99 FROM tab2 AS cor0
----
-442
-474651
-493138
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT - CAST( 80 + + col1 AS SIGNED ) col1 FROM tab2
----
-111
-139
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2538
SELECT - CAST ( 80 + + col1 AS INTEGER ) col1 FROM tab2
----
-111
-139
-97
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT + 68 * col2 + col2 * - CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2540
SELECT + 68 * col2 + col2 * - CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 64 * + col2 FROM tab0 cor0
----
2112
5248
64
query I rowsort
SELECT col2 + col1 * - col0 - col0 AS col2 FROM tab1
----
-1024
-27
-647
query I rowsort
SELECT DISTINCT + tab1.col1 + 37 AS col1 FROM tab1
----
47
50
63
query I rowsort
SELECT DISTINCT col2 + tab1.col0 * - tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2545
SELECT + col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2545
SELECT + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * + tab0.col2 * col0 FROM tab0
----
1322
21846
656984
query I rowsort
SELECT - tab2.col1 + 68 FROM tab2, tab1 cor0
----
9 values hashing to 8fe088d863f612d19328f128d34d4b0e
query I rowsort
SELECT col0 + col1 - - 5 FROM tab1 AS cor0
----
34
79
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT DISTINCT + cor0.col1 + + 0 * + 32 DIV col0 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + cor0.col1 + + 0 * + 32 / col0 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col2 + + tab1.col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + tab1.col2 * - col1 + col2 FROM tab1
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2553
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + + col0 + - ( col2 ) * col0 * + 26 FROM tab2 AS cor0
----
-4907
-52650
-77973
query I rowsort
SELECT ALL - - col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2557
SELECT ALL + + cor0.col0 DIV 52 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + + cor0.col0 / 52 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - col2 + - 11 FROM tab1 AS cor0
----
-107
-65
-68
query I rowsort
SELECT ALL + 64 + - col1 FROM tab0 AS cor0
----
-22
-27
-33
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + - col1 - + cor0.col2 FROM tab0 AS cor0
----
-63
673
7125
query I rowsort
SELECT ALL - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2562
SELECT + 1 * - ( + col0 ) + - CAST( col0 AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
-138
-173
-32
skipif mysql # not compatible
query I rowsort label-2562
SELECT + 1 * - ( + col0 ) + - CAST ( col0 AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
-138
-173
-32
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 * ( + cor0.col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + - cor0.col1 * + col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - cor0.col0 * 55 FROM tab0 AS cor0
----
-1320
-1925
-4895
query I rowsort
SELECT ALL + col1 + + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT + ( col2 ) DIV ( 40 ) + cor0.col1 DIV + col0 FROM tab0 cor0
----
2
3
3
skipif mysql # not compatible
query I rowsort label-2568
SELECT + ( col2 ) / ( 40 ) + cor0.col1 / + col0 FROM tab0 cor0
----
2
3
3
query I rowsort
SELECT 74 + col2 * cor0.col0 + 87 FROM tab2 AS cor0
----
2189
3163
350
onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT DISTINCT col2 * col0 DIV ( col1 ) - - col2 FROM tab1
----
421
60
686
skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT col2 * col0 / ( col1 ) - - col2 FROM tab1
----
421
60
686
onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT DISTINCT + ( col0 ) - - ( + tab1.col1 ) DIV + col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + ( col0 ) - - ( + tab1.col1 ) / + col0 FROM tab1
----
11
64
80
query I rowsort
SELECT - 95 * + cor0.col0 + + 44 AS col2 FROM tab0 cor0
----
-2236
-3281
-8411
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * - 95 FROM tab2 AS cor0
----
-2392
-2558
-3531
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - col1 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + 42 * col0 AS col0 FROM tab0 AS cor0
----
1008
1470
3738
query I rowsort
SELECT - - 74 - + col0 AS col1 FROM tab2 AS cor0
----
-4
-5
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT + ( - cor0.col0 ) DIV col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2578
SELECT + ( - cor0.col0 ) / col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col0 + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - + col2 * - cor0.col1 + col1 * col1 FROM tab1 cor0
----
1417
2080
670
query I rowsort
SELECT + + col1 * ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * col1 + 15 * - col1 FROM tab1 AS cor0
----
1014
1053
420
query I rowsort
SELECT ALL + - col1 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT tab1.col0 - - col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + col0 * - 28 + + col0 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT ALL + col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col1 + - 1 + + col0 AS col0 FROM tab2 AS cor0
----
-25
18
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 31 col0 FROM tab1 AS cor0
----
111
34
95
query I rowsort
SELECT DISTINCT - - cor0.col2 * - 7 + col2 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT + - col1 - - cor0.col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT ALL col2 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL col2 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col1 + 45 - col1 FROM tab1 AS cor0
----
-7
19
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT col2 - 76 FROM tab2 AS cor0
----
-38
-49
-50
query I rowsort
SELECT - col2 - + col1 * col2 * col0 FROM tab2
----
-119678
-51072
-5886
query I rowsort
SELECT + col2 * - 3 + - col0 FROM tab0 AS cor0
----
-123
-335
-38
query I rowsort
SELECT + cor0.col0 * col1 - - 15 FROM tab1 cor0
----
1055
655
93
query I rowsort
SELECT DISTINCT col2 * col0 + + col1 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT col2 * + 95 * - 33 + tab2.col1 AS col1 FROM tab2
----
-119113
-81451
-84614
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + col0 + 48 AS col1 FROM tab2 AS cor0
----
126
127
55
query I rowsort
SELECT 7 FROM tab1, tab2 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL + cor1.col1 * - tab1.col0 - - 6 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6f6025af235c552811cb9236de24b668
query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab0 AS cor0
----
-67
query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT ALL + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + + col2 / cor0.col0 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT + 44 DIV - col0 AS col2 FROM tab1 AS cor0
----
-14
0
0
skipif mysql # not compatible
query I rowsort label-2609
SELECT + 44 / - col0 AS col2 FROM tab1 AS cor0
----
-14
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + tab0.col2 + + col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + ( col0 * + tab2.col0 ) FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2613
SELECT ALL - ( col1 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - ( col1 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + - col0 * + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
13996
43069
705151
query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL col2 + + col1 * col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col0 * col1 + 30 FROM tab0 cor0
----
2094
3425
8129
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - 14 + - 90 FROM tab1 AS cor0
----
-104
-104
-104
query I rowsort
SELECT DISTINCT tab2.col0 * + ( 86 ) * col1 AS col1 FROM tab2
----
115498
18662
395772
query I rowsort
SELECT DISTINCT - col2 * - 93 FROM tab1
----
5022
5301
8928
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab2
----
6
query I rowsort
SELECT - 72 * - col1 AS col0 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT DISTINCT + col2 + col1 * col1 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT 61 AS col2 FROM tab1
----
61
61
61
query I rowsort
SELECT DISTINCT - - col0 * + 62 FROM tab0 AS cor0
----
1488
2170
5518
query I rowsort
SELECT + - 65 * ( col2 ) FROM tab1 AS cor0
----
-3510
-3705
-6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - col2 col2 FROM tab2
----
-1586
-1647
-2318
query I rowsort
SELECT col1 + 86 + + col0 * col0 FROM tab2 AS cor0
----
166
6229
6344
query I rowsort
SELECT 33 * - col2 FROM tab2
----
-1254
-858
-891
query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 * - tab0.col0 + col0 FROM tab0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT tab1.col2 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2636
SELECT tab1.col2 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT 74 * - tab0.col2 * + col1 AS col0 FROM tab0
----
-210012
-552188
-7178
onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT DISTINCT cor0.col1 DIV + col1 - - col2 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT cor0.col1 / + col1 - - col2 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT ALL cor0.col0 * + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col1 + 50 AS col0 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT DISTINCT + col0 + ( + col2 ) * - cor0.col2 FROM tab0 cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2642
SELECT DISTINCT - cor0.col1 * + CAST( col1 + - col0 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
-23064
17918
66139
skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT - cor0.col1 * + CAST ( col1 + - col0 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
-23064
17918
66139
query I rowsort
SELECT + col2 + col1 * 72 FROM tab0 AS cor0
----
6225
6634
6985
query I rowsort
SELECT + col1 + + col1 + + col2 * cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
119834
32510
75868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT + + col1 - - ( + col2 ) DIV col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2648
SELECT + + col1 - - ( + col2 ) / col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT col1 * + 0 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT col2 * + col2 + 76 AS col0 FROM tab2
----
1520
752
805
onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT DISTINCT col0 * 8 * - col0 - col1 DIV col1 AS col1 FROM tab1
----
-32769
-51201
-73
skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT col0 * 8 * - col0 - col1 / col1 AS col1 FROM tab1
----
-32769
-51201
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT DISTINCT - CAST( 1 AS SIGNED ) FROM tab0, tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT - CAST ( 1 AS INTEGER ) FROM tab0, tab0 AS cor0
----
-1
query I rowsort
SELECT col1 * 2 - - 39 FROM tab2 AS cor0
----
101
157
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col0 ) + - col0 * 97 col0 FROM tab1
----
-129
-2560
-80
query I rowsort
SELECT + col1 + 73 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3916
-4151
-6995
query I rowsort
SELECT - - col0 + + col2 + col2 AS col2 FROM tab2 cor0
----
130
155
61
query I rowsort
SELECT 1 * col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT - col2 + ( + col2 ) + 67 DIV - 93 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2659
SELECT - col2 + ( + col2 ) + 67 / - 93 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col2 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col1 * 11 + col1 + - col2 * ( col0 + + ( + ( col2 ) ) ) FROM tab2 AS cor0
----
-1996
-4242
-546
query I rowsort
SELECT DISTINCT + 90 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1354
-586
-639
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT ALL - - 94 DIV cor0.col0 AS col0 FROM tab2 cor0
----
1
1
13
skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL - - 94 / cor0.col0 AS col0 FROM tab2 cor0
----
1
1
13
query I rowsort
SELECT ALL + - ( + col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 * + col1 + col2 * ( - col2 ) * - col0 + + col0 * + 3 AS col2 FROM tab0 AS cor0
----
237
29046
606165
query I rowsort
SELECT + col2 + col2 + col2 AS col0 FROM tab2 cor0
----
114
78
81
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 ( col2 ) * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT - col0 * + 35 * col1 FROM tab1 cor0
----
-22400
-2730
-36400
query I rowsort
SELECT ALL - + 2 AS col2 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT - 44 AS col2 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT - - 64 AS col0 FROM tab1 AS cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 31 col0 FROM tab1 AS cor0
----
-31
-31
-31
query I rowsort
SELECT - - col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT cor0.col1 * cor0.col1 * CAST( + 43 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 92e30e63745a5db3f75c9ef627d7996f
skipif mysql # not compatible
query I rowsort label-2676
SELECT cor0.col1 * cor0.col1 * CAST ( + 43 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 92e30e63745a5db3f75c9ef627d7996f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT DISTINCT + - col0 DIV col0 + col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2677
SELECT DISTINCT + - col0 / col0 + col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT - - col0 - - ( + col2 ) AS col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT col2 DIV col2 - col0 col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2679
SELECT col2 / col2 - col0 col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * cor0.col2 - col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + cor0.col2 * 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8687928d3acbb49cbfebd1a3e3d1773
onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT + ( cor0.col1 ) DIV - 85 - - col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-2683
SELECT + ( cor0.col1 ) / - 85 - - col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT DISTINCT - col0 + - col1 * 15 AS col2 FROM tab0 AS cor0
----
-1314
-1454
-1490
query I rowsort
SELECT DISTINCT + + 48 FROM tab0 AS cor0
----
48
query I rowsort
SELECT col2 * - col2 * 38 AS col1 FROM tab1 AS cor0
----
-110808
-123462
-350208
query I rowsort
SELECT - - col1 * col0 + ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT - 23 + col1 DIV col1 FROM tab0 cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-2689
SELECT - 23 + col1 / col1 FROM tab0 cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - + 8 FROM tab0 AS cor0
----
-8
-8
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2691
SELECT ALL + CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 72 - col0 AS col0 FROM tab0
----
-17
37
48
query I rowsort
SELECT + 76 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2694
SELECT 40 * col1 * tab0.col1 + 93 DIV col0 + - 57 AS col2 FROM tab0
----
295786
331184
376305
skipif mysql # not compatible
query I rowsort label-2694
SELECT 40 * col1 * tab0.col1 + 93 / col0 + - 57 AS col2 FROM tab0
----
295786
331184
376305
query I rowsort
SELECT + tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT + col1 + - col1 * col2 FROM tab0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT col2 * + cor0.col2 + col2 DIV + col2 FROM tab0 AS cor0
----
1090
2
6725
skipif mysql # not compatible
query I rowsort label-2697
SELECT col2 * + cor0.col2 + col2 / + col2 FROM tab0 AS cor0
----
1090
2
6725
query I rowsort
SELECT ALL - 6 * - col1 AS col2 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT DISTINCT 67 * col0 AS col0 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT ALL + col1 - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 36 * + col2 FROM tab1 AS cor0
----
1944
2052
3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT + col1 DIV col1 + - 75 + + col0 AS col1 FROM tab1 AS cor0
----
-10
-71
6
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + col1 / col1 + - 75 + + col0 AS col1 FROM tab1 AS cor0
----
-10
-71
6
query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( tab0.col2 ) * - col2 col0 FROM tab0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT col0 DIV 14 FROM tab2 AS cor0
----
0
5
5
skipif mysql # not compatible
query I rowsort label-2705
SELECT col0 / 14 FROM tab2 AS cor0
----
0
5
5
query I rowsort
SELECT + col1 + col1 * col2 * col1 FROM tab0 AS cor0
----
244154
679133
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2707
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 99 * - ( col2 + ( - col2 ) ) * col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 13 AS col0 FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT ALL - ( + col0 ) + col1 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT DISTINCT - - col2 DIV 76 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - - col2 / 76 AS col1 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + + col1 * - cor0.col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT DISTINCT + + col2 DIV col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + + col2 / col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - + 53 AS col2 FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab1, tab1 AS cor0
----
22
query I rowsort
SELECT DISTINCT 92 + col0 * col0 AS col2 FROM tab1 AS cor0
----
101
4188
6492
query I rowsort
SELECT ALL + tab2.col1 * col0 AS col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab1 AS cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT ALL + 96 DIV + 28 + - col2 FROM tab2 cor0
----
-23
-24
-35
skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + 96 / + 28 + - col2 FROM tab2 cor0
----
-23
-24
-35
query I rowsort
SELECT ALL ( - 36 ) * + col1 + + col1 FROM tab2 AS cor0
----
-1085
-2065
-595
query I rowsort
SELECT DISTINCT - 31 * col0 - + col2 FROM tab0 AS cor0
----
-1086
-2841
-777
onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT DISTINCT + ( col0 ) + - col1 DIV col1 + - col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT + ( col0 ) + - col1 / col1 + - col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT DISTINCT + 51 + - 67 DIV col0 FROM tab1 AS cor0
----
29
50
51
skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + 51 + - 67 / col0 FROM tab1 AS cor0
----
29
50
51
query I rowsort
SELECT ALL ( cor0.col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - + 61 + - col1 * col2 FROM tab2 cor0
----
-1595
-707
-898
query I rowsort
SELECT + - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 80 * col1 AS col0 FROM tab0 AS cor0
----
6880
7280
7760
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( + col1 ) * - ( + col1 ) + - col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - col2 * col0 * + ( - col0 ) + - col2 * col0 FROM tab0 cor0
----
1190
18216
642224
query I rowsort
SELECT + 64 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + + col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col1 + col2 * + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
157490
185203
884749
query I rowsort
SELECT ALL - - col2 + cor0.col1 * col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - col0 + + col2 + 94 AS col1 FROM tab1 AS cor0
----
110
145
87
query I rowsort
SELECT col0 + 63 AS col2 FROM tab1
----
127
143
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - col1 + + 99 * col0 FROM tab1 AS cor0
----
271
6326
7907
query I rowsort
SELECT - - ( - 36 ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - col2 + 75 FROM tab0
----
-7
42
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT + tab2.col2 DIV - col1 + ( col0 ) AS col1 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-2747
SELECT + tab2.col2 / - col1 + ( col0 ) AS col1 FROM tab2
----
7
77
78
query I rowsort
SELECT + + col2 * col1 + - 88 FROM tab2 AS cor0
----
1446
558
749
query I rowsort
SELECT + + col1 * col0 + 42 * - cor0.col0 - col1 FROM tab2 AS cor0
----
-108
-1992
1267
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col1 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT col0 * cor0.col1 - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT - + col1 * col0 + CAST( - col0 AS SIGNED ) + col1 * - CAST( NULL AS SIGNED ) * - 26 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2752
SELECT - + col1 * col0 + CAST ( - col0 AS INTEGER ) + col1 * - CAST ( NULL AS INTEGER ) * - 26 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 62 * col2 + - col2 * col1 FROM tab1 AS cor0
----
1944
2964
4704
query I rowsort
SELECT col0 * cor0.col0 + col0 + 91 * col1 AS col0 FROM tab2 AS cor0
----
11531
2877
7867
query I rowsort
SELECT + + col2 + + col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT - col1 DIV + 27 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2756
SELECT - col1 / + 27 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 65 * col0 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT - 14 * col2 * ( - 76 ) AS col0 FROM tab0
----
1064
35112
87248
query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2, tab1 cor0
----
16
query I rowsort
SELECT - - 12 FROM tab2 cor0
----
12
12
12
query I rowsort
SELECT + cor0.col1 * + 68 AS col0 FROM tab0 AS cor0
----
5848
6188
6596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col0 col1 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - tab1.col1 * col2 col1 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + cor0.col1 - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 85 * - 73 + col2 * 90 FROM tab2
----
-2785
-3775
-3865
query I rowsort
SELECT DISTINCT col1 * + col2 + col1 * tab0.col1 * - col2 FROM tab0
----
-241230
-671580
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT + col2 DIV + cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2769
SELECT + col2 / + cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT 22 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT + 44 + + col2 * + col1 FROM tab2 AS cor0
----
1578
690
881
onlyif mysql # use DIV operator for integer division
query I rowsort label-2772
SELECT DISTINCT - ( + col0 ) DIV + 94 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT - ( + col0 ) / + 94 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col2 * col1 * ( - col1 ) AS col0 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT col2 * col0 - - col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL + 20 - col1 FROM tab0
----
-66
-71
-77
query I rowsort
SELECT DISTINCT - col0 * col2 - col0 * - 16 * col1 FROM tab1
----
1086
6592
8960
query I rowsort
SELECT - cor0.col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL - col0 - + col0 DIV col1 AS col2 FROM tab2
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - col0 - + col0 / col1 AS col2 FROM tab2
----
-7
-79
-83
query I rowsort
SELECT - - col1 * + col1 + 33 AS col2 FROM tab1 AS cor0
----
133
202
709
query I rowsort
SELECT ALL - 41 * + col2 + 51 - col2 AS col0 FROM tab1 AS cor0
----
-2217
-2343
-3981
query I rowsort
SELECT DISTINCT 63 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
63
query I rowsort
SELECT DISTINCT tab2.col1 + col2 * tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT + col1 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - + 41 + - col2 * 43 * - cor0.col2 FROM tab2 cor0
----
29027
31306
62051
query I rowsort
SELECT ALL + col1 * + tab0.col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + 78 + cor0.col2 + 61 AS col0 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c660a01aca2d8f37dc63ce7f25ddae4a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2787
SELECT - col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2789
SELECT - col1 + - col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-2789
SELECT - col1 + - col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT col2 + ( - tab0.col1 ) FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2791
SELECT DISTINCT col0 * + col2 + col1 + col0 DIV ( tab2.col0 * col0 ) FROM tab2
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT col0 * + col2 + col1 + col0 / ( tab2.col0 * col0 ) FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT + col1 DIV - ( col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2792
SELECT + col1 / - ( col2 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT - - 16 + col1 DIV + col2 FROM tab0 AS cor0
----
113
17
18
skipif mysql # not compatible
query I rowsort label-2793
SELECT - - 16 + col1 / + col2 FROM tab0 AS cor0
----
113
17
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2794
SELECT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2794
SELECT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + 89 FROM tab0 AS cor0
----
89
89
89
query I rowsort
SELECT ALL cor0.col2 + 83 AS col1 FROM tab2 AS cor0
----
109
110
121
query I rowsort
SELECT + col1 * 17 * + cor0.col2 FROM tab1 AS cor0
----
21216
23868
9690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + - col1 * - col1 * + col2 col1 FROM tab1 AS cor0
----
16192
36472
5668
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2801
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col2 * 19 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT ALL - - ( + 74 ) * + col0 AS col1 FROM tab0 AS cor0
----
1776
2590
6586
query I rowsort
SELECT ALL - col0 + + ( + col1 * cor0.col0 ) FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 * 20 * + col2 col1 FROM tab1 AS cor0
----
11336
24880
28077
query I rowsort
SELECT ALL + col2 + + ( col1 ) * + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
22869
271544
6754
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT col0 + 54 AS col0 FROM tab0 AS cor0
----
143
78
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT - cor0.col1 DIV + 88 + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2810
SELECT - cor0.col1 / + 88 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 11 * - cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1f82cf93c3a1b978ad9da6c2531062
query I rowsort
SELECT ALL tab2.col1 + - 42 - col1 AS col1 FROM tab2
----
-42
-42
-42
query I rowsort
SELECT - 30 * - ( - col1 ) - 74 * col2 AS col1 FROM tab2 cor0
----
-2928
-3322
-3694
query I rowsort
SELECT + 79 + col2 * - col1 FROM tab0 AS cor0
----
-18
-2759
-7383
query I rowsort
SELECT ALL + - 66 + col2 FROM tab2 AS cor0
----
-28
-39
-40
query I rowsort
SELECT DISTINCT + - col0 + 96 * + col0 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT - + ( 73 ) + - col1 * 89 FROM tab2 cor0
----
-1586
-2832
-5324
onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT ALL - 14 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL - 14 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 70 AS col1 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT - + 67 * col0 AS col1 FROM tab2 cor0
----
-469
-5226
-5293
query I rowsort
SELECT ALL 76 * cor0.col2 + ( - col1 ) - - col0 * + col0 AS col1 FROM tab0 cor0
----
1204
14062
2998
query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col2 + col1 * col2 * 30 FROM tab0
----
223942
2911
85173
query I rowsort
SELECT - 22 * col2 * + col2 FROM tab2
----
-14872
-16038
-31768
onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT ALL col2 * col0 + + tab2.col0 DIV col1 AS col0 FROM tab2
----
189
2029
3006
skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL col2 * col0 + + tab2.col0 / col1 AS col0 FROM tab2
----
189
2029
3006
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 85 * + col2 * - col2 col0 FROM tab0
----
-571622
-86
-92598
query I rowsort
SELECT DISTINCT 34 + col1 AS col1 FROM tab1
----
44
47
60
query I rowsort
SELECT + col1 - tab2.col0 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2830
SELECT 33 + col0 DIV col0 FROM tab1
----
34
34
34
skipif mysql # not compatible
query I rowsort label-2830
SELECT 33 + col0 / col0 FROM tab1
----
34
34
34
query I rowsort
SELECT - 52 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT tab1.col2 + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 - - col0 * - col0 FROM tab2 AS cor0
----
-6065
-6179
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 + col0 + 69 * - ( - col1 ) col1 FROM tab2 AS cor0
----
1222
2116
4119
query I rowsort
SELECT DISTINCT + - ( + col0 ) + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + 53 + col0 * + col2 AS col2 FROM tab1 cor0
----
109
3595
7627
query I rowsort
SELECT + 25 + col0 AS col0 FROM tab2 cor0
----
103
104
32
query I rowsort
SELECT DISTINCT col2 * col2 - + 55 AS col1 FROM tab2 AS cor0
----
1389
621
674
query I rowsort
SELECT 50 AS col1 FROM tab2 cor0
----
50
50
50
query I rowsort
SELECT 39 + - col2 FROM tab0
----
-43
38
6
query I rowsort
SELECT ALL ( - col1 * ( - ( col1 ) ) + ( - col2 ) ) FROM tab1
----
43
622
73
query I rowsort
SELECT - col0 + col2 * col1 FROM tab1
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT tab1.col1 + col2 DIV col1 AS col2 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-2844
SELECT tab1.col1 + col2 / col1 AS col2 FROM tab1
----
15
20
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2845
SELECT - col2 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-2845
SELECT - col2 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + tab1.col1 + tab1.col0 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c3106673b5165f666b99e75c964d6287
query I rowsort
SELECT 2 + + tab1.col2 AS col1 FROM tab1
----
56
59
98
query I rowsort
SELECT - col2 + 6 FROM tab1 AS cor0
----
-48
-51
-90
query I rowsort
SELECT + - col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + + col0 - + 87 AS col1 FROM tab2 AS cor0
----
-8
-80
-9
query I rowsort
SELECT ALL - - col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2852
SELECT DISTINCT - cor0.col2 DIV 52 + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - cor0.col2 / 52 + col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2853
SELECT DISTINCT cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT cor0.col0 / + col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + col2 * col0 + 16 FROM tab1 AS cor0
----
178
3664
7696
query I rowsort
SELECT col2 + col0 + - col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 87 + col0 + col1 * - 61 * - col0 FROM tab1
----
39191
4848
63607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT + - 88 * 18 AS col2 FROM tab1 AS cor0
----
-1584
-1584
-1584
query I rowsort
SELECT DISTINCT - + col2 + - 31 FROM tab0 AS cor0
----
-113
-32
-64
query I rowsort
SELECT ALL + - col1 * - col0 * - cor0.col2 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 57 * + col2 AS col1 FROM tab2
----
1482
1539
2166
query I rowsort
SELECT + col2 * + 75 AS col2 FROM tab1 AS cor0
----
4050
4275
7200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT - CAST( NULL AS SIGNED ) + 68 * col2 + - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2863
SELECT - CAST ( NULL AS INTEGER ) + 68 * col2 + - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 81 + 4 * - col2 FROM tab1 AS cor0
----
-135
-147
-303
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ( col1 ) * col1 + + ( col1 ) * col2 FROM tab0 cor0
----
10234
15743
9506
query I rowsort
SELECT - ( - col0 ) * 42 + col1 AS col0 FROM tab1 AS cor0
----
152
2698
3373
query I rowsort
SELECT col2 * - cor0.col0 * 46 FROM tab0 cor0
----
-1610
-335708
-36432
query I rowsort
SELECT col2 * + col0 + + col1 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT ALL col0 + + col1 DIV col0 AS col1 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL col0 + + col1 / col0 AS col1 FROM tab2
----
11
78
79
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col2 + - col0 AS col0 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2872
SELECT - col0 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2872
SELECT - col0 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - tab0.col1 * col0 * + tab0.col0 FROM tab0
----
-118826
-49569
-720893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + + col1 col2 FROM tab0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * tab2.col0 col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col2 + col0 * + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + col1 FROM tab1 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col0 / tab1.col1 IN ( - col0 * col2 )
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2879
SELECT + CAST( NULL AS SIGNED ) - + 48 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2879
SELECT + CAST ( NULL AS INTEGER ) - + 48 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 * + col0 * ( 71 ) + + col0 + col2 FROM tab2
----
13453
144092
213259
onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT DISTINCT cor0.col2 DIV col2 AS col0 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT cor0.col2 / col2 AS col0 FROM tab1 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab1.col1 + - col1 col0 FROM tab1
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 * col2 col2 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT - - col2 - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + col0 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) < NULL
----
query I rowsort
SELECT DISTINCT col2 * tab2.col1 + + col1 * - col0 AS col1 FROM tab2
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT + col1 + - col1 DIV + col2 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2888
SELECT + col1 + - col1 / + col2 AS col0 FROM tab1
----
10
13
26
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = NULL
----
query I rowsort
SELECT ALL col2 - + tab0.col2 * - tab0.col0 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL tab2.col1 - - col0 FROM tab2
----
137
38
96
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----
query I rowsort
SELECT + col2 * col1 FROM tab2 AS cor0 WHERE NULL <= col2 + col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT col0 + col0 * + col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + col0 col1 FROM tab1
----
165
3712
7760
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - col0 / + tab2.col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab0.col2 col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT ALL col2 * - col0 + tab0.col1 * col1 DIV col2 FROM tab0
----
-568
-7198
9374
skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL col2 * - col0 + tab0.col1 * col1 / col2 FROM tab0
----
-568
-7198
9374
query I rowsort
SELECT col0 + tab1.col1 - - col1 AS col1 FROM tab1
----
106
55
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col1 * col1 + + col0 + + col0 col1 FROM tab0
----
636104
753749
912743
query I rowsort
SELECT ALL col2 * col1 + col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col1 + - col0 * col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT - tab1.col2 - col0 * col0 FROM tab1
----
-4153
-63
-6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + col2 * - col0 + + col1 AS col0 FROM tab1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col0 * - col1 * + col1 + tab0.col2 FROM tab0
----
-177471
-329314
-736927
query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 cor0
----
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT DISTINCT - ( col2 ) DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-2910
SELECT DISTINCT - ( col2 ) / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT - 26 FROM tab2 cor0
----
-26
-26
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - + 72 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT - - 46 + col2 FROM tab1 AS cor0
----
100
103
142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2916
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2916
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + 22 FROM tab1 AS cor0
----
102
25
86
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT ALL + col1 * + col2 + col2 * col0 * 41 AS col0 FROM tab0 AS cor0
----
1532
306680
35310
query I rowsort
SELECT ALL col2 * 51 + col2 - + ( 49 * col2 ) AS col0 FROM tab2 cor0
----
114
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2921
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2922
SELECT ALL cor0.col2 DIV - 76 + col2 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL cor0.col2 / - 76 + col2 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT - ( col1 + col0 ) FROM tab2
----
-137
-38
-96
query I rowsort
SELECT 17 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1003
289
527
query I rowsort
SELECT DISTINCT - col1 * + col2 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT + + 68 + col2 AS col1 FROM tab2 AS cor0
----
106
94
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2927
SELECT ALL - 92 * col0 + + CAST( - col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-678
-7280
-7385
skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - 92 * col0 + + CAST ( - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-678
-7280
-7385
query I rowsort
SELECT ALL - - 71 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT + ( cor0.col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ( + ( - col2 ) ) + - col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT 62 * col2 AS col1 FROM tab2
----
1612
1674
2356
query I rowsort
SELECT 29 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col2 FROM tab2
----
52
query I rowsort
SELECT DISTINCT - - col2 * - 72 AS col1 FROM tab1 AS cor0
----
-3888
-4104
-6912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2935
SELECT + + col0 * - CAST( col0 AS SIGNED ) * + col2 FROM tab2 cor0
----
-1323
-158184
-237158
skipif mysql # not compatible
query I rowsort label-2935
SELECT + + col0 * - CAST ( col0 AS INTEGER ) * + col2 FROM tab2 cor0
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col2 + + col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT DISTINCT - - col0 * - ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 * + ( col0 + col1 ) FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT ( col1 ) * - col0 * 56 - col1 FROM tab2
----
-12183
-257771
-75225
query I rowsort
SELECT ALL + 13 * col1 FROM tab1
----
130
169
338
query I rowsort
SELECT - cor0.col2 + - col0 + 25 FROM tab1 AS cor0
----
-151
-32
-96
query I rowsort
SELECT - col2 + - 22 * 88 AS col2 FROM tab2 AS cor0
----
-1962
-1963
-1974
query I rowsort
SELECT ALL - ( ( tab0.col1 ) ) AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT - 63 DIV - ( col1 ) + + tab0.col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2945
SELECT - 63 / - ( col1 ) + + tab0.col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - ( - 5 ) + tab1.col0 * col1 FROM tab1
----
1045
645
83
query I rowsort
SELECT ALL ( 53 ) FROM tab2
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT - - col2 DIV cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2948
SELECT - - col2 / cor0.col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0, tab0 AS cor0
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2950
SELECT + - CAST( - 71 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
1704
2485
6319
skipif mysql # not compatible
query I rowsort label-2950
SELECT + - CAST ( - 71 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT ( - col2 ) + + col1 * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT - + ( 6 ) AS col1 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT ( ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + 42 FROM tab0 AS cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT col1 * col0 + col0 AS col2 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL - - col0 * + col1 + - col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - + ( col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - 87 * col0 + + col2 FROM tab0 AS cor0
----
-2055
-3044
-7661
query I rowsort
SELECT + ( col0 ) * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 93 * col2 col2 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT 28 - col2 FROM tab0
----
-5
-54
27
query I rowsort
SELECT + 58 + + col2 * col2 FROM tab2
----
1502
734
787
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1
----
80
query I rowsort
SELECT ALL + 58 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
-164604
-432796
-5626
onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT + - 18 + col2 DIV col0 AS col0 FROM tab0 cor0
----
-17
-18
-18
skipif mysql # not compatible
query I rowsort label-2966
SELECT + - 18 + col2 / col0 AS col0 FROM tab0 cor0
----
-17
-18
-18
query I rowsort
SELECT + ( ( + tab2.col2 ) * + col2 ) - col1 * col1 AS col0 FROM tab2
----
-232
-2805
1155
query I rowsort
SELECT DISTINCT - - cor0.col2 * ( - 52 ) - - col2 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT ALL col1 * col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col2 + 30 FROM tab2 AS cor0
----
-8
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 24 col0 FROM tab1 AS cor0
----
-40
-56
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT DISTINCT - col0 DIV - cor0.col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - col0 / - cor0.col0 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT cor0.col0 * 76 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1825
2661
6765
skipif mysql # not compatible
query I rowsort label-2973
SELECT cor0.col0 * 76 + col2 / col2 AS col1 FROM tab0 AS cor0
----
1825
2661
6765
query I rowsort
SELECT ALL - - col1 + 70 * + col1 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT ALL + - col1 + 48 AS col1 FROM tab2 AS cor0
----
-11
17
31
query I rowsort
SELECT DISTINCT - col1 + 33 AS col0 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT - col0 * - col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 48 + - col0 * col0 col1 FROM tab1 AS cor0
----
-3616
-5776
1239
query I rowsort
SELECT + + col1 - ( cor0.col0 ) AS col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT col2 * col0 + ( col0 * + col2 ) - - col0 * col2 AS col1 FROM tab2 AS cor0
----
567
6084
9006
query I rowsort
SELECT col1 + + col0 * 43 AS col0 FROM tab2 AS cor0
----
332
3413
3414
query I rowsort
SELECT - col0 + + col1 * 33 AS col0 FROM tab1 cor0
----
266
349
855
query I rowsort
SELECT - col0 * - ( 80 ) FROM tab2
----
560
6240
6320
query I rowsort
SELECT DISTINCT 33 * col2 FROM tab0 AS cor0
----
1089
2706
33
query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab0, tab0 AS cor0
----
97
query I rowsort
SELECT ALL - col0 * + 39 + - col2 FROM tab2 AS cor0
----
-300
-3068
-3119
onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT DISTINCT 65 DIV cor0.col0 FROM tab0, tab2 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT 65 / cor0.col0 FROM tab0, tab2 AS cor0
----
0
9
query I rowsort
SELECT ALL + 51 + ( + cor0.col0 ) FROM tab0 cor0
----
140
75
86
query I rowsort
SELECT + cor0.col1 + - col1 * col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT - - col0 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT DISTINCT - - cor0.col1 DIV col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - - cor0.col1 / col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + cor0.col0 + col1 * col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + col2 * col1 + + col2 * + col1 AS col0 FROM tab1
----
1140
2496
2808
query I rowsort
SELECT DISTINCT col0 * col1 + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT col0 * + col1 + + tab1.col0 * - col1 FROM tab1
----
0
0
0
query I rowsort
SELECT + tab1.col2 + col2 * + col1 + - col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 * col0 * col0 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - cor0.col2 * + col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT ALL col2 DIV + col1 + + col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1324
-186
-4543
skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL col2 / + col1 + + col1 + - col1 * + col0 FROM tab2 AS cor0
----
-1324
-186
-4543
query I rowsort
SELECT DISTINCT - + col1 + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL + - col1 - col0 * col0 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT + - cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab2
----
1534
646
837
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col0 BETWEEN col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT - - cor0.col1 + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-3012
SELECT - - cor0.col1 + col2 / col0 FROM tab1 AS cor0
----
10
14
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col1 * col0 col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL - cor0.col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL col0 * - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 AS col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col0 * col0 + + col2 * - col1 + col2 * col2 FROM tab0
----
-1321
-2325
-8659
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - - col1 * - col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT col1 + + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + col1 - col0 AS col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + col1 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL 77 * col1 AS col0 FROM tab2
----
1309
2387
4543
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT DISTINCT CAST( col0 AS SIGNED ) DIV + col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT CAST ( col0 AS INTEGER ) / + col0 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT DISTINCT - 79 DIV - cor0.col2 FROM tab0, tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 79 / - cor0.col2 FROM tab0, tab1 cor0
----
0
1
query I rowsort
SELECT ( col2 ) * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - - cor0.col0 * col2 + col0 * - col2 + - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( 66 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
66
query I rowsort
SELECT ALL - + 34 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca
onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT col1 DIV + tab0.col2 + col0 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT col1 / + tab0.col2 + col0 FROM tab0
----
132
26
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT ALL + 23 DIV - col2 + - col2 AS col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + 23 / - col2 + - col2 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL - col2 + col1 + - ( - 64 + + tab0.col1 ) FROM tab0
----
-18
31
63
query I rowsort
SELECT ALL - - col2 * + col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + 79 * + col1 AS col2 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT DISTINCT 64 + - col0 FROM tab0 AS cor0
----
-25
29
40
query I rowsort
SELECT - col1 + col0 + 26 FROM tab1 AS cor0
----
3
80
93
query I rowsort
SELECT ALL - - col0 * col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT col0 * 71 AS col2 FROM tab2 AS cor0
----
497
5538
5609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3042
SELECT DISTINCT - + col2 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - + col2 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + + col2 + col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT ALL + col1 DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + col1 / - col2 AS col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3045
SELECT + col2 * CAST( 15 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
1453
836
865
skipif mysql # not compatible
query I rowsort label-3045
SELECT + col2 * CAST ( 15 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
1453
836
865
query I rowsort
SELECT col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT + CAST( col2 AS SIGNED ) * + col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136
skipif mysql # not compatible
query I rowsort label-3047
SELECT + CAST ( col2 AS INTEGER ) * + col2 - col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT ( 71 ) + col1 FROM tab1
----
81
84
97
query I rowsort
SELECT cor2.col2 + - cor2.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( cor0.col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 93 - + col1 * - col0 FROM tab0 AS cor0
----
2157
3488
8192
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-3053
SELECT ALL + - col0 * col0 + + 21 + cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-1204
-555
-7900
skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + - col0 * col0 + + 21 + cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
-1204
-555
-7900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT ( cor0.col0 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3054
SELECT ( cor0.col0 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab2
----
84
query I rowsort
SELECT 91 * - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to a77725e3def29fc968577fc9f01effc2
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + 15 AS col1 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT ALL - - 25 FROM tab0 cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT DISTINCT - col2 DIV + col2 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT - col2 / + col2 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT DISTINCT - col0 + col0 * col2 DIV 36 + col2 AS col1 FROM tab1 AS cor0
----
229
55
94
skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - col0 + col0 * col2 / 36 + col2 AS col1 FROM tab1 AS cor0
----
229
55
94
query I rowsort
SELECT - 10 + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-107
-2848
-7472
query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT 3 - col2 DIV col1 FROM tab2
----
1
3
3
skipif mysql # not compatible
query I rowsort label-3064
SELECT 3 - col2 / col1 FROM tab2
----
1
3
3
query I rowsort
SELECT DISTINCT 3 - col2 AS col2 FROM tab2
----
-23
-24
-35
query I rowsort
SELECT ALL 93 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
query I rowsort
SELECT DISTINCT col2 + 10 * col0 AS col2 FROM tab2
----
806
828
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT + 45 * cor0.col2 FROM tab2 AS cor0
----
1170
1215
1710
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3070
SELECT + - CAST( NULL AS SIGNED ) + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3070
SELECT + - CAST ( NULL AS INTEGER ) + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + tab0.col2 * - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 063e3d14235b126732f6b0d2d3cca0ca
query I rowsort
SELECT ( - col0 ) + + col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL tab0.col0 * col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL + 75 + col0 AS col2 FROM tab0 cor0
----
110
164
99
query I rowsort
SELECT DISTINCT - + ( col0 ) * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 - + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT - CAST( col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-3080
SELECT - CAST ( col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort
SELECT ALL - 27 + col0 * CAST ( - col0 AS REAL ) + col2 * + col1 AS col0 FROM tab1
----
-3553
-5179
1368
query I rowsort
SELECT - col2 * + col1 + 57 AS col1 FROM tab1
----
-1191
-1347
-513
query I rowsort
SELECT 69 - col0 AS col2 FROM tab0
----
-20
34
45
query I rowsort
SELECT ALL 57 AS col2 FROM tab0 AS cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab2 cor0
----
37
37
37
query I rowsort
SELECT ALL 24 AS col1 FROM tab0 cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * col1 col1 FROM tab2 AS cor0
----
1105
2015
3835
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 83 * col2 col0 FROM tab1 cor0
----
-4482
-4731
-7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 * 59 * + cor0.col0 col2 FROM tab0 cor0
----
-33960
-467250
-72240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT col1 * + CAST( NULL AS DECIMAL ) - 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3090
SELECT col1 * + CAST ( NULL AS REAL ) - 0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT ALL + col2 DIV - cor0.col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL + col2 / - cor0.col1 FROM tab2 cor0
----
-2
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3092
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3092
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT DISTINCT - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 * - 42 + - col2 FROM tab1 AS cor0
----
-180
-2745
-3456
query I rowsort
SELECT + col2 * col2 - + col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL - col0 * + 42 FROM tab1 AS cor0
----
-126
-2688
-3360
query I rowsort
SELECT col0 + 16 * 99 AS col0 FROM tab2 AS cor0
----
1591
1662
1663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3098
SELECT ALL - + col2 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - + col2 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL cor0.col1 * - ( - col2 ) AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col1 * - 55 FROM tab2 AS cor0
----
-1705
-3245
-935
query I rowsort
SELECT ALL - col0 + + 92 AS col0 FROM tab2 AS cor0
----
13
14
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT DISTINCT - - col2 DIV 54 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - - col2 / 54 + col1 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col0 * col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 * ( - 85 ) FROM tab2 cor0
----
-1445
-2635
-5015
query I rowsort
SELECT 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3108
SELECT ALL + col1 + - CAST( - 58 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
68
71
84
skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + col1 + - CAST ( - 58 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
68
71
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * - 49 col1 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT - tab1.col0 * + 35 AS col2 FROM tab1
----
-105
-2240
-2800
query I rowsort
SELECT - col1 * + ( col0 ) * col1 AS col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + 25 FROM tab0, tab1 AS cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT col1 DIV - col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3113
SELECT col1 / - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col1 * 40 * col0 AS col2 FROM tab1
----
25600
3120
41600
query I rowsort
SELECT - col0 + + 98 FROM tab1 AS cor0
----
18
34
95
query I rowsort
SELECT - col2 * ( - cor0.col2 ) * - cor0.col2 AS col1 FROM tab1 cor0
----
-157464
-185193
-884736
query I rowsort
SELECT - col1 * cor0.col2 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT + col0 * + 15 * col2 AS col2 FROM tab1 AS cor0
----
115200
2430
54720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * col0 + + col1 * ( - col1 ) col2 FROM tab2 AS cor0
----
-2467
-870
738
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) * col2 + + 59 FROM tab1 AS cor0
----
-1189
-1345
-511
query I rowsort
SELECT + - col2 + col2 + - col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3122
SELECT DISTINCT tab0.col1 DIV 70 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT tab0.col1 / 70 AS col2 FROM tab0
----
1
query I rowsort
SELECT ALL 10 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + ( + cor0.col2 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col1 + + col1 + + col2 FROM tab1
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + col2 * + 84 * - col1 + 41 * col1 col0 FROM tab2
----
-126515
-53646
-69044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT DISTINCT tab0.col0 * - CAST( NULL AS SIGNED ) + - col2 + + tab0.col0 * col0 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT tab0.col0 * - CAST ( NULL AS INTEGER ) + - col2 + + tab0.col0 * col0 col1 FROM tab0
----
NULL
query I rowsort
SELECT - - cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col2 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT + 57 * - col0 FROM tab1 cor0
----
-171
-3648
-4560
query I rowsort
SELECT ALL + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - - col0 * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - col2 * col1 - - col1 * + ( cor0.col0 + 85 ) AS col2 FROM tab0 AS cor0
----
11543
6536
8372
query I rowsort
SELECT cor0.col0 + cor0.col0 * 47 AS col2 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT tab2.col2 + - col1 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - ( - 46 * - col1 ) FROM tab1
----
-1196
-460
-598
query I rowsort
SELECT 98 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT 25 * - col2 + tab2.col1 FROM tab2
----
-591
-644
-933
query I rowsort
SELECT DISTINCT + col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT - 49 * - ( - cor0.col0 * + CAST( - 62 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
21266
236964
240002
skipif mysql # not compatible
query I rowsort label-3142
SELECT - 49 * - ( - cor0.col0 * + CAST ( - 62 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
21266
236964
240002
query I rowsort
SELECT 27 + col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT + + col0 * col0 + + col1 FROM tab2 cor0
----
6143
6258
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT ALL - + ( col1 ) + - col1 * - CAST( + 54 + col2 AS SIGNED ) FROM tab1 cor0
----
1100
1937
2782
skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - + ( col1 ) + - col1 * - CAST ( + 54 + col2 AS INTEGER ) FROM tab1 cor0
----
1100
1937
2782
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - ( 73 * col2 ) FROM tab0
----
-2409
-5986
-73
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 AS col0 FROM tab1 cor0
----
111
163
31
query I rowsort
SELECT ALL 16 * - cor0.col0 + - 83 * - 1 FROM tab0 cor0
----
-1341
-301
-477
onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT ALL - 31 DIV tab2.col1 AS col1 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL - 31 / tab2.col1 AS col1 FROM tab2
----
-1
-1
0
query I rowsort
SELECT + ( cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + col1 col2 FROM tab0
----
105
94
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT + col1 DIV - col0 + ( 40 ) * tab0.col2 AS col0 FROM tab0
----
1317
3279
38
skipif mysql # not compatible
query I rowsort label-3153
SELECT + col1 / - col0 + ( 40 ) * tab0.col2 AS col0 FROM tab0
----
1317
3279
38
query I rowsort
SELECT - + col2 + + 40 * - col1 FROM tab2 AS cor0
----
-1267
-2386
-718
query I rowsort
SELECT - col1 * cor0.col0 - - col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT DISTINCT - 22 DIV cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT - 22 / cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-1
-2
0
query I rowsort
SELECT 54 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + col1 + + 5 FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT col1 - ( - col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ( - 42 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT ALL + + 38 AS col1 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT - col2 + + col0 - col2 * - tab1.col2 AS col0 FROM tab1
----
2865
3256
9200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT tab1.col1 DIV 16 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3163
SELECT tab1.col1 / 16 FROM tab1
----
0
0
1
query I rowsort
SELECT + col1 - - 99 AS col0 FROM tab2 AS cor0
----
116
130
158
query I rowsort
SELECT ALL + tab1.col0 - + col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT col2 * col2 + col1 AS col1 FROM tab1
----
2942
3259
9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3167
SELECT CAST( - 54 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-54
-54
skipif mysql # not compatible
query I rowsort label-3167
SELECT CAST ( - 54 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL - + col0 * - 73 - + col1 FROM tab1 AS cor0
----
193
4662
5827
query I rowsort
SELECT DISTINCT + 45 + 93 + - col0 AS col2 FROM tab1
----
135
58
74
query I rowsort
SELECT 17 * 36 - + cor0.col1 * + col0 FROM tab2 cor0
----
-3990
-731
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT DISTINCT + col0 DIV col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + col0 / col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT DISTINCT - ( 9 ) FROM tab2 AS cor0
----
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3173
SELECT ALL - CAST( col0 AS SIGNED ) * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL - CAST ( col0 AS INTEGER ) * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col2 * col0 * + cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT col1 + + col1 * ( + col0 + + col2 ) FROM tab1
----
1220
1508
2301
onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT DISTINCT col2 DIV - tab2.col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT col2 / - tab2.col1 FROM tab2
----
-2
0
query I rowsort
SELECT - col0 - col2 * col2 FROM tab1
----
-2919
-3313
-9296
query I rowsort
SELECT - 98 * - col0 AS col1 FROM tab2 AS cor0
----
686
7644
7742
query I rowsort
SELECT DISTINCT - 92 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col1 + col2 col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT col2 + - 6 * + col0 - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1016
465
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT ALL - + col0 DIV cor0.col2 + col2 DIV col0 FROM tab1 AS cor0
----
-1
1
18
skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL - + col0 / cor0.col2 + col2 / col0 FROM tab1 AS cor0
----
-1
1
18
query I rowsort
SELECT DISTINCT + col1 * - 50 AS col0 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT + col0 * + col0 + - 94 FROM tab0 AS cor0
----
1131
482
7827
query I rowsort
SELECT DISTINCT - col2 * + 87 * col0 + + col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-643025
-6440
-70968
query I rowsort
SELECT DISTINCT - - col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 7 + 85 * cor0.col1 * + ( col2 ) col2 FROM tab1 AS cor0
----
106183
119401
48514
query I rowsort
SELECT col1 * - col0 + + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3189
SELECT + col1 DIV + col1 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3189
SELECT + col1 / + col1 AS col2 FROM tab1 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT ALL + cor0.col0 + col0 DIV - 38 AS col2 FROM tab0 cor0
----
24
35
87
skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL + cor0.col0 + col0 / - 38 AS col2 FROM tab0 cor0
----
24
35
87
query I rowsort
SELECT + 72 FROM tab0
----
72
72
72
query I rowsort
SELECT + + col2 + ( 97 ) * col0 FROM tab0 AS cor0
----
2361
3396
8715
query I rowsort
SELECT + - col0 - cor0.col0 * - col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + - col0 - + col0 * - 97 FROM tab1 cor0
----
288
6144
7680
query I rowsort
SELECT ALL - col2 + - cor0.col2 FROM tab0 cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT - col1 - + col1 DIV col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-3196
SELECT - col1 - + col1 / col0 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT DISTINCT - ( + col0 ) - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT + col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ALL col2 * tab2.col2 + col0 * 95 AS col1 FROM tab2
----
1394
8086
8949
query I rowsort
SELECT DISTINCT cor0.col0 * + 80 FROM tab1, tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT - tab1.col2 * - tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL + 23 AS col0 FROM tab0
----
23
23
23
query I rowsort
SELECT ALL + ( 72 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL - + 41 + - col2 FROM tab0 AS cor0
----
-123
-42
-74
query I rowsort
SELECT - 19 * + col0 * 16 FROM tab2
----
-2128
-23712
-24016
query I rowsort
SELECT + col2 + + col2 + + col1 * + col0 FROM tab1
----
1232
186
754
query I rowsort
SELECT - 67 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL - + 99 AS col2 FROM tab2 AS cor0
----
-99
-99
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT CAST( 0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3209
SELECT CAST ( 0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3210
SELECT ALL CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT ( 17 ) + + cor0.col0 FROM tab0 AS cor0
----
106
41
52
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL - col0 * 52 FROM tab2
----
-364
-4056
-4108
query I rowsort
SELECT ALL col0 * tab2.col1 * - col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col0 * 97 FROM tab2 AS cor0
----
679
7566
7663
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT DISTINCT + ( 62 ) DIV col0 + 24 * + col2 AS col0 FROM tab0 cor0
----
1968
25
794
skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + ( 62 ) / col0 + 24 * + col2 AS col0 FROM tab0 cor0
----
1968
25
794
query I rowsort
SELECT + cor0.col0 + - cor0.col2 * - col1 AS col2 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - + ( + col1 ) + + col0 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT ALL col0 * col1 - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab2 AS cor0
----
64
query I rowsort
SELECT + - 19 * cor0.col0 + col0 FROM tab2 AS cor0
----
-126
-1404
-1422
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 95 col1 FROM tab1 AS cor0
----
-5130
-5415
-9120
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * - col1 + col2 FROM tab0 AS cor0
----
-2007
-3359
-7928
query I rowsort
SELECT DISTINCT - + 56 + cor0.col2 * - cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
-221
-3768
-7816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + ( + col0 ) - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL 21 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 89 * ( col2 + ( - col1 ) ) * col0 AS col2 FROM tab1 AS cor0
----
267712
590960
7476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 * - col1 col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - - 88 * col0 AS col2 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT DISTINCT 35 + - col0 AS col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT col2 + + 79 * - col2 FROM tab0 cor0
----
-2574
-6396
-78
query I rowsort
SELECT DISTINCT 83 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
83
query I rowsort
SELECT ALL 51 * - tab2.col2 FROM tab2
----
-1326
-1377
-1938
query I rowsort
SELECT + ( col1 ) * + 21 FROM tab1 AS cor0
----
210
273
546
query I rowsort
SELECT - col2 * + tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + - 52 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2808
-2964
-4992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3239
SELECT - col2 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col2 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT - ( col1 ) * + ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 * - 35 col1 FROM tab2 AS cor0
----
10115
121835
33635
query I rowsort
SELECT 79 + col0 AS col2 FROM tab1 AS cor0
----
143
159
82
query I rowsort
SELECT + 64 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-105
-36
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-3245
SELECT - col0 DIV col2 + 39 * col2 DIV 50 AS col1 FROM tab1 AS cor0
----
42
43
74
skipif mysql # not compatible
query I rowsort label-3245
SELECT - col0 / col2 + 39 * col2 / 50 AS col1 FROM tab1 AS cor0
----
42
43
74
query I rowsort
SELECT col0 * 44 + + col0 FROM tab1 cor0
----
135
2880
3600
query I rowsort
SELECT DISTINCT + - col1 + 32 * + col1 AS col2 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT ALL + col0 * + col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - col0 + - 12 AS col0 FROM tab0 AS cor0
----
-101
-36
-47
query I rowsort
SELECT DISTINCT + col1 + - ( 9 ) AS col0 FROM tab0 cor0
----
77
82
88
query I rowsort
SELECT col1 * 6 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT - col1 + + 63 AS col0 FROM tab0 AS cor0
----
-23
-28
-34
query I rowsort
SELECT DISTINCT - + col1 + - ( col0 ) FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT col0 * tab1.col2 DIV - col0 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3254
SELECT col0 * tab1.col2 / - col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - col0 * col1 + col1 AS col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col2 + - col0 + col2 * col2 AS col0 FROM tab0
----
-35
1032
6553
onlyif mysql # use DIV operator for integer division
query I rowsort label-3257
SELECT DISTINCT + tab1.col1 DIV - col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT + tab1.col1 / - col0 AS col1 FROM tab1
----
-8
0
query I rowsort
SELECT tab1.col1 + tab1.col0 * tab1.col2 - col0 AS col2 FROM tab1
----
185
3594
7613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 + tab1.col2 * col1 col0 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT DISTINCT + col0 + col0 DIV + tab0.col2 AS col0 FROM tab0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT + col0 + col0 / + tab0.col2 AS col0 FROM tab0
----
24
70
90
query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE + col2 * + col2 = ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT col1 DIV col0 + col2 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-3262
SELECT col1 / col0 + col2 FROM tab0
----
3
36
83
query I rowsort
SELECT - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col1 - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 + + col1 + col2 * col2 AS col1 FROM tab0
----
1151
63
6726
query I rowsort
SELECT col2 * - tab2.col1 * col1 AS col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + col0 + - col0 - - col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT tab1.col2 + col0 - col0 AS col0 FROM tab1
----
54
57
96
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT tab0.col1 * - col0 * tab0.col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col0 * col0 + + col1 * + col2 AS col2 FROM tab2
----
6887
7618
886
query I rowsort
SELECT col1 * col0 * + col1 FROM tab2
----
22831
271518
6727
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + col1 * col2 > - col2
----
query I rowsort
SELECT col2 + tab1.col2 + + tab1.col1 FROM tab1
----
124
134
205
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab1
----
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + col0
----
query I rowsort
SELECT col2 * + tab0.col1 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab0 WHERE col0 NOT IN ( - col2 * col1 + + col2 )
----
-119
-173
-98
query I rowsort
SELECT col1 + + col2 * - col1 FROM tab0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NOT col1 <= ( - col2 * + col0 + col1 )
----
10
13
26
query I rowsort
SELECT - col2 * col2 - tab1.col0 * col2 AS col0 FROM tab1
----
-16896
-3078
-6897
query I rowsort
SELECT DISTINCT col2 * - col1 + - col2 AS col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + + col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT + - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3288
SELECT + - col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT col1 * + col0 DIV col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3289
SELECT col1 * + col0 / col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT ALL cor0.col1 * cor0.col0 + - col0 DIV + col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-3290
SELECT ALL cor0.col1 * cor0.col0 + - col0 / + col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 * - col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - col0 * col0 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT DISTINCT + col1 DIV - ( col0 ) + - cor0.col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1358
-513
skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + col1 / - ( col0 ) + - cor0.col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1358
-513
query I rowsort
SELECT ALL - + col1 - - 55 AS col0 FROM tab0 cor0
----
-31
-36
-42
query I rowsort
SELECT - col1 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT - + col0 * - 35 + + 65 AS col2 FROM tab0 AS cor0
----
1290
3180
905
query I rowsort
SELECT DISTINCT + - col1 + + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + - col0 + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col2 * col2 * - tab2.col0 + + col1 * col2 AS col2 FROM tab2
----
-113430
-4266
-51194
query I rowsort
SELECT + col1 * col0 + + 61 * col1 AS col1 FROM tab0
----
13650
7310
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3304
SELECT ALL + - col1 - - CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + - col1 - - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
SELECT DISTINCT - col2 * + CAST( - col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT - col2 * + CAST ( - col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col2 * 36 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
-1782
1596
4224
query I rowsort
SELECT col0 * col1 + + col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT ALL - col1 * col1 DIV col0 AS col1 FROM tab2 cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - col1 * col1 / col0 AS col1 FROM tab2 cor0
----
-137
-3
-44
query I rowsort
SELECT DISTINCT tab1.col2 - + col2 AS col2 FROM tab1
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IN ( + tab2.col2 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col1 * col2 + - col2 AS col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT DISTINCT + - 67 + col0 FROM tab0 AS cor0
----
-32
-43
22
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
query I rowsort
SELECT - col0 * + col2 + col1 * col0 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT - col0 + - tab0.col0 * col2 FROM tab0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE NULL <= ( col2 * - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3317
SELECT ALL + col0 DIV + col2 + - col1 FROM tab1
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + col0 / + col2 + - col1 FROM tab1
----
-13
-26
-9
query III rowsort
SELECT * FROM tab0 WHERE col1 + - col0 IN ( + col2 * - col2 * col2 )
----
query I rowsort
SELECT + col0 + col2 - col0 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT + tab2.col1 + - tab2.col1 - col2 * col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL tab1.col0 * tab1.col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab2.col1 * + tab2.col1 FROM tab2 WHERE NULL NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT - col1 DIV + col1 + ( - col0 ) FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-3323
SELECT - col1 / + col1 + ( - col0 ) FROM tab0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3325
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3325
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + tab0.col2 * + col0 + col0 * tab0.col1 FROM tab0
----
15397
2856
3430
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3327
SELECT DISTINCT + - col1 + + col2 * CAST( NULL AS SIGNED ) * + 76 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT + - col1 + + col2 * CAST ( NULL AS INTEGER ) * + 76 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + - col1 + + cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - + 18 + + col2 FROM tab0 AS cor0
----
-17
15
64
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 - col2 * col2 * - 8 FROM tab0 AS cor0
----
53792
8
8712
query I rowsort
SELECT + cor0.col2 + 76 * + col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT col2 * + 84 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
1140
384
4374
query I rowsort
SELECT ALL + col0 * 90 FROM tab1 AS cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT DISTINCT col2 DIV ( - col0 * - col0 ) FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col2 / ( - col0 * - col0 ) FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT + + 98 - - col0 FROM tab1 cor0
----
101
162
178
query I rowsort
SELECT + 30 * - col0 * col2 FROM tab0 AS cor0
----
-1050
-218940
-23760
query I rowsort
SELECT + cor0.col2 - - ( - col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-3343
SELECT - col1 + col1 DIV col2 - col2 * - col1 * col2 col2 FROM tab0 AS cor0
----
611794
93570
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3343
SELECT - col1 + col1 / col2 - col2 * - col1 * col2 col2 FROM tab0 AS cor0
----
611794
93570
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col0 ) * + col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + ( 26 ) AS col2 FROM tab2 AS cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3346
SELECT + - CAST( NULL AS SIGNED ) + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3346
SELECT + - CAST ( NULL AS INTEGER ) + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * cor1.col0 col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8653fa89c5aae4b8705e70c3e66aa94a
query I rowsort
SELECT ALL - col2 * + cor0.col1 * + ( ( col1 ) ) FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col0 * - col0 * + col2 AS col1 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT 57 FROM tab1 cor0
----
57
57
57
query I rowsort
SELECT ALL 31 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + 22 * - 9 FROM tab0 AS cor0
----
1866
3197
7901
query I rowsort
SELECT - cor0.col1 * - col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 5 + tab2.col2 AS col0 FROM tab2
----
31
32
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3355
SELECT + col0 + - col2 * - CAST( + col1 * col1 AS SIGNED ) AS col1 FROM tab1
----
16304
36507
5764
skipif mysql # not compatible
query I rowsort label-3355
SELECT + col0 + - col2 * - CAST ( + col1 * col1 AS INTEGER ) AS col1 FROM tab1
----
16304
36507
5764
query I rowsort
SELECT - + cor0.col0 * - 1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + col0 * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + ( - 25 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e486ad4a8b0c2397bee5b4fe756e533a
query I rowsort
SELECT ( - tab0.col2 ) + - 69 * + 69 FROM tab0
----
-4762
-4794
-4843
query I rowsort
SELECT 31 * col0 * - tab2.col0 + col1 * col1 * + col0 FROM tab2
----
-170640
5208
82914
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT - col0 * col0 + col2 DIV col2 AS col0 FROM tab0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-3361
SELECT - col0 * col0 + col2 / col2 AS col0 FROM tab0
----
-1224
-575
-7920
query I rowsort
SELECT DISTINCT - 12 * col2 FROM tab1
----
-1152
-648
-684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col1 FROM tab2 WHERE NULL IN ( + col0 ) AND NOT + col1 * col2 IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab2.col1 * col2 col1 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT tab1.col0 * 68 * col2 + - col2 FROM tab1
----
10962
248007
522144
query I rowsort
SELECT - ( + 0 ) + tab2.col0 FROM tab2
----
7
78
79
query I rowsort
SELECT 35 * - col0 * + col0 FROM tab0
----
-20160
-277235
-42875
query I rowsort
SELECT ALL 89 * col1 FROM tab2
----
1513
2759
5251
query I rowsort
SELECT + cor0.col1 - + 6 * col2 FROM tab0 AS cor0
----
-112
-401
91
query I rowsort
SELECT - 66 * - col2 AS col1 FROM tab2
----
1716
1782
2508
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3373
SELECT CAST( - 2 AS SIGNED ) FROM tab0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-3373
SELECT CAST ( - 2 AS INTEGER ) FROM tab0
----
-2
-2
-2
query I rowsort
SELECT ALL cor0.col1 + - col0 * col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - + 22 AS col0 FROM tab2 cor0
----
-22
query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 + + cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT ( col2 ) * tab0.col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - ( + col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - - col1 + col2 AS col2 FROM tab0 cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT - col1 + + col1 DIV col0 col2 FROM tab1 AS cor0
----
-10
-13
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3380
SELECT - col1 + + col1 / col0 col2 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT + 56 FROM tab1, tab0, tab2 cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT + 66 * col1 FROM tab0
----
5676
6006
6402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col2 FROM tab2, tab2 AS cor0
----
28
query I rowsort
SELECT + 39 - col1 AS col2 FROM tab0
----
-47
-52
-58
query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab0
----
67
query I rowsort
SELECT + col2 + - col1 * 81 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
229911
604504
7858
query I rowsort
SELECT - col2 * col2 * col1 + + 5 AS col2 FROM tab2 cor0
----
-22594
-24543
-39879
onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT DISTINCT + col2 + cor0.col2 DIV + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + col2 + cor0.col2 / + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL + 94 + + col0 - + col0 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
2200
290
3175
query I rowsort
SELECT - col0 + + col0 * 68 FROM tab0 AS cor0
----
1608
2345
5963
onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT ALL + ( col0 ) DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL + ( col0 ) / col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + + col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT ALL 87 * + col0 * + 72 + col1 DIV - cor0.col2 - 86 FROM tab0 AS cor0
----
150248
219057
557409
skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL 87 * + col0 * + 72 + col1 / - cor0.col2 - 86 FROM tab0 AS cor0
----
150248
219057
557409
query I rowsort
SELECT 49 + + col0 AS col2 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT col2 - + col0 * 20 AS col2 FROM tab2 cor0
----
-113
-1534
-1542
query I rowsort
SELECT + + col0 + - col1 * - col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 - col0 * 28 AS col1 FROM tab2 cor0
----
-203
-2262
-2291
query I rowsort
SELECT ALL + col0 * + col0 + + col1 AS col1 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT cor0.col0 DIV 77 AS col1 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
skipif mysql # not compatible
query I rowsort label-3399
SELECT cor0.col0 / 77 AS col1 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0b11509574b38a6005fbf722b6afa708
onlyif mysql # use DIV operator for integer division
query I rowsort label-3400
SELECT + col1 DIV + 91 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3400
SELECT + col1 / + 91 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * 57 col0 FROM tab0 AS cor0
----
1454
2092
5164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab0, tab2 AS cor0
----
59
query I rowsort
SELECT + 94 * col2 AS col2 FROM tab0 AS cor0
----
3102
7708
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( col2 ) ) col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col1 * col0 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 50 + col0 * - col0 FROM tab1 cor0
----
-4046
-6350
41
query I rowsort
SELECT + + 90 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT 46 + col1 + col2 * + col1 FROM tab2 cor0
----
1639
709
914
query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT + 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL + col0 * - 64 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT DISTINCT + - cor0.col1 * ( col2 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col1 * - 37 FROM tab1 AS cor0
----
-370
-481
-962
query I rowsort
SELECT ALL + cor0.col2 * col2 + col2 * cor0.col0 AS col1 FROM tab0 cor0
----
14022
1881
36
query I rowsort
SELECT 86 + col2 AS col0 FROM tab1 AS cor0
----
140
143
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT ALL + 4 + - 15 * - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-11
-11
-11
skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + 4 + - 15 * - col2 / - col2 AS col1 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT DISTINCT - 39 + - 78 AS col1 FROM tab1 AS cor0
----
-117
query I rowsort
SELECT - + 89 * col1 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT DISTINCT cor0.col1 + 17 AS col1 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT ALL + + col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - col2 + 60 * col2 AS col1 FROM tab2 AS cor0
----
1534
1593
2242
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3425
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * 85 * + cor0.col0 col2 FROM tab2 AS cor0
----
4158
517062
530406
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 + cor0.col0 col0 FROM tab0 cor0
----
109
120
174
query I rowsort
SELECT DISTINCT - 47 * + col0 + - 93 FROM tab1 AS cor0
----
-234
-3101
-3853
query I rowsort
SELECT ALL + 35 + col0 * + 15 FROM tab1 AS cor0
----
1235
80
995
query I rowsort
SELECT ALL - col2 * - col1 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT 26 * + col2 FROM tab1 cor0
----
1404
1482
2496
query I rowsort
SELECT DISTINCT - col1 + - col1 * + ( - 85 ) + col2 AS col1 FROM tab1 AS cor0
----
1188
2238
897
query I rowsort
SELECT DISTINCT + 67 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
67
query I rowsort
SELECT ALL + ( 2 ) FROM tab2
----
2
2
2
query I rowsort
SELECT ALL + col2 + 19 + - 80 AS col0 FROM tab2 AS cor0
----
-23
-34
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col1 FROM tab2, tab0 AS cor0
----
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3438
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3438
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 70 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
70
query I rowsort
SELECT 77 * col0 AS col0 FROM tab1
----
231
4928
6160
query I rowsort
SELECT DISTINCT col1 * ( col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col2 + - ( + col0 + + col2 * col2 ) FROM tab0
----
-1080
-35
-6731
query I rowsort
SELECT + 76 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col1 FROM tab1, tab1 AS cor0
----
28
query I rowsort
SELECT - 8 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT + col1 * + 45 FROM tab0
----
3870
4095
4365
onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT ALL col1 DIV + col2 + col1 AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL col1 / + col2 + col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + 39 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 + 86 col2 FROM tab2
----
27
55
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col1 * + col1 col2 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT + - cor0.col1 * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 16 * col0 AS col0 FROM tab0 AS cor0
----
1424
384
560
query I rowsort
SELECT - 61 * - col2 FROM tab1 AS cor0
----
3294
3477
5856
query I rowsort
SELECT DISTINCT + 61 FROM tab0
----
61
query I rowsort
SELECT ALL 17 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT DISTINCT - 60 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-60
query I rowsort
SELECT - col2 * + ( + 38 ) AS col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT + + col0 * - 80 AS col1 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT DISTINCT + col0 * 49 AS col2 FROM tab0 AS cor0
----
1176
1715
4361
query I rowsort
SELECT DISTINCT tab2.col1 * cor0.col0 AS col1 FROM tab2, tab0, tab0 AS cor0
----
9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT ALL - col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL - col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - cor0.col1 col0 FROM tab2 cor0
----
-289
-3481
-961
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT DISTINCT - + col1 * - ( col1 + + col1 ) DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - + col1 * - ( col1 + + col1 ) / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT col2 * - 94 AS col0 FROM tab0 AS cor0
----
-3102
-7708
-94
query I rowsort
SELECT - col2 * col0 + - 57 AS col1 FROM tab2 AS cor0
----
-2085
-246
-3059
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3468
SELECT DISTINCT + - CAST( ( + col1 ) AS SIGNED ) * CAST( ( - col1 ) AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + - CAST ( ( + col1 ) AS INTEGER ) * CAST ( ( - col1 ) AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL - 36 * 4 AS col2 FROM tab2 AS cor0
----
-144
-144
-144
query I rowsort
SELECT ALL - 37 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-13
-2
52
query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 + - tab1.col2 AS col1 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT + 10 * - col0 * col2 FROM tab2
----
-1890
-20280
-30020
query I rowsort
SELECT DISTINCT col2 + 79 AS col2 FROM tab0
----
112
161
80
query I rowsort
SELECT + - ( col1 ) + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT + 9 - ( - col0 ) FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT ( - col1 ) - cor0.col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT DISTINCT - col0 + - col2 * col2 * - CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - col0 + - col2 * col2 * - CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 18 + col1 FROM tab2 cor0
----
35
49
77
query I rowsort
SELECT 16 + col0 * col2 AS col2 FROM tab2 AS cor0
----
2044
205
3018
query I rowsort
SELECT ( + cor0.col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + - 77 FROM tab1 AS cor0
----
-77
-77
-77
query I rowsort
SELECT + 45 * + col2 + - 85 * 8 + + col1 AS col1 FROM tab1 AS cor0
----
1776
1895
3653
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT DISTINCT + col0 DIV col0 col0 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT + col0 / col0 col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - - ( col1 ) * + col2 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + ( - col1 ) + tab1.col2 + + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL + 3 AS col1 FROM tab1
----
3
3
3
query I rowsort
SELECT - tab1.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT DISTINCT ( - tab0.col1 * col0 ) + 86 FROM tab0
----
-1978
-3309
-8013
query I rowsort
SELECT + 28 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT - - col2 + cor0.col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + tab0.col1 * col1 AS col0 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 21 col2 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT - + col1 * - 25 FROM tab0 AS cor0
----
2150
2275
2425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 34 * 49 col2 FROM tab2 AS cor0
----
-1666
-1666
-1666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 42 col1 FROM tab0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col2 FROM tab0 cor0
----
60
60
60
query I rowsort
SELECT + col1 + - ( + col2 ) FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - 73 + 28 * col1 FROM tab1 AS cor0
----
207
291
655
query I rowsort
SELECT - col2 * col0 - col0 FROM tab2 cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT - CAST( - ( col1 ) AS SIGNED ) * + 60 FROM tab1 cor0
----
1560
600
780
skipif mysql # not compatible
query I rowsort label-3502
SELECT - CAST ( - ( col1 ) AS INTEGER ) * + 60 FROM tab1 cor0
----
1560
600
780
query I rowsort
SELECT col1 * + col1 - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab0 cor0
----
85
query I rowsort
SELECT DISTINCT - + col1 * col0 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col1 * col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col2 * + col0 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - cor0.col2 + 41 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1325
-2471
-773
query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT ALL col0 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL col0 + col0 / col2 AS col1 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT - col2 * ( cor0.col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + - col2 * - col2 + col2 AS col1 FROM tab1 cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT DISTINCT + col2 DIV ( - col0 ) + - col2 FROM tab2 AS cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + col2 / ( - col0 ) + - col2 FROM tab2 AS cor0
----
-26
-30
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col2 - - ( col2 + - col0 * col1 ) AS col2 FROM tab1
----
-526
-848
30
query I rowsort
SELECT DISTINCT + + 91 * col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - 89 AS col1 FROM tab1 AS cor0
----
-89
-89
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT 93 DIV + col1 FROM tab1 cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-3520
SELECT 93 / + col1 FROM tab1 cor0
----
3
7
9
query I rowsort
SELECT ALL - col2 + + 40 * + col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT ALL - + 86 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT tab2.col2 - - ( - 74 ) FROM tab2
----
-36
-47
-48
query I rowsort
SELECT ALL col1 * 59 FROM tab1
----
1534
590
767
query I rowsort
SELECT - col1 - + tab0.col0 AS col0 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col0 + 70 FROM tab0
----
105
159
94
query I rowsort
SELECT ALL + ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - + col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - ( col2 ) * col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col0 * + col2 + col2 * col2 FROM tab2 cor0
----
2704
4446
918
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 + + ( - col1 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 65 AS col1 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL - col1 - + cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + + col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 53 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT - ( 24 ) AS col2 FROM tab0
----
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT ALL col0 DIV + ( col1 ) - + 13 FROM tab0
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL col0 / + ( col1 ) - + 13 FROM tab0
----
-13
-13
-13
query I rowsort
SELECT - 80 * + 50 FROM tab1
----
-4000
-4000
-4000
query I rowsort
SELECT - 11 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT - 96 + + col2 * col0 FROM tab0 AS cor0
----
-61
696
7202
query I rowsort
SELECT 0 * col1 + - 23 * - col1 * + col2 FROM tab1 AS cor0
----
13110
28704
32292
query I rowsort
SELECT - col0 + col0 * + 50 AS col1 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT col1 + col1 * col1 + - col0 * - col1 AS col0 FROM tab2
----
1209
1649
8142
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 + 79 AS col1 FROM tab1
----
-1156
-1299
-481
query I rowsort
SELECT - 3 * col2 FROM tab0
----
-246
-3
-99
query I rowsort
SELECT + + col0 * ( col0 ) * + col1 + 91 FROM tab1 AS cor0
----
325
41051
83291
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - + 71 + col2 * col0 * col2 FROM tab0 AS cor0
----
-36
26065
598365
query I rowsort
SELECT DISTINCT + - cor0.col1 * - cor0.col1 - 90 AS col2 FROM tab2 AS cor0
----
199
3391
871
query I rowsort
SELECT - 48 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1222
-1269
-1786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 * col0 * col2 col2 FROM tab2
----
-113568
-44793
-5810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * - ( col2 ) col1 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - cor0.col0 - - ( - ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - col0 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL - col2 * ( col1 ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL + - col1 + ( - col2 ) FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT - + col2 + + 88 AS col0 FROM tab0 AS cor0
----
55
6
87
query I rowsort
SELECT DISTINCT col0 * col2 + col1 - col2 AS col2 FROM tab2 AS cor0
----
193
2061
2981
query I rowsort
SELECT - cor0.col0 + 28 * + col2 AS col1 FROM tab1 AS cor0
----
1509
1532
2608
query I rowsort
SELECT DISTINCT - col1 + ( 8 ) FROM tab0 AS cor0
----
-78
-83
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3565
SELECT + col1 * ( col1 ) + col2 * col2 + - 85 DIV col0 AS col0 FROM tab0 AS cor0
----
15005
8482
9408
skipif mysql # not compatible
query I rowsort label-3565
SELECT + col1 * ( col1 ) + col2 * col2 + - 85 / col0 AS col0 FROM tab0 AS cor0
----
15005
8482
9408
query I rowsort
SELECT ALL + - col1 * - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 * ( col1 ) + - col1 + + ( col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * 61 + - 9 FROM tab0 AS cor0
----
-5255
-5560
-5926
query I rowsort
SELECT cor0.col2 * - 64 AS col0 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT + tab2.col0 - + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + - 54 + col2 AS col2 FROM tab2 AS cor0
----
-16
-27
-28
query I rowsort
SELECT 39 + 39 * cor0.col2 FROM tab0 AS cor0
----
1326
3237
78
query I rowsort
SELECT DISTINCT + + ( col2 ) * + col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 75 * col0 * - col0 col0 FROM tab2 AS cor0
----
3675
456300
468075
onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT - 78 * col0 - col0 DIV - 67 AS col0 FROM tab0 AS cor0
----
-1872
-2730
-6941
skipif mysql # not compatible
query I rowsort label-3576
SELECT - 78 * col0 - col0 / - 67 AS col0 FROM tab0 AS cor0
----
-1872
-2730
-6941
query I rowsort
SELECT DISTINCT - - col0 + - col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT CAST( col1 AS SIGNED ) * cor0.col2 + - col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
1798
5015
935
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3578
SELECT CAST ( col1 AS INTEGER ) * cor0.col2 + - col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
1798
5015
935
onlyif mysql # use DIV operator for integer division
query I rowsort label-3579
SELECT ALL + - col1 * cor0.col1 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL + - col1 * cor0.col1 / col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + - col0 * 76 AS col1 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0 AS cor0
----
13
query I rowsort
SELECT ( col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + - col1 col0 FROM tab2
----
18
6025
6224
query I rowsort
SELECT - + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - 46 * + col0 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT - 59 + + col0 AS col1 FROM tab2 AS cor0
----
-52
19
20
query I rowsort
SELECT 37 * 14 + - col1 FROM tab2 AS cor0
----
459
487
501
query I rowsort
SELECT ALL + + col2 * + ( col0 ) + ( - col2 ) FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col0 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col0 + - 96 FROM tab1
----
-16
-32
-93
query I rowsort
SELECT - col1 * 34 FROM tab1
----
-340
-442
-884
onlyif mysql # use DIV operator for integer division
query I rowsort label-3592
SELECT ALL + ( tab2.col0 ) DIV col0 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL + ( tab2.col0 ) / col0 AS col2 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3593
SELECT ALL - ( - col1 ) DIV col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - ( - col1 ) / col1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - + 63 AS col0 FROM tab1 AS cor0
----
-63
-63
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3595
SELECT ALL - 91 DIV 56 + col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - 91 / 56 + col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT + 65 + + 5 * - col2 FROM tab2 cor0
----
-125
-65
-70
query I rowsort
SELECT DISTINCT - 68 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT - 77 AS col2 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ( col2 + + col2 ) * + col0 AS col2 FROM tab0
----
14596
1584
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col2 + - col0 * col0 * col1 AS col2 FROM tab0 cor0
----
-118824
-49503
-720729
query I rowsort
SELECT - col1 * 31 AS col1 FROM tab2
----
-1829
-527
-961
query I rowsort
SELECT + col2 - cor0.col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - col1 + + 3 AS col1 FROM tab2 AS cor0
----
-14
-28
-56
query I rowsort
SELECT DISTINCT - + col0 * 79 + - col0 * + col1 AS col0 FROM tab1 cor0
----
-315
-5696
-7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3607
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 5 + 2 AS col0 FROM tab1, tab2 AS cor0
----
7
query I rowsort
SELECT ALL + col0 * 75 + - ( - cor0.col2 ) FROM tab0 AS cor0
----
1833
2626
6757
query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col2 + + ( - col2 ) - - col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 68 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
68
query I rowsort
SELECT - - col0 + ( col0 ) * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - col2 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 86 col1 FROM tab2
----
1462
2666
5074
query I rowsort
SELECT - 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT - col1 DIV - 76 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3618
SELECT - col1 / - 76 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT col0 - - col0 * - col1 * CAST ( 71 + col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-1295751
-196056
-359835
query I rowsort
SELECT col2 + - col1 * + col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col2 * col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + ( 34 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT DISTINCT - col1 * + tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT 74 * - col2 AS col1 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT + 23 + + col0 * col1 FROM tab2 AS cor0
----
1366
240
4625
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3627
SELECT + - col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3627
SELECT + - col1 / 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 ALL + 71 * - col2 * 28 col1 FROM tab2
----
-51688
-53676
-75544
query I rowsort
SELECT + 97 * ( - col1 ) + + ( + col1 ) FROM tab0 AS cor0
----
-8256
-8736
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-3630
SELECT ALL tab0.col1 DIV + 89 + - col2 * + 39 AS col1 FROM tab0
----
-1287
-3197
-38
skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL tab0.col1 / + 89 + - col2 * + 39 AS col1 FROM tab0
----
-1287
-3197
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT 5 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3631
SELECT 5 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( col0 ) * col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL + ( 28 ) * col1 AS col2 FROM tab1 AS cor0
----
280
364
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col2 FROM tab2 AS cor0
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 + col0 * + 4 * col2 col2 FROM tab2 cor0
----
-81
11362
6578
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT + col0 + - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-3636
SELECT + col0 + - col1 / - col0 AS col2 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT - 53 * - col1 FROM tab0 cor0
----
4558
4823
5141
query I rowsort
SELECT DISTINCT - - col2 + col1 * cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT + - ( - col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 16 FROM tab2 cor0
----
16
query I rowsort
SELECT ALL - col1 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT cor0.col2 + col2 * 48 AS col2 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + 43 FROM tab2 cor0
----
1577
689
880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT DISTINCT tab0.col1 * + 29 + - col2 + ( tab0.col0 ) DIV - col0 FROM tab0
----
2460
2556
2811
skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT tab0.col1 * + 29 + - col2 + ( tab0.col0 ) / - col0 FROM tab0
----
2460
2556
2811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - - col2 col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL col1 + + ( - col2 ) + + col1 FROM tab1 AS cor0
----
-2
-37
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT cor0.col2 + + CAST( col0 AS SIGNED ) * col0 * + col0 FROM tab2 AS cor0
----
370
474578
493077
skipif mysql # not compatible
query I rowsort label-3647
SELECT cor0.col2 + + CAST ( col0 AS INTEGER ) * col0 * + col0 FROM tab2 AS cor0
----
370
474578
493077
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col2 * + CAST ( + col0 AS REAL ) + - col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col2 FROM tab1
----
54
54
54
query I rowsort
SELECT 71 * + col1 AS col1 FROM tab0
----
6106
6461
6887
query I rowsort
SELECT DISTINCT 61 + + cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
150
85
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT + col2 DIV + 30 + - 50 * col0 + - col0 DIV tab2.col1 AS col0 FROM tab2
----
-350
-3901
-3953
skipif mysql # not compatible
query I rowsort label-3652
SELECT + col2 / + 30 + - 50 * col0 + - col0 / tab2.col1 AS col0 FROM tab2
----
-350
-3901
-3953
query I rowsort
SELECT - col1 * - ( + col2 ) + - col1 * + 30 AS col0 FROM tab2 AS cor0
----
-236
-93
136
query I rowsort
SELECT DISTINCT - ( col1 ) - - col2 * + col2 FROM tab0 AS cor0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) - + col2 col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 + 36 * col1 col0 FROM tab0 AS cor0
----
3020
3200
3416
query I rowsort
SELECT ALL - + col2 * cor0.col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT tab1.col1 * + 87 FROM tab1, tab2, tab2 cor0
----
27 values hashing to f5fee94c2173d4a1a965a0917a69363e
query I rowsort
SELECT DISTINCT - + ( - col2 ) * - col0 + col1 * - col2 * col1 - + cor0.col2 FROM tab1 AS cor0
----
-24000
-36720
-9405
query I rowsort
SELECT + - 28 + - col2 FROM tab0 AS cor0
----
-110
-29
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * - col1 col0 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT ALL + - ( - col0 ) - + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - col2 * + col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL - + 91 * - col1 + - col2 * 12 FROM tab1 AS cor0
----
1718
226
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT ALL + + CAST( NULL AS SIGNED ) - - 45 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + + CAST ( NULL AS INTEGER ) - - 45 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 - + col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 - - col2 col0 FROM tab1
----
131
189
83
query I rowsort
SELECT ALL + col1 * tab1.col0 + - col1 AS col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT - 26 + + 67 FROM tab2
----
41
41
41
query I rowsort
SELECT DISTINCT - + 96 * col0 + + col0 FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT + - col1 + + 14 FROM tab2 AS cor0
----
-17
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT ALL - + CAST( - col0 AS SIGNED ) * cor0.col0 DIV - 71 AS col2 FROM tab1 AS cor0
----
-57
-90
0
skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - + CAST ( - col0 AS INTEGER ) * cor0.col0 / - 71 AS col2 FROM tab1 AS cor0
----
-57
-90
0
query I rowsort
SELECT DISTINCT - col0 + 24 * + col2 FROM tab1 AS cor0
----
1293
1304
2224
query I rowsort
SELECT DISTINCT + - 45 + + 22 FROM tab0 AS cor0
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT ALL - - ( col0 ) + col2 DIV ( col0 ) col1 FROM tab0 AS cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - - ( col0 ) + col2 / ( col0 ) col1 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT + col1 + - 10 AS col0 FROM tab2 AS cor0
----
21
49
7
query I rowsort
SELECT DISTINCT + ( + 63 ) + col0 * - col2 AS col1 FROM tab1 cor0
----
-3585
-7617
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 59 + col0 col1 FROM tab1 AS cor0
----
-174
-3712
-4640
query I rowsort
SELECT ALL - - 74 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - col2 * - col2 * - ( + col1 ) FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT 28 * + col0 FROM tab0 cor0
----
2492
672
980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3683
SELECT DISTINCT + col2 DIV ( cor0.col0 + + col0 * + col0 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT + col2 / ( cor0.col0 + + col0 * + col0 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + col0 * + col1 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT col0 + - 55 AS col0 FROM tab0
----
-20
-31
34
query I rowsort
SELECT ALL + col0 * col0 + - col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3688
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) * + 11 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) * + 11 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 + + ( - 71 ) * col1 FROM tab1 AS cor0
----
-1019
-1900
-767
query I rowsort
SELECT ALL 96 + col2 FROM tab1 AS cor0
----
150
153
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3691
SELECT + + col2 * col1 + + 30 DIV col1 AS col1 FROM tab2 AS cor0
----
1534
647
837
skipif mysql # not compatible
query I rowsort label-3691
SELECT + + col2 * col1 + + 30 / col1 AS col1 FROM tab2 AS cor0
----
1534
647
837
query I rowsort
SELECT ALL - 8 + col2 FROM tab2 cor0
----
18
19
30
query I rowsort
SELECT - 15 AS col2 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL col1 * col2 + - ( col0 ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - cor0.col1 + cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 * - col1 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT DISTINCT 56 * col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT 84 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT DISTINCT tab0.col0 + + 7 FROM tab0, tab2 AS cor0
----
31
42
96
query I rowsort
SELECT ( - col1 ) * - col2 * + col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab2 cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * cor0.col1 + 22 + col1 col2 FROM tab1 AS cor0
----
1322
522
672
query I rowsort
SELECT DISTINCT + col0 + col2 * 8 FROM tab2 AS cor0
----
223
286
383
query I rowsort
SELECT col0 + + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT - col2 - col2 DIV - col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-3705
SELECT - col2 - col2 / - col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + 42 + + col0 AS col2 FROM tab1 AS cor0
----
106
122
45
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 - col1 * - CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT col0 + + 80 + col2 FROM tab2 AS cor0
----
114
184
197
query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
53
query I rowsort
SELECT + col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - + 26 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 AS col0 FROM tab2 cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT DISTINCT - + ( 76 ) + col1 * col2 DIV 36 FROM tab1 AS cor0
----
-37
-42
-61
skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT - + ( 76 ) + col1 * col2 / 36 FROM tab1 AS cor0
----
-37
-42
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3714
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + - col1 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + - col1 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT cor0.col2 + tab1.col1 + 37 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b71272264a18c2d9a252ba8a34f3a39
query I rowsort
SELECT 75 + - 20 AS col2 FROM tab2 AS cor0
----
55
55
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3717
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT DISTINCT - tab2.col1 DIV cor0.col1 FROM tab2, tab1 AS cor0
----
-1
-2
-3
-4
-5
0
skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - tab2.col1 / cor0.col1 FROM tab2, tab1 AS cor0
----
-1
-2
-3
-4
-5
0
query I rowsort
SELECT 1 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT - 58 * 65 FROM tab2 AS cor0
----
-3770
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT - col0 DIV + col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3721
SELECT - col0 / + col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT - ( cor0.col0 ) + + tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 886b2f55272323c6c91b3b9b12d7bdd4
query I rowsort
SELECT + cor0.col1 * col0 + + ( + 69 ) AS col1 FROM tab1 AS cor0
----
1109
147
709
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 * cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8c52dc06e3be29deb4b8ff99017a5caf
query I rowsort
SELECT DISTINCT + + 12 * - col0 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1, tab1 AS cor0
----
34
query I rowsort
SELECT ALL 32 FROM tab1
----
32
32
32
query I rowsort
SELECT + col1 * - tab1.col0 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 * cor0.col0 * 95 FROM tab0 cor0
----
-3325
-693310
-75240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3730
SELECT col2 * - CAST( col2 AS SIGNED ) FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3730
SELECT col2 * - CAST ( col2 AS INTEGER ) FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + cor0.col2 DIV col1 + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif mysql # not compatible
query I rowsort label-3731
SELECT + cor0.col2 / col1 + - cor0.col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - col1 * ( col1 ) AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT DISTINCT + col2 DIV + col2 AS col1 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT + col2 / + col2 AS col1 FROM tab1 cor0
----
1
query I rowsort
SELECT col2 * + 20 AS col1 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT ALL - + 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-3736
SELECT CAST( + col1 AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-3736
SELECT CAST ( + col1 AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT DISTINCT - col2 DIV col1 - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT - col2 / col1 - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - ( 10 ) FROM tab1 AS cor0
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT col0 + ( col0 ) DIV - tab2.col0 col1 FROM tab2
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3739
SELECT col0 + ( col0 ) / - tab2.col0 col1 FROM tab2
----
6
77
78
query I rowsort
SELECT - col2 + + 81 + - col0 AS col2 FROM tab0 cor0
----
-90
24
45
query I rowsort
SELECT ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1e12915106866c102f2d9f96f9233144
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 20 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT + col0 + + 43 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT + col2 + - col2 * col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col2 + + 33 FROM tab2
----
-5
6
7
query I rowsort
SELECT - tab2.col1 + 67 * col1 FROM tab2
----
1122
2046
3894
query I rowsort
SELECT - ( + ( + col2 ) ) + - col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col0 + ( col1 + + 8 ) FROM tab0
----
118
140
188
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + ( + cor0.col1 ) * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL 60 * col0 FROM tab1 AS cor0
----
180
3840
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT ALL + col1 + col1 DIV - col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + col1 + col1 / - col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL ( ( col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + + 69 * 67 - cor0.col0 AS col1 FROM tab2 AS cor0
----
4544
4545
4616
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3758
SELECT ALL cor0.col1 + - ( - col2 ) * + CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL cor0.col1 + - ( - col2 ) * + CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col0 * 61 FROM tab2 cor0
----
-427
-4758
-4819
query I rowsort
SELECT DISTINCT + tab2.col0 * col0 AS col2 FROM tab2
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT ( col0 * CAST( NULL AS SIGNED ) ) + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3761
SELECT ( col0 * CAST ( NULL AS INTEGER ) ) + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * tab1.col1 + + 76 FROM tab1
----
-24
-600
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT ALL - col0 * col1 DIV col2 col1 FROM tab1
----
-1
-10
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - col0 * col1 / col2 col1 FROM tab1
----
-1
-10
-11
query I rowsort
SELECT - 75 * + col2 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT + col1 - + col1 * col0 * col0 FROM tab2
----
-106080
-1488
-358897
query I rowsort
SELECT + 12 * cor0.col0 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT - - col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 72 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - cor0.col0 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - + cor0.col1 * ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT DISTINCT - - col1 + - ( + col1 ) DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - - col1 + - ( + col1 ) / col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - col0 * ( + 58 ) FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT - col1 + + 22 FROM tab1 AS cor0
----
-4
12
9
query I rowsort
SELECT DISTINCT - 89 * - col1 AS col1 FROM tab0
----
7654
8099
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT ALL + + col0 DIV col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + + col0 / col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - + col1 * 42 * + col0 FROM tab0 AS cor0
----
-142590
-340158
-86688
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3781
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3781
SELECT CAST ( NULL AS REAL ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col2 * + col2 + ( col1 ) FROM tab0
----
1175
6815
98
query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + col2 * col0 + - col0 DIV + cor0.col1 FROM tab2 AS cor0
----
189
2027
2998
skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col2 * col0 + - col0 / + cor0.col1 FROM tab2 AS cor0
----
189
2027
2998
query I rowsort
SELECT - col0 * - cor0.col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - tab0.col1 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fa8ce7c049222449af270fb84251971e
query I rowsort
SELECT ALL - col0 + + col1 * - 56 FROM tab0 AS cor0
----
-4840
-5185
-5467
query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + col2 + + ( + col1 ) * col0 + col1 * + 85 AS col0 FROM tab2 AS cor0
----
2826
2879
9643
query I rowsort
SELECT DISTINCT - col0 + 69 FROM tab0 AS cor0
----
-20
34
45
query I rowsort
SELECT - 95 * col0 * - col0 FROM tab0 AS cor0
----
116375
54720
752495
query I rowsort
SELECT DISTINCT col1 - ( - tab2.col2 ) FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3793
SELECT + tab0.col1 * CAST( col1 AS SIGNED ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-3793
SELECT + tab0.col1 * CAST ( col1 AS INTEGER ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort
SELECT + col0 + 95 / ( + col0 ) + - CAST ( - col2 AS REAL ) * + col0 AS col0 FROM tab0
----
72
7388
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT - cor0.col2 * 42 - col2 DIV col2 FROM tab1 AS cor0
----
-2269
-2395
-4033
skipif mysql # not compatible
query I rowsort label-3795
SELECT - cor0.col2 * 42 - col2 / col2 FROM tab1 AS cor0
----
-2269
-2395
-4033
query I rowsort
SELECT DISTINCT + 1 * col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + ( - col2 ) + col2 + cor0.col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL tab1.col1 + - 88 * + col1 AS col1 FROM tab1
----
-1131
-2262
-870
query I rowsort
SELECT DISTINCT - col0 + + col2 + 29 FROM tab0
----
-5
22
38
query I rowsort
SELECT DISTINCT - + col1 - - col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + - 15 AS col1 FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT cor0.col1 + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + - 52 + + col1 AS col0 FROM tab0 AS cor0
----
34
39
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3805
SELECT ALL - col0 * col1 + CAST( - col2 AS SIGNED ) + - col1 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-24212
-276146
-6971
skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL - col0 * col1 + CAST ( - col2 AS INTEGER ) + - col1 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
-24212
-276146
-6971
query I rowsort
SELECT DISTINCT + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - ( col0 * + col1 + + 85 * 72 ) AS col0 FROM tab1
----
-6198
-6760
-7160
query I rowsort
SELECT ALL 65 + tab2.col2 FROM tab2
----
103
91
92
query I rowsort
SELECT ALL + col0 * - col2 - - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1659
2574
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-3810
SELECT + col0 * + col1 DIV col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3810
SELECT + col0 * + col1 / col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT + + 81 * - col1 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT ALL + + 93 AS col0 FROM tab0 AS cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT 5 + col1 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-3814
SELECT 5 + col1 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT tab0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 3 AS REAL ) AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT ( col0 ) * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) * + 55 AS col0 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT 58 DIV + cor0.col0 FROM tab0, tab2 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT 58 / + cor0.col0 FROM tab0, tab2 AS cor0
----
0
8
query I rowsort
SELECT 0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT - 98 + + col1 DIV ( - col2 ) FROM tab1 AS cor0
----
-98
-98
-98
skipif mysql # not compatible
query I rowsort label-3821
SELECT - 98 + + col1 / ( - col2 ) FROM tab1 AS cor0
----
-98
-98
-98
query I rowsort
SELECT - + ( + col2 ) + 21 FROM tab2 AS cor0
----
-17
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT + - 29 * col1 - + CAST( 47 + cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
-1836
-619
-953
skipif mysql # not compatible
query I rowsort label-3825
SELECT + - 29 * col1 - + CAST ( 47 + cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
-1836
-619
-953
query I rowsort
SELECT DISTINCT 58 FROM tab1 cor0
----
58
query I rowsort
SELECT 35 AS col0 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT 71 AS col1 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT 46 + col0 FROM tab1
----
110
126
49
query I rowsort
SELECT - - 2 * col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - col2 * col2 + + 75 * + col2 FROM tab2 AS cor0
----
1274
1296
1406
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT DISTINCT - cor0.col1 DIV 60 FROM tab1, tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - cor0.col1 / 60 FROM tab1, tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - cor0.col2 * 14 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT + col0 + cor0.col1 * + col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + col0 + - 81 * col0 AS col0 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT ALL - - col0 + col0 * + 96 AS col1 FROM tab0 AS cor0
----
2328
3395
8633
onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT - col0 DIV ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3837
SELECT - col0 / ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col0 + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - 83 * - 16 * + col0 FROM tab2 cor0
----
103584
104912
9296
query I rowsort
SELECT ( - 13 ) + col2 AS col1 FROM tab1 AS cor0
----
41
44
83
query I rowsort
SELECT + 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT + 96 DIV 97 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-3842
SELECT + 96 / 97 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 61 + + col1 AS col0 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab1, tab2 AS cor0
----
28
query I rowsort
SELECT col2 * 44 AS col1 FROM tab1
----
2376
2508
4224
query I rowsort
SELECT - + 45 AS col1 FROM tab2 cor0
----
-45
-45
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3850
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT - + ( - col0 ) + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - 83 FROM tab0, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT ALL + 90 * col2 AS col0 FROM tab2 AS cor0
----
2340
2430
3420
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT ALL cor1.col2 * - CAST( NULL AS SIGNED ) + - 67 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL cor1.col2 * - CAST ( NULL AS INTEGER ) + - 67 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 col2 FROM tab0 AS cor0
----
58
query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab0, tab2 AS cor0
----
42
query I rowsort
SELECT col0 * col1 - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL tab0.col1 * - col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - ( - tab1.col2 ) + col2 * col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + col1 + 33 * col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT - 38 + + 65 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col2 col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 56 - col0 FROM tab1 AS cor0
----
-24
-8
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT + + col2 * col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3866
SELECT + + col2 * col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * + col1 + ( col0 + - col1 ) AS col0 FROM tab2 AS cor0
----
-1202
-234
-4505
query I rowsort
SELECT - ( col2 ) - ( col1 + + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-124
-134
-205
query I rowsort
SELECT ALL col2 - col2 * tab2.col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT + 46 + - col2 AS col0 FROM tab2
----
19
20
8
query I rowsort
SELECT ALL col2 * - col2 - + col0 AS col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT - col1 + - cor0.col2 * + ( col1 ) + col2 * 27 FROM tab0 AS cor0
----
-167
-2033
-5339
query I rowsort
SELECT ALL + - col0 + + col0 AS col0 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT ALL + + 35 + - cor0.col0 + CAST( - col0 AS SIGNED ) * col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-438
-537
32
skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + + 35 + - cor0.col0 + CAST ( - col0 AS INTEGER ) * col0 / col1 AS col0 FROM tab1 AS cor0
----
-438
-537
32
query I rowsort
SELECT - ( + col1 ) * - ( + col0 ) + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT 77 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT + 17 * - col0 - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2686
-336
-5928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT + col0 * CAST( + col2 AS SIGNED ) FROM tab1
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-3878
SELECT + col0 * CAST ( + col2 AS INTEGER ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT 82 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944
query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col2 + + col1 * 8 * + col1 + + col2 FROM tab0
----
59234
66412
75274
onlyif mysql # use DIV operator for integer division
query I rowsort label-3882
SELECT DISTINCT + col2 DIV + ( + col1 ) + tab1.col2 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT + col2 / + ( + col1 ) + tab1.col2 FROM tab1
----
103
56
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT col1 DIV + 1 - col2 AS col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-3883
SELECT col1 / + 1 - col2 AS col0 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * col0 col0 FROM tab0
----
-13824
-42875
-704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 58 ) col2 FROM tab0, tab1 cor0
----
-58
query I rowsort
SELECT ALL - ( col2 ) + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT + cor0.col2 + + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + ( col2 ) + + col1 * col0 FROM tab1 AS cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 30 AS REAL ) AS col0 FROM tab0 AS cor0
----
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT ALL + ( + col2 ) + cor0.col0 * cor0.col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
129
28
405
skipif mysql # not compatible
query I rowsort label-3890
SELECT ALL + ( + col2 ) + cor0.col0 * cor0.col0 / + col1 AS col1 FROM tab2 AS cor0
----
129
28
405
query I rowsort
SELECT ALL + + cor0.col0 + - 47 FROM tab0 AS cor0
----
-12
-23
42
query I rowsort
SELECT + + 10 * col1 AS col0 FROM tab1 AS cor0
----
100
130
260
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT DISTINCT + CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - + 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT DISTINCT - + col1 * ( col0 ) + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT - + col1 * ( col0 ) + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col2 * col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL 94 * + col0 FROM tab0 AS cor0
----
2256
3290
8366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - cor0.col2 col1 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT DISTINCT - col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL 98 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT - 30 + col0 * col0 FROM tab2
----
19
6054
6211
query I rowsort
SELECT - ( + col1 ) * + col0 * + col0 + col0 FROM tab1
----
-231
-40896
-83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3903
SELECT CAST( col2 * - col0 AS SIGNED ) + ( - 45 ) AS col0 FROM tab1
----
-207
-3693
-7725
skipif mysql # not compatible
query I rowsort label-3903
SELECT CAST ( col2 * - col0 AS INTEGER ) + ( - 45 ) AS col0 FROM tab1
----
-207
-3693
-7725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3904
SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab1.col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab1.col2 AS col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col1 FROM tab2 cor0
----
29
query I rowsort
SELECT DISTINCT + + 69 * col2 AS col2 FROM tab0 AS cor0
----
2277
5658
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT DISTINCT col1 DIV - col0 AS col1 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT col1 / - col0 AS col1 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT 93 * col1 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT 40 * col0 AS col1 FROM tab2 AS cor0
----
280
3120
3160
onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT + 25 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3910
SELECT + 25 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT + - col1 + ( + col2 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - 10 FROM tab1 AS cor0
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT DISTINCT 0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT 0 / col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + - 61 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL col0 * col2 + - 37 - + 84 FROM tab1 cor0
----
3527
41
7559
query I rowsort
SELECT DISTINCT + col1 + col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col2 + col0 * + cor0.col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - - col1 * + cor0.col0 * + 61 FROM tab0 AS cor0
----
125904
207095
494039
query I rowsort
SELECT - + 33 AS col1 FROM tab2 AS cor0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT - col0 + col1 AS col0 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT col1 DIV - col1 + - col0 AS col0 FROM tab2
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-3923
SELECT col1 / - col1 + - col0 AS col0 FROM tab2
----
-79
-8
-80
query I rowsort
SELECT + tab0.col2 - - 82 FROM tab0
----
115
164
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT + col0 + + col1 DIV - 16 AS col0 FROM tab2 AS cor0
----
6
75
78
skipif mysql # not compatible
query I rowsort label-3925
SELECT + col0 + + col1 / - 16 AS col0 FROM tab2 AS cor0
----
6
75
78
query I rowsort
SELECT + cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT + col2 * + col2 + col0 * cor0.col0 DIV col2 FROM tab1 AS cor0
----
2916
3320
9282
skipif mysql # not compatible
query I rowsort label-3928
SELECT + col2 * + col2 + col0 * cor0.col0 / col2 FROM tab1 AS cor0
----
2916
3320
9282
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 * - col1 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - + col1 + col2 * cor0.col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL + col2 + col1 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL col0 * - 84 + col0 + col2 FROM tab2 AS cor0
----
-554
-6448
-6519
onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT ALL - col0 DIV - 49 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL - col0 / - 49 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + cor0.col1 FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT ALL - + col1 * - ( col1 ) DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL - + col1 * - ( col1 ) / cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + + 53 + - cor0.col2 * col1 col1 FROM tab2 AS cor0
----
-1507
-631
-811
query I rowsort
SELECT ALL - col1 * ( + col1 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-1417
-2080
-670
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT - col1 * col0 DIV - col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3939
SELECT - col1 * col0 / - col0 FROM tab0
----
86
91
97
query I rowsort
SELECT 60 * col2 * tab2.col0 FROM tab2
----
11340
121680
180120
query I rowsort
SELECT ALL col2 * - col2 + + 29 FROM tab0 AS cor0
----
-1060
-6695
28
query I rowsort
SELECT col0 * - ( + col2 ) + col1 AS col2 FROM tab2 cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3943
SELECT DISTINCT + + col2 * CAST( + 44 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1452
3608
44
skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT + + col2 * CAST ( + 44 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1452
3608
44
query I rowsort
SELECT ALL - - col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT cor0.col1 * 60 + + col0 FROM tab2 AS cor0
----
1099
1867
3618
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col1 - ( - 43 ) AS col1 FROM tab1 AS cor0
----
53
56
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT DISTINCT + col1 DIV - 89 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT + col1 / - 89 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + - col1 + - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - cor0.col0 + + 84 FROM tab1, tab2 cor0
----
5
6
77
query I rowsort
SELECT ALL + 99 AS col0 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT ALL - - col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT 9 AS col1 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT - col1 * 64 FROM tab2
----
-1088
-1984
-3776
query I rowsort
SELECT - + col2 + + ( col0 ) AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 41 FROM tab2, tab0, tab0 cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ( 61 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - - col2 * + col1 + - 84 FROM tab1 AS cor0
----
1164
1320
486
query I rowsort
SELECT DISTINCT - - col0 - 71 FROM tab2 AS cor0
----
-64
7
8
query I rowsort
SELECT DISTINCT + + col1 * - ( + 51 ) FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT ALL + col2 * + col2 + + col1 AS col0 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT ALL cor0.col0 + - 96 AS col1 FROM tab2 AS cor0
----
-17
-18
-89
query I rowsort
SELECT DISTINCT - col0 * col0 - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT 49 FROM tab1, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT 98 FROM tab2, tab0 cor0
----
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3970
SELECT DISTINCT - ( - col1 ) DIV - col1 AS col0 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT - ( - col1 ) / - col1 AS col0 FROM tab0 cor0
----
-1
query I rowsort
SELECT + 17 * - 12 FROM tab2 cor0
----
-204
-204
-204
query I rowsort
SELECT ALL + + 60 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
138
139
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT + 19 DIV - cor0.col0 + + col0 + + 34 * + col0 FROM tab1 AS cor0
----
2240
2800
99
skipif mysql # not compatible
query I rowsort label-3973
SELECT + 19 / - cor0.col0 + + col0 + + 34 * + col0 FROM tab1 AS cor0
----
2240
2800
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT DISTINCT + + col0 * cor0.col2 - - col2 DIV - ( - ( cor0.col0 ) + cor0.col2 * + cor0.col1 ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT + + col0 * cor0.col2 - - col2 / - ( - ( cor0.col0 ) + cor0.col2 * + cor0.col1 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col1 + + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL - + ( cor0.col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT 90 DIV + col0 AS col2 FROM tab2 cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-3978
SELECT 90 / + col0 AS col2 FROM tab2 cor0
----
1
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 col0 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + + ( col0 ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col1 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT 26 * col0 FROM tab1 AS cor0
----
1664
2080
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT DISTINCT 4 * + cor0.col1 + CAST( - col2 AS SIGNED ) * + cor0.col0 - col0 * 26 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-207308
-4270
-98456
skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT 4 * + cor0.col1 + CAST ( - col2 AS INTEGER ) * + cor0.col0 - col0 * 26 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-207308
-4270
-98456
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT ALL col0 + 10 * col0 AS col0 FROM tab1
----
33
704
880
query I rowsort
SELECT col0 + - col2 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-112
-50
query I rowsort
SELECT col1 + - col1 * col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT - + 66 * - col2 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT - + cor0.col2 + col2 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * - col1 + 15 * + cor0.col1 col1 FROM tab0 cor0
----
-5762
-6097
-6499
query I rowsort
SELECT + col0 * col1 * ( cor0.col0 ) - col1 AS col0 FROM tab1 cor0
----
208
40950
83187
query I rowsort
SELECT + + col2 * ( 4 ) FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT ALL col0 * - 15 * col2 AS col1 FROM tab1 AS cor0
----
-115200
-2430
-54720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 24 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT + col0 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col2 + ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4000
SELECT ALL + col0 * + col0 DIV + ( tab1.col0 ) AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL + col0 * + col0 / + ( tab1.col0 ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - + cor0.col2 * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT DISTINCT cor0.col1 DIV cor0.col1 col1 FROM tab1, tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT cor0.col1 / cor0.col1 col1 FROM tab1, tab0 AS cor0
----
1
query I rowsort
SELECT - + 39 + col2 AS col0 FROM tab2 AS cor0
----
-1
-12
-13
query I rowsort
SELECT + col1 * + tab0.col0 * col1 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-4006
SELECT ALL - tab1.col0 DIV col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL - tab1.col0 / col2 AS col1 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT - col2 * col1 * + 76 - + col0 DIV col0 FROM tab2 AS cor0
----
-116585
-49097
-63613
skipif mysql # not compatible
query I rowsort label-4007
SELECT - col2 * col1 * + 76 - + col0 / col0 FROM tab2 AS cor0
----
-116585
-49097
-63613
query I rowsort
SELECT DISTINCT col0 + 43 AS col0 FROM tab2
----
121
122
50
query I rowsort
SELECT ALL + 56 FROM tab2
----
56
56
56
query I rowsort
SELECT - - col1 * col2 - + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-2356
-494
648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT CAST( - col2 AS SIGNED ) * + tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-4011
SELECT CAST ( - col2 AS INTEGER ) * + tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - ( col2 * - col2 + + ( - col1 ) ) FROM tab1
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT - col0 DIV - 64 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4013
SELECT - col0 / - 64 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - cor0.col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - cor0.col0 + + 46 AS col2 FROM tab0 AS cor0
----
-43
11
22
query I rowsort
SELECT + col1 * + col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT + + col2 * 17 AS col0 FROM tab0 AS cor0
----
1394
17
561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 80 + 69 col1 FROM tab0 AS cor0
----
-11
-2571
-6491
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( 75 AS REAL ) * + col2 * + ( - 19 ) FROM tab0 AS cor0
----
-116939
-1460
-47049
query I rowsort
SELECT ALL + col2 * ( 83 ) AS col1 FROM tab1 AS cor0
----
4482
4731
7968
query I rowsort
SELECT + col2 + + 43 AS col2 FROM tab0 AS cor0
----
125
44
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT ALL + col0 * ( + 59 ) + col0 * - CAST( - 6 + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
117
3520
4160
skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL + col0 * ( + 59 ) + col0 * - CAST ( - 6 + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
117
3520
4160
query I rowsort
SELECT DISTINCT + col1 * ( 9 ) FROM tab1 AS cor0
----
117
234
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 + col2 col0 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4027
SELECT - col2 DIV 99 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4027
SELECT - col2 / 99 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT ALL - cor0.col0 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL - cor0.col0 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + col2 * 24 AS col2 FROM tab1 AS cor0
----
1296
1368
2304
query I rowsort
SELECT ALL col1 * + 69 + col1 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT + col2 DIV - 61 col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4031
SELECT + col2 / - 61 col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col0 * 42 * col0 AS col1 FROM tab0 AS cor0
----
-24192
-332682
-51450
query I rowsort
SELECT + - ( - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col1 + - 83 * - col2 AS col1 FROM tab1 AS cor0
----
4456
4721
7955
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + 4 * ( - col1 ) FROM tab1 AS cor0
----
-104
-40
-52
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
skipif mysql # not compatible
query I rowsort
SELECT ALL - 82 + + col1 * col2 - CAST ( col0 AS REAL ) FROM tab1 cor0
----
1086
1319
424
query I rowsort
SELECT + 95 * col0 FROM tab1 AS cor0
----
285
6080
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL - col2 DIV + col0 AS col1 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - col2 / + col0 AS col1 FROM tab1
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4041
SELECT ALL - 58 + + col2 * - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - 58 + + col2 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 52 + col1 * + col1 * 44 AS col0 FROM tab1 AS cor0
----
29796
4452
7488
query I rowsort
SELECT ALL - - 22 * col1 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT DISTINCT col0 DIV + col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT col0 / + col1 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT 58 * col2 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT DISTINCT + - 47 AS col1 FROM tab0 cor0
----
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT DISTINCT 35 DIV + col2 + 41 col0 FROM tab1
----
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT 35 / + col2 + 41 col0 FROM tab1
----
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 + - col2 col0 FROM tab2
----
-45
-46
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 76 * - col2 AS col1 FROM tab0
----
-2508
-6232
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT DISTINCT 42 DIV col1 + col1 FROM tab2
----
19
32
59
skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT 42 / col1 + col1 FROM tab2
----
19
32
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT + col2 * + col2 - + 31 DIV col0 AS col2 FROM tab0
----
1
1088
6724
skipif mysql # not compatible
query I rowsort label-4053
SELECT + col2 * + col2 - + 31 / col0 AS col2 FROM tab0
----
1
1088
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + tab0.col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT - tab1.col0 + + col2 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * col0 col2 FROM tab0
----
216
315
801
query I rowsort
SELECT - tab1.col0 + + 49 * - 92 AS col2 FROM tab1
----
-4511
-4572
-4588
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT col0 + 85 AS col1 FROM tab0
----
109
120
174
query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) * + col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + 12 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4062
SELECT ALL - CAST( NULL AS SIGNED ) * 26 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - CAST ( NULL AS INTEGER ) * 26 + + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + 19 * + col2 AS col0 FROM tab2
----
468
486
684
query I rowsort
SELECT ALL 26 + - col0 AS col0 FROM tab0
----
-63
-9
2
query I rowsort
SELECT ALL col1 * - col2 + + col0 AS col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL - col1 - 50 FROM tab1
----
-60
-63
-76
query I rowsort
SELECT ALL 34 + col1 AS col2 FROM tab1
----
44
47
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 63 + 33 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT ALL 91 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT - cor0.col0 DIV + cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4071
SELECT - cor0.col0 / + cor0.col1 AS col0 FROM tab1 cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * + col1 col2 FROM tab0 AS cor0
----
-3096
-3276
-3492
query I rowsort
SELECT DISTINCT - col0 * + 18 AS col0 FROM tab2 cor0
----
-126
-1404
-1422
query I rowsort
SELECT ALL + 95 * col2 * col2 + + col1 FROM tab2 AS cor0
----
137197
64279
69286
query I rowsort
SELECT DISTINCT 24 + col2 FROM tab2
----
50
51
62
query I rowsort
SELECT ALL 25 + tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3f3d818f5897302effdebf4829e2290d
query I rowsort
SELECT ALL 67 + 1 FROM tab2
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL - - col2 DIV - col0 + ( - col2 ) FROM tab2 AS cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL - - col2 / - col0 + ( - col2 ) FROM tab2 AS cor0
----
-26
-30
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 * + col0 - 16 col1 FROM tab1 cor0
----
143
3376
4224
query I rowsort
SELECT DISTINCT - 31 FROM tab0 cor0
----
-31
query I rowsort
SELECT - + 84 * cor0.col0 + - col2 AS col1 FROM tab2 cor0
----
-615
-6578
-6674
query I rowsort
SELECT ALL 43 + col1 AS col1 FROM tab1 AS cor0
----
53
56
69
query I rowsort
SELECT ALL + - col1 + + cor0.col0 * 69 AS col2 FROM tab2 AS cor0
----
452
5323
5434
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT + 58 - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4084
SELECT + 58 - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col0 * + ( col0 + col2 ) FROM tab2 AS cor0
----
211
8086
9205
query I rowsort
SELECT DISTINCT + - col1 * + col0 - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT col2 - col1 * - col2 * col0 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT ALL - 41 AS col0 FROM tab1 AS cor0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT DISTINCT + col2 DIV cor0.col2 - 42 col2 FROM tab1 AS cor0
----
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + col2 / cor0.col2 - 42 col2 FROM tab1 AS cor0
----
-41
query I rowsort
SELECT + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + 17 * col2 + 13 AS col1 FROM tab2 AS cor0
----
455
472
659
query I rowsort
SELECT + 36 AS col2 FROM tab1 cor0
----
36
36
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4094
SELECT - CAST( ( col2 ) AS SIGNED ) + - 74 AS col1 FROM tab1 AS cor0
----
-128
-131
-170
skipif mysql # not compatible
query I rowsort label-4094
SELECT - CAST ( ( col2 ) AS INTEGER ) + - 74 AS col1 FROM tab1 AS cor0
----
-128
-131
-170
query I rowsort
SELECT - ( - col2 ) * col0 + 0 + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT + 66 FROM tab2, tab2 AS cor0
----
66
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 20 AS REAL ) * + col2 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT 23 FROM tab1 cor0
----
23
23
23
query I rowsort
SELECT - - 61 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT 83 AS col0 FROM tab2
----
83
83
83
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ( + 42 ) * - col0 AS col2 FROM tab1
----
-126
-2688
-3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-4104
SELECT + col0 DIV + col1 + ( col2 + + col1 ) * col2 * - col1 FROM tab2 cor0
----
-130389
-35526
-48546
skipif mysql # not compatible
query I rowsort label-4104
SELECT + col0 / + col1 + ( col2 + + col1 ) * col2 * - col1 FROM tab2 cor0
----
-130389
-35526
-48546
query I rowsort
SELECT - - col1 * + col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + ( tab1.col1 ) * col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + cor0.col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT col2 * - col1 + + col0 + col2 AS col1 FROM tab2 AS cor0
----
-1430
-529
-803
query I rowsort
SELECT - col2 - 71 AS col0 FROM tab0 AS cor0
----
-104
-153
-72
query I rowsort
SELECT col1 + - col1 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL 82 AS col1 FROM tab2
----
82
82
82
query I rowsort
SELECT DISTINCT ( 12 ) FROM tab0, tab0 cor0
----
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
-72
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4115
SELECT + col1 + - CAST( - 18 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
190
247
494
skipif mysql # not compatible
query I rowsort label-4115
SELECT + col1 + - CAST ( - 18 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT DISTINCT + cor0.col2 + ( col2 * cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col1 * + ( - 48 ) FROM tab1 AS cor0
----
-1248
-480
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT - - col1 * - 55 - + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-4730
-5004
-5300
skipif mysql # not compatible
query I rowsort label-4118
SELECT - - col1 * - 55 - + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-4730
-5004
-5300
query I rowsort
SELECT DISTINCT - + col0 * col2 + col0 + + cor0.col0 FROM tab1 AS cor0
----
-156
-3520
-7520
query I rowsort
SELECT + cor0.col1 * - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT 84 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT - col0 DIV col2 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4122
SELECT - col0 / col2 AS col2 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 + + col2 col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL col1 * - 6 + cor0.col2 FROM tab2 AS cor0
----
-159
-328
-64
query I rowsort
SELECT + col0 - tab0.col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT cor0.col0 * 21 AS col1 FROM tab1 cor0
----
1344
1680
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + col1 * 43 + - tab1.col0 AS col2 FROM tab1
----
1115
366
479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 11 col2 FROM tab2 AS cor0
----
37
38
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col2 * + cor0.col0 + col0 * col1 col1 FROM tab0 AS cor0
----
672217
6790
70176
query I rowsort
SELECT DISTINCT ( 47 ) + + col2 - - col2 * col2 AS col0 FROM tab2
----
1529
749
803
query I rowsort
SELECT ALL + ( col0 ) + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL 54 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT col0 + - 99 * col2 AS col2 FROM tab2 AS cor0
----
-2496
-2666
-3683
query I rowsort
SELECT DISTINCT - 64 + col0 * + col1 FROM tab0 AS cor0
----
2000
3331
8035
query I rowsort
SELECT - ( - col1 ) * + col1 + 9 AS col0 FROM tab1 AS cor0
----
109
178
685
query I rowsort
SELECT + col0 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - 24 * col1 AS col0 FROM tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT - 38 AS col1 FROM tab1
----
-38
-38
-38
query I rowsort
SELECT - 75 AS col0 FROM tab2
----
-75
-75
-75
query I rowsort
SELECT - col0 * col0 + tab1.col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT - + col1 * + col2 + - col2 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - cor0.col1 + col2 + + cor0.col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT + col2 + + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + + cor0.col2 + - col0 + col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT col2 + - col0 + col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT col0 * - col2 * col1 + col1 * - col2 * - col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * + col2 FROM tab0 AS cor0 WHERE NULL <= col0
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - col2 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT tab1.col2 * col1 - col0 AS col1 FROM tab1
----
1168
1401
506
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND cor0.col1 * - col0
----
query I rowsort
SELECT ALL - col1 + - tab0.col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT - col2 * cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 * + col1 col0 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT - - col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 * col1 - - col2 * col1 FROM tab2 cor0
----
1798
5015
935
query I rowsort
SELECT - cor0.col2 * - col0 + - col2 + col1 * col0 AS col2 FROM tab0 cor0
----
15315
2823
3429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col0 * col1 * col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - cor0.col0 * cor0.col0 * + col1 + + col0 FROM tab1 AS cor0
----
-231
-40896
-83120
query I rowsort
SELECT ALL - cor0.col2 + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + - cor0.col0 AS col2 FROM tab1 cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT DISTINCT - cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT - + col2 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-4167
SELECT - + col2 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT DISTINCT + col2 * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col2 * col2 - - col2 * col2 * + col2 FROM tab1
----
160380
188442
893952
query I rowsort
SELECT ALL + col2 + col0 * + col2 FROM tab1
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT col1 DIV - col0 col2 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4172
SELECT col1 / - col0 col2 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + tab0.col1 - col1 * col0 * + tab0.col0 AS col0 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT ALL tab2.col2 + + col0 - - col1 AS col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL - 66 * - col1 + - 13 * - 64 AS col2 FROM tab1 cor0
----
1492
1690
2548
query I rowsort
SELECT ALL + - 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56
query I rowsort
SELECT DISTINCT + 51 * - col0 + cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-140
-2686
624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 - + col0 * 88 col1 FROM tab0 AS cor0
----
-2002
-2948
-7652
query I rowsort
SELECT + + 12 * col2 AS col0 FROM tab2 AS cor0
----
312
324
456
query I rowsort
SELECT DISTINCT + 62 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1488
2170
5518
onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT - 14 DIV - col0 + ( - col1 ) * col1 + col0 FROM tab1 AS cor0
----
-36
-669
-89
skipif mysql # not compatible
query I rowsort label-4181
SELECT - 14 / - col0 + ( - col1 ) * col1 + col0 FROM tab1 AS cor0
----
-36
-669
-89
query I rowsort
SELECT - - col2 + cor0.col1 * 47 + - 54 AS col0 FROM tab0 AS cor0
----
4021
4305
4506
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col2 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT col2 DIV + col1 + + col2 * col0 FROM tab1
----
164
3653
7687
skipif mysql # not compatible
query I rowsort label-4185
SELECT col2 / + col1 + + col2 * col0 FROM tab1
----
164
3653
7687
onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT ALL - col1 DIV col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - col1 / col0 AS col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL tab2.col1 + + col1 + - col2 FROM tab2
----
-4
35
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - col2 * col2 * col2 col2 FROM tab2
----
-14095
-18722
-54583
query I rowsort
SELECT col0 * + col2 * + col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT col2 + col0 + + col0 * - tab2.col2 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT - col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( - col2 ) AND NULL
----
query I rowsort
SELECT + col1 * col2 * + col2 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL + 31 + 32 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT DISTINCT - col2 DIV tab2.col0 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - col2 / tab2.col0 FROM tab2
----
-3
0
query I rowsort
SELECT DISTINCT col1 + col1 * col1 + col2 FROM tab1
----
167
278
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT DISTINCT col1 * + tab0.col0 DIV + col0 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT col1 * + tab0.col0 / + col0 AS col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT + col0 DIV col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + col0 / col0 AS col1 FROM tab2
----
1
query I rowsort
SELECT ( tab0.col2 ) + - col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT 53 + + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
112
70
84
query I rowsort
SELECT ALL - col0 + + col2 * col2 + - col0 FROM tab0
----
-69
1041
6546
query I rowsort
SELECT - 92 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT - ( col2 * 25 ) FROM tab0
----
-2050
-25
-825
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT ALL + cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col2 * col1 + - tab2.col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT - col0 + col0 * + tab1.col2 AS col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL + tab2.col2 - - col1 * col2 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT col2 DIV + col1 col2 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4208
SELECT col2 / + col1 col2 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL + col1 * col0 + + col1 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT col0 * + col0 + col2 + - col1 * - col1 FROM tab2
----
1037
6568
9591
query I rowsort
SELECT ALL col0 * col1 + - tab2.col2 FROM tab2
----
1305
190
4576
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col1 + tab1.col0 )
----
query I rowsort
SELECT - col2 * + tab0.col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT col1 - col1 DIV col2 col0 FROM tab0
----
0
84
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4214
SELECT col1 - col1 / col2 col0 FROM tab0
----
0
84
90
query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 * + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT - col1 + col1 * + col0 FROM tab0
----
1978
3298
8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT col1 DIV tab2.col0 - + col1 * + col0 FROM tab2
----
-1343
-213
-4602
skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT col1 / tab2.col0 - + col1 * + col0 FROM tab2
----
-1343
-213
-4602
query I rowsort
SELECT col0 + + col0 + - col0 FROM tab2 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2 / - col1 + + col0 * + col2 )
----
query I rowsort
SELECT ALL col0 * col1 + col0 AS col0 FROM tab1
----
1120
704
81
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> ( NULL )
----
query I rowsort
SELECT col2 + col0 + col0 FROM tab0
----
260
71
81
query I rowsort
SELECT DISTINCT col0 + tab2.col0 * - col1 + - col2 FROM tab2
----
-1302
-237
-4550
query I rowsort
SELECT ALL + col1 * + tab2.col2 FROM tab2
----
1534
646
837
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 + col2 ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT ALL - col0 DIV col0 + - col1 FROM tab1
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - col0 / col0 + - col1 FROM tab1
----
-11
-14
-27
query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 + - col1 AND - col1
----
query I rowsort
SELECT ALL col0 + col1 * col1 * - col2 AS col0 FROM tab0
----
-244044
-678953
-9374
query I rowsort
SELECT DISTINCT - tab1.col0 + - tab1.col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL + tab0.col1 * + col1 + col2 * col0 FROM tab0
----
15579
8188
9444
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + tab2.col0
----
query I rowsort
SELECT ALL + 64 * + col1 FROM tab1
----
1664
640
832
query I rowsort
SELECT - 93 * + cor0.col2 - col0 AS col0 FROM tab2 cor0
----
-2496
-2518
-3613
query I rowsort
SELECT ALL 34 AS col0 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT 83 * 12 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
996
query I rowsort
SELECT 11 * - col0 FROM tab2
----
-77
-858
-869
query I rowsort
SELECT DISTINCT + 37 * col0 FROM tab2
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT 72 DIV col0 AS col0 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-4239
SELECT 72 / col0 AS col0 FROM tab2
----
0
0
10
query I rowsort
SELECT + - col0 - col1 * - ( col0 ) FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT cor0.col0 - col0 * + col1 * + col0 AS col1 FROM tab1 cor0
----
-231
-40896
-83120
query I rowsort
SELECT ALL ( 21 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT + col1 - + 63 * + col2 FROM tab1 AS cor0
----
-3376
-3581
-6035
query I rowsort
SELECT - + col2 + - col0 * + 76 * + cor0.col0 FROM tab1 AS cor0
----
-311353
-486496
-738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 26 col1 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT 60 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT cor0.col1 * - cor0.col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651
onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT + 9 DIV + col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4248
SELECT + 9 / + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col1 * + col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL - 68 AS col2 FROM tab0 AS cor0
----
-68
-68
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT + - col0 + - col2 DIV col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4251
SELECT + - col0 + - col2 / col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col2 FROM tab1 cor0
----
-88
-88
-88
query I rowsort
SELECT - col1 + col2 * col1 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - ( + col2 ) * col1 * + 23 FROM tab0 AS cor0
----
-171626
-2231
-65274
onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT ALL + col1 DIV ( - col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + col1 / ( - col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 66 + col0 AS col2 FROM tab1 AS cor0
----
-2
-63
14
query I rowsort
SELECT - 37 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 92 col0 FROM tab2
----
33
61
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - 55 ) col2 FROM tab0
----
31
36
42
query I rowsort
SELECT col0 * - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4262
SELECT ALL col1 + - cor0.col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL col1 + - cor0.col1 / - col1 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL - + cor0.col2 * - col1 + + col1 * - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 44 + col2 AS col1 FROM tab2 AS cor0
----
-17
-18
-6
query I rowsort
SELECT + + 58 AS col0 FROM tab2 cor0
----
58
58
58
query I rowsort
SELECT - + col2 + - col2 * col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1350
-158210
-237196
query I rowsort
SELECT ALL + + col2 + col2 * + col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - 82 AS col2 FROM tab0 cor0
----
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4269
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4269
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + 43 + + col0 AS col1 FROM tab2 cor0
----
121
122
50
query I rowsort
SELECT col0 * + ( + col1 ) * col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - 97 FROM tab1, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4273
SELECT col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4273
SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - - 91 + cor0.col2 AS col0 FROM tab1 AS cor0
----
145
148
187
query I rowsort
SELECT col1 - + ( tab0.col2 + col1 ) * col1 AS col0 FROM tab0
----
-10148
-15652
-9409
query I rowsort
SELECT DISTINCT + 15 + tab1.col1 AS col0 FROM tab1
----
25
28
41
query I rowsort
SELECT - ( ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab2 cor0, tab2 cor1
----
7
78
79
query I rowsort
SELECT ALL - 54 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4280
SELECT - + CAST( + 84 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-84
-84
-84
skipif mysql # not compatible
query I rowsort label-4280
SELECT - + CAST ( + 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-84
-84
-84
query I rowsort
SELECT DISTINCT col0 + + 11 * - col0 * col2 + col0 FROM tab2 cor0
----
-2065
-22152
-32864
query I rowsort
SELECT col2 - 10 FROM tab1 cor0
----
44
47
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4283
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 + + ( 67 ) FROM tab2
----
126
84
98
query I rowsort
SELECT - col1 * + ( + 2 + + col0 ) AS col1 FROM tab0
----
-2236
-3589
-8281
query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0
----
66
query I rowsort
SELECT - - 9 + col1 - - col0 FROM tab0 AS cor0
----
119
141
189
query I rowsort
SELECT ALL ( - 20 ) AS col0 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT + - 27 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4291
SELECT - 10 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-4291
SELECT - 10 / + col2 col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col2 * + col0 + + col1 + + col1 FROM tab0 AS cor0
----
229
7480
964
query I rowsort
SELECT DISTINCT + col1 + - 32 AS col1 FROM tab0
----
54
59
65
query I rowsort
SELECT ALL tab0.col1 * + col1 - + tab0.col0 FROM tab0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT tab2.col0 + col0 + - col2 DIV ( - col0 + col1 ) AS col0 FROM tab2
----
13
157
158
skipif mysql # not compatible
query I rowsort label-4295
SELECT tab2.col0 + col0 + - col2 / ( - col0 + col1 ) AS col0 FROM tab2
----
13
157
158
query I rowsort
SELECT DISTINCT + - cor0.col2 - + 71 AS col1 FROM tab1 AS cor0
----
-125
-128
-167
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4297
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT DISTINCT - 66 DIV - col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - 66 / - col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + ( 70 ) + + col1 FROM tab1 AS cor0
----
80
83
96
query I rowsort
SELECT col0 + 78 FROM tab0 cor0
----
102
113
167
query I rowsort
SELECT ALL 79 + - col2 FROM tab1 AS cor0
----
-17
22
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT 20 DIV - 63 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4302
SELECT 20 / - 63 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + - col0 + - 19 * col0 AS col1 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * + col0 - + ( cor0.col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * cor0.col2 + col1 col2 FROM tab1 AS cor0
----
3374
3544
5965
onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT DISTINCT + col1 + + col0 DIV col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + col1 + + col0 / col0 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4307
SELECT DISTINCT ( ( + cor0.col0 ) ) + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT ( ( + cor0.col0 ) ) + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38
query I rowsort
SELECT - - cor0.col0 + col2 * - 31 FROM tab2 AS cor0
----
-1099
-728
-830
query I rowsort
SELECT ALL cor0.col2 + - col1 * + 14 FROM tab0 AS cor0
----
-1171
-1192
-1357
query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab1 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT - 60 DIV - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4312
SELECT - 60 / - 78 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT col1 + + 94 AS col1 FROM tab0 cor0
----
180
185
191
onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT + col1 DIV 42 - col1 AS col0 FROM tab0 AS cor0
----
-84
-89
-95
skipif mysql # not compatible
query I rowsort label-4314
SELECT + col1 / 42 - col1 AS col0 FROM tab0 AS cor0
----
-84
-89
-95
query I rowsort
SELECT ALL + - col2 + - 62 FROM tab2 cor0
----
-100
-88
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT DISTINCT - col2 + ( + col2 ) DIV col2 + ( - col1 ) col0 FROM tab0 AS cor0
----
-118
-172
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT - col2 + ( + col2 ) / col2 + ( - col1 ) col0 FROM tab0 AS cor0
----
-118
-172
-97
query I rowsort
SELECT DISTINCT + col0 + - 72 * tab2.col0 AS col0 FROM tab2
----
-497
-5538
-5609
query I rowsort
SELECT DISTINCT - col0 - - col2 * + 85 * + col1 FROM tab0 AS cor0
----
241206
634181
8210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + col1 + + col2 * 71 FROM tab2 cor0
----
1905
1948
2715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4321
SELECT ALL + - col1 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + - col1 - + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT DISTINCT - + col0 DIV - col0 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - + col0 / - col0 FROM tab2 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4324
SELECT + 11 DIV + tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
skipif mysql # not compatible
query I rowsort label-4324
SELECT + 11 / + tab0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT DISTINCT col0 * - col1 * col0 FROM tab2 cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL + col0 * 10 DIV col1 FROM tab2 AS cor0
----
13
2
46
skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + col0 * 10 / col1 FROM tab2 AS cor0
----
13
2
46
query I rowsort
SELECT + col0 * - 48 FROM tab1 cor0
----
-144
-3072
-3840
query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab2 cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT ALL + - col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + - col1 / + col0 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT + ( 63 ) - - col0 DIV + ( col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-4331
SELECT + ( 63 ) - - col0 / + ( col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT ALL + col2 DIV - col2 + col0 + col2 AS col0 FROM tab0 AS cor0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + col2 / - col2 + col0 + col2 AS col0 FROM tab0 AS cor0
----
170
35
56
query I rowsort
SELECT - + col2 - 75 AS col2 FROM tab0 AS cor0
----
-108
-157
-76
query I rowsort
SELECT - col0 * 14 FROM tab2 cor0
----
-1092
-1106
-98
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3
query I rowsort
SELECT ALL - col2 * - col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT DISTINCT - cor0.col0 DIV + cor0.col2 AS col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - cor0.col0 / + cor0.col2 AS col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 21 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
13566
17577
32214
query I rowsort
SELECT - 18 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT col0 DIV + cor0.col0 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4341
SELECT col0 / + cor0.col0 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col2 + - col1 * - col2 * col1 FROM tab0 AS cor0
----
244035
678960
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + ( col0 + - col2 ) * - 72 FROM tab2
----
-2952
-3744
1440
query I rowsort
SELECT + col1 * - ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 col0 FROM tab2
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4347
SELECT + tab1.col1 DIV ( cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 18b9270771be6515394326511a0bd7b6
skipif mysql # not compatible
query I rowsort label-4347
SELECT + tab1.col1 / ( cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 18b9270771be6515394326511a0bd7b6
query I rowsort
SELECT - 13 AS col2 FROM tab1
----
-13
-13
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * + col1 col1 FROM tab0
----
-4386
-4641
-4947
query I rowsort
SELECT + 22 FROM tab0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + col0 + col0 col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT + 26 * tab0.col2 FROM tab0
----
2132
26
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT - 91 DIV tab2.col0 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-4353
SELECT - 91 / tab2.col0 FROM tab2
----
-1
-1
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-4354
SELECT - col2 DIV - tab0.col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4354
SELECT - col2 / - tab0.col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - 96 AS col0 FROM tab0 cor0
----
-96
-96
-96
query I rowsort
SELECT + 3 + - col0 FROM tab1 AS cor0
----
-61
-77
0
query I rowsort
SELECT - 77 FROM tab0 cor0
----
-77
-77
-77
query I rowsort
SELECT + tab2.col0 + 20 * + 75 FROM tab2
----
1507
1578
1579
query I rowsort
SELECT 77 + 59 FROM tab1, tab0 AS cor0
----
9 values hashing to 241ddcc97f622e1fcc14bd3c6a5bb6f4
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - + col2 * - col0 * + col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL + - cor0.col1 * cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT DISTINCT - col2 * 37 FROM tab2 AS cor0
----
-1406
-962
-999
query I rowsort
SELECT col2 * + ( - col0 ) AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col0 * 86 * + col1 FROM tab1
----
-55040
-6708
-89440
query I rowsort
SELECT + ( - ( col0 ) ) FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4367
SELECT CAST( NULL AS SIGNED ) * - ( - tab0.col2 ) - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4367
SELECT CAST ( NULL AS INTEGER ) * - ( - tab0.col2 ) - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col1 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - + 42 AS col1 FROM tab2 cor0
----
-42
-42
-42
query I rowsort
SELECT + col1 * col0 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL + - ( - col1 ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 * + 80 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT + ( + 37 ) AS col1 FROM tab2 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4374
SELECT + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4374
SELECT + col2 / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( ( col2 ) ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + 56 + - col1 FROM tab2 AS cor0
----
-115
-73
-87
query I rowsort
SELECT ALL - ( + col0 ) + - 17 * + col1 FROM tab2 AS cor0
----
-1081
-368
-534
query I rowsort
SELECT DISTINCT - 86 + - col2 + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-33
-77
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT ALL - col1 DIV + col2 - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - col1 / + col2 - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4380
SELECT + cor0.col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4380
SELECT + cor0.col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
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 + cor0.col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL + + 46 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1426
2714
782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT col1 * col1 - ( col1 + + col1 ) AS col1 FROM tab1 AS cor0
----
143
624
80
query I rowsort
SELECT ALL - 93 + - 1 + col1 AS col0 FROM tab0
----
-3
-8
3
query I rowsort
SELECT + + col2 + - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + + col2 * - col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
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-4391
SELECT col1 + - ( col0 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-4391
SELECT col1 + - ( col0 ) / + col2 AS col2 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT + col0 + - col0 * - col0 + col1 FROM tab1 cor0
----
38
4170
6493
onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT + ( + col2 + + col1 ) DIV col1 AS col1 FROM tab1
----
3
6
8
skipif mysql # not compatible
query I rowsort label-4393
SELECT + ( + col2 + + col1 ) / col1 AS col1 FROM tab1
----
3
6
8
query I rowsort
SELECT - col1 + + col2 * 13 * col2 FROM tab1 cor0
----
119795
37882
42227
query I rowsort
SELECT DISTINCT col2 * + col1 * - tab0.col1 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT CAST( NULL AS SIGNED ) * cor0.col0 + - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4396
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 + - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4397
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4398
SELECT + col2 DIV - 19 + + col2 + col1 FROM tab2 AS cor0
----
53
57
84
skipif mysql # not compatible
query I rowsort label-4398
SELECT + col2 / - 19 + + col2 + col1 FROM tab2 AS cor0
----
53
57
84
query I rowsort
SELECT DISTINCT + - 25 * - cor0.col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
175
1950
1975
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae
query I rowsort
SELECT col2 * + col2 + 89 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
101776
60209
9858
query I rowsort
SELECT + 79 AS col2 FROM tab2 cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + 78 AS col2 FROM tab0 cor0
----
78
78
78
query I rowsort
SELECT DISTINCT col1 * col0 + ( - 95 ) AS col2 FROM tab2 AS cor0
----
122
1248
4507
onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT DISTINCT + 64 DIV - col1 col2 FROM tab1 AS cor0
----
-2
-4
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + 64 / - col1 col2 FROM tab1 AS cor0
----
-2
-4
-6
query I rowsort
SELECT col1 * - col2 * ( col2 ) - col1 FROM tab1 AS cor0
----
-119821
-32500
-75842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT - col1 * - col2 - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-4408
SELECT - col1 * - col2 - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT col0 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + col2 + - col0 * col0 + col2 AS col1 FROM tab0 AS cor0
----
-1223
-510
-7757
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0 AS cor0
----
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - col1 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - + col0 * + col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL + 54 AS col1 FROM tab0 cor0
----
54
54
54
query I rowsort
SELECT ALL - col2 + col0 * - 5 AS col2 FROM tab0 AS cor0
----
-153
-176
-527
query I rowsort
SELECT + col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - tab1.col2 - - col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col1 - col0 * col2 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL - 32 * + col2 + ( + 90 ) FROM tab2 AS cor0
----
-1126
-742
-774
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT col1 + col0 DIV 8 AS col2 FROM tab1 AS cor0
----
18
23
26
skipif mysql # not compatible
query I rowsort label-4421
SELECT col1 + col0 / 8 AS col2 FROM tab1 AS cor0
----
18
23
26
query I rowsort
SELECT + 28 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + + 14 * tab2.col2 col0 FROM tab2
----
227
340
436
query I rowsort
SELECT DISTINCT 42 + col2 + + ( col1 ) AS col2 FROM tab0
----
140
161
215
query I rowsort
SELECT 53 * - tab2.col1 * - 8 AS col2 FROM tab2
----
13144
25016
7208
query I rowsort
SELECT DISTINCT - 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4427
SELECT - CAST( NULL AS SIGNED ) * 49 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4427
SELECT - CAST ( NULL AS INTEGER ) * 49 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col0 + + col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - - 53 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1172
-523
-7868
query I rowsort
SELECT DISTINCT - col2 * col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + - ( - col2 ) * cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL col1 + - ( col2 * + col2 ) AS col1 FROM tab0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4433
SELECT DISTINCT col0 * - CAST( col0 AS SIGNED ) + col1 AS col0 FROM tab1
----
-4086
-6387
17
skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT col0 * - CAST ( col0 AS INTEGER ) + col1 AS col0 FROM tab1
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT + col2 * col2 DIV + col2 + col0 * - col2 * col1 AS col0 FROM tab0
----
-3394
-664036
-68079
skipif mysql # not compatible
query I rowsort label-4434
SELECT + col2 * col2 / + col2 + col0 * - col2 * col1 AS col0 FROM tab0
----
-3394
-664036
-68079
query I rowsort
SELECT 83 + + tab0.col2 AS col1 FROM tab0
----
116
165
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT DISTINCT ( + col0 + - col1 ) DIV + 25 FROM tab0
----
-2
0
skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT ( + col0 + - col1 ) / + 25 FROM tab0
----
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4438
SELECT DISTINCT - CAST( + col2 * col2 AS SIGNED ) AS col1 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT - CAST ( + col2 * col2 AS INTEGER ) AS col1 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4439
SELECT ALL CAST( + col1 AS SIGNED ) + - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL CAST ( + col1 AS INTEGER ) + - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4440
SELECT - ( - col0 ) + col2 DIV - col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-4440
SELECT - ( - col0 ) + col2 / - col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT - + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 * + col0 * col2 + 89 AS col1 FROM tab0 AS cor0
----
-3306
-664029
-68023
query I rowsort
SELECT ALL + 29 AS col1 FROM tab1
----
29
29
29
query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + 37 * - ( + col0 + 62 * - col1 ) FROM tab2 AS cor0
----
132460
36075
70855
query I rowsort
SELECT + - col2 * - 42 FROM tab1 cor0
----
2268
2394
4032
query I rowsort
SELECT DISTINCT + col1 * - 14 * col2 AS col2 FROM tab2 AS cor0
----
-11718
-21476
-9044
query I rowsort
SELECT DISTINCT - - col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col2 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - 49 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT DISTINCT cor0.col0 + + 7 AS col2 FROM tab0, tab1 AS cor0
----
10
71
87
query I rowsort
SELECT + 95 * col1 + col0 * + cor0.col1 AS col0 FROM tab2 cor0
----
10207
2958
3162
query I rowsort
SELECT 26 - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1a75f6f1c111c6c8944a3eca13f4fe68
query I rowsort
SELECT DISTINCT col0 * 36 FROM tab1
----
108
2304
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + 81 col2 FROM tab2 cor0
----
43
54
55
query I rowsort
SELECT ALL - col1 * 7 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT DISTINCT - col2 + tab2.col1 * col2 FROM tab2
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4460
SELECT DISTINCT - col0 * - col2 + + ( col0 + + CAST( NULL AS SIGNED ) ) * - col0 AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT - col0 * - col2 + + ( col0 + + CAST ( NULL AS INTEGER ) ) * - col0 AS col2 FROM tab0
----
NULL
query I rowsort
SELECT - col1 * col1 * 68 FROM tab0
----
-502928
-563108
-639812
query I rowsort
SELECT ALL - - cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 95 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4464
SELECT ALL - col0 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - col0 + col1 / col1 AS col2 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT 56 + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
2162
252
3137
query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 - - cor0.col2 * - 6 FROM tab0 cor0
----
1890
3424
7696
query I rowsort
SELECT ALL - 38 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
3244
3369
3651
query I rowsort
SELECT 2 + - ( - col1 + col0 * + col2 ) FROM tab2 AS cor0
----
-156
-1967
-2983
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT ALL cor0.col1 - - col0 * + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + ( 69 ) + - cor0.col2 * + col2 AS col2 FROM tab2 cor0
----
-1375
-607
-660
query I rowsort
SELECT ALL - - ( col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col0 ) * cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT 51 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06
query I rowsort
SELECT + col2 * + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - col2 * 63 FROM tab2
----
-1638
-1701
-2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT DISTINCT col0 DIV + ( col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT col0 / + ( col1 ) FROM tab0
----
0
query I rowsort
SELECT ALL - 88 + - col1 FROM tab1
----
-101
-114
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * + tab0.col2 + + col2 col0 FROM tab0
----
-1056
-6642
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - col0 col1 FROM tab1
----
-12
-256
-320
query I rowsort
SELECT ALL - - cor0.col0 * ( col2 ) * - ( col2 ) FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - cor0.col2 - col2 * col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT + 71 AS col2 FROM tab1
----
71
71
71
query I rowsort
SELECT - ( 29 ) * + col0 FROM tab0
----
-1015
-2581
-696
query I rowsort
SELECT ALL + ( cor0.col2 ) AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 5 + col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT + ( col1 ) * - col2 + + ( cor0.col0 ) FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 35 + col2 col2 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + 84 + col2 AS col0 FROM tab0 AS cor0
----
117
166
85
query I rowsort
SELECT 87 * + col0 + + col0 AS col2 FROM tab1 AS cor0
----
264
5632
7040
query I rowsort
SELECT + - cor0.col1 * - col1 + - col1 AS col2 FROM tab0 cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * 38 col1 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL tab0.col1 * - tab0.col1 * ( ( col0 ) * 84 ) - - 87 AS col1 FROM tab0
----
-14910249
-27662373
-61908669
query I rowsort
SELECT 71 * - cor0.col0 * col0 FROM tab0 cor0
----
-40896
-562391
-86975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + col0 col2 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT ALL - col2 + 97 FROM tab2 AS cor0
----
59
70
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT cor0.col1 * CAST( NULL AS SIGNED ) + 94 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4501
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) + 94 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT DISTINCT - col2 DIV col1 - - col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT - col2 / col1 - - col2 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT DISTINCT col2 + + 9 * col0 DIV - col1 FROM tab0 AS cor0
----
-2
31
74
skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT col2 + + 9 * col0 / - col1 FROM tab0 AS cor0
----
-2
31
74
query I rowsort
SELECT DISTINCT + 22 FROM tab0
----
22
query I rowsort
SELECT col2 * 99 FROM tab2 AS cor0
----
2574
2673
3762
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL + col2 + + CAST( - col0 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + col2 + + CAST ( - col0 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col0 + col2 + - col0 * - col2 FROM tab2 AS cor0
----
2132
223
3119
query I rowsort
SELECT DISTINCT col0 * + col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + cor0.col2 + - col0 * - col0 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT DISTINCT col1 DIV col1 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT col1 / col1 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - col2 * + ( cor0.col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col2 + 88 AS col0 FROM tab1 cor0
----
-8
31
34
query I rowsort
SELECT DISTINCT - - col2 - ( cor0.col2 ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col2 * col0 col0 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * - col2 AS col0 FROM tab2 cor0
----
-1427
-617
-698
query I rowsort
SELECT - + ( col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - cor0.col1 + col2 * col0 AS col2 FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT ALL 4 * col1 FROM tab2
----
124
236
68
query I rowsort
SELECT ALL - ( col2 ) * col2 + - col0 * - 73 + - col1 AS col0 FROM tab1 AS cor0
----
-2723
-3389
1413
query I rowsort
SELECT 42 + col2 FROM tab1 AS cor0
----
138
96
99
query I rowsort
SELECT - 91 + + col0 * - col1 FROM tab1 cor0
----
-1131
-169
-731
query I rowsort
SELECT - cor0.col0 * cor0.col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + col0 * col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - - 68 * col1 AS col0 FROM tab2 AS cor0
----
1156
2108
4012
onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT col1 - - col0 DIV 64 FROM tab1 AS cor0
----
11
14
26
skipif mysql # not compatible
query I rowsort label-4527
SELECT col1 - - col0 / 64 FROM tab1 AS cor0
----
11
14
26
query I rowsort
SELECT ALL ( + col1 ) + cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col0 col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col2 col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT + col1 DIV + tab1.col1 + - col2 AS col1 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4531
SELECT + col1 / + tab1.col1 + - col2 AS col1 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT tab1.col1 + col0 * col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col1 + col2 * + col2 * + col1 AS col2 FROM tab1
----
119821
32500
75842
onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT + col2 + + col2 DIV + col0 AS col0 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-4534
SELECT + col2 + + col2 / + col0 AS col0 FROM tab1
----
57
72
97
query I rowsort
SELECT DISTINCT + - col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col1 * col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - - col1 * - cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + col1 + + col2 * + col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
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 + col2 - col1 * col0 col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4544
SELECT DISTINCT + - cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4544
SELECT DISTINCT + - cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT - - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col0 + col0 + - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1295
624
8099
query I rowsort
SELECT + col1 * + tab0.col2 + tab0.col0 * - col2 FROM tab0
----
164
2046
62
query I rowsort
SELECT DISTINCT + 48 * - col1 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT 6 FROM tab2 cor0
----
6
query I rowsort
SELECT DISTINCT - + col2 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + + 79 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - ( cor0.col1 ) + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + + col1 * col1 + - col1 FROM tab2 cor0
----
255
3363
899
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col0 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT cor0.col1 + - col0 + - col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 + col1 + col1 FROM tab0 AS cor0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT + 70 DIV + col0 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-4559
SELECT + 70 / + col0 FROM tab2
----
0
0
10
query I rowsort
SELECT ( 82 ) * + tab0.col2 AS col1 FROM tab0
----
2706
6724
82
query I rowsort
SELECT ALL - + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + col1 * - col1 + col1 AS col2 FROM tab1 AS cor0
----
-143
-624
-80
query I rowsort
SELECT + - col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col0 * col2 * - col1 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col2 - col1 * + col1 * - col1 FROM tab1
----
1057
17630
2293
query I rowsort
SELECT - 48 * tab1.col1 + col0 AS col1 FROM tab1
----
-1245
-416
-544
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 * - col1 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT col1 + col2 * col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col1 * col0 + + col2 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT + 52 - + col0 AS col2 FROM tab0
----
-37
17
28
query I rowsort
SELECT col2 * col2 * tab0.col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col0 * + col1 * col0 AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT col2 + col1 * + col0 * col2 + + col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 * col2 + + col1 * col0
----
query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col0 * col0 * col2 FROM tab1
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + col1 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 * col0 * + col2 AS col1 FROM tab1
----
207936
737280
8748
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col0 )
----
query I rowsort
SELECT col0 + - col0 * - col2 * col0 + col1 * col1 FROM tab0
----
10669
26428
657892
query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( col0 * col0 )
----
query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 + col1 * col2 FROM tab0
----
2022
27
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT tab2.col1 + + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - tab0.col2 * col2 + - col2 AS col1 FROM tab0
----
-1122
-2
-6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col1 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab2 WHERE ( NULL ) BETWEEN ( - col1 ) AND + col1
----
query I rowsort
SELECT - col1 * + col2 + + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - col0 * tab1.col2 * - col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT tab0.col1 + col2 * - col1 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT - col1 * col1 + tab2.col1 AS col0 FROM tab2
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * - col2 * col2 AS col0 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col2 AS col2 FROM tab0 WHERE NOT col0 * col2 NOT IN ( col2 + col1 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT DISTINCT + col2 DIV + col2 + col2 * col1 AS col1 FROM tab1
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + col2 / + col2 + col2 * col1 AS col1 FROM tab1
----
1249
1405
571
query I rowsort
SELECT + col0 * tab1.col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 + tab2.col0 * + col2 AS col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT col2 * + tab0.col0 - + col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT - col0 * col2 - - tab1.col2 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT col0 * col2 + - col1 * + col1 FROM tab1
----
-514
3548
7511
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 / col1 NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab1
----
121
176
57
query I rowsort
SELECT col2 + col0 * - col0 AS col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT - col1 * - col2 + tab2.col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + cor0.col0 + - cor0.col1 * col1 FROM tab2 cor0
----
-210
-3403
-954
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----
query I rowsort
SELECT col2 * - col1 * col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT - col0 FROM tab2 WHERE NULL = NULL
----
query I rowsort
SELECT ALL - col0 + + col1 + - col0 * + col1 FROM tab2 AS cor0
----
-1405
-193
-4621
query I rowsort
SELECT cor0.col1 * - col2 * col0 + col2 + col2 FROM tab1 AS cor0
----
-36366
-4104
-99648
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col2 <= + col1 + + col1 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT ALL - tab1.col2 DIV + col1 + col1 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - tab1.col2 / + col1 + col1 FROM tab1
----
24
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT tab1.col2 + - tab1.col0 * tab1.col1 DIV + col2 AS col2 FROM tab1
----
46
53
86
skipif mysql # not compatible
query I rowsort label-4612
SELECT tab1.col2 + - tab1.col0 * tab1.col1 / + col2 AS col2 FROM tab1
----
46
53
86
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col1 - cor0.col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT ALL cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col1 + - col2 + - col2 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT col0 + col0 * + col0 * col2 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT col0 * col0 * col2 AS col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT + 71 + col1 AS col1 FROM tab1
----
81
84
97
query I rowsort
SELECT + 89 + + col1 FROM tab1 AS cor0
----
102
115
99
query I rowsort
SELECT 79 * col1 AS col1 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT - 64 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-181632
-477568
-6208
query I rowsort
SELECT - 30 + - col1 * + col2 AS col2 FROM tab2 cor0
----
-1564
-676
-867
query I rowsort
SELECT + ( cor0.col1 ) + + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col2 * + col1 + + col1 * cor0.col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT + col2 + col1 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT 95 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2280
-3325
-8455
query I rowsort
SELECT ALL + col2 + - cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + 64 * + col0 + 55 * - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-154554
-3095
-404714
query I rowsort
SELECT - 89 AS col0 FROM tab1 AS cor0
----
-89
-89
-89
query I rowsort
SELECT ALL col2 * 60 FROM tab1
----
3240
3420
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4632
SELECT + - cor0.col0 + + CAST( col1 AS SIGNED ) * col1 * - col1 FROM tab0 AS cor0
----
-636080
-753660
-912708
skipif mysql # not compatible
query I rowsort label-4632
SELECT + - cor0.col0 + + CAST ( col1 AS INTEGER ) * col1 * - col1 FROM tab0 AS cor0
----
-636080
-753660
-912708
query I rowsort
SELECT col1 * 20 * - cor0.col2 FROM tab0 AS cor0
----
-149240
-1940
-56760
query I rowsort
SELECT col2 * col2 - + 94 FROM tab2 cor0
----
1350
582
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - - col0 * col1 - - col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT DISTINCT tab2.col2 DIV 77 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT tab2.col2 / 77 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT col2 DIV - ( + col2 + + col0 ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4638
SELECT col2 / - ( + col2 + + col0 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT col0 DIV 6 AS col0 FROM tab0
----
14
4
5
skipif mysql # not compatible
query I rowsort label-4640
SELECT col0 / 6 AS col0 FROM tab0
----
14
4
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT - tab2.col2 DIV 56 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4641
SELECT - tab2.col2 / 56 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 7 * col0 AS col2 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT 82 * + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ed674b86bc66220451666145bcd25fd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT DISTINCT - - CAST( col1 AS SIGNED ) * + col0 + - col0 FROM tab1 AS cor0
----
576
75
960
skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * + col0 + - col0 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4645
SELECT + cor0.col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4645
SELECT + cor0.col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT DISTINCT - 98 DIV - col0 + col0 AS col1 FROM tab2 AS cor0
----
21
79
80
skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT - 98 / - col0 + col0 AS col1 FROM tab2 AS cor0
----
21
79
80
query I rowsort
SELECT DISTINCT cor0.col0 * cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3
query I rowsort
SELECT ALL 78 * 21 + - col0 FROM tab1 cor0
----
1558
1574
1635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT ALL - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT ( col2 ) * - col2 + - col1 * col1 + col2 * - col0 AS col0 FROM tab2
----
-1879
-4735
-6185
query I rowsort
SELECT 99 + + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5af2d9f1c6b54eefe74f9caec88591bc
query I rowsort
SELECT ALL col0 + 8 * col0 FROM tab1
----
27
576
720
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 44 - + col2 FROM tab2
----
17
18
6
query I rowsort
SELECT col1 + - col0 + col1 * col0 AS col1 FROM tab0
----
2126
3457
8101
query I rowsort
SELECT col0 - + 25 AS col2 FROM tab2 AS cor0
----
-18
53
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + cor0.col2 ) col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT ALL + + cor0.col2 DIV col0 + + col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + + cor0.col2 / col0 + + col2 FROM tab2 AS cor0
----
26
30
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4660
SELECT + CAST( NULL AS SIGNED ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4660
SELECT + CAST ( NULL AS INTEGER ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - ( - col0 + ( 66 ) ) FROM tab0
----
-31
-42
23
query I rowsort
SELECT cor0.col1 * - 60 FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT ALL 37 FROM tab1
----
37
37
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 60 + - col2 AS col2 FROM tab2
----
-86
-87
-98
query I rowsort
SELECT + 17 * col2 AS col0 FROM tab1
----
1632
918
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT DISTINCT + - col0 DIV col2 + - 73 AS col0 FROM tab0 AS cor0
----
-108
-73
-74
skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT + - col0 / col2 + - 73 AS col0 FROM tab0 AS cor0
----
-108
-73
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT ALL - col1 - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL - col1 - + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL col0 + - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col2 * - ( + 88 ) AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344
onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT ALL - col0 + - col0 DIV col1 - - col0 * col2 FROM tab1 cor0
----
159
3578
7594
skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - col0 + - col0 / col1 - - col0 * col2 FROM tab1 cor0
----
159
3578
7594
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - col1 * 43 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT - + col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + col0 * col1 * col1 + col0 * col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1335445
203640
329350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + col0 * ( - ( - col1 ) * col0 ) + - col2 + col1 * col2 FROM tab2 AS cor0
----
106705
2329
360464
query I rowsort
SELECT ALL - col1 * col2 + 70 * col0 AS col0 FROM tab0 AS cor0
----
-1158
-1232
2353
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col0 FROM tab0
----
172
182
194
query I rowsort
SELECT 15 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL - col2 + - col2 * col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT ALL + + 44 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT ALL col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col0 + - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4689
SELECT - tab0.col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4689
SELECT - tab0.col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 + col0 * col0 * col1 FROM tab1 AS cor0
----
260
40970
83213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col0 + + tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - tab2.col0 - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1de84cebe884d41fa5489f6e6763691c
query I rowsort
SELECT ALL tab1.col2 * cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8
query I rowsort
SELECT col2 * col1 + 2 FROM tab2
----
1536
648
839
query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 + - 96 FROM tab2 AS cor0
----
-58
-69
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT ALL + cor0.col1 * col0 + cor0.col2 DIV + col2 + 76 AS col2 FROM tab1 AS cor0
----
1117
155
717
skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + cor0.col1 * col0 + cor0.col2 / + col2 + 76 AS col2 FROM tab1 AS cor0
----
1117
155
717
query I rowsort
SELECT + col0 + 44 * - ( + col1 ) FROM tab1 AS cor0
----
-1141
-376
-492
query I rowsort
SELECT ALL + col0 + + col2 + - col1 FROM tab2 AS cor0
----
100
3
45
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * + CAST ( col1 AS REAL ) + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL + - cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col0 * + 90 * + col2 + cor0.col2 FROM tab0 AS cor0
----
3151
656902
71313
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT col2 * - 30 + col1 AS col1 FROM tab1 AS cor0
----
-1594
-1700
-2867
query I rowsort
SELECT ALL - - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 + + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT - col0 * + 69 FROM tab1 AS cor0
----
-207
-4416
-5520
query I rowsort
SELECT DISTINCT + col0 + + col0 * + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4710
SELECT ALL col1 - col1 DIV col2 AS col2 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL col1 - col1 / col2 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT col0 + - 24 * tab0.col0 + col0 * + 23 * + tab0.col0 AS col2 FROM tab0
----
12696
180136
27370
query I rowsort
SELECT ( + col2 ) * col2 + col2 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT - 77 * col1 FROM tab1
----
-1001
-2002
-770
query I rowsort
SELECT col0 + col0 * + col1 + + col1 AS col0 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT DISTINCT + col1 + tab2.col2 * col2 AS col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL ( + cor0.col0 ) * - col1 * 63 AS col0 FROM tab2 AS cor0
----
-13671
-289926
-84609
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT ALL cor0.col0 DIV + cor0.col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL cor0.col0 / + cor0.col1 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 4 ) + + col1 * + col0 - 82 col1 FROM tab1 AS cor0
----
-8
554
954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT - CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4720
SELECT - CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 64 FROM tab2 AS cor0
----
64
64
64
query I rowsort
SELECT col1 + - col2 * col1 AS col0 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 89 * col0 FROM tab0 AS cor0
----
-2136
-3115
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT ALL + + col0 + cor0.col0 DIV 64 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + + col0 + cor0.col0 / 64 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT DISTINCT - + 33 AS col0 FROM tab0 AS cor0
----
-33
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT ALL + + 8 * - col2 + col0 DIV + 51 FROM tab0 AS cor0
----
-264
-655
-8
skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + + 8 * - col2 + col0 / + 51 FROM tab0 AS cor0
----
-264
-655
-8
query I rowsort
SELECT - ( - 19 ) + + col0 * - col0 AS col0 FROM tab0
----
-1206
-557
-7902
query I rowsort
SELECT ALL 95 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT + col1 * + cor0.col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL - - 10 AS col2 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT 39 * col1 FROM tab2 AS cor0
----
1209
2301
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT + + cor0.col1 DIV - col1 - cor0.col2 * - 27 * col0 AS col0 FROM tab2 AS cor0
----
5102
54755
81053
skipif mysql # not compatible
query I rowsort label-4733
SELECT + + cor0.col1 / - col1 - cor0.col2 * - 27 * col0 AS col0 FROM tab2 AS cor0
----
5102
54755
81053
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT + col2 + + col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4734
SELECT + col2 + + col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col0 + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + - col1 + col1 * col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + 35 * - col2 FROM tab2
----
-1330
-910
-945
query I rowsort
SELECT + - 20 - + cor0.col2 FROM tab1 cor0
----
-116
-74
-77
query I rowsort
SELECT - col2 * col0 + col0 * - col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT - col2 * cor0.col2 - - col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4741
SELECT + + cor0.col0 + cor0.col1 * + CAST( NULL AS SIGNED ) * ( - cor0.col2 * - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4741
SELECT + + cor0.col0 + cor0.col1 * + CAST ( NULL AS INTEGER ) * ( - cor0.col2 * - col2 ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - col1 + 8 FROM tab2 AS cor0
----
-23
-51
-9
query I rowsort
SELECT + - 72 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT tab0.col0 * 2 FROM tab0, tab1 AS cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4747
SELECT ALL - + CAST( NULL AS SIGNED ) / + 84 + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL - + CAST ( NULL AS INTEGER ) / + 84 + col2 * cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4748
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4748
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 27 * + col1 AS col0 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT ( + 66 ) FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT ALL + 65 * ( col2 * - col1 ) AS col0 FROM tab1
----
-37050
-81120
-91260
query I rowsort
SELECT DISTINCT + tab0.col2 + - 36 AS col0 FROM tab0
----
-3
-35
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT DISTINCT - tab0.col2 DIV + tab0.col2 + - col0 + col1 FROM tab0
----
1
61
skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT - tab0.col2 / + tab0.col2 + - col0 + col1 FROM tab0
----
1
61
query I rowsort
SELECT DISTINCT - + 34 * + col1 + col0 FROM tab1 AS cor0
----
-276
-362
-881
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
query I rowsort
SELECT ALL + col1 * + 8 + - col0 * col0 * + col2 FROM tab0 AS cor0
----
-18320
-449
-648794
query I rowsort
SELECT ALL + ( col2 ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + 92 * - col0 FROM tab1
----
-276
-5888
-7360
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT - cor0.col2 + 50 - - col0 AS col1 FROM tab0 cor0
----
41
57
84
query I rowsort
SELECT col1 * + ( cor0.col2 ) AS col2 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + cor0.col0 * col0 col1 FROM tab0 AS cor0
----
1190
552
7832
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 8 AS REAL ) - col0 FROM tab2 AS cor0
----
-15
-86
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT - - 49 DIV - 90 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4765
SELECT - - 49 / - 90 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + 71 * col2 FROM tab1 AS cor0
----
3834
4047
6816
query I rowsort
SELECT ALL + + 96 + + col1 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-610
-7111
158
query I rowsort
SELECT col1 + col2 * ( col0 ) FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col2 + col0 * + 14 AS col1 FROM tab0 AS cor0
----
1328
369
491
query I rowsort
SELECT col0 + + col0 * + ( + cor0.col0 + col0 ) FROM tab0 AS cor0
----
1176
15931
2485
query I rowsort
SELECT cor0.col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4773
SELECT DISTINCT - - col0 + - CAST( - ( - col2 ) AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - - col0 + - CAST ( - ( - col2 ) AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - col2 * ( cor0.col0 * - col1 ) FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - 48 * - 80 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 0a4c2e9fcd751bfcf9e2d068ead79f31
query I rowsort
SELECT + 53 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + col1 * 60 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - - col2 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4781
SELECT ALL + col2 + CAST( - ( col1 ) AS SIGNED ) FROM tab2 cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL + col2 + CAST ( - ( col1 ) AS INTEGER ) FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT + + col1 DIV ( - col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4782
SELECT + + col1 / ( - col0 * col0 ) AS col0 FROM tab1 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT tab1.col1 * 35 FROM tab1
----
350
455
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT DISTINCT 84 DIV col0 AS col1 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4784
SELECT DISTINCT 84 / col0 AS col1 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT - - ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - ( + 43 ) FROM tab1 AS cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT - + 80 * + 97 FROM tab0 AS cor0
----
-7760
query I rowsort
SELECT DISTINCT + 55 + + 30 AS col1 FROM tab0 AS cor0
----
85
query I rowsort
SELECT + + 6 * + col2 AS col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT ALL - 56 - + col0 FROM tab1 AS cor0
----
-120
-136
-59
query I rowsort
SELECT col2 + 52 AS col0 FROM tab1
----
106
109
148
query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT col1 * - 86 FROM tab0
----
-7396
-7826
-8342
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * + col0 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT ALL - 18 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL - 18 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + 41 * - cor0.col2 FROM tab1 cor0
----
-2214
-2337
-3936
query I rowsort
SELECT - ( ( - col0 ) ) FROM tab0
----
24
35
89
query I rowsort
SELECT - 3 * 52 FROM tab1
----
-156
-156
-156
query I rowsort
SELECT 49 * - tab0.col1 FROM tab0
----
-4214
-4459
-4753
query I rowsort
SELECT DISTINCT cor0.col0 * col2 + - col0 * - col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT - + col0 * + col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4803
SELECT + - 65 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4803
SELECT + - 65 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 * col1 + ( 24 ) FROM tab1 AS cor0
----
1272
1428
594
query I rowsort
SELECT ALL col0 + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL + col2 * - col2 * + col1 + ( + col1 ) AS col1 FROM tab1
----
-119795
-32480
-75790
query I rowsort
SELECT ( 14 ) FROM tab1
----
14
14
14
query I rowsort
SELECT ALL 28 AS col0 FROM tab1
----
28
28
28
query I rowsort
SELECT ALL + ( + 72 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - cor0.col2 col1 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT ALL - + 61 + 4 * + col2 FROM tab0 AS cor0
----
-57
267
71
query I rowsort
SELECT + col2 + ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 96 * - cor0.col1 col2 FROM tab2 AS cor0
----
-1594
-2949
-5638
query I rowsort
SELECT ( + 99 ) FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + 84 * - 29 * col1 AS col2 FROM tab2 cor0
----
-143724
-41412
-75516
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) * - 11 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) * - 11 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + 40 AS col1 FROM tab1
----
50
53
66
query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 + col2 * - col1 FROM tab2
----
-1482
-570
-783
query I rowsort
SELECT - ( + tab2.col2 ) + col0 * ( - col2 ) + + col1 AS col2 FROM tab2
----
-185
-1995
-3023
query I rowsort
SELECT - 18 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT ALL ( col1 ) + - col1 + - ( col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL - col2 * + ( + cor0.col1 ) FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 * cor0.col2 * col1 + + ( + cor0.col2 ) * - col1 FROM tab2 AS cor0
----
10336
25110
88972
query I rowsort
SELECT 61 * col0 * + col0 FROM tab2
----
2989
371124
380701
query I rowsort
SELECT DISTINCT col2 * - 87 FROM tab1
----
-4698
-4959
-8352
query I rowsort
SELECT DISTINCT 8 * - tab0.col1 AS col0 FROM tab0
----
-688
-728
-776
query I rowsort
SELECT + 67 AS col2 FROM tab0
----
67
67
67
query I rowsort
SELECT + + 72 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT - 9 * col0 * 86 + - col1 * col0 FROM tab2
----
-5635
-62489
-64974
query I rowsort
SELECT 64 * col1 + - 65 FROM tab0
----
5439
5759
6143
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab1 cor0, tab2 AS cor1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT + cor0.col2 DIV col1 - col0 * - col1 * + col0 FROM tab2 cor0
----
106099
1519
358956
skipif mysql # not compatible
query I rowsort label-4832
SELECT + cor0.col2 / col1 - col0 * - col1 * + col0 FROM tab2 cor0
----
106099
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4834
SELECT DISTINCT col2 DIV - col1 + - col1 * + col0 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT col2 / - col1 + - col1 * + col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + - col0 * col0 + + 56 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1920
-512
159
query I rowsort
SELECT - - col2 * 49 FROM tab2 cor0
----
1274
1323
1862
query I rowsort
SELECT ALL + col1 * - col1 + 86 AS col1 FROM tab0 AS cor0
----
-7310
-8195
-9323
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT ALL + col2 * CAST( + 10 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
260
270
380
skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL + col2 * CAST ( + 10 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT DISTINCT - col0 + - 14 AS col1 FROM tab2 AS cor0
----
-21
-92
-93
query I rowsort
SELECT + - col1 * ( + col0 ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT DISTINCT - col0 + col0 DIV 70 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - col0 + col0 / 70 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT 5 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - col0 * - col1 + - col0 FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT tab1.col0 * 24 + + 35 DIV + tab1.col1 FROM tab1
----
1539
1922
73
skipif mysql # not compatible
query I rowsort label-4844
SELECT tab1.col0 * 24 + + 35 / + tab1.col1 FROM tab1
----
1539
1922
73
query I rowsort
SELECT ALL - tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT ALL + 45 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4847
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) * - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + col2 + cor0.col1 * + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT 29 * - col0 * cor0.col1 + - col1 * 4 * - col1 + col2 FROM tab1 AS cor0
----
-18103
-29388
496
query I rowsort
SELECT 2 + cor0.col2 FROM tab2 cor0
----
28
29
40
query I rowsort
SELECT - - col2 * ( + col2 ) FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - 65 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - + 52 + col2 AS col2 FROM tab1 AS cor0
----
2
44
5
query I rowsort
SELECT col0 * col0 - col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT 82 * + col1 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT + 24 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL col1 * - col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - + col0 + + col0 AS col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL 92 - - col2 AS col0 FROM tab0 AS cor0
----
125
174
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT ALL - col1 DIV - col1 + + col0 - col1 DIV - col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL - col1 / - col1 + + col0 - col1 / - col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ( - cor0.col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + - col1 * - col2 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 + col0 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - - 52 + col0 AS col0 FROM tab0 AS cor0
----
141
76
87
query I rowsort
SELECT DISTINCT - + 91 - col0 FROM tab0 AS cor0
----
-115
-126
-180
query I rowsort
SELECT + cor0.col1 * col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + 38 * col2 AS col2 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT ALL + col0 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-4873
SELECT DISTINCT col0 + - col2 DIV 51 AS col2 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT col0 + - col2 / 51 AS col2 FROM tab0 AS cor0
----
24
35
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT - 8 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4874
SELECT - 8 / col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - 83 + col2 * ( + 78 ) FROM tab0 AS cor0
----
-5
2491
6313
onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT ALL + col2 * col0 DIV - col1 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + col2 * col0 / - col1 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT ALL ( col1 * col1 ) AS col0 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col1 FROM tab2 cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT - cor0.col1 * col1 DIV - ( col0 ) FROM tab0 AS cor0
----
268
308
93
skipif mysql # not compatible
query I rowsort label-4881
SELECT - cor0.col1 * col1 / - ( col0 ) FROM tab0 AS cor0
----
268
308
93
query I rowsort
SELECT - 71 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 68d2de039a9324060ea47276d4b8723f
query I rowsort
SELECT - col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL - 23 + col1 * cor0.col1 AS col2 FROM tab2 cor0
----
266
3458
938
query I rowsort
SELECT cor0.col1 + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c78408d90c4e135ef1bbc23c5252cd1d
query I rowsort
SELECT DISTINCT col1 * 0 + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - ( col2 + tab2.col2 ) AS col0 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT + 0 + + col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - ( - tab0.col2 ) AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT cor0.col0 + - cor0.col0 * + 74 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 918ffc78af1df7445198a6a319f73fd2
query I rowsort
SELECT ALL col1 * col2 + col1 + col0 * col1 AS col2 FROM tab0 cor0
----
15652
3589
4988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4893
SELECT + CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4893
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1, tab2 AS cor0
----
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT - ( - cor0.col2 ) DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4895
SELECT - ( - cor0.col2 ) / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT 92 * + col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT - 44 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL - ( col0 ) + col0 AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * ( + col1 ) + + col2 col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT ALL - 91 DIV col2 AS col1 FROM tab0 cor0
----
-1
-2
-91
skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - 91 / col2 AS col1 FROM tab0 cor0
----
-1
-2
-91
query I rowsort
SELECT + + col1 * - 48 + col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1120
-1326
-1664
query I rowsort
SELECT ( + ( - col2 ) ) + - 5 FROM tab2 AS cor0
----
-31
-32
-43
query I rowsort
SELECT + col0 * - 14 AS col1 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT ALL + cor0.col1 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL 10 + + col2 - col0 AS col0 FROM tab1 AS cor0
----
26
3
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + 88 * + cor0.col2 + 8 AS col2 FROM tab0 AS cor0
----
2912
7224
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT col1 + + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT col1 + + col2 / col0 AS col2 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT + - col0 * col1 - + cor0.col1 FROM tab0 cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - - col1 * + ( - ( - col1 ) * ( + cor0.col1 ) ) - col1 AS col0 FROM tab2 AS cor0
----
205320
29760
4896
query I rowsort
SELECT + + col0 * col2 + + 68 AS col0 FROM tab0 AS cor0
----
103
7366
860
query I rowsort
SELECT + 48 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + + cor0.col0 * - col1 * 84 FROM tab2 AS cor0
----
-112812
-18228
-386568
query I rowsort
SELECT col0 + - ( - col0 ) * + col0 AS col2 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT ALL + - col0 + - 68 * cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
140328
230825
550643
query I rowsort
SELECT col2 - + 76 AS col1 FROM tab2 cor0
----
-38
-49
-50
query I rowsort
SELECT DISTINCT + - col2 * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col1 * col2 + cor0.col0 + 12 FROM tab1 AS cor0
----
-1156
-1389
-494
query I rowsort
SELECT + col0 * col0 + col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT 67 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-3581
-7613
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 9 * 33 + + col2 col0 FROM tab1 cor0
----
351
354
393
query I rowsort
SELECT ALL - 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 DISTINCT + cor0.col1 * 91 col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT - ( col2 ) + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL cor0.col1 * ( + col2 + + cor0.col2 ) FROM tab0 cor0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT DISTINCT col2 DIV - col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT col2 / - col1 col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + col1 - + 61 FROM tab1
----
-35
-48
-51
query I rowsort
SELECT col2 + - 9 + col1 FROM tab0
----
110
164
89
query I rowsort
SELECT - col0 * - 68 FROM tab0
----
1632
2380
6052
query I rowsort
SELECT + col0 * ( col2 ) * - col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - col1 * - col0 * + 88 + cor0.col2 + + col2 * col0 * col0 AS col1 FROM tab2 AS cor0
----
20446
355380
563186
query I rowsort
SELECT ALL - - col0 * + col2 + - 54 * + col2 FROM tab0 AS cor0
----
-19
-990
2870
query I rowsort
SELECT ALL + + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4937
SELECT cor0.col0 DIV - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-4937
SELECT cor0.col0 / - cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - 52 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bee61227972ad9a02705a1cd2b945aee
query I rowsort
SELECT + + col2 - + col1 * col2 * - col1 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT col0 * + col0 - - col0 * - cor0.col2 FROM tab2 cor0
----
-140
3239
4056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4941
SELECT + - col1 * + CAST( NULL AS SIGNED ) * + 69 - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4941
SELECT + - col1 * + CAST ( NULL AS INTEGER ) * + 69 - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * - col1 + 38 * - col2 FROM tab0
----
1584
4346
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col0 col2 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT ALL - cor0.col2 * - tab2.col1 + - CAST( 24 AS SIGNED ) AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 23cff718c92fc7de892975c86842cc9e
skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - cor0.col2 * - tab2.col1 + - CAST ( 24 AS INTEGER ) AS col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 23cff718c92fc7de892975c86842cc9e
query I rowsort
SELECT DISTINCT + col2 + tab1.col1 * - ( 54 ) * + col1 FROM tab1
----
-36450
-5343
-9030
query I rowsort
SELECT DISTINCT - col1 + col2 * + tab2.col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT 36 + + col1 AS col0 FROM tab0
----
122
127
133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4949
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4949
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4950
SELECT col2 DIV - 52 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4950
SELECT col2 / - 52 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 73 * 24 FROM tab0 AS cor0
----
1752
1752
1752
query I rowsort
SELECT ALL + 26 * + col0 AS col0 FROM tab2 cor0
----
182
2028
2054
query I rowsort
SELECT DISTINCT + col1 + ( - col0 ) FROM tab0 cor0
----
2
62
query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - ( + col0 ) + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - 8 FROM tab2 cor0
----
-8
-8
-8
query I rowsort
SELECT + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col2 - tab1.col0 AS col2 FROM tab1
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT ALL col2 + CAST( col2 * col1 + 8 AS SIGNED ) FROM tab1
----
1352
1466
635
skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL col2 + CAST ( col2 * col1 + 8 AS INTEGER ) FROM tab1
----
1352
1466
635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + ( + col2 * - col2 ) col1 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT ALL + col1 + + 22 AS col1 FROM tab0
----
108
113
119
query I rowsort
SELECT DISTINCT cor1.col0 + + cor0.col0 + 59 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
126
142
187
203
219
65
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 ALL + col1 * ( + ( - col2 ) ) + + tab1.col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT col0 - tab2.col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + 17 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT DISTINCT - col1 * + 54 * col0 FROM tab2 AS cor0
----
-11718
-248508
-72522
query I rowsort
SELECT + + 24 AS col0 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT - - col1 + 65 * - col0 FROM tab1 AS cor0
----
-169
-4150
-5187
query I rowsort
SELECT - col2 + + col2 * col0 AS col0 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 58 + - 23 FROM tab1 AS cor0
----
35
query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab0 AS cor0
----
27
query I rowsort
SELECT ALL + - 12 AS col1 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL + - ( 4 ) * col1 FROM tab2 AS cor0
----
-124
-236
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4976
SELECT DISTINCT CAST( col0 AS SIGNED ) * - tab0.col0 col0 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - tab0.col0 col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT 49 + + col0 AS col1 FROM tab2
----
127
128
56
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) * 87 FROM tab1 AS cor0
----
-4698
-4959
-8352
query I rowsort
SELECT DISTINCT + 24 * col2 + - col1 + - 77 * col0 AS col1 FROM tab2 AS cor0
----
-5188
-5441
78
query I rowsort
SELECT 27 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT - tab2.col1 * col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col2 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - cor0.col0 + + 18 * + col1 AS col0 FROM tab0 AS cor0
----
1524
1549
1711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col2 * - 29 + col1 * col2 + 4 FROM tab0 AS cor0
----
1885
5088
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT ALL cor0.col0 - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL cor0.col0 - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4989
SELECT - - col2 + + CAST( col0 AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-4989
SELECT - - col2 + + CAST ( col0 AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4990
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - 49 * - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1328
547
733
query I rowsort
SELECT - - ( col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT + cor0.col0 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + col0 + 83 FROM tab0 AS cor0
----
107
118
172
query I rowsort
SELECT - cor0.col0 * + 12 * + 2 AS col1 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT + - col2 * ( 20 ) + col1 AS col1 FROM tab0 AS cor0
----
-1549
-574
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT + col1 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4997
SELECT + col1 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - col1 * ( 88 ) + col1 * col0 AS col0 FROM tab0 AS cor0
----
-5141
-5504
91
query I rowsort
SELECT DISTINCT - 35 * col1 FROM tab1
----
-350
-455
-910
query I rowsort
SELECT + 81 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * - 31 col1 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT - - cor0.col0 * 98 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT ALL + col2 * + 10 AS col1 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT - + col1 + + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT col0 + col1 * 87 * - col2 AS col2 FROM tab2 AS cor0
----
-133380
-56123
-72812
query I rowsort
SELECT + 55 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + - 43 + cor0.col1 * col0 FROM tab0 AS cor0
----
2021
3352
8056
query I rowsort
SELECT ALL + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 26 * - col0 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78
query I rowsort
SELECT - ( 94 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de
query I rowsort
SELECT DISTINCT + - col2 * col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT ALL - 63 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
query I rowsort
SELECT ALL - 83 AS col0 FROM tab0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 67 AS REAL ) AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL 44 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT + ( tab2.col0 * col2 ) - - col2 AS col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col1 * - ( ( - col2 ) ) + 96 * col0 FROM tab0 AS cor0
----
-534
1082
3263
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 75 * col0 + col1 * + col1 + - col1 AS col1 FROM tab0
----
11937
14865
9110
query I rowsort
SELECT + 34 * + cor0.col1 * col1 - + col0 FROM tab2 AS cor0
----
118276
32667
9747
query I rowsort
SELECT DISTINCT 48 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
48
query I rowsort
SELECT ALL + - col1 * - 57 * + col2 FROM tab2 AS cor0
----
36822
47709
87438
query I rowsort
SELECT ALL col1 + 45 FROM tab1 AS cor0
----
55
58
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 81 * col2 + cor0.col2 col0 FROM tab2 AS cor0
----
15336
164294
243200
query I rowsort
SELECT - col2 - ( col2 ) * - col1 FROM tab2
----
1508
608
810
query I rowsort
SELECT col0 + + ( col2 ) AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + col2 + col1 * - col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - col1 * ( + col0 ) AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col2 * + 17 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT DISTINCT + + col2 * - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + + col2 * - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab2 AS cor0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + + col0 col0 FROM tab1
----
108
31
92
query I rowsort
SELECT ( col1 ) - + col0 * col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT + ( + col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + 89 * 48 AS col0 FROM tab0 AS cor0
----
4272
query I rowsort
SELECT - - col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + + col0 + CAST ( 32 AS REAL ) FROM tab2 AS cor0
----
128
169
70
query I rowsort
SELECT ALL + 77 AS col1 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT cor0.col2 * col1 + - col1 AS col2 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT + col1 * col1 + + ( - col1 ) FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL - + col1 + - col2 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT - ( - col1 ) - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col2 + - col0 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - 64 * col1 + - 17 + - 72 FROM tab1 AS cor0
----
-1753
-729
-921
query I rowsort
SELECT DISTINCT - 25 + - cor0.col1 + + col0 AS col2 FROM tab1 cor0
----
-48
29
42
query I rowsort
SELECT + 64 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1718
697
928
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5052
SELECT ALL + 76 * + col0 * - CAST( NULL AS SIGNED ) + - 23 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + 76 * + col0 * - CAST ( NULL AS INTEGER ) + - 23 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
59
query I rowsort
SELECT ALL + + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + col2 + - ( + col1 ) FROM tab0 AS cor0
----
-131
-7307
-845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5058
SELECT ALL + CAST( 26 AS SIGNED ) + - col0 - 57 FROM tab1 AS cor0
----
-111
-34
-95
skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL + CAST ( 26 AS INTEGER ) + - col0 - 57 FROM tab1 AS cor0
----
-111
-34
-95
query I rowsort
SELECT ALL - ( col0 ) + col0 * col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + + ( - 22 ) * + col0 AS col1 FROM tab1 cor0
----
-1408
-1760
-66
query I rowsort
SELECT ALL + tab1.col0 * - 64 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c95766286c2b0d3f89f84b680f6247d6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT ALL - col0 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 69 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
query I rowsort
SELECT 57 AS col2 FROM tab0
----
57
57
57
query I rowsort
SELECT + + 52 * + col2 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT 7 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 66 col1 FROM tab2
----
-59
12
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT ALL - col1 * CAST( NULL AS DECIMAL ) + - cor0.col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - col1 * CAST ( NULL AS REAL ) + - cor0.col1 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( col0 ) col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 44 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + ( col1 ) ) col2 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT 88 DIV + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-5072
SELECT 88 / + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( 20 ) * + col2 col1 FROM tab1 AS cor0
----
-11400
-24960
-28080
query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab0, tab2 AS cor0
----
-98
query I rowsort
SELECT ALL + col2 + 86 AS col1 FROM tab2 AS cor0
----
112
113
124
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + col0 + + CAST ( ( - col1 ) AS REAL ) col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + - col1 * 70 - - col2 * - col2 * + 98 FROM tab2 AS cor0
----
-142702
-70378
-73612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT DISTINCT col1 * + ( col1 ) - col2 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT col1 * + ( col1 ) - col2 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 41 * cor0.col2 FROM tab2, tab1 AS cor0
----
2214
2337
3936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + col2 + - col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 * - 33 * + col1 + + 89 FROM tab1 AS cor0
----
21209
2663
34409
query I rowsort
SELECT col0 + 58 AS col2 FROM tab2 AS cor0
----
136
137
65
query I rowsort
SELECT ALL - - 78 + + col0 FROM tab0 AS cor0
----
102
113
167
query I rowsort
SELECT ALL ( + 54 ) - col0 AS col2 FROM tab1 AS cor0
----
-10
-26
51
query I rowsort
SELECT DISTINCT + 95 + - 40 AS col2 FROM tab0 cor0
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col1 FROM tab2 AS cor0
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT ALL + ( - cor0.col1 ) + + col1 + + ( + ( col2 ) ) DIV ( ( cor0.col2 ) + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + ( - cor0.col1 ) + + col1 + + ( + ( col2 ) ) / ( ( cor0.col2 ) + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - col0 - - col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col1 * col0 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL 60 + - col2 FROM tab0 AS cor0
----
-22
27
59
query I rowsort
SELECT col2 * - col2 + 27 * - col0 * + ( 14 ) FROM tab0
----
-10161
-13231
-40366
onlyif mysql # use DIV operator for integer division
query I rowsort label-5093
SELECT DISTINCT + col1 DIV - col0 + col2 AS col0 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + col1 / - col0 + col2 AS col0 FROM tab2
----
23
26
38
query I rowsort
SELECT cor0.col0 + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + 97 + - col1 AS col2 FROM tab0 AS cor0
----
0
11
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + 34 * col0 * - 15 col2 FROM tab0 AS cor0
----
-12268
-17878
-45418
query I rowsort
SELECT - 73 * col1 FROM tab1 cor0
----
-1898
-730
-949
query I rowsort
SELECT 26 + 50 FROM tab1
----
76
76
76
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 4 AS REAL ) FROM tab0
----
4
4
4
query I rowsort
SELECT - + 18 FROM tab1 cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT cor0.col0 * 26 FROM tab1, tab0, tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL 75 AS col2 FROM tab0
----
75
75
75
query I rowsort
SELECT col2 * - col2 * col2 FROM tab1
----
-157464
-185193
-884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - cor0.col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5105
SELECT - cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 + + col0 + col2 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT col2 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + cor0.col0 - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5109
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 79 AS col2 FROM tab2
----
79
79
79
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * col2 * - CAST ( - col0 AS REAL ) FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 + ( col1 ) * tab1.col0 AS col2 FROM tab1
----
1149
158
707
query I rowsort
SELECT + col0 * 72 FROM tab2
----
504
5616
5688
query I rowsort
SELECT DISTINCT 75 FROM tab2, tab0 AS cor0
----
75
query I rowsort
SELECT col2 * + col1 * col2 FROM tab0
----
611884
93654
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col0 * 13 col0 FROM tab0 AS cor0
----
-105287
-26832
-44135
query I rowsort
SELECT + cor0.col0 + + 60 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
170
192
240
query I rowsort
SELECT - 85 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT col2 + ( cor0.col2 + - col1 ) AS col0 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT ( - col1 ) * 20 AS col1 FROM tab0
----
-1720
-1820
-1940
query I rowsort
SELECT ALL col0 * col0 + col0 * 83 * tab1.col0 AS col1 FROM tab1
----
344064
537600
756
query I rowsort
SELECT ALL tab0.col1 + - col2 AS col1 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - 45 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT - 28 * col1 AS col0 FROM tab0
----
-2408
-2548
-2716
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + - col2 col0 FROM tab0 AS cor0
----
-14
-46
-95
query I rowsort
SELECT + - ( + cor0.col1 ) - ( col2 ) AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL 76 + + col1 FROM tab0
----
162
167
173
query I rowsort
SELECT DISTINCT - col2 + 96 FROM tab2 cor0
----
58
69
70
query I rowsort
SELECT ALL - col2 * + 59 FROM tab2 AS cor0
----
-1534
-1593
-2242
onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT + col1 + - CAST( col0 AS SIGNED ) DIV - col2 AS col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-5132
SELECT + col1 + - CAST ( col0 AS INTEGER ) / - col2 AS col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL + cor0.col2 * - 60 FROM tab2 AS cor0
----
-1560
-1620
-2280
query I rowsort
SELECT ALL col0 * 23 AS col2 FROM tab1 AS cor0
----
1472
1840
69
query I rowsort
SELECT col0 * - 73 + col0 FROM tab2 AS cor0
----
-504
-5616
-5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT ALL + col1 * col1 + - col0 DIV - col0 AS col2 FROM tab2 cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + col1 * col1 + - col0 / - col0 AS col2 FROM tab2 cor0
----
290
3482
962
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5137
SELECT DISTINCT - + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT - + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 * + 34 AS col0 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT + 87 * col2 AS col2 FROM tab2
----
2262
2349
3306
query I rowsort
SELECT DISTINCT + col0 + - ( 72 ) * col0 FROM tab0 AS cor0
----
-1704
-2485
-6319
query I rowsort
SELECT DISTINCT - 10 FROM tab0
----
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col0 * - 70 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT DISTINCT + - col2 + - 58 FROM tab2 AS cor0
----
-84
-85
-96
query I rowsort
SELECT ALL col2 * 68 AS col0 FROM tab0 cor0
----
2244
5576
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT DISTINCT - col2 DIV 13 AS col1 FROM tab0 AS cor0
----
-2
-6
0
skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - col2 / 13 AS col1 FROM tab0 AS cor0
----
-2
-6
0
query I rowsort
SELECT ALL + cor0.col0 + col0 * 37 FROM tab1 cor0
----
114
2432
3040
query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT - col2 + + col0 - + col2 FROM tab1
----
-105
-112
-50
query I rowsort
SELECT DISTINCT col0 * tab1.col1 + col0 FROM tab1
----
1120
704
81
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col0 + + col2 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT col0 + - col0 * col0 DIV - col1 + col0 AS col0 FROM tab2
----
15
259
525
skipif mysql # not compatible
query I rowsort label-5153
SELECT col0 + - col0 * col0 / - col1 + col0 AS col0 FROM tab2
----
15
259
525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * col0 col0 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT ALL col0 DIV + col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL col0 / + col2 AS col0 FROM tab0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT ALL col1 DIV col0 + - tab1.col0 + col2 AS col2 FROM tab1
----
-7
16
59
skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL col1 / col0 + - tab1.col0 + col2 AS col2 FROM tab1
----
-7
16
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT tab2.col2 DIV col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5157
SELECT tab2.col2 / col1 FROM tab2
----
0
0
2
query I rowsort
SELECT col2 FROM tab0 WHERE ( col0 ) NOT BETWEEN col0 * + col2 AND NULL
----
33
82
query I rowsort
SELECT col0 - + col2 * col2 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL - col2 - - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 * - col2 + - col0 * + col2 * tab0.col2 AS col2 FROM tab0 WHERE NOT + col0 NOT IN ( col1 + col2 )
----
query I rowsort
SELECT - tab0.col1 + + col2 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL col1 * col1 + tab1.col1 FROM tab1
----
110
182
702
query I rowsort
SELECT tab0.col2 * tab0.col2 AS col0 FROM tab0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT ALL col1 + - tab0.col1 DIV - col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL col1 + - tab0.col1 / - col1 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT ALL cor0.col0 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL cor0.col0 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col2 AS col2 FROM tab2 WHERE NOT + col2 * + col0 - col1 * + col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL tab1.col2 * + col2 + col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL col0 * + col1 + col2 * + col2 AS col1 FROM tab2
----
2787
5278
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT - col1 * - tab0.col2 DIV - tab0.col2 + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-5171
SELECT - col1 * - tab0.col2 / - tab0.col2 + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT col0 * col2 + col1 DIV col0 FROM tab0 AS cor0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-5172
SELECT col0 * col2 + col1 / col0 FROM tab0 AS cor0
----
37
7299
795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 * + col1 col2 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 * col0 - + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT DISTINCT + 56 * + cor0.col2 FROM tab1 AS cor0
----
3024
3192
5376
onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT + cor0.col0 + + col2 - ( - ( col2 ) ) DIV + 82 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-5177
SELECT + cor0.col0 + + col2 - ( - ( col2 ) ) / + 82 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - + col2 * col1 * 28 FROM tab0 cor0
----
-208936
-2716
-79464
query I rowsort
SELECT 3 - + col0 FROM tab1 AS cor0
----
-61
-77
0
query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 9 - col0 FROM tab0
----
-15
-26
-80
query I rowsort
SELECT ALL + - 17 * - col1 * - 35 AS col2 FROM tab1 AS cor0
----
-15470
-5950
-7735
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - 95 AS col0 FROM tab1 cor0
----
-195
-264
-771
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1 AS cor0
----
49
query I rowsort
SELECT + + col1 * + col2 * ( col1 * - col2 ) AS col2 FROM tab0 AS cor0
----
-55681444
-8054244
-9409
query I rowsort
SELECT + 37 * - tab1.col0 AS col1 FROM tab1
----
-111
-2368
-2960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT - col2 + + col1 DIV - 12 + + col2 * - col2 * + 63 col0 FROM tab1
----
-183764
-204744
-580705
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5189
SELECT - col2 + + col1 / - 12 + + col2 * - col2 * + 63 col0 FROM tab1
----
-183764
-204744
-580705
query I rowsort
SELECT - col1 * - tab0.col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL ( cor0.col0 ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + 78 + - col0 FROM tab0
----
-11
43
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + + col2 col2 FROM tab0
----
121
40
72
query I rowsort
SELECT DISTINCT 41 + + 44 * - col2 + ( cor0.col0 ) * col0 * + col2 AS col1 FROM tab0 AS cor0
----
1222
17597
645955
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 83 col2 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT DISTINCT 75 * 90 + - col2 FROM tab1 AS cor0
----
6654
6693
6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 col0 FROM tab0 cor0
----
-43
-43
-43
query I rowsort
SELECT ALL 79 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT DISTINCT + tab1.col0 * + tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + ( tab0.col0 ) + - col1 * - ( + 33 ) FROM tab0
----
2862
3092
3236
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) col2 FROM tab2, tab1, tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5202
SELECT CAST( - col0 AS SIGNED ) * - col0 + - col1 * col0 * - col2 FROM tab1
----
106240
40576
4221
skipif mysql # not compatible
query I rowsort label-5202
SELECT CAST ( - col0 AS INTEGER ) * - col0 + - col1 * col0 * - col2 FROM tab1
----
106240
40576
4221
query I rowsort
SELECT + - cor0.col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - col2 * - 91 FROM tab0 AS cor0
----
3003
7462
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT ALL - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - ( - 36 ) AS col2 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT 54 + ( - col2 ) * ( cor0.col2 ) * col0 FROM tab0 AS cor0
----
-26082
-598382
19
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 + 88 AS col2 FROM tab1
----
253
3800
7848
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT ALL col1 * - CAST( + 12 AS SIGNED ) AS col1 FROM tab0
----
-1032
-1092
-1164
skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL col1 * - CAST ( + 12 AS INTEGER ) AS col1 FROM tab0
----
-1032
-1092
-1164
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 cor0, tab1 AS cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703
query I rowsort
SELECT - - tab2.col0 * 14 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f3b09edfd57b0acdc16a19521102f202
onlyif mysql # use DIV operator for integer division
query I rowsort label-5212
SELECT DISTINCT + col1 DIV + ( + col0 ) FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + col1 / + ( + col0 ) FROM tab1
----
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT ALL + col2 * + CAST( + col0 AS SIGNED ) FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL + col2 * + CAST ( + col0 AS INTEGER ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 * + ( - col2 ) * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5216
SELECT DISTINCT col1 * CAST( + col2 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT col1 * CAST ( + col2 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + cor0.col0 * + col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col1 + col2 * + 91 FROM tab2 AS cor0
----
2425
2488
3475
query I rowsort
SELECT ALL ( + col0 ) + + col1 * col2 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL + col1 * col0 - col0 * col0 AS col0 FROM tab1
----
-3456
-5360
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT + col2 * - col2 + + col2 * col2 DIV 16 AS col2 FROM tab2
----
-1354
-634
-684
skipif mysql # not compatible
query I rowsort label-5221
SELECT + col2 * - col2 + + col2 * col2 / 16 AS col2 FROM tab2
----
-1354
-634
-684
query I rowsort
SELECT - + 16 * 35 - col1 AS col0 FROM tab1 AS cor0
----
-570
-573
-586
query I rowsort
SELECT DISTINCT - + ( + 89 ) + cor0.col2 - - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-22
-9
20
query I rowsort
SELECT + + ( + 16 ) - - col1 AS col1 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT DISTINCT cor0.col0 + col1 + col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - 29 + - col0 * + col2 AS col0 FROM tab1
----
-191
-3677
-7709
query I rowsort
SELECT + - 43 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT DISTINCT col0 + col1 * + col0 FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT - col2 DIV + col1 + 12 * - 73 AS col0 FROM tab1 AS cor0
----
-878
-881
-883
skipif mysql # not compatible
query I rowsort label-5230
SELECT - col2 / + col1 + 12 * - 73 AS col0 FROM tab1 AS cor0
----
-878
-881
-883
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 26 col2 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT 69 + + col0 AS col0 FROM tab2 cor0
----
147
148
76
query I rowsort
SELECT - col2 + - col0 + - cor0.col2 FROM tab2 AS cor0
----
-130
-155
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT - cor0.col2 * - cor0.col0 * + col1 + col2 DIV - col1 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-5234
SELECT - cor0.col2 * - cor0.col0 * + col1 + col2 / - col1 FROM tab0 AS cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * col2 col1 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + col2 - - col1 * col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL - + col2 * + col1 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-2262
1128
459
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - + 71 + col0 FROM tab2 AS cor0
----
-64
7
8
query I rowsort
SELECT + col0 + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 95 + + col0 FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT + col1 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT tab2.col2 * col2 AS col0 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT - col0 * col1 + + cor0.col2 * col0 DIV + col1 FROM tab1 AS cor0
----
-276
-450
-72
skipif mysql # not compatible
query I rowsort label-5244
SELECT - col0 * col1 + + cor0.col2 * col0 / + col1 FROM tab1 AS cor0
----
-276
-450
-72
query I rowsort
SELECT - + col1 * - 25 + + col1 AS col2 FROM tab1 AS cor0
----
260
338
676
query I rowsort
SELECT - col0 + - ( 23 ) * - col2 FROM tab1 AS cor0
----
1239
1247
2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT - col0 + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-5247
SELECT - col0 + col1 / + col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT ( tab1.col0 ) * ( + col0 ) AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 11 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5250
SELECT col0 + + 0 DIV col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5250
SELECT col0 + + 0 / col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col0 * + col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT ALL tab0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 76 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT - ( cor0.col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - + 42 * + col2 FROM tab2 AS cor0
----
-1092
-1134
-1596
query I rowsort
SELECT - col2 * + cor0.col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 25 AS col0 FROM tab0 cor0
----
-25
-25
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * - 51 col0 FROM tab2 AS cor0
----
-1479
-1479
-1479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 39 + col1 col1 FROM tab1 AS cor0
----
143
2506
3133
onlyif mysql # use DIV operator for integer division
query I rowsort label-5260
SELECT cor0.col1 DIV ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5260
SELECT cor0.col1 / ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - col1 + 71 * + col2 FROM tab1 AS cor0
----
3808
4037
6803
query I rowsort
SELECT + ( ( - cor0.col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5263
SELECT CAST( NULL AS SIGNED ) + - col1 * col2 * 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5263
SELECT CAST ( NULL AS INTEGER ) + - col1 * col2 * 52 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 + + col1 * - col2 col0 FROM tab0 AS cor0
----
-26
-2767
-7391
query I rowsort
SELECT + col0 - + col1 * cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT - 10 * cor0.col0 FROM tab0, tab1 cor0
----
-30
-640
-800
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0
query I rowsort
SELECT DISTINCT + + cor0.col1 * - ( - col1 ) + + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - 62 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 - + col0 col1 FROM tab1 AS cor0
----
-107
-30
-91
query I rowsort
SELECT col2 - + 18 * - col2 AS col0 FROM tab0
----
1558
19
627
query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1, tab2 AS cor0
----
34
query I rowsort
SELECT - 23 AS col2 FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to c8c4f0bd925413f7f95df1d166aef9dd
query I rowsort
SELECT - col2 * + 31 * col2 AS col1 FROM tab0
----
-208444
-31
-33759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT + tab2.col0 DIV - ( - tab2.col0 ) AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5275
SELECT + tab2.col0 / - ( - tab2.col0 ) AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT + col2 + 50 FROM tab1
----
104
107
146
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5277
SELECT DISTINCT CAST( col2 AS SIGNED ) + - tab1.col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5277
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - tab1.col2 FROM tab1
----
0
query I rowsort
SELECT + 68 * cor0.col1 + + col2 * 44 AS col0 FROM tab2 AS cor0
----
2828
3296
5156
query I rowsort
SELECT + - col2 * + col1 + col2 - col1 AS col2 FROM tab1 AS cor0
----
-1165
-1376
-523
query I rowsort
SELECT - + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + col0 col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - + 90 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT col2 * col2 + cor0.col0 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 12 col0 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT - + col0 + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - - ( - 88 ) + - col0 AS col1 FROM tab2 AS cor0
----
-166
-167
-95
query I rowsort
SELECT - + 57 - 53 * - col1 AS col2 FROM tab1 cor0
----
1321
473
632
query I rowsort
SELECT - - col2 * + col1 FROM tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 22 * cor0.col0 col2 FROM tab0 AS cor0
----
2047
552
805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col2 ) col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT DISTINCT + - col0 DIV col1 + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + - col0 / col1 + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5292
SELECT ALL col2 * - CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 77 * - 39 FROM tab1 AS cor0
----
162162
171171
288288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT ALL - + col1 * + col1 * + ( col1 * CAST( - ( - col1 ) AS SIGNED ) ) + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-27521
-456898
-9360
skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - + col1 * + col1 * + ( col1 * CAST ( - ( - col1 ) AS INTEGER ) ) + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-27521
-456898
-9360
query I rowsort
SELECT + col0 + col0 * col0 AS col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
54
query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 + 29 col0 FROM tab0 AS cor0
----
-2035
-3366
-8070
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT ALL cor0.col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL cor0.col0 / + col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - + col2 - + col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - col1 * 81 AS col1 FROM tab2 AS cor0
----
-1377
-2511
-4779
query I rowsort
SELECT ALL col2 * ( ( cor0.col1 ) ) + 34 * 9 AS col2 FROM tab1 AS cor0
----
1554
1710
876
query I rowsort
SELECT - + col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col0 + 91 * 47 FROM tab0 AS cor0
----
4301
4312
4366
query I rowsort
SELECT ALL col1 * + ( - col2 ) * + col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col1 + 72 AS col0 FROM tab1 cor0
----
82
85
98
query I rowsort
SELECT DISTINCT + col2 * + 81 + + col1 + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
4426
4637
7802
query I rowsort
SELECT DISTINCT + 94 - ( + col0 ) FROM tab1 AS cor0
----
14
30
91
query I rowsort
SELECT ALL ( - 10 ) FROM tab2 AS cor0
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT DISTINCT - cor0.col0 DIV col1 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - cor0.col0 / col1 FROM tab1 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-5314
SELECT + - col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - 23 * col0 + + col2 + - col1 AS col0 FROM tab2
----
-165
-1796
-1827
query I rowsort
SELECT ALL - col1 + + col1 + - col0 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT ALL ( col0 ) DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL ( col0 ) / + col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT - - 98 DIV - col2 + 30 + + 38 AS col1 FROM tab1 cor0
----
67
67
67
skipif mysql # not compatible
query I rowsort label-5319
SELECT - - 98 / - col2 + 30 + + 38 AS col1 FROM tab1 cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab2.col2 col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL - ( + cor0.col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - col0 * - 59 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT + 93 + - col1 FROM tab1 AS cor0
----
67
80
83
query I rowsort
SELECT col0 + 43 AS col2 FROM tab2 AS cor0
----
121
122
50
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 * + ( col1 ) col0 FROM tab2
----
1343
217
4602
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5328
SELECT DISTINCT + CAST( ( col1 ) AS SIGNED ) FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT + CAST ( ( col1 ) AS INTEGER ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL ( 76 ) + - col2 AS col2 FROM tab2 AS cor0
----
38
49
50
query I rowsort
SELECT + ( 56 ) * + col0 * 67 AS col1 FROM tab2 AS cor0
----
26264
292656
296408
query I rowsort
SELECT col2 + - 55 * col0 AS col0 FROM tab2 AS cor0
----
-358
-4264
-4307
query I rowsort
SELECT - - 74 - 6 AS col0 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT + - col0 * + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + col0 * col2 + ( - ( - col1 ) ) FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT 10 * + col2 AS col1 FROM tab1
----
540
570
960
query I rowsort
SELECT ALL + 35 FROM tab2, tab1 cor0, tab1, tab2 AS cor1
----
81 values hashing to ca814400b6361c20866ff8fe01717430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT + ( + 52 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL 5 * col1 AS col0 FROM tab2
----
155
295
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5341
SELECT - + col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5341
SELECT - + col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 * - 94 AS col2 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT - col2 * + 57 * col0 FROM tab1 AS cor0
----
-207936
-437760
-9234
onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT - col0 DIV 4 FROM tab0 AS cor0
----
-22
-6
-8
skipif mysql # not compatible
query I rowsort label-5344
SELECT - col0 / 4 FROM tab0 AS cor0
----
-22
-6
-8
query I rowsort
SELECT DISTINCT - col0 * + col2 * + col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT - ( + 71 ) FROM tab1, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT DISTINCT + tab2.col1 + + col0 * col1 DIV col0 + tab2.col2 * + 83 FROM tab2
----
2276
2303
3188
skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT + tab2.col1 + + col0 * col1 / col0 + tab2.col2 * + 83 FROM tab2
----
2276
2303
3188
query I rowsort
SELECT DISTINCT col0 * ( col1 ) * + col1 + 34 * + col0 AS col2 FROM tab0
----
178320
330505
740035
query I rowsort
SELECT DISTINCT + 76 FROM tab1, tab2 cor0
----
76
query I rowsort
SELECT DISTINCT col1 + tab0.col0 * + col2 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col1 + 95 AS col0 FROM tab1
----
105
108
121
query I rowsort
SELECT ALL col2 + + ( + tab2.col2 ) * col1 + + 51 FROM tab2
----
1611
735
915
query I rowsort
SELECT ALL + + col2 * + col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5356
SELECT DISTINCT - col2 DIV - 29 FROM tab1 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT - col2 / - 29 FROM tab1 AS cor0
----
1
3
query I rowsort
SELECT cor0.col2 * - cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f7e57a354e4e5925116b9650d1011609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5358
SELECT - CAST( NULL AS DECIMAL ) / - 89 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-5358
SELECT - CAST ( NULL AS REAL ) / - 89 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * col2 * col1 + + ( + col2 + - cor0.col2 ) * - 76 FROM tab2 cor0
----
-10982
-25947
-90506
query I rowsort
SELECT col2 * - col0 + col2 * + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * - 50 + + col2 + + ( - 32 + - col1 ) FROM tab1
----
-2704
-2835
-4749
query I rowsort
SELECT + 77 * col1 - col0 AS col1 FROM tab0 AS cor0
----
6598
6918
7434
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT 86 DIV - col0 FROM tab1
----
-1
-1
-28
skipif mysql # not compatible
query I rowsort label-5363
SELECT 86 / - col0 FROM tab1
----
-1
-1
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT + ( - 78 ) DIV + tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5364
SELECT + ( - 78 ) / + tab0.col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5365
SELECT ALL + CAST( NULL AS SIGNED ) * + 82 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + CAST ( NULL AS INTEGER ) * + 82 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT DISTINCT col0 DIV - tab0.col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col0 / - tab0.col0 FROM tab0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT CAST( NULL AS SIGNED ) / - ( + col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5367
SELECT CAST ( NULL AS INTEGER ) / - ( + col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 60 * cor0.col1 - + col1 AS col0 FROM tab1 cor0
----
-1586
-610
-793
query I rowsort
SELECT DISTINCT - 43 * col1 * + col2 FROM tab2
----
-27778
-35991
-65962
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab1
----
95
query I rowsort
SELECT + col0 + + 51 AS col1 FROM tab0 AS cor0
----
140
75
86
query I rowsort
SELECT ALL + ( col0 + - tab0.col0 ) FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT - col1 DIV 35 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-5374
SELECT - col1 / 35 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT cor0.col1 * ( 90 ) AS col2 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT ALL + ( col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 93 + - col0 * 19 FROM tab2 AS cor0
----
-1389
-1408
-40
query I rowsort
SELECT + 62 * - cor0.col0 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT ALL + col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - 15 + + cor0.col2 FROM tab1 AS cor0
----
39
42
81
query I rowsort
SELECT ALL - col0 * cor0.col1 - 50 FROM tab0 AS cor0
----
-2114
-3445
-8149
query I rowsort
SELECT ALL - - cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 * 42 ) col1 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT DISTINCT - col0 * 79 - - 66 FROM tab0 AS cor0
----
-1830
-2699
-6965
query I rowsort
SELECT + col0 * + col0 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
10686
266
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + - col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - 31 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT + ( + col1 ) * + ( col1 * - tab2.col0 ) + + ( col0 ) * col1 DIV col1 AS col2 FROM tab2
----
-22752
-271440
-6720
skipif mysql # not compatible
query I rowsort label-5389
SELECT + ( + col1 ) * + ( col1 * - tab2.col0 ) + + ( col0 ) * col1 / col1 AS col2 FROM tab2
----
-22752
-271440
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 col2 FROM tab1
----
59
query I rowsort
SELECT DISTINCT + 44 FROM tab1, tab2 cor0, tab2 AS cor1
----
44
query I rowsort
SELECT ALL + 82 * - 0 + col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT DISTINCT - col2 + cor0.col2 DIV col1 FROM tab1 AS cor0
----
-52
-89
skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - col2 + cor0.col2 / col1 FROM tab1 AS cor0
----
-52
-89
query I rowsort
SELECT + 59 + - col1 FROM tab1 AS cor0
----
33
46
49
query I rowsort
SELECT ALL - col0 * cor0.col0 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col2 * + cor0.col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT 72 FROM tab0 AS cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 85 col1 FROM tab2
----
6
7
78
query I rowsort
SELECT ALL + tab0.col2 + col2 * col2 + col2 AS col0 FROM tab0
----
1155
3
6888
query I rowsort
SELECT col2 + 97 FROM tab1
----
151
154
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 52 col0 FROM tab1
----
-156
-3328
-4160
query I rowsort
SELECT ALL + + ( ( col2 ) ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * col1 * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col0 * - ( - col1 ) AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + - 9 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT ALL - 11 + col2 AS col2 FROM tab2
----
15
16
27
query I rowsort
SELECT + 46 * ( - tab0.col1 ) FROM tab0
----
-3956
-4186
-4462
query I rowsort
SELECT DISTINCT - 81 + + 11 FROM tab2 cor0
----
-70
query I rowsort
SELECT col0 + 3 FROM tab0 AS cor0
----
27
38
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5412
SELECT ALL 90 DIV 18 AS col0 FROM tab0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL 90 / 18 AS col0 FROM tab0
----
5
5
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5413
SELECT ALL col0 DIV 26 FROM tab1
----
0
2
3
skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL col0 / 26 FROM tab1
----
0
2
3
query I rowsort
SELECT ALL - - col2 + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - - 74 FROM tab1 cor0
----
74
74
74
query I rowsort
SELECT ALL col0 * col0 + 34 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-182
1224
657
query I rowsort
SELECT DISTINCT + 80 * - col0 FROM tab0 cor0
----
-1920
-2800
-7120
query I rowsort
SELECT col0 * col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - ( + col0 ) * ( + 3 ) + - col2 AS col1 FROM tab2 AS cor0
----
-260
-275
-48
query I rowsort
SELECT DISTINCT + 72 + + col1 * + 74 AS col2 FROM tab0 cor0
----
6436
6806
7250
query I rowsort
SELECT ( col2 ) * 26 * + col1 FROM tab0 AS cor0
----
194012
2522
73788
query I rowsort
SELECT ALL - + 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT + cor0.col2 + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-5423
SELECT + cor0.col2 + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT DISTINCT - col1 + + col2 * - 72 FROM tab1 AS cor0
----
-3914
-4114
-6925
query I rowsort
SELECT DISTINCT 49 FROM tab0 cor0
----
49
query I rowsort
SELECT ( col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT - 59 * - cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5427
SELECT - 59 * - cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col1 + - 80 + - ( col0 ) AS col1 FROM tab2
----
-142
-56
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT - col2 * tab0.col0 DIV tab0.col0 col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5429
SELECT - col2 * tab0.col0 / tab0.col0 col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col0 * cor0.col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + tab1.col0 + - col0 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL col2 + col0 * col0 * col1 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT ALL - col2 + + col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col1 * col0 - cor0.col1 AS col1 FROM tab1 cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT DISTINCT - cor0.col1 DIV + 16 + - col0 * col1 - + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2093
-3436
-8193
skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - cor0.col1 / + 16 + - col0 * col1 - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2093
-3436
-8193
query I rowsort
SELECT col0 - + ( col0 + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT ALL - - cor0.col1 + + cor0.col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - - cor0.col1 + + cor0.col0 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT - col2 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + cor0.col0 * ( - col2 ) + + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - - col0 + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + col1 * 94 AS col2 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT ALL col2 + ( col0 ) + + col1 FROM tab0 cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + ( + col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - - cor0.col0 * 44 AS col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab0 AS cor0
----
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col1 + col0 * - col1 * col2 AS col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 63 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 * col1 col1 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT ALL + col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + + col2 * col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col0 * + col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT 30 FROM tab2 AS cor0
----
30
30
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT ALL + 73 + cor0.col0 DIV + col0 + col2 col2 FROM tab1 AS cor0
----
128
131
170
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + 73 + cor0.col0 / + col0 + col2 col2 FROM tab1 AS cor0
----
128
131
170
query I rowsort
SELECT ALL + 95 + - cor0.col2 + + col2 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT ALL col1 + + col2 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT DISTINCT + col0 * col2 + cor0.col2 + col2 DIV - col0 AS col2 FROM tab0 cor0
----
36
7380
824
skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT + col0 * col2 + cor0.col2 + col2 / - col0 AS col2 FROM tab0 cor0
----
36
7380
824
query I rowsort
SELECT ALL - col0 + + cor0.col0 * col0 - cor0.col0 FROM tab2 cor0
----
35
5928
6083
query I rowsort
SELECT ALL 27 + col0 FROM tab2
----
105
106
34
query I rowsort
SELECT + + col1 * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT - col1 + col1 DIV + col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-5464
SELECT - col1 + col1 / + col2 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT ALL + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5466
SELECT ALL - - CAST( cor0.col0 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - - CAST ( cor0.col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 82 + col2 AS col0 FROM tab2 AS cor0
----
108
109
120
query I rowsort
SELECT DISTINCT + + ( + col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT 56 + col1 * + col1 AS col0 FROM tab2 cor0
----
1017
345
3537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col2 FROM tab0, tab2 AS cor0
----
-11
query I rowsort
SELECT DISTINCT - col0 * + 63 + col2 + col1 AS col2 FROM tab1
----
-109
-3965
-4931
query I rowsort
SELECT + - col1 + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + - col0 * col0 FROM tab2
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5474
SELECT - CAST( NULL AS DECIMAL ) + - col2 col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5474
SELECT - CAST ( NULL AS REAL ) + - col2 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 75 AS col1 FROM tab2
----
75
75
75
query I rowsort
SELECT + 23 * cor0.col0 AS col2 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT col0 + cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT 27 * - col1 FROM tab0 cor0
----
-2322
-2457
-2619
query I rowsort
SELECT - col0 * + col1 * - col0 + col2 AS col1 FROM tab2
----
106135
1546
358982
query I rowsort
SELECT DISTINCT + 31 * col2 FROM tab0
----
1023
2542
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT col1 DIV 64 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5481
SELECT col1 / 64 + col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT + col1 * col0 DIV col2 FROM tab1 AS cor0
----
1
10
11
skipif mysql # not compatible
query I rowsort label-5482
SELECT + col1 * col0 / col2 FROM tab1 AS cor0
----
1
10
11
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT tab1.col2 - - col1 * col0 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - col1 + + col1 * + col0 AS col2 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT col0 * - tab1.col0 FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL + col1 * col1 * col2 + - tab1.col0 AS col1 FROM tab1
----
16144
36501
5636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - + col2 * - tab0.col0 * - col0 col2 FROM tab0
----
-1128
-18922
-649431
query I rowsort
SELECT DISTINCT tab0.col0 + col2 * + col1 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT col0 - col2 DIV col1 FROM tab2
----
7
77
78
skipif mysql # not compatible
query I rowsort label-5491
SELECT col0 - col2 / col1 FROM tab2
----
7
77
78
query I rowsort
SELECT DISTINCT - col0 - - col1 AS col2 FROM tab0
----
2
62
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) < ( NULL )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col1 / col2 < NULL
----
query I rowsort
SELECT ALL + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5497
SELECT ALL col2 + col2 DIV col1 AS col0 FROM tab1
----
103
56
62
skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL col2 + col2 / col1 AS col0 FROM tab1
----
103
56
62
query I rowsort
SELECT ALL col2 * - tab2.col0 + - col2 AS col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT tab2.col2 * + tab2.col1 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT - col2 DIV + col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5500
SELECT - col2 / + col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT DISTINCT col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT - col0 DIV + col2 + + col0 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-5502
SELECT - col0 / + col2 + + col0 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT ALL col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + + col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col0 * - col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL col1 FROM tab1 WHERE col2 - col0 * + col2 * - col2 NOT IN ( - col1 )
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5507
SELECT - - col0 + + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-5507
SELECT - - col0 + + col0 / + col2 AS col1 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT cor0.col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5510
SELECT col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col0 + col0 * cor0.col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - col1 + - col0 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL OR - col1 NOT IN ( + col1 )
----
-6143
-6258
-80
query I rowsort
SELECT + cor0.col1 + col1 * col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT cor0.col2 * ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL 29 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT - col1 + + tab1.col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT - col0 + + 88 FROM tab2 AS cor0
----
10
81
9
query I rowsort
SELECT ALL - + col0 + + 86 AS col0 FROM tab2 AS cor0
----
7
79
8
query I rowsort
SELECT ALL - + col2 + 37 FROM tab2 AS cor0
----
-1
10
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col2 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - ( - col1 ) - col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL + cor0.col2 * ( + col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5524
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 55 * col2 FROM tab2 AS cor0
----
-1430
-1485
-2090
query I rowsort
SELECT DISTINCT + col2 - col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - - 66 FROM tab0 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT - 50 + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1484
596
787
query I rowsort
SELECT - 5 AS col1 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL ( 77 ) * cor0.col0 + col2 * - col1 FROM tab1 AS cor0
----
-1173
4358
4912
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 36 * + col2 + col0 col0 FROM tab2 AS cor0
----
24414
26251
52063
query I rowsort
SELECT ALL ( + col2 ) + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - 83 * + col2 * - cor0.col2 AS col2 FROM tab2 cor0
----
119852
56108
60507
query I rowsort
SELECT DISTINCT + - ( + 8 ) AS col1 FROM tab0 AS cor0
----
-8
query I rowsort
SELECT ALL cor0.col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + col0 + col0 * - cor0.col1 * 8 AS col1 FROM tab2 AS cor0
----
-10665
-1729
-36738
query I rowsort
SELECT ALL - 32 FROM tab2, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT DISTINCT - 53 FROM tab2, tab0 AS cor0
----
-53
query I rowsort
SELECT col0 + + ( + 20 * col2 ) AS col0 FROM tab1
----
1083
1204
2000
query I rowsort
SELECT ALL - ( col2 ) * - col0 + - 81 AS col0 FROM tab2 AS cor0
----
108
1947
2921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + ( + col2 + - cor0.col2 ) col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 + + col1 * + col0 * col2 + + col1 FROM tab2 AS cor0
----
119770
51068
5921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 + col2 * cor0.col0 col1 FROM tab1 AS cor0
----
169
3655
7687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 + col0 col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + - 98 + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-119
-65
-94
query I rowsort
SELECT - + cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col2 - + col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + 63 AS col2 FROM tab1
----
63
63
63
query I rowsort
SELECT 89 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL - - 42 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0
----
-80
query I rowsort
SELECT + 9 * - col1 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
-180
-21
-33
query I rowsort
SELECT ALL - cor0.col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - col2 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + 11 + + col2 AS col2 FROM tab0 cor0
----
12
44
93
query I rowsort
SELECT ALL col1 + col0 * + cor0.col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT 63 * - cor0.col0 - ( col1 ) FROM tab2 AS cor0
----
-472
-4973
-4994
query I rowsort
SELECT 40 * - col0 * - col1 FROM tab2
----
184080
53720
8680
query I rowsort
SELECT 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ( - col1 ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5562
SELECT tab1.col0 * - col2 + + CAST( NULL AS SIGNED ) * col2 * - col2 + + col0 * 26 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5562
SELECT tab1.col0 * - col2 + + CAST ( NULL AS INTEGER ) * col2 * - col2 + + col0 * 26 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 + - 68 + 3 FROM tab0 AS cor0
----
-147
-66
-98
query I rowsort
SELECT col2 + 11 * col2 AS col1 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT ALL + - col2 + col0 * col0 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT col1 * + col2 - ( cor0.col2 ) FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT tab2.col0 + col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + col2 * col2 + col0 + col2 FROM tab0 AS cor0
----
1146
37
6895
query I rowsort
SELECT ALL cor0.col0 * - col0 + col2 * - col1 * col2 + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-133888
-40234
-75987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT - col2 * + CAST( col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-5570
SELECT - col2 * + CAST ( col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT ALL - col0 + - 84 DIV col1 AS col0 FROM tab1 cor0
----
-6
-72
-86
skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - col0 + - 84 / col1 AS col0 FROM tab1 cor0
----
-6
-72
-86
query I rowsort
SELECT ALL + col2 * - col0 + col1 * col1 + tab2.col2 * - col2 AS col1 FROM tab2
----
-4157
43
777
query I rowsort
SELECT + 86 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT ALL - col1 + col0 - - col2 * + col1 FROM tab2
----
1553
708
813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT + col2 + - tab0.col1 - - ( tab0.col0 + - col2 ) DIV col1 FROM tab0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-5575
SELECT + col2 + - tab0.col1 - - ( tab0.col0 + - col2 ) / col1 FROM tab0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * - 67 + + col2 col0 FROM tab1
----
1796
727
967
query I rowsort
SELECT - + col2 * 50 + + 32 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-1106
1135
3055
query I rowsort
SELECT - + col1 * + col1 + + 3 * col1 + col0 FROM tab1 cor0
----
-50
-595
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT + + cor0.col1 DIV + ( + 21 ) + - col2 AS col1 FROM tab1 AS cor0
----
-53
-57
-96
skipif mysql # not compatible
query I rowsort label-5579
SELECT + + cor0.col1 / + ( + 21 ) + - col2 AS col1 FROM tab1 AS cor0
----
-53
-57
-96
query I rowsort
SELECT ALL + - col1 * + ( 69 ) FROM tab1 AS cor0
----
-1794
-690
-897
query I rowsort
SELECT + col1 + + ( + 79 ) * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-4214
-4483
-7558
query I rowsort
SELECT ALL + col0 * ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL 51 * + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 98c668e36be52a824d29bbc0004a3f1b
query I rowsort
SELECT ( + col2 ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT - ( - 93 ) FROM tab2 AS cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT + + col1 * col2 DIV + ( + col1 ) - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5587
SELECT + + col1 * col2 / + ( + col1 ) - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT ALL tab2.col0 * - col0 + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL tab2.col0 * - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - col0 * + tab0.col0 + col0 * col1 AS col2 FROM tab0
----
-16944
-641423
2170
query I rowsort
SELECT - 28 - col0 FROM tab1 AS cor0
----
-108
-31
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - col0 * - 80 + col2 + col0 col2 FROM tab0 AS cor0
----
-2764
-583669
-63303
onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT - col1 DIV + col0 - 39 FROM tab0 AS cor0
----
-40
-41
-42
skipif mysql # not compatible
query I rowsort label-5592
SELECT - col1 / + col0 - 39 FROM tab0 AS cor0
----
-40
-41
-42
query I rowsort
SELECT DISTINCT + + 10 * + col2 + - 4 * - cor0.col1 FROM tab1 AS cor0
----
1012
610
644
query I rowsort
SELECT 0 * + cor1.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + 34 - col0 AS col1 FROM tab2 cor0
----
-44
-45
27
query I rowsort
SELECT 95 * col2 AS col0 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT DISTINCT - + 19 AS col0 FROM tab1 AS cor0
----
-19
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + + ( + col2 ) * - ( + col2 * + col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + - col0 - - col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT ( + col2 ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5601
SELECT ( + col2 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 col0 FROM tab1, tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT DISTINCT - col1 DIV + 30 col1 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - col1 / + 30 col1 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + - col2 col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - 46 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - 85 + col2 * col1 FROM tab0 AS cor0
----
12
2753
7377
query I rowsort
SELECT col0 + - cor0.col1 * + col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + 98 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT - col2 + - 26 FROM tab2
----
-52
-53
-64
query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col2 - col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col2 - col1 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
-244101
-679124
-9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT ALL - - col2 + CAST( 94 AS SIGNED ) col2 FROM tab0 AS cor0
----
127
176
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL - - col2 + CAST ( 94 AS INTEGER ) col2 FROM tab0 AS cor0
----
127
176
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT DISTINCT cor0.col2 * + col1 + col1 DIV cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT cor0.col2 * + col1 + col1 / cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT col0 + 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-5616
SELECT col0 + CAST ( NULL AS INTEGER ) * + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT + cor0.col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5617
SELECT + cor0.col0 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 * + 83 + + 26 AS col1 FROM tab1 AS cor0
----
275
5338
6666
query I rowsort
SELECT ALL - - ( - col2 ) + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 + - tab2.col0 ) * 11 FROM tab2
----
-209
-682
264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5621
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 45 + + 22 * - col1 AS col2 FROM tab1 cor0
----
-175
-241
-527
onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT col0 DIV 21 AS col2 FROM tab1 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-5623
SELECT col0 / 21 AS col2 FROM tab1 AS cor0
----
0
3
3
query I rowsort
SELECT 47 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
query I rowsort
SELECT 11 * 76 + col2 FROM tab0 AS cor0
----
837
869
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-5626
SELECT + col1 DIV 76 + col0 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5626
SELECT + col1 / 76 + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - cor0.col0 + + col1 AS col0 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT - cor0.col2 * - 60 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 + 37 FROM tab0 AS cor0
----
119
38
70
query I rowsort
SELECT ALL 12 * - col2 AS col0 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - 87 + col1 * - col1 + 53 * cor0.col2 FROM tab1 AS cor0
----
2099
2834
4832
query I rowsort
SELECT ( + col2 ) AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - - col1 * col2 + - 12 AS col2 FROM tab0 AS cor0
----
2826
7450
85
query I rowsort
SELECT DISTINCT ( + col0 ) * col1 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - 31 * + col0 * - 2 - 65 FROM tab0 AS cor0
----
1423
2105
5453
query I rowsort
SELECT - col2 + + col2 * - 52 FROM tab0 AS cor0
----
-1749
-4346
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT 11 DIV + cor0.col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5639
SELECT 11 / + cor0.col1 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - cor0.col0 + 91 FROM tab0 AS cor0
----
2
56
67
query I rowsort
SELECT - col2 * 47 - + col1 AS col0 FROM tab0 AS cor0
----
-144
-1637
-3945
onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT - + col2 - + 52 * col1 DIV col1 FROM tab2 AS cor0
----
-78
-79
-90
skipif mysql # not compatible
query I rowsort label-5642
SELECT - + col2 - + 52 * col1 / col1 FROM tab2 AS cor0
----
-78
-79
-90
query I rowsort
SELECT DISTINCT ( col0 * + col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT col2 * + 6 AS col1 FROM tab2
----
156
162
228
query I rowsort
SELECT - 49 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT + col1 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL 78 + 67 AS col2 FROM tab0 AS cor0
----
145
145
145
query I rowsort
SELECT - cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + - col0 - + cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT - + 85 DIV 74 + - col2 DIV 84 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5650
SELECT - + 85 / 74 + - col2 / 84 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - tab1.col2 * - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374
query I rowsort
SELECT - cor0.col0 + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373
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 col2 + - tab0.col1 + + 18 FROM tab0
----
-35
-78
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT ALL - 73 DIV 86 + cor0.col0 - + 11 FROM tab0, tab0 AS cor0
----
9 values hashing to 1ec099dd62862fdeee2672e7a991f5aa
skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL - 73 / 86 + cor0.col0 - + 11 FROM tab0, tab0 AS cor0
----
9 values hashing to 1ec099dd62862fdeee2672e7a991f5aa
query I rowsort
SELECT - tab0.col1 * + ( col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 * - col2 + + 18 FROM tab2 AS cor0
----
1552
664
855
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT col1 * + 30 + - ( + col1 ) * 18 AS col0 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT ALL - 29 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT + col2 + - col0 + 52 FROM tab2 cor0
----
0
11
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5662
SELECT ALL col2 * col2 + - CAST( NULL AS DECIMAL ) + + 84 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL col2 * col2 + - CAST ( NULL AS REAL ) + + 84 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 73 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
73
query I rowsort
SELECT DISTINCT + 86 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
86
query I rowsort
SELECT + col0 * - col1 + col2 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT col0 + ( + col2 ) DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-5667
SELECT col0 + ( + col2 ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT 4 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + tab1.col1 + - col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT col0 * + CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab2
----
-1360
-248
-4661
skipif mysql # not compatible
query I rowsort label-5670
SELECT col0 * + CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL col0 * - 90 AS col0 FROM tab0
----
-2160
-3150
-8010
query I rowsort
SELECT + + col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 41 col2 FROM tab1 AS cor0
----
51
54
67
query I rowsort
SELECT - + col2 * - col0 * + 62 FROM tab2 AS cor0
----
11718
125736
186124
query I rowsort
SELECT DISTINCT + col2 - - tab0.col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + ( - 16 ) + col2 + col1 * - 29 FROM tab0
----
-2477
-2573
-2828
query I rowsort
SELECT + tab1.col2 * - 51 + + tab1.col2 AS col1 FROM tab1
----
-2700
-2850
-4800
query I rowsort
SELECT DISTINCT + 91 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
91
query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 + col1 * col2 AS col2 FROM tab1 cor0
----
-127
112
1272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5680
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * col1 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-5680
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 11 FROM tab1 cor0
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 48 - + col2 AS col0 FROM tab1 AS cor0
----
-48
-6
-9
query I rowsort
SELECT - 18 AS col1 FROM tab0 cor0
----
-18
-18
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT ALL + + ( col0 ) DIV + cor0.col2 + 32 FROM tab1 AS cor0
----
32
32
33
skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL + + ( col0 ) / + cor0.col2 + 32 FROM tab1 AS cor0
----
32
32
33
query I rowsort
SELECT + 67 * col1 AS col2 FROM tab0 AS cor0
----
5762
6097
6499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT ALL + col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL + col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 + - 38 FROM tab1 AS cor0
----
-1078
-116
-678
query I rowsort
SELECT col1 * col0 * col1 + - 85 * + col2 FROM tab2 cor0
----
19601
269308
4432
query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - - col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL + col1 * col0 + + col2 * + col1 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT ALL 87 - col0 AS col2 FROM tab0
----
-2
52
63
query I rowsort
SELECT DISTINCT - + col0 * col1 - - col0 * - ( col1 ) * 20 FROM tab1 cor0
----
-13440
-1638
-21840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5695
SELECT - col1 + col2 DIV + 13 FROM tab2 AS cor0
----
-15
-29
-57
skipif mysql # not compatible
query I rowsort label-5695
SELECT - col1 + col2 / + 13 FROM tab2 AS cor0
----
-15
-29
-57
query I rowsort
SELECT DISTINCT - + 57 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col0 col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col0 * + 74 AS col0 FROM tab1 AS cor0
----
248
4746
5933
onlyif mysql # use DIV operator for integer division
query I rowsort label-5699
SELECT ALL + col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5699
SELECT ALL + col0 / col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - + col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL col2 + col1 * - tab2.col0 AS col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT cor0.col0 * 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a028ad0a2574b09f328e73d8d8b5b7c
query I rowsort
SELECT DISTINCT + + 70 AS col2 FROM tab0 AS cor0
----
70
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * col0 col1 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT cor0.col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 + 22 AS col0 FROM tab1 AS cor0
----
-4
12
9
query I rowsort
SELECT + - col1 + - ( + 14 ) * col1 AS col1 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col0 * col1 + - 42 * + 4 * col2 FROM tab1
----
-10216
-17168
-9150
query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL 92 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # use DIV operator for integer division
query I rowsort label-5713
SELECT ALL + col0 DIV col1 + + col0 AS col1 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-5713
SELECT ALL + col0 / col1 + + col0 AS col1 FROM tab2
----
7
79
83
query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1 cor0
----
49
query I rowsort
SELECT ALL - - col2 * 57 + + col2 FROM tab2 AS cor0
----
1508
1566
2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 17 ) * col0 * col1 col0 FROM tab0 AS cor0
----
-137683
-35088
-57715
query I rowsort
SELECT ALL + col0 + + 81 * + col2 AS col1 FROM tab2 AS cor0
----
2184
2194
3157
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 3 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 3 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5719
SELECT ALL - CAST( NULL AS SIGNED ) / 60 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - CAST ( NULL AS INTEGER ) / 60 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5720
SELECT - + CAST( + col1 AS SIGNED ) * + col2 FROM tab2 cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5720
SELECT - + CAST ( + col1 AS INTEGER ) * + col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 70 AS col2 FROM tab0 AS cor0
----
-70
-70
-70
query I rowsort
SELECT col2 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - - col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 23 * + col1 AS col0 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT + cor0.col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 23 * col1 AS col1 FROM tab2 AS cor0
----
1357
391
713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5727
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 + 39 FROM tab0
----
128
63
74
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 90 col0 FROM tab1 AS cor0
----
100
103
116
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT DISTINCT - - CAST( - 43 AS SIGNED ) FROM tab2 AS cor0
----
-43
skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT - - CAST ( - 43 AS INTEGER ) FROM tab2 AS cor0
----
-43
query I rowsort
SELECT ALL + col0 * + 55 + + col2 AS col2 FROM tab2 cor0
----
412
4316
4383
query I rowsort
SELECT DISTINCT col1 - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + cor0.col2 * - col1 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT DISTINCT + + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5735
SELECT DISTINCT + + col0 / + col0 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT cor0.col1 + 96 + + col0 * + col1 AS col0 FROM tab0 cor0
----
2246
3588
8286
onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT + col2 * col2 DIV - cor0.col1 FROM tab2 cor0
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-5737
SELECT + col2 * col2 / - cor0.col1 FROM tab2 cor0
----
-11
-23
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT + + col0 DIV - 72 + 28 + col2 FROM tab0 AS cor0
----
109
29
61
skipif mysql # not compatible
query I rowsort label-5738
SELECT + + col0 / - 72 + 28 + col2 FROM tab0 AS cor0
----
109
29
61
query I rowsort
SELECT + col2 + - col0 * + col2 * col1 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT - col2 * - col1 + - 88 FROM tab2 AS cor0
----
1446
558
749
onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT ALL col0 * col0 + col1 DIV - col1 AS col2 FROM tab2
----
48
6083
6240
skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL col0 * col0 + col1 / - col1 AS col2 FROM tab2
----
48
6083
6240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col0 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT - cor0.col2 + - col2 DIV + 46 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5743
SELECT - cor0.col2 + - col2 / + 46 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - + col2 * 8 FROM tab1 AS cor0
----
-432
-456
-768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + 43 ) col0 FROM tab2 AS cor0
----
1118
1161
1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT - cor0.col1 * + col0 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-5746
SELECT - cor0.col1 * + col0 + - cor0.col2 / col2 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2, tab0 AS cor0
----
19
query I rowsort
SELECT + col0 + + col1 * 53 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT DISTINCT 21 * + ( + col2 ) FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT + ( - col0 + col2 ) * tab1.col1 AS col1 FROM tab1
----
-70
1326
208
query I rowsort
SELECT col0 * + col2 * col2 AS col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT + 58 * + col2 * col1 FROM tab1
----
33060
72384
81432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5753
SELECT - col2 * - col2 * CAST( NULL AS SIGNED ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5753
SELECT - col2 * - col2 * CAST ( NULL AS INTEGER ) - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 86 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-17
-31
-59
query I rowsort
SELECT - 48 * col0 FROM tab0
----
-1152
-1680
-4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT + + col2 DIV col0 - + 57 FROM tab1 AS cor0
----
-39
-56
-57
skipif mysql # not compatible
query I rowsort label-5757
SELECT + + col2 / col0 - + 57 FROM tab1 AS cor0
----
-39
-56
-57
query I rowsort
SELECT - + col1 - - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + col1 * - tab1.col0 - - col1 FROM tab1
----
-573
-931
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT tab2.col2 DIV + col1 + + col1 + tab2.col1 AS col1 FROM tab2
----
118
36
62
skipif mysql # not compatible
query I rowsort label-5760
SELECT tab2.col2 / + col1 + + col1 + tab2.col1 AS col1 FROM tab2
----
118
36
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT + + col2 DIV 38 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-5761
SELECT + + col2 / 38 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT col0 * + ( 91 ) + - col1 FROM tab2 AS cor0
----
606
7039
7172
query I rowsort
SELECT ALL 5 AS col0 FROM tab2
----
5
5
5
query I rowsort
SELECT - 49 AS col1 FROM tab2
----
-49
-49
-49
query I rowsort
SELECT 32 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 967dc9bd7c6cd98d217c6cb5a61f5e63
query I rowsort
SELECT - - ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 74 + col0 FROM tab0 AS cor0
----
109
163
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT ALL - 3 DIV - 75 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - 3 / - 75 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - 63 * - tab1.col2 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1cadb8918ee7b2c2694db9cd56ac06a7
query I rowsort
SELECT ALL 11 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT ALL - col1 DIV - 53 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL - col1 / - 53 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col2 + 58 AS col0 FROM tab1 AS cor0
----
112
115
154
query I rowsort
SELECT ALL + col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5775
SELECT + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 17 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 * + col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT 3 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + 77 * 45 FROM tab1
----
3465
3465
3465
query I rowsort
SELECT - 52 - col0 AS col2 FROM tab2
----
-130
-131
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5781
SELECT CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5782
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT + CAST( - col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-5783
SELECT + CAST ( - col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + ( + 25 ) * - col1 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT + - 23 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1225
1381
547
query I rowsort
SELECT + + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 6 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT - col1 - col1 AS col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT col1 + col2 * ( - col0 ) DIV + col1 FROM tab2
----
-159
25
25
skipif mysql # not compatible
query I rowsort label-5789
SELECT col1 + col2 * ( - col0 ) / + col1 FROM tab2
----
-159
25
25
query I rowsort
SELECT ALL - 51 * - col0 AS col1 FROM tab1
----
153
3264
4080
onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT col2 + - col0 DIV ( - col1 ) AS col1 FROM tab2
----
27
27
42
skipif mysql # not compatible
query I rowsort label-5791
SELECT col2 + - col0 / ( - col1 ) AS col1 FROM tab2
----
27
27
42
query I rowsort
SELECT ALL - + col1 * - cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col1 * 81 FROM tab1 AS cor0
----
1053
2106
810
query I rowsort
SELECT DISTINCT col2 + + 7 FROM tab2 AS cor0
----
33
34
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5795
SELECT ALL - col1 * CAST( + col0 + col1 AS SIGNED ) DIV cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif mysql # not compatible
query I rowsort label-5795
SELECT ALL - col1 * CAST ( + col0 + col1 AS INTEGER ) / cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT + col2 DIV - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5796
SELECT + col2 / - cor0.col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT ALL - - col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - - col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + - col1 + + 20 FROM tab0 AS cor0
----
-66
-71
-77
query I rowsort
SELECT + + col0 * - col0 * + 70 AS col1 FROM tab0 AS cor0
----
-40320
-554470
-85750
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 AS col1 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 62 col0 FROM tab1
----
-34
5
8
query I rowsort
SELECT - 57 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-14823
-3153
-3396
query I rowsort
SELECT DISTINCT + + col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT 99 AS col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT + + col2 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT ALL - CAST( 68 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL - CAST ( 68 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT DISTINCT - col1 - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL 63 * 84 FROM tab1 AS cor0
----
5292
5292
5292
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL - col0 * col0 + + col0 FROM tab1 cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5815
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 17 + - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 17 + - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - + ( + col0 ) * + col1 + + col1 * col1 AS col1 FROM tab1 cor0
----
-540
-871
598
query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab1 AS cor0
----
66
query I rowsort
SELECT - - cor0.col1 + - 30 * + col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT - + col0 + col0 * col0 FROM tab1 AS cor0
----
4032
6
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT DISTINCT - cor0.col2 DIV + col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT - cor0.col2 / + col1 AS col0 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT + col1 + cor0.col2 * 46 + - col1 AS col0 FROM tab0 AS cor0
----
1518
3772
46
query I rowsort
SELECT DISTINCT 89 * - col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT ALL - col2 DIV - col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL - col2 / - col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - - col1 + col1 + col2 AS col1 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + 5 * + cor0.col2 + 42 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1437
2608
904
query I rowsort
SELECT + col2 * col2 - + tab2.col1 * 88 FROM tab2
----
-1999
-4516
-52
query I rowsort
SELECT col0 * col2 + ( - col1 ) * col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT ALL + col0 + col1 * col0 * + 33 + col1 FROM tab2 cor0
----
152003
44415
7199
query I rowsort
SELECT DISTINCT + - col1 - + col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT DISTINCT + - col2 * - col1 - col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT - + cor0.col1 * col1 + 60 DIV + 75 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-5831
SELECT - + cor0.col1 * col1 + 60 / + 75 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + 16 + + col0 FROM tab0 AS cor0
----
105
40
51
query I rowsort
SELECT ALL + col1 + cor0.col1 AS col0 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col0 * col1 + - ( - 14 ) + col2 AS col1 FROM tab2 AS cor0
----
1395
258
4642
query I rowsort
SELECT + + 68 + col2 AS col1 FROM tab0 AS cor0
----
101
150
69
query I rowsort
SELECT ALL + col1 + - ( - col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col2 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL + col0 + 87 FROM tab2 AS cor0
----
165
166
94
query I rowsort
SELECT DISTINCT 62 * + col2 + col0 FROM tab1
----
3351
3598
6032
query I rowsort
SELECT ALL 30 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT - col2 DIV col0 AS col2 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-5842
SELECT - col2 / col0 AS col2 FROM tab1
----
-1
-18
0
query I rowsort
SELECT - + col2 - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT ( + ( col0 ) ) - col0 * col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT 58 * ( + col1 ) DIV - col0 AS col2 FROM tab2
----
-12
-256
-43
skipif mysql # not compatible
query I rowsort label-5845
SELECT 58 * ( + col1 ) / - col0 AS col2 FROM tab2
----
-12
-256
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT 53 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5846
SELECT 53 / col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL 24 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - + 82 - - col0 AS col2 FROM tab1 AS cor0
----
-18
-2
-79
query I rowsort
SELECT - ( col1 ) - - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( - 4 ) FROM tab2 AS cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 86 * col0 col2 FROM tab0 AS cor0
----
2031
3009
7572
query I rowsort
SELECT - - ( col1 ) + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 8 + - col1 AS col0 FROM tab1 AS cor0
----
-18
-2
-5
query I rowsort
SELECT - 36 AS col1 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - - col2 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - 42 * - col0 * - col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-119843
-7889
-79092
query I rowsort
SELECT ALL - 10 FROM tab0, tab0 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT - ( col2 + - tab1.col2 ) FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT 63 DIV + col2 AS col1 FROM tab0
----
0
1
63
skipif mysql # not compatible
query I rowsort label-5860
SELECT 63 / + col2 AS col1 FROM tab0
----
0
1
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + - col2 col2 FROM tab1 AS cor0
----
-27
-30
-69
query I rowsort
SELECT ALL - ( + 16 ) * col0 AS col0 FROM tab1
----
-1024
-1280
-48
query I rowsort
SELECT + - col0 + 53 FROM tab2 AS cor0
----
-25
-26
46
query I rowsort
SELECT DISTINCT + col0 * ( - 97 ) + col2 * - cor0.col0 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-165672
-1995
-244742
query I rowsort
SELECT DISTINCT - - cor0.col1 * ( cor0.col1 ) + cor0.col0 + - col0 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 + - col2 * 2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - ( col1 ) + col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 * col2 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col1 * 94 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT ALL - col2 + 75 * col0 * col1 AS col0 FROM tab1
----
47943
5796
77904
query I rowsort
SELECT - 11 * + col1 + cor0.col2 FROM tab1 AS cor0
----
-232
-47
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT DISTINCT + - col0 * col2 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + - col0 * col2 / col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col1 * + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL col2 * col2 * + col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT ALL + col2 * - col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 * col1 AS col0 FROM tab1 WHERE NOT - col0 IN ( - col1 )
----
1417
2080
670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * col0 + col2 AS col2 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT + col0 DIV + col2 + - col2 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-5883
SELECT + col0 / + col2 + - col2 FROM tab1 AS cor0
----
-54
-56
-96
query I rowsort
SELECT - cor0.col0 * col1 * - col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT col1 * col2 + - col0 FROM tab2
----
1456
567
830
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + - cor0.col2 AS col0 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT - + cor0.col1 * col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + col2 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + + col2 - col2 * 1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + - ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 * col2 + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-399
1536
2754
query I rowsort
SELECT ALL - + 77 + + col0 * 9 AS col1 FROM tab2 AS cor0
----
-14
625
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT DISTINCT + - col2 - cor0.col2 DIV + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT + - col2 - cor0.col2 / + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
query I rowsort
SELECT - - ( col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 28 * col0 AS col1 FROM tab1 AS cor0
----
1792
2240
84
query I rowsort
SELECT DISTINCT col0 * col1 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT + col2 * col1 + - 66 * col0 FROM tab1 AS cor0
----
-3654
-4032
1206
query I rowsort
SELECT + 25 FROM tab2 cor0
----
25
25
25
query I rowsort
SELECT ALL - ( col1 ) - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT 25 * col0 AS col0 FROM tab1 AS cor0
----
1600
2000
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 + + col2 * 93 col2 FROM tab0 cor0
----
3068
7625
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT ALL + - col0 DIV col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL + - col0 / col1 FROM tab1 AS cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 + col1 * cor0.col1 col0 FROM tab1 AS cor0
----
115
46
622
query I rowsort
SELECT ALL 82 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT + - 32 AS col2 FROM tab0 cor0
----
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT DISTINCT - col2 DIV col1 + + 58 * - 53 AS col1 FROM tab2 AS cor0
----
-3074
-3076
skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - col2 / col1 + + 58 * - 53 AS col1 FROM tab2 AS cor0
----
-3074
-3076
query I rowsort
SELECT - - col1 + - 69 AS col1 FROM tab2 AS cor0
----
-10
-38
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT - col2 * + CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5909
SELECT - col2 * + CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - + col1 + - ( + ( - col1 ) ) * - 94 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT ALL - cor0.col2 * col0 + 88 * col1 AS col0 FROM tab2 AS cor0
----
-1506
2539
3164
query I rowsort
SELECT - ( col0 ) + - col1 AS col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + col0 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 24 * + 90 + - col0 FROM tab0 AS cor0
----
2071
2125
2136
query I rowsort
SELECT DISTINCT + col2 * - 78 AS col1 FROM tab2 AS cor0
----
-2028
-2106
-2964
query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab0 cor0
----
-95
query I rowsort
SELECT + col2 + 50 + col2 * - col0 FROM tab0
----
-709
-7166
16
query I rowsort
SELECT ALL ( col2 + - col1 ) * col2 * col0 AS col2 FROM tab0
----
-3360
-41976
-65682
query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + 20 * - col0 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT + 23 + 25 * + tab1.col2 FROM tab1
----
1373
1448
2423
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 46 - col0 FROM tab2
----
-32
-33
39
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col1 + - col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT 63 AS col2 FROM tab1
----
63
63
63
query I rowsort
SELECT ALL - + 24 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-115
-121
query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 * ( + col0 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL 52 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
57
query I rowsort
SELECT ALL tab1.col0 + col2 + - col2 FROM tab1
----
3
64
80
query I rowsort
SELECT 47 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT - col1 * + col2 - + 96 * + col1 AS col1 FROM tab2 AS cor0
----
-2278
-3813
-7198
query I rowsort
SELECT - ( - cor1.col0 ) AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col0 * + 36 - + col1 * cor0.col1 FROM tab1 AS cor0
----
-568
2204
2711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5937
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - col0 + 96 + - col2 AS col2 FROM tab1 AS cor0
----
103
45
80
query I rowsort
SELECT ALL - col2 + col1 AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + 4 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT ALL - col2 + 11 FROM tab2
----
-15
-16
-27
query I rowsort
SELECT + - 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT + col2 + col0 + col2 * CAST( col1 AS SIGNED ) FROM tab2 cor0
----
1638
763
871
skipif mysql # not compatible
query I rowsort label-5945
SELECT + col2 + col0 + col2 * CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
1638
763
871
query I rowsort
SELECT ALL - + ( - col1 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5947
SELECT DISTINCT + CAST( col0 AS DECIMAL ) + - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + CAST ( col0 AS REAL ) + - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT ALL - CAST( - 2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - CAST ( - 2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + col1 + - col2 + col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT - - col0 + + col2 + col2 FROM tab1 AS cor0
----
111
178
272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT tab0.col0 DIV tab0.col1 + 41 + col1 * 18 FROM tab0
----
1589
1679
1787
skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT tab0.col0 / tab0.col1 + 41 + col1 * 18 FROM tab0
----
1589
1679
1787
query I rowsort
SELECT DISTINCT + - ( + 23 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
31
34
73
query I rowsort
SELECT - 55 * - col0 + - col1 * - col2 * + col1 FROM tab0 AS cor0
----
11334
245388
683937
query I rowsort
SELECT + col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col0 * + col1 * + ( + tab0.col1 ) AS col1 FROM tab0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col1 AS REAL ) * - col2 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab0, tab2 AS cor0
----
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 95 col2 FROM tab0
----
-3135
-7790
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT + 88 * - 59 * col2 - - col0 * col2 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-280362
-295580
-497842
skipif mysql # not compatible
query I rowsort label-5959
SELECT + 88 * - 59 * col2 - - col0 * col2 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-280362
-295580
-497842
query I rowsort
SELECT + col2 + col2 * + col0 AS col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT 39 - - ( col1 * 79 ) FROM tab1 AS cor0
----
1066
2093
829
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 50d2eeb0c89870917ccdbb42af2b89a3
query I rowsort
SELECT + col1 + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5964
SELECT + CAST( NULL AS SIGNED ) - + 37 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5964
SELECT + CAST ( NULL AS INTEGER ) - + 37 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + + 25 * - 95 + + col0 FROM tab2 cor0
----
-2296
-2297
-2368
query I rowsort
SELECT + col2 * cor0.col0 - + col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + 26 - 61 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT ALL + + cor0.col0 + + col0 * + ( col1 ) * col2 FROM tab0 AS cor0
----
3430
664207
68136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5970
SELECT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - + col2 * col0 - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL col0 - - cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT DISTINCT - col2 * - col1 + + ( ( - cor0.col1 ) ) DIV col0 AS col0 FROM tab1 AS cor0
----
1248
1396
570
skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT - col2 * - col1 + + ( ( - cor0.col1 ) ) / col0 AS col0 FROM tab1 AS cor0
----
1248
1396
570
query I rowsort
SELECT - - col0 + col1 * - col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ( + col0 ) * + 12 AS col0 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT 3 * - col1 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT + tab1.col0 + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e
query I rowsort
SELECT + cor0.col0 * + 40 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT + cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + - col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( + cor0.col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT ALL + col2 * - ( col2 ) + - col0 DIV - ( + 31 ) FROM tab0 AS cor0
----
-1089
-6722
0
skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + col2 * - ( col2 ) + - col0 / - ( + 31 ) FROM tab0 AS cor0
----
-1089
-6722
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT col0 DIV 80 + 67 FROM tab0 AS cor0
----
67
67
68
skipif mysql # not compatible
query I rowsort label-5984
SELECT col0 / 80 + 67 FROM tab0 AS cor0
----
67
67
68
query I rowsort
SELECT ALL col1 + + 13 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT DISTINCT - 57 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-1848
-4592
-56
query I rowsort
SELECT DISTINCT - - col2 + col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL col0 - - 89 FROM tab0 AS cor0
----
113
124
178
query I rowsort
SELECT tab1.col1 - + 26 AS col1 FROM tab1
----
-13
-16
0
query I rowsort
SELECT 40 * ( - col1 ) * tab0.col0 FROM tab0
----
-135800
-323960
-82560
query I rowsort
SELECT + 98 * - col0 FROM tab2
----
-686
-7644
-7742
onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT DISTINCT 20 DIV + cor0.col0 + + ( + 40 ) AS col0 FROM tab1, tab1 AS cor0
----
40
46
skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT 20 / + cor0.col0 + + ( + 40 ) AS col0 FROM tab1, tab1 AS cor0
----
40
46
query I rowsort
SELECT 5 AS col2 FROM tab0
----
5
5
5
query I rowsort
SELECT + 30 * - col0 FROM tab2
----
-210
-2340
-2370
query I rowsort
SELECT ALL - 97 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT ALL - 26 * col0 * - col1 AS col1 FROM tab1
----
16640
2028
27040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT - 76 + col1 - col0 AS col2 FROM tab0
----
-14
-14
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT tab0.col1 * tab0.col0 + + col1 + - col1 DIV - col1 FROM tab0
----
2151
3493
8191
skipif mysql # not compatible
query I rowsort label-6000
SELECT tab0.col1 * tab0.col0 + + col1 + - col1 / - col1 FROM tab0
----
2151
3493
8191
query I rowsort
SELECT + col0 FROM tab1 WHERE NULL > - col2
----
query I rowsort
SELECT ALL tab0.col0 FROM tab0 WHERE NULL NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 + - col1 AS col0 FROM tab2
----
-306
-3540
-992
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT + col2 * + col0 + col1 DIV - col2 + col2 FROM tab1
----
216
3705
7776
skipif mysql # not compatible
query I rowsort label-6005
SELECT + col2 * + col0 + col1 / - col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col1 + tab2.col0 * + col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - col0 col0 FROM tab2 WHERE - col2 NOT IN ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 WHERE NOT + col2 IN ( col0 )
----
-24
-35
-89
query I rowsort
SELECT ALL col2 * + col0 + col1 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + tab1.col1 * tab1.col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col1 + - tab0.col2 - + col0 AS col0 FROM tab0
----
-80
29
61
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col1 * + col1 )
----
query I rowsort
SELECT ALL - tab0.col2 + - col2 * tab0.col0 AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 + - cor0.col0 * + 93 AS col0 FROM tab2 AS cor0
----
-627
-7273
-7409
query I rowsort
SELECT DISTINCT - 87 + - col2 FROM tab1 AS cor0
----
-141
-144
-183
query I rowsort
SELECT + + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - + col2 + + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL + - col2 + - col1 AS col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + 13 FROM tab1 AS cor0
----
13
13
13
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= ( NULL )
----
query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col0 + - col1 + + col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT ALL - col2 * + col1 AS col1 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 * + col1 col2 FROM tab0 WHERE col1 + - col1 IN ( + col2 + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 + col0 + col1 col2 FROM tab1 AS cor0
----
122
167
186
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) < ( NULL )
----
query I rowsort
SELECT ALL + col0 * col0 AS col0 FROM tab2 WHERE NOT col0 + - col1 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - - col1 col2 FROM tab2
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT DISTINCT + 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-6030
SELECT DISTINCT + col1 / col0 col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col0 - col1 * cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * col1 + col1 * col1 * col0 FROM tab2 cor0
----
23477
273052
7564
query I rowsort
SELECT DISTINCT + tab1.col0 * + col2 + + col1 * - col1 AS col1 FROM tab1
----
-514
3548
7511
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) <= col1 * col1
----
query I rowsort
SELECT + tab0.col1 - col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * col0 col0 FROM tab2 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL - col0 * + tab1.col2 + tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT col1 + col0 * tab0.col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col2 AS col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + col2 * col1 + col1 + col1 FROM tab0
----
291
3010
7644
query I rowsort
SELECT ALL tab1.col2 * col2 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT col1 * col1 + - col0 FROM tab1
----
36
673
89
query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE - col1 + - col0 < NULL
----
query I rowsort
SELECT ALL - tab2.col2 * + col1 * - col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col1 * col0 * col2 FROM tab1
----
36480
4212
99840
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( col0 * - col1 ) AND NULL
----
query I rowsort
SELECT ALL tab0.col0 + + col2 + - col1 AS col2 FROM tab0
----
-29
-61
80
query I rowsort
SELECT tab1.col2 * + col0 + + col2 AS col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - + 77 - col2 FROM tab1 cor0
----
-131
-134
-173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6051
SELECT - CAST( - col1 AS SIGNED ) + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif mysql # not compatible
query I rowsort label-6051
SELECT - CAST ( - col1 AS INTEGER ) + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - cor0.col0 + + 82 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5f073f8694c3c188ea2474271332ccaf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - 86 FROM tab0 cor0
----
-86
query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
17
query I rowsort
SELECT 50 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT ALL col2 DIV ( tab2.col0 ) + + col2 * col2 FROM tab2
----
1444
676
732
skipif mysql # not compatible
query I rowsort label-6057
SELECT ALL col2 / ( tab2.col0 ) + + col2 * col2 FROM tab2
----
1444
676
732
query I rowsort
SELECT ALL 75 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL + ( - col2 * col2 ) + 7 FROM tab0
----
-1082
-6717
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT - CAST( col0 AS SIGNED ) FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6060
SELECT - CAST ( col0 AS INTEGER ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - 72 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + col0 - + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab1, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT ( col0 ) * - col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab0
----
81
query I rowsort
SELECT ALL 93 AS col1 FROM tab0
----
93
93
93
query I rowsort
SELECT - tab0.col0 * + col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT + col1 DIV + col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + col1 / + col1 FROM tab0
----
1
query I rowsort
SELECT + col2 + - 87 FROM tab2 AS cor0
----
-49
-60
-61
query I rowsort
SELECT DISTINCT - col1 * - 96 AS col1 FROM tab0 cor0
----
8256
8736
9312
query I rowsort
SELECT ALL - col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + cor0.col0 * + 98 * 97 AS col1 FROM tab0 AS cor0
----
228144
332710
846034
query I rowsort
SELECT + col2 * 97 AS col1 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT DISTINCT ( col0 ) * ( col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - 48 AS col2 FROM tab2
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT col2 * col1 + + col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + 29 * col0 + - col0 AS col2 FROM tab1
----
1792
2240
84
query I rowsort
SELECT 1 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6081
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6081
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 * 56 FROM tab2 cor0
----
1736
3304
952
query I rowsort
SELECT DISTINCT + col2 + - col1 * - 2 AS col2 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT DISTINCT col0 + - 62 FROM tab2 AS cor0
----
-55
16
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT - - col2 * + col1 + - cor0.col2 DIV + cor0.col2 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-6085
SELECT - - col2 * + col1 + - cor0.col2 / + cor0.col2 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT - + col2 + col1 * col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - col0 * - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 + col2 * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL - 69 * - col0 AS col0 FROM tab1
----
207
4416
5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT ALL - col1 DIV 55 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL - col1 / 55 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 * + tab2.col2 AS col1 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT col0 - col2 * CAST( - col1 + + col0 AS SIGNED ) AS col1 FROM tab0
----
2070
253
97
skipif mysql # not compatible
query I rowsort label-6092
SELECT col0 - col2 * CAST ( - col1 + + col0 AS INTEGER ) AS col1 FROM tab0
----
2070
253
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 86 col2 FROM tab0
----
2838
7052
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 + - col0 * 84 col2 FROM tab2 cor0
----
-5192
-5876
141
query I rowsort
SELECT - 92 + - 55 + col2 AS col1 FROM tab0 AS cor0
----
-114
-146
-65
query I rowsort
SELECT + col0 * col2 + + col0 * + col1 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL + 15 + - tab1.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to b61a541b84cfde1cc66de2893ed9db6b
query I rowsort
SELECT DISTINCT 69 + col0 FROM tab0
----
104
158
93
query I rowsort
SELECT tab0.col0 - col0 * col1 AS col2 FROM tab0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 16 + + 13 col0 FROM tab1
----
-3
-3
-3
query I rowsort
SELECT ALL + 67 AS col0 FROM tab1, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6102
SELECT ( + col1 * + col1 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6102
SELECT ( + col1 * + col1 ) + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 15 FROM tab2, tab0 AS cor0
----
15
query I rowsort
SELECT DISTINCT + ( - col0 * col1 ) + + col0 * - 16 * col2 + col0 AS col2 FROM tab1
----
-123840
-2667
-58944
query I rowsort
SELECT - + col1 * col0 + cor0.col0 + cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-2990
-618
627
query I rowsort
SELECT DISTINCT + 29 FROM tab1, tab2 AS cor0
----
29
query I rowsort
SELECT DISTINCT - 30 FROM tab1, tab2 AS cor0
----
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6108
SELECT ALL - CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT ALL + + col1 * col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL + + col1 * 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-6110
SELECT + col1 * + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6110
SELECT + col1 * + col0 / + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 6 + - col1 FROM tab2 AS cor0
----
-11
-25
-53
query I rowsort
SELECT DISTINCT - ( col1 ) * ( cor0.col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col2 * + col2 + + col0 * - col0 FROM tab2 AS cor0
----
-4797
-5408
680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT - 91 DIV col0 FROM tab2 AS cor0
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-6114
SELECT - 91 / col0 FROM tab2 AS cor0
----
-1
-1
-13
onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT - - col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6115
SELECT - - col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - 60 + col0 AS col0 FROM tab2 AS cor0
----
-53
18
19
query I rowsort
SELECT - 47 + col0 FROM tab0 AS cor0
----
-12
-23
42
query I rowsort
SELECT ALL 6 AS col1 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT ALL - ( tab2.col1 ) FROM tab2
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 + col0 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + 86 * col1 FROM tab0 cor0
----
7396
7826
8342
onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT DISTINCT + ( col0 ) * col2 + + ( - col2 ) DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT + ( col0 ) * col2 + + ( - col2 ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT DISTINCT - 90 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-52
-63
-64
query I rowsort
SELECT + col2 + 89 AS col2 FROM tab0 AS cor0
----
122
171
90
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + - CAST ( - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + - col1 * 61 + + 67 AS col2 FROM tab1 AS cor0
----
-1519
-543
-726
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT + - col0 + + 37 * + col2 + + col0 FROM tab1 AS cor0
----
1998
2109
3552
query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT + col0 + - ( + cor0.col2 ) * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + - 3 FROM tab2 cor0
----
-3
query I rowsort
SELECT ALL + ( ( - cor0.col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + 37 * + col1 FROM tab1 AS cor0
----
370
481
962
onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT ALL + 40 DIV + 68 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6134
SELECT ALL + 40 / + 68 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - 47 ) FROM tab1 AS cor0
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT + col0 * - CAST( col0 AS SIGNED ) - col1 AS col2 FROM tab1 cor0
----
-35
-4106
-6413
skipif mysql # not compatible
query I rowsort label-6136
SELECT + col0 * - CAST ( col0 AS INTEGER ) - col1 AS col2 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT col0 + + col1 + - 93 FROM tab0 AS cor0
----
17
39
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT col1 + col1 + col2 DIV col0 AS col0 FROM tab2
----
118
34
65
skipif mysql # not compatible
query I rowsort label-6138
SELECT col1 + col1 + col2 / col0 AS col0 FROM tab2
----
118
34
65
query I rowsort
SELECT ALL + - col0 + - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - col1 + + ( col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * - ( 57 ) FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT ALL - + col1 * - ( col1 ) * col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT ALL - + cor0.col1 * - col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL tab0.col0 + + col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT 69 + col1 + col0 FROM tab1
----
143
162
98
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT ALL + tab1.col0 * col1 + col0 DIV + col2 AS col0 FROM tab1
----
1040
641
78
skipif mysql # not compatible
query I rowsort label-6147
SELECT ALL + tab1.col0 * col1 + col0 / + col2 AS col0 FROM tab1
----
1040
641
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 + col0 col1 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL 25 * 8 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b53ee4caebae2682b84432f871582b7d
query I rowsort
SELECT 44 * + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e46a9177ea24932216595a2f6694a3db
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT - tab2.col2 DIV + col0 + + col0 AS col0 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-6152
SELECT - tab2.col2 / + col0 + + col0 AS col0 FROM tab2
----
4
78
79
query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab0, tab2 AS cor0
----
65
query I rowsort
SELECT + col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col0 + + ( + col0 ) * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + col2 * cor0.col1 * + ( cor0.col2 * cor0.col0 ) AS col0 FROM tab1 AS cor0
----
2075712
227286
9576960
query I rowsort
SELECT ALL + col0 + + col0 * + col1 - + col1 AS col2 FROM tab1 AS cor0
----
1107
55
694
onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT - col1 DIV - col1 + - col0 + col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - col1 / - col1 + - col0 + col0 FROM tab0 cor0
----
1
query I rowsort
SELECT ALL col0 * - col2 - col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - col0 * col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 * + 17 FROM tab2
----
1003
289
527
query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - col0 * + cor0.col2 + + ( col0 + col1 ) AS col1 FROM tab1 cor0
----
-133
-3574
-7587
query I rowsort
SELECT ALL + + col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 54 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6168
SELECT ALL + col2 + tab2.col2 * + 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-6168
SELECT ALL + col2 + tab2.col2 * + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 26 * - col0 + - col1 FROM tab1 AS cor0
----
-104
-1674
-2093
query I rowsort
SELECT DISTINCT 82 FROM tab0, tab0 AS cor0
----
82
query I rowsort
SELECT - - 94 * col2 AS col0 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT ALL - 89 + - cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
1136
487
7832
query I rowsort
SELECT DISTINCT ( col1 ) * ( col0 ) AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + 32 AS col0 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT DISTINCT ( col2 * + col1 ) AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * col2 + + col0 * ( + tab2.col0 + col0 ) AS col0 FROM tab2
----
-739
10634
11836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 - + cor0.col0 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a540a5768631d5bf1c7d147e66a1ee1f
query I rowsort
SELECT DISTINCT + + 30 * - col0 * ( cor0.col2 ) FROM tab1 AS cor0
----
-109440
-230400
-4860
onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT + - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6179
SELECT + - col2 / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 56 + + col2 FROM tab0 AS cor0
----
-23
-55
26
query I rowsort
SELECT ALL + col1 - - col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + 79 + col0 FROM tab2 AS cor0
----
157
158
86
query I rowsort
SELECT DISTINCT + 59 * + col2 AS col2 FROM tab2 cor0
----
1534
1593
2242
query I rowsort
SELECT ALL 64 + - col2 AS col2 FROM tab2 AS cor0
----
26
37
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6185
SELECT DISTINCT col2 + col2 + - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT col2 + col2 + - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col1 - ( + col0 ) AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col0 * 67 FROM tab0 AS cor0
----
-1608
-2345
-5963
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT + col1 DIV + col0 - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-6188
SELECT + col1 / + col0 - col1 AS col0 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT cor0.col1 + + ( - col2 ) AS col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) + col2 * + 60 AS col0 FROM tab1 AS cor0
----
12160
3249
7516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 89 + + cor0.col2 col2 FROM tab2 AS cor0
----
89
query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1, tab2 AS cor0
----
25
query I rowsort
SELECT + ( col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + tab0.col1 - + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f47321fdc704b303f53ecfb742fc419d
query I rowsort
SELECT - - 79 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT + + 62 * col1 FROM tab2 cor0
----
1054
1922
3658
query I rowsort
SELECT ALL + 13 + + 92 AS col0 FROM tab1 AS cor0
----
105
105
105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6198
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 45 + col1 FROM tab0 AS cor0
----
131
136
142
query I rowsort
SELECT ALL col0 * + col1 + + ( col1 * - 40 ) FROM tab2
----
-1023
2242
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT DISTINCT + cor0.col0 DIV + col0 + col1 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + cor0.col0 / + col0 + col1 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + col2 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 27 FROM tab2
----
27
query I rowsort
SELECT col2 + col1 * + col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT - 53 FROM tab2, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT tab2.col1 * col2 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 70 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab1
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT - col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-6209
SELECT - col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT + - 39 DIV + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6211
SELECT + - 39 / + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - - col1 * 6 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT + tab2.col1 * - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ddc18f6d4e7ebd891f1885ea561fb843
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 - col1 AS col0 FROM tab0 AS cor0
----
-61
1027
6722
query I rowsort
SELECT cor0.col2 * - col1 + col2 * + col0 FROM tab2 cor0
----
-648
2356
494
query I rowsort
SELECT 84 * 33 AS col2 FROM tab2 AS cor0
----
2772
2772
2772
query I rowsort
SELECT DISTINCT - 64 * + 94 + + cor0.col2 * - ( - 18 ) FROM tab1 AS cor0
----
-4288
-4990
-5044
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col1 * + ( - col1 * + tab1.col0 ) FROM tab1
----
-109512
-1297920
-364800
query I rowsort
SELECT - - col1 * col1 + - 39 AS col1 FROM tab0 AS cor0
----
7357
8242
9370
onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT + 16 DIV + col0 + col0 * + ( col2 ) FROM tab1 AS cor0
----
167
3648
7680
skipif mysql # not compatible
query I rowsort label-6220
SELECT + 16 / + col0 + col0 * + ( col2 ) FROM tab1 AS cor0
----
167
3648
7680
query I rowsort
SELECT + 13 * - col0 AS col2 FROM tab0 AS cor0
----
-1157
-312
-455
onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT - col0 * col2 DIV - 20 - + ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2799
-7098
-96
skipif mysql # not compatible
query I rowsort label-6222
SELECT - col0 * col2 / - 20 - + ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2799
-7098
-96
query I rowsort
SELECT - + col0 * col0 - + ( col2 ) * col2 AS col0 FROM tab2 cor0
----
-6760
-7685
-778
query I rowsort
SELECT 85 + col0 AS col1 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT + ( tab1.col1 ) + col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + 34 + + 74 AS col2 FROM tab0
----
108
108
108
query I rowsort
SELECT - 26 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT + 67 + - col2 * - 80 * 34 + + tab1.col0 FROM tab1
----
146950
155171
261267
query I rowsort
SELECT + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + 91 * col0 AS col0 FROM tab0 cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT + ( col2 ) + 59 AS col1 FROM tab1 cor0
----
113
116
155
onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT + col0 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6233
SELECT + col0 / + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ( - tab2.col0 ) * tab2.col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - + col0 * - col2 + 97 FROM tab1 cor0
----
259
3745
7777
query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6237
SELECT DISTINCT + cor0.col2 * - ( 23 ) + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + cor0.col2 * - ( 23 ) + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 - col1 * - tab1.col0 FROM tab1
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 + + col1 - + ( col2 ) * col0 col1 FROM tab1
----
-123
-3625
-7654
query I rowsort
SELECT ALL 55 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT 37 + - col0 DIV col2 + + ( col2 ) FROM tab1
----
133
91
93
skipif mysql # not compatible
query I rowsort label-6241
SELECT 37 + - col0 / col2 + + ( col2 ) FROM tab1
----
133
91
93
query I rowsort
SELECT col1 + cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + - col2 * - col2 + cor0.col0 + - col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0, tab0 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 1 + + tab2.col0 ) col2 FROM tab2, tab0 cor0
----
-6
-77
-78
query I rowsort
SELECT - col0 * - ( 28 ) FROM tab2
----
196
2184
2212
query I rowsort
SELECT col0 + - col2 * 92 * cor0.col1 FROM tab1 AS cor0
----
-114736
-129165
-52376
query I rowsort
SELECT ALL + + col0 * col2 * + ( col2 ) FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT - - col0 + ( col1 * + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT DISTINCT + cor0.col2 + col1 DIV - 63 col2 FROM tab0 AS cor0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + cor0.col2 + col1 / - 63 col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT - - col0 * + 14 * + col1 FROM tab1 AS cor0
----
1092
14560
8960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT - col2 * - CAST( NULL AS SIGNED ) + - col0 + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6252
SELECT - col2 * - CAST ( NULL AS INTEGER ) + - col0 + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 68 * + col0 AS col0 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT - + col0 * col2 + + col0 + col1 * - col0 FROM tab2 AS cor0
----
-399
-4266
-6552
query I rowsort
SELECT + col2 * + 95 AS col0 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT + + cor0.col1 * - 90 + - 17 AS col1 FROM tab0 AS cor0
----
-7757
-8207
-8747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col1 - 73 AS col1 FROM tab2
----
-14
-42
-56
query I rowsort
SELECT + 79 + col0 * + col2 FROM tab1 AS cor0
----
241
3727
7759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) col1 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT 94 - tab2.col2 AS col2 FROM tab2
----
56
67
68
query I rowsort
SELECT + - ( ( + col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - - col0 + + 85 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT ( 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 - - col0 * col0 + + col0 + + col1 col1 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT ALL + 81 + col0 * col1 FROM tab1 AS cor0
----
1121
159
721
query I rowsort
SELECT ALL + cor0.col2 + col1 * + col0 * 29 FROM tab1 AS cor0
----
18617
2316
30256
query I rowsort
SELECT ALL - 86 + col2 AS col1 FROM tab0 AS cor0
----
-4
-53
-85
query I rowsort
SELECT + col1 + - col1 * col1 FROM tab1 cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT DISTINCT col1 * - col1 + col0 DIV ( - col0 ) FROM tab1 AS cor0
----
-101
-170
-677
skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT col1 * - col1 + col0 / ( - col0 ) FROM tab1 AS cor0
----
-101
-170
-677
query I rowsort
SELECT ALL + - 68 + col0 - + col2 FROM tab1 AS cor0
----
-119
-61
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT DISTINCT - + col2 DIV - 92 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT - + col2 / - 92 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab1 AS cor0
----
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 - col2 col1 FROM tab1 AS cor0
----
-112
-115
-154
query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) + cor0.col2 * + 92 FROM tab2 AS cor0
----
1716
1755
2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6277
SELECT DISTINCT + - col1 + col1 * - cor0.col1 * CAST( NULL AS SIGNED ) - - col0 / - col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + - col1 + col1 * - cor0.col1 * CAST ( NULL AS INTEGER ) - - col0 / - col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + ( - cor0.col1 ) + + col1 * - 56 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT ALL - - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + - 87 * col2 + col0 * - ( col2 ) + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4698
-4959
-8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT - ( col2 ) - - col1 DIV - col0 AS col0 FROM tab1 cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-6281
SELECT - ( col2 ) - - col1 / - col0 AS col0 FROM tab1 cor0
----
-57
-62
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT DISTINCT - - 40 DIV cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
26
28
40
skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - - 40 / cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
26
28
40
query I rowsort
SELECT ALL col0 - + col0 * col0 FROM tab0 cor0
----
-1190
-552
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT ALL col1 * CAST( NULL AS SIGNED ) * 25 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * 25 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 22 FROM tab1 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT + CAST( NULL AS SIGNED ) + - col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6286
SELECT + CAST ( NULL AS INTEGER ) + - col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 + 51 * col1 AS col1 FROM tab0 AS cor0
----
4472
4732
5044
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6288
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + ( + col1 + + col0 ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + ( + col1 + + col0 ) FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6289
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col2 - col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col2 - col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT 87 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
92
query I rowsort
SELECT - col0 * + col0 * 88 AS col2 FROM tab0 AS cor0
----
-107800
-50688
-697048
query I rowsort
SELECT - col2 + + 26 * col0 * col1 AS col2 FROM tab2 AS cor0
----
119626
34880
5615
query I rowsort
SELECT + col1 + + col1 * - col1 AS col2 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT col0 * - col0 - - ( + tab0.col1 ) FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT tab0.col1 + - ( col2 ) AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - col1 * 55 + + col2 FROM tab1
----
-1376
-493
-619
query I rowsort
SELECT + col2 + + ( - 34 ) * + col2 * - col0 FROM tab0
----
1191
248214
26961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT DISTINCT col2 DIV - 4 AS col0 FROM tab0
----
-20
-8
0
skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT col2 / - 4 AS col0 FROM tab0
----
-20
-8
0
query I rowsort
SELECT ALL col0 - - cor0.col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6301
SELECT CAST( - cor0.col1 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif mysql # not compatible
query I rowsort label-6301
SELECT CAST ( - cor0.col1 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT - + cor0.col2 DIV + col2 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6302
SELECT - + cor0.col2 / + col2 col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col0 * ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT DISTINCT col2 + ( - 17 ) DIV col0 AS col1 FROM tab1 AS cor0
----
49
57
96
skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT col2 + ( - 17 ) / col0 AS col1 FROM tab1 AS cor0
----
49
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 + - col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
1553
708
813
query I rowsort
SELECT DISTINCT + col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + - col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - ( col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * - ( - col2 ) * + col0 col0 FROM tab1 AS cor0
----
13608
306432
645120
query I rowsort
SELECT - - col0 + + 28 * + cor0.col2 FROM tab0 AS cor0
----
2385
63
948
query I rowsort
SELECT ( + cor0.col2 ) + - cor0.col2 * - ( 83 ) AS col1 FROM tab2 cor0
----
2184
2268
3192
query I rowsort
SELECT - 24 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL 2 AS col1 FROM tab0
----
2
2
2
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT cor1.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab2 cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT 37 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
37
query I rowsort
SELECT DISTINCT + col0 * col0 - + col2 AS col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT ALL - 53 - + col1 * col1 FROM tab0 cor0
----
-7449
-8334
-9462
query I rowsort
SELECT ALL - 59 + col0 FROM tab2 AS cor0
----
-52
19
20
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 * + col2 col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL - - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 * col1 * + 23 + cor0.col1 FROM tab2 AS cor0
----
14875
19282
35341
query I rowsort
SELECT DISTINCT - + cor0.col0 + + 29 * col0 AS col0 FROM tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT DISTINCT 28 FROM tab1, tab0 cor0, tab1 AS cor1
----
28
query I rowsort
SELECT - 11 + + col0 + ( - col1 ) AS col1 FROM tab2
----
-35
51
8
query I rowsort
SELECT - col1 * 17 FROM tab0 AS cor0
----
-1462
-1547
-1649
onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT ALL col2 * col0 DIV 6 + - 61 AS col2 FROM tab1
----
-34
1219
547
skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL col2 * col0 / 6 + - 61 AS col2 FROM tab1
----
-34
1219
547
query I rowsort
SELECT ALL col0 + col1 * 98 AS col2 FROM tab1
----
1044
1354
2551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6332
SELECT col1 * col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-6332
SELECT col1 * col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + 59 + + col0 + + 62 AS col2 FROM tab0 AS cor0
----
145
156
210
query I rowsort
SELECT + col1 * col2 + + col0 + 47 FROM tab1 cor0
----
1375
1454
681
query I rowsort
SELECT ALL 87 - + col2 FROM tab0
----
5
54
86
query I rowsort
SELECT ALL + col1 + col2 * col0 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - col2 + 52 + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
4091
6356
7
query I rowsort
SELECT ALL - - cor0.col0 * col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col0 * - ( + ( - col1 ) * ( + col1 ) ) FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT - ( + 32 ) * + col2 FROM tab2 AS cor0
----
-1216
-832
-864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6341
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT ALL 22 DIV col2 FROM tab0
----
0
0
22
skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL 22 / col2 FROM tab0
----
0
0
22
query I rowsort
SELECT ALL - 62 FROM tab0
----
-62
-62
-62
query I rowsort
SELECT 41 * - col0 FROM tab2 AS cor0
----
-287
-3198
-3239
query I rowsort
SELECT - 99 - - col2 FROM tab0 AS cor0
----
-17
-66
-98
query I rowsort
SELECT - + ( - cor0.col1 ) + 80 * - col0 FROM tab2 AS cor0
----
-529
-6181
-6303
query I rowsort
SELECT DISTINCT - col0 * + col0 * col0 + cor0.col1 FROM tab1 AS cor0
----
-1
-262134
-511987
query I rowsort
SELECT ALL col1 + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + tab1.col1 * + 93 FROM tab1
----
1209
2418
930
query I rowsort
SELECT - ( - col1 ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL + 5 + - col0 AS col2 FROM tab0 AS cor0
----
-19
-30
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6352
SELECT ALL + - ( - cor0.col0 ) * - CAST( col0 AS SIGNED ) + + col1 + col0 FROM tab2 AS cor0
----
-11
-5947
-6145
skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + - ( - cor0.col0 ) * - CAST ( col0 AS INTEGER ) + + col1 + col0 FROM tab2 AS cor0
----
-11
-5947
-6145
query I rowsort
SELECT DISTINCT + - col2 * col1 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT DISTINCT col1 + - cor0.col0 DIV CAST( - 46 AS SIGNED ) FROM tab1 AS cor0
----
11
14
26
skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT col1 + - cor0.col0 / CAST ( - 46 AS INTEGER ) FROM tab1 AS cor0
----
11
14
26
query I rowsort
SELECT ALL - col1 + + col2 * ( cor0.col1 ) AS col0 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT 73 * cor0.col0 FROM tab2 AS cor0
----
511
5694
5767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col1 + - 57 FROM tab2 AS cor0
----
-116
-74
-88
query I rowsort
SELECT - col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6360
SELECT cor0.col0 + CAST( NULL AS SIGNED ) - - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6360
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) - - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + - cor0.col2 + col2 + + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6363
SELECT - ( tab2.col2 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6363
SELECT - ( tab2.col2 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + tab0.col1 ) + 62 FROM tab0, tab1, tab1 AS cor0
----
148
153
159
query I rowsort
SELECT col1 + - tab1.col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col1 * col2 - 67 FROM tab1
----
1181
1337
503
query I rowsort
SELECT ALL - + ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6368
SELECT DISTINCT - CAST( 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT - CAST ( 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-27
query I rowsort
SELECT ALL - col0 - 51 FROM tab1 AS cor0
----
-115
-131
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT DISTINCT + 39 DIV 73 + + col2 col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + 39 / 73 + + col2 col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT ALL + col2 * col1 - - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
1248
1396
570
skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + col2 * col1 - - col1 / - col0 AS col2 FROM tab1 AS cor0
----
1248
1396
570
query I rowsort
SELECT DISTINCT + 75 + - col2 FROM tab1 AS cor0
----
-21
18
21
query I rowsort
SELECT col1 + - ( + col2 ) + - col2 * - ( + col0 ) AS col2 FROM tab1
----
134
3601
7597
query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
33
query I rowsort
SELECT ALL tab2.col0 + - 36 FROM tab2, tab2 cor0
----
9 values hashing to 28f21701266f20b0ea40694bb4c6ff07
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 13 - col1 col2 FROM tab0
----
1032
1092
1164
onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT - col2 + - col1 DIV + col0 AS col0 FROM tab1
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-6378
SELECT - col2 + - col1 / + col0 AS col0 FROM tab1
----
-57
-62
-96
query I rowsort
SELECT + col1 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - + col2 * + col0 * - col0 + + col0 FROM tab2 AS cor0
----
1330
158262
237237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6382
SELECT DISTINCT + tab1.col2 DIV - cor0.col0 FROM tab1, tab0 AS cor0
----
-1
-2
-4
0
skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + tab1.col2 / - cor0.col0 FROM tab1, tab0 AS cor0
----
-1
-2
-4
0
query I rowsort
SELECT - tab1.col2 * col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col2 * + col1 AS col1 FROM tab0
----
2838
7462
97
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT + col2 FROM tab1 WHERE NOT + col1 * col1 <> NULL
----
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-6388
SELECT ALL + col0 DIV + col2 + col0 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
1
10
12
skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + col0 / + col2 + col0 * col1 / col2 AS col0 FROM tab1 AS cor0
----
1
10
12
query I rowsort
SELECT ALL col1 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col2 + col0 * col0 * + col1 AS col1 FROM tab1
----
288
41017
83296
query I rowsort
SELECT ALL cor0.col2 * col2 + - cor0.col2 FROM tab1 AS cor0
----
2862
3192
9120
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT col2 * - tab0.col0 + + tab0.col1 AS col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT ALL - tab1.col0 + - tab1.col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT tab2.col1 + - col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT col0 + col0 * + col1 AS col2 FROM tab1 WHERE - col1 > NULL
----
query I rowsort
SELECT - tab1.col2 * + col2 * tab1.col1 + col2 + col1 FROM tab1
----
-119699
-32423
-75736
onlyif mysql # use DIV operator for integer division
query I rowsort label-6398
SELECT - col0 - + col2 DIV col2 AS col1 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-6398
SELECT - col0 - + col2 / col2 AS col1 FROM tab1
----
-4
-65
-81
query I rowsort
SELECT DISTINCT col0 + + col1 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT tab2.col0 * + col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT tab0.col2 + col1 * - col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( + col1 * col1 ) = ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT ALL col2 + - col1 DIV col1 AS col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL col2 + - col1 / col1 AS col0 FROM tab2
----
25
26
37
query I rowsort
SELECT ALL tab0.col1 + - col2 * - col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT col1 + tab2.col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT cor0.col2 * cor0.col2 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL - + cor0.col1 + col2 * col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col1 * col1 FROM tab1 WHERE NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT + cor0.col2 + + col1 DIV - col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-6411
SELECT + cor0.col2 + + col1 / - col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 col0 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + col0 + - col1 + + col0 * cor0.col0 FROM tab1 cor0
----
-14
4150
6467
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 - + col2 * + col0 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6416
SELECT ALL + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + col2 / + col1 AS col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT - - col2 + + col1 + col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT DISTINCT col0 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT ALL - col1 + col2 * - col0 AS col0 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT col2 + + col1 * - tab0.col0 AS col0 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT col2 * 71 + 37 DIV + col1 FROM tab0 cor0
----
2343
5822
71
skipif mysql # not compatible
query I rowsort label-6425
SELECT col2 * 71 + 37 / + col1 FROM tab0 cor0
----
2343
5822
71
query I rowsort
SELECT - + col1 * col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col0 * + cor0.col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 * 70 FROM tab0 AS cor0
----
198660
522340
6790
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL - col1 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6432
SELECT DISTINCT cor0.col0 + CAST( col1 * - cor0.col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT cor0.col0 + CAST ( col1 * - cor0.col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query III rowsort
SELECT * FROM tab2 WHERE col0 + col2 IN ( + col0 * - col0 * tab2.col1 )
----
query I rowsort
SELECT ALL + col1 * col2 * - col2 AS col0 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT col2 * col2 - - col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT + col1 * - col1 * col2 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - 61 + col0 AS col1 FROM tab1 AS cor0
----
-58
19
3
query I rowsort
SELECT - col2 + col2 * + col2 FROM tab1 cor0
----
2862
3192
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE ( NULL ) >= + col1 - + col0
----
query I rowsort
SELECT ALL + col0 * col0 * - col1 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT col1 - + col2 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL - col2 * + col0 * col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT col0 + - tab1.col1 * - tab1.col1 AS col1 FROM tab1
----
164
249
679
query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NOT ( NULL ) <> ( + col0 )
----
query I rowsort
SELECT + 87 * + col2 AS col1 FROM tab2
----
2262
2349
3306
query I rowsort
SELECT 16 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col1 FROM tab1
----
-65
-65
-65
query I rowsort
SELECT 24 FROM tab2, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT - 95 * 14 FROM tab1, tab1 AS cor0
----
-1330
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL 80 * - col2 FROM tab0 AS cor0
----
-2640
-6560
-80
query I rowsort
SELECT + col1 * - col0 - col0 * + col2 AS col2 FROM tab2 cor0
----
-406
-4345
-6630
onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT 7 + 66 DIV tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0ccfcf9d8bbdf13adb603e432e942dcd
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6454
SELECT 7 + 66 / tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0ccfcf9d8bbdf13adb603e432e942dcd
query I rowsort
SELECT + col1 * + 41 * + col1 FROM tab1 AS cor0
----
27716
4100
6929
query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
query I rowsort
SELECT 50 * - col0 * tab1.col2 + 34 * 37 - col2 AS col1 FROM tab1
----
-181199
-382838
-6896
query I rowsort
SELECT DISTINCT + 44 * col1 - - col0 * col0 AS col0 FROM tab2
----
1413
6989
8680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6461
SELECT 80 + + ( col1 ) DIV ( 99 * col2 ) + col2 col0 FROM tab1
----
134
137
176
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6461
SELECT 80 + + ( col1 ) / ( 99 * col2 ) + col2 col0 FROM tab1
----
134
137
176
query I rowsort
SELECT - col1 * 4 FROM tab2
----
-124
-236
-68
query I rowsort
SELECT col2 * col0 - col2 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - 31 * col1 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT - - col0 + - 18 - col0 * + cor0.col0 AS col0 FROM tab0 cor0
----
-1208
-570
-7850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab0
----
34
34
34
query I rowsort
SELECT DISTINCT + ( tab1.col0 * + ( 8 ) ) FROM tab1
----
24
512
640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab2.col0 col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - 71 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
-2485
-518158
-56232
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6471
SELECT - 37 * col1 * CAST( col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
-299071
-43586
-60384
skipif mysql # not compatible
query I rowsort label-6471
SELECT - 37 * col1 * CAST ( col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
-299071
-43586
-60384
query I rowsort
SELECT + col1 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + + col0 * + 76 FROM tab0 AS cor0
----
1824
2660
6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT cor0.col0 DIV + 38 FROM tab1 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6474
SELECT cor0.col0 / + 38 FROM tab1 cor0
----
0
1
2
query I rowsort
SELECT col0 + ( - col0 ) * - cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - col2 + 67 AS col0 FROM tab2 cor0
----
29
40
41
query I rowsort
SELECT col2 + 36 AS col2 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT + 68 * + 30 + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
2075
2129
query I rowsort
SELECT DISTINCT - col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT ALL + + col0 DIV + 23 FROM tab2 AS cor0
----
0
3
3
skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + + col0 / + 23 FROM tab2 AS cor0
----
0
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6481
SELECT DISTINCT - CAST( + ( col0 ) AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT - CAST ( + ( col0 ) AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + col0 * 34 + + col1 AS col2 FROM tab2 cor0
----
269
2703
2711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col0 + - col2 col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + - 62 * 43 FROM tab0 AS cor0
----
-2666
-2666
-2666
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 2 ) * + col1 + 28 col2 FROM tab2 cor0
----
-34
-6
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT DISTINCT - - col0 DIV col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - - col0 / col0 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT - cor0.col2 * col2 DIV + col1 FROM tab0 AS cor0
----
-12
-73
0
skipif mysql # not compatible
query I rowsort label-6487
SELECT - cor0.col2 * col2 / + col1 FROM tab0 AS cor0
----
-12
-73
0
query I rowsort
SELECT DISTINCT - 42 + - 59 FROM tab2 AS cor0
----
-101
query I rowsort
SELECT DISTINCT + - col1 * col2 + col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459
onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT 94 + - col0 DIV col2 FROM tab1 AS cor0
----
93
94
94
skipif mysql # not compatible
query I rowsort label-6490
SELECT 94 + - col0 / col2 FROM tab1 AS cor0
----
93
94
94
query I rowsort
SELECT ALL + ( + 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT ALL col0 DIV 86 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6492
SELECT ALL col0 / 86 FROM tab1
----
0
0
0
query I rowsort
SELECT + cor0.col0 + - col2 * 9 AS col2 FROM tab1 cor0
----
-449
-483
-784
onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT DISTINCT + - col1 DIV - col1 + col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + - col1 / - col1 + col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - 64 + col0 * + col1 FROM tab1 cor0
----
14
576
976
query I rowsort
SELECT + ( + 22 ) * col2 FROM tab0
----
1804
22
726
query I rowsort
SELECT + tab0.col0 * tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 58 * cor0.col2 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + col1 + 33 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT ALL ( - col1 ) + + col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + cor0.col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - tab0.col0 + + col1 * + col2 FROM tab0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 9 * + col0 AS col2 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT + tab0.col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6509
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 0 * + col0 * - col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - 79 AS col2 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT + 30 + col0 * - cor0.col2 AS col1 FROM tab1 cor0
----
-132
-3618
-7650
query I rowsort
SELECT - - col0 * cor0.col0 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 * + col0 col1 FROM tab2 AS cor0
----
623
6942
7031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 * + col1 col0 FROM tab2 cor0
----
1683
3069
5841
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * 17 FROM tab0 AS cor0
----
7957
9426
9675
query I rowsort
SELECT ALL + ( col1 ) * - col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT ( col1 ) * col0 + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT - col1 + 39 FROM tab1
----
13
26
29
query I rowsort
SELECT DISTINCT + 64 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + ( + col1 ) ) col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col2 + col1 * 32 FROM tab2 AS cor0
----
1019
1914
582
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
10336
2997
3953
onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT + col1 DIV + col1 + - 10 - + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-6527
SELECT + col1 / + col1 + - 10 - + col1 / - col1 AS col2 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL col1 * + col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + 44 * col1 + 2 FROM tab2 AS cor0
----
1583
2093
7200
query I rowsort
SELECT + col1 * - col2 - + 55 FROM tab2 cor0
----
-1589
-701
-892
query I rowsort
SELECT DISTINCT - col2 + + 81 FROM tab0 AS cor0
----
-1
48
80
query I rowsort
SELECT + col1 * col0 - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * 67 FROM tab2 AS cor0
----
1742
1809
2546
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT cor0.col1 DIV - col2 - 58 AS col0 FROM tab0 AS cor0
----
-155
-59
-60
skipif mysql # not compatible
query I rowsort label-6534
SELECT cor0.col1 / - col2 - 58 AS col0 FROM tab0 AS cor0
----
-155
-59
-60
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col2 + col0 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT DISTINCT - ( 87 ) * col0 DIV col2 FROM tab1 AS cor0
----
-4
-72
-97
skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - ( 87 ) * col0 / col2 FROM tab1 AS cor0
----
-4
-72
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT DISTINCT CAST( 60 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT CAST ( 60 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 96 col0 FROM tab2 AS cor0
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6540
SELECT ALL - - 77 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - - 77 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + + ( 12 ) AS col0 FROM tab1 AS cor0
----
12
12
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6542
SELECT CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT - 57 DIV + 26 + col0 FROM tab1 AS cor0
----
1
62
78
skipif mysql # not compatible
query I rowsort label-6543
SELECT - 57 / + 26 + col0 FROM tab1 AS cor0
----
1
62
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6544
SELECT + CAST( NULL AS DECIMAL ) 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-6544
SELECT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - 84 - + col2 col2 FROM tab1 AS cor0
----
-3414
-3417
-3456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6548
SELECT + CAST( NULL AS SIGNED ) + col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6548
SELECT + CAST ( NULL AS INTEGER ) + col1 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + + col2 * 47 + cor0.col2 FROM tab2 AS cor0
----
1248
1296
1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 - + col2 col0 FROM tab0 AS cor0
----
4
53
85
query I rowsort
SELECT + 1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
53
query I rowsort
SELECT + ( ( col1 ) ) * 26 AS col2 FROM tab2
----
1534
442
806
query I rowsort
SELECT + 96 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT col1 + 62 AS col1 FROM tab2 AS cor0
----
121
79
93
query I rowsort
SELECT DISTINCT - cor0.col1 * 35 + + col0 FROM tab1 AS cor0
----
-286
-375
-907
query I rowsort
SELECT ALL + + cor0.col2 * ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * - 7 AS col2 FROM tab1 cor0
----
-378
-399
-672
query I rowsort
SELECT 9 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + cor0.col2 * col0 + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + + 52 * ( col0 ) * - tab0.col2 AS col1 FROM tab0
----
-1855
-379585
-41208
query I rowsort
SELECT ALL + col2 + - 65 AS col1 FROM tab2
----
-27
-38
-39
query I rowsort
SELECT DISTINCT + 86 * + tab0.col2 FROM tab0, tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT 15 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT DISTINCT + col0 DIV 32 + col2 FROM tab0
----
2
33
84
skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + col0 / 32 + col2 FROM tab0
----
2
33
84
query I rowsort
SELECT col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT tab0.col2 + + ( - col2 ) FROM tab0
----
0
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
32
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col0 / - CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( cor0.col1 ) col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + col0 + + col2 + + col1 FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT ALL - + col0 + cor0.col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - + col0 + cor0.col0 / + col2 AS col1 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT 36 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT ALL - col2 * - cor0.col1 + 65 AS col2 FROM tab2 AS cor0
----
1599
711
902
query I rowsort
SELECT ALL - + col1 * col0 + ( - 91 ) - - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1396
-281
-4667
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT ALL col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL col1 * - col1 - 64 * col1 DIV - col0 FROM tab2 AS cor0
----
-276
-3433
-678
skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL col1 * - col1 - 64 * col1 / - col0 FROM tab2 AS cor0
----
-276
-3433
-678
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - 92 * cor0.col2 + 32 FROM tab2 AS cor0
----
-2360
-2452
-3464
query I rowsort
SELECT ALL - + col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT DISTINCT - - col2 DIV 41 + 12 * col0 AS col1 FROM tab0 AS cor0
----
1070
288
420
skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - - col2 / 41 + 12 * col0 AS col1 FROM tab0 AS cor0
----
1070
288
420
query I rowsort
SELECT DISTINCT cor0.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 + cor0.col1 + 40 * ( - col2 ) col1 FROM tab1 AS cor0
----
-2134
-2270
-3827
query I rowsort
SELECT ALL - col2 + + 66 AS col1 FROM tab2 AS cor0
----
28
39
40
query I rowsort
SELECT cor0.col2 * + 78 FROM tab1 AS cor0
----
4212
4446
7488
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6591
SELECT CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6591
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 19 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT ALL 72 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e1618abfe12be6a950cc575d695639b7
query I rowsort
SELECT + 15 + + 66 FROM tab1 AS cor0
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6595
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 AS col0 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col1 * + 99 FROM tab0 cor0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT 82 - 70 FROM tab1, tab2 cor0
----
12
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6599
SELECT + CAST( + 80 AS SIGNED ) FROM tab2
----
80
80
80
skipif mysql # not compatible
query I rowsort label-6599
SELECT + CAST ( + 80 AS INTEGER ) FROM tab2
----
80
80
80
query I rowsort
SELECT col2 * 71 * + col2 AS col2 FROM tab0
----
477404
71
77319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT 85 * 17 + col1 + + tab0.col0 FROM tab0
----
1555
1577
1625
query I rowsort
SELECT ALL + col2 * col0 + col2 * - col0 AS col1 FROM tab1
----
0
0
0
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5
query I rowsort
SELECT ALL - + cor0.col1 + col2 * col0 * - 16 AS col0 FROM tab1 AS cor0
----
-122893
-2618
-58378
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col1 + col2 ) col1 FROM tab1
----
10464
3819
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT + col1 DIV 90 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6607
SELECT + col1 / 90 FROM tab1
----
0
0
0
query I rowsort
SELECT 38 + + 74 + col1 * col2 AS col0 FROM tab2
----
1646
758
949
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6609
SELECT + + CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6609
SELECT + + CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + 90 + col2 * + col2 FROM tab1 AS cor0
----
3006
3339
9306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6611
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col0 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-6611
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT 13 * col1 FROM tab2
----
221
403
767
query I rowsort
SELECT + ( cor0.col0 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 26 + col0 FROM tab2 AS cor0
----
-19
52
53
query I rowsort
SELECT ALL - 95 + col0 * - col2 FROM tab2 AS cor0
----
-2123
-284
-3097
onlyif mysql # use DIV operator for integer division
query I rowsort label-6616
SELECT ALL + 77 DIV + col1 col2 FROM tab2 AS cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL + 77 / + col1 col2 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT ALL - 58 AS col0 FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT col1 + + col2 * 58 FROM tab0 AS cor0
----
155
2000
4847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col1 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col1 FROM tab1
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT - col0 / - CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6621
SELECT - col0 / - CAST ( NULL AS REAL ) + col0 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( + col0 ) + - col2 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT 44 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT col0 - + ( + 37 ) AS col1 FROM tab1
----
-34
27
43
query I rowsort
SELECT - ( 99 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - - col1 * + col2 * col1 + ( 8 * + col1 ) + - col0 FROM tab1 AS cor0
----
16248
36709
5716
query I rowsort
SELECT ALL col0 * 74 FROM tab1 AS cor0
----
222
4736
5920
query I rowsort
SELECT - + ( col2 ) - cor0.col1 AS col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - col1 * - 6 AS col2 FROM tab1 cor0
----
156
60
78
query I rowsort
SELECT DISTINCT + col1 * + col0 + col1 AS col2 FROM tab1 cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT DISTINCT + 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-6633
SELECT DISTINCT + CAST ( - cor0.col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 1 + cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
query I rowsort
SELECT DISTINCT - - 30 * - col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
query I rowsort
SELECT - 60 * cor0.col2 - - col0 FROM tab0 cor0
----
-1956
-25
-4831
query I rowsort
SELECT col2 * col1 * + col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - - ( - col1 ) * col2 * - ( - col0 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - + 98 * col2 FROM tab2 cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ALL + - ( col2 ) + cor0.col2 * col0 * + col0 FROM tab2 AS cor0
----
1296
158158
237120
query I rowsort
SELECT col0 * - 55 + col0 + - ( col2 + col0 ) * col2 FROM tab1 AS cor0
----
-10353
-21216
-3240
query I rowsort
SELECT DISTINCT - 52 * + col1 AS col1 FROM tab0 AS cor0
----
-4472
-4732
-5044
query I rowsort
SELECT + col2 * - ( + 27 ) + cor0.col2 * - 75 FROM tab0 AS cor0
----
-102
-3366
-8364
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6645
SELECT DISTINCT + col0 * - CAST( + col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + col0 * - CAST ( + col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 * 55 AS col1 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT ALL + + col1 + 30 * col2 FROM tab1 cor0
----
1646
1720
2893
query I rowsort
SELECT ALL - cor1.col1 + cor0.col1 * + 26 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2b409fe58c9c2f1a535a521f09a54ee6
query I rowsort
SELECT + - col2 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col0 + - 83 FROM tab0 cor0
----
-107
-118
-172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - col0 ) col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + 85 * col2 - + col2 * - cor0.col0 FROM tab2 AS cor0
----
2484
4238
6232
query I rowsort
SELECT cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( tab1.col2 ) ) col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT DISTINCT + ( col2 ) DIV - col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT + ( col2 ) / - col2 FROM tab1
----
-1
query I rowsort
SELECT ( 51 * + col2 ) AS col2 FROM tab1
----
2754
2907
4896
query I rowsort
SELECT ALL - tab2.col2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - ( col1 * + tab1.col2 + + 72 ) AS col1 FROM tab1
----
-1320
-1476
-642
query I rowsort
SELECT ALL - - ( - 27 ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL cor1.col2 + 13 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to de0d241e0d4cacdb6e1b4cc5e8ada56f
query I rowsort
SELECT DISTINCT 52 + + col1 AS col0 FROM tab1
----
62
65
78
query I rowsort
SELECT col1 + - col0 + 75 AS col1 FROM tab2
----
13
56
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT ALL + + col2 * - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + + col2 * - col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - 27 - + col2 FROM tab2 AS cor0
----
-53
-54
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab0 cor0
----
-11
-11
-11
query I rowsort
SELECT ALL + 48 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT + col2 * col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL + ( col2 ) * 15 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT ALL + - col1 * + col2 + - ( - cor0.col0 ) * - col0 FROM tab2 AS cor0
----
-6887
-7618
-886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT DISTINCT + col0 + - col2 * + ( - col0 ) DIV cor0.col0 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + col0 + - col2 * + ( - col0 ) / cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 75 * col1 AS col2 FROM tab1 cor0
----
-1950
-750
-975
query I rowsort
SELECT ALL - - 26 * + col2 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-16717
-21755
-39806
query I rowsort
SELECT - - 28 * - col1 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col2 * + cor0.col1 - - ( col1 ) * cor0.col0 AS col2 FROM tab2 cor0
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT - col1 - - col0 DIV col2 col1 FROM tab0 AS cor0
----
-62
-86
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6680
SELECT - col1 - - col0 / col2 col1 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col2 + col2 * - 87 AS col2 FROM tab1
----
-4752
-5016
-8448
query I rowsort
SELECT DISTINCT + col1 + - col2 * + 42 AS col2 FROM tab1
----
-2242
-2384
-4019
query I rowsort
SELECT + 35 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT col0 + col0 + 50 AS col1 FROM tab2
----
206
208
64
query I rowsort
SELECT DISTINCT col2 + tab2.col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT col1 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6688
SELECT ALL + col2 DIV tab1.col1 col1 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL + col2 / tab1.col1 col1 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT DISTINCT col0 * col2 DIV ( - 67 ) AS col1 FROM tab2
----
-2
-30
-44
skipif mysql # not compatible
query I rowsort label-6689
SELECT DISTINCT col0 * col2 / ( - 67 ) AS col1 FROM tab2
----
-2
-30
-44
query I rowsort
SELECT - + col1 - - col0 * 74 FROM tab0 AS cor0
----
1690
2493
6495
query I rowsort
SELECT - col1 * - col0 - ( col1 + col0 ) * + 90 AS col1 FROM tab2 AS cor0
----
-3203
-7297
-7728
query I rowsort
SELECT col1 * col0 * + col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - col1 + - 48 AS col2 FROM tab1 AS cor0
----
-58
-61
-74
query I rowsort
SELECT col2 * col1 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT cor0.col1 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6696
SELECT DISTINCT CAST( - 32 AS SIGNED ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-58
-59
-70
skipif mysql # not compatible
query I rowsort label-6696
SELECT DISTINCT CAST ( - 32 AS INTEGER ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-58
-59
-70
query I rowsort
SELECT DISTINCT + col2 * ( col2 * + col2 ) FROM tab0 AS cor0
----
1
35937
551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL - col1 + + col0 + - col1 DIV 20 FROM tab2 AS cor0
----
-25
17
62
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - col1 + + col0 + - col1 / 20 FROM tab2 AS cor0
----
-25
17
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT ALL - cor0.col0 DIV col0 + col0 * + CAST( - col2 + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-14081
-172
-7745
skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - cor0.col0 / col0 + col0 * + CAST ( - col2 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-14081
-172
-7745
query I rowsort
SELECT ( - 21 ) FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT + + cor0.col1 * - 8 AS col2 FROM tab0 AS cor0
----
-688
-728
-776
query I rowsort
SELECT DISTINCT + 18 * col2 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT ALL col0 * + cor0.col1 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-101
-512
3926
query I rowsort
SELECT - 0 * - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col2 + + 68 FROM tab1 AS cor0
----
122
125
164
query I rowsort
SELECT + + col1 + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT DISTINCT - col0 DIV - 73 + col2 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - col0 / - 73 + col2 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT col1 * + col2 + - 81 * col0 AS col0 FROM tab1 AS cor0
----
-4614
-5232
1161
query I rowsort
SELECT - + cor0.col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT + 72 + + col1 DIV col1 col2 FROM tab0 AS cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6714
SELECT + 72 + + col1 / col1 col2 FROM tab0 AS cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col0 col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT ( col1 ) * cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
100
224
9409
skipif mysql # not compatible
query I rowsort label-6716
SELECT ( col1 ) * cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
100
224
9409
query I rowsort
SELECT 90 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT + ( cor0.col1 + - cor0.col1 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 50 * - col1 AS col1 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + 44 * cor0.col2 FROM tab0 AS cor0
----
1452
3608
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + - ( cor0.col0 + + col1 ) col2 FROM tab0 AS cor0
----
-155
-177
-225
query I rowsort
SELECT ALL - 48 + col0 * col2 AS col2 FROM tab1 cor0
----
114
3600
7632
query I rowsort
SELECT - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 61 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col2 + - col0 * + 77 FROM tab1 cor0
----
-177
-4871
-6064
onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT ALL + - col2 DIV + col1 col2 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + - col2 / + col1 col2 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT - col2 + ( + 96 ) FROM tab0 cor0
----
14
63
95
query I rowsort
SELECT DISTINCT col0 - tab2.col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT 64 * + col2 AS col2 FROM tab1
----
3456
3648
6144
query I rowsort
SELECT + + 33 * + col2 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT + col0 - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 + - col1 + col0 * - col0 FROM tab0
----
-1419
-748
-8103
query I rowsort
SELECT col1 * col0 - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - + col1 - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - + col2 - - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 29 - col2 * col1 FROM tab0
----
-126
-2867
-7491
onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT - tab0.col0 + + col2 * col2 DIV + col0 col2 FROM tab0
----
-14
-35
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6740
SELECT - tab0.col0 + + col2 * col2 / + col0 col2 FROM tab0
----
-14
-35
21
query I rowsort
SELECT DISTINCT + tab1.col1 + tab1.col0 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT DISTINCT - col1 + + col0 * col0 DIV tab0.col1 AS col2 FROM tab0
----
-4
-80
-85
skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - col1 + + col0 * col0 / tab0.col1 AS col2 FROM tab0
----
-4
-80
-85
query I rowsort
SELECT + col0 * col1 + - col2 + col0 AS col2 FROM tab2
----
1384
197
4654
query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 AS col1 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT - tab0.col0 + col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col1 + - col0 * + col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + + col0 - - cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col1 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT ALL - col2 * + col2 + + cor0.col2 DIV + col1 col1 FROM tab2 AS cor0
----
-1442
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - col2 * + col2 + + cor0.col2 / + col1 col1 FROM tab2 AS cor0
----
-1442
-676
-729
query I rowsort
SELECT DISTINCT + col1 + + col2 * col1 * col2 AS col2 FROM tab2 AS cor0
----
22630
24565
39943
onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT DISTINCT col1 DIV col2 + col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT col1 / col2 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col2 * - 32 FROM tab0
----
-1056
-2624
-32
query I rowsort
SELECT + col0 - + tab2.col2 * col0 FROM tab2
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT ALL - tab1.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-6755
SELECT ALL - tab1.col2 / col0 col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT col1 * - col0 * col1 - - col0 AS col0 FROM tab2
----
-22752
-271440
-6720
query I rowsort
SELECT ALL col2 * + cor0.col0 * col2 AS col2 FROM tab2 cor0
----
114076
5103
52728
query I rowsort
SELECT cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 41 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 49 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT 30 * - col2 + col2 * + col1 FROM tab1
----
-1140
-1632
-216
query I rowsort
SELECT DISTINCT - 30 FROM tab0, tab0 AS cor0
----
-30
query I rowsort
SELECT ALL - tab2.col2 * col0 AS col2 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - tab1.col0 col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + 4 FROM tab0, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT col2 + col0 * col2 DIV - col2 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-6767
SELECT col2 + col0 * col2 / - col2 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT + - col2 * col0 DIV - col1 FROM tab1 AS cor0
----
364
590
6
skipif mysql # not compatible
query I rowsort label-6768
SELECT + - col2 * col0 / - col1 FROM tab1 AS cor0
----
364
590
6
query I rowsort
SELECT ALL + - 52 + col1 AS col2 FROM tab1 AS cor0
----
-26
-39
-42
query I rowsort
SELECT DISTINCT - + ( col1 ) * + col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + cor0.col2 + cor0.col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ( col1 ) + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + col2 + col1 * col1 * cor0.col1 FROM tab1 AS cor0
----
1057
17630
2293
query I rowsort
SELECT ALL 75 - col0 * col1 AS col1 FROM tab1 AS cor0
----
-3
-565
-965
query I rowsort
SELECT + - 23 * col0 AS col2 FROM tab0 cor0
----
-2047
-552
-805
query I rowsort
SELECT ALL - + col0 * + col1 * - col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + - col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT + col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6778
SELECT + col1 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT DISTINCT - - 42 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT - - 42 / - col1 FROM tab1 AS cor0
----
-1
-3
-4
query I rowsort
SELECT ALL + ( + col2 ) + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - cor0.col0 - - 33 FROM tab1 AS cor0
----
-31
-47
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * + 55 + col2 + - col0 col2 FROM tab0
----
4739
4998
5301
query I rowsort
SELECT ALL 74 + 66 FROM tab1
----
140
140
140
query I rowsort
SELECT - 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT + ( cor0.col0 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT ( - 33 ) + col0 AS col2 FROM tab2 AS cor0
----
-26
45
46
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 * cor1.col2 + 2 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1446
678
731
query I rowsort
SELECT DISTINCT + - col1 * col0 + + col2 * col1 * col0 FROM tab2 AS cor0
----
115050
49691
5642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col2 + 30 * - col0 * + col2 - col1 col2 FROM tab0 AS cor0
----
-1244
-226493
-26684
query I rowsort
SELECT col2 * + 1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT 34 + - tab2.col1 FROM tab2
----
-25
17
3
query I rowsort
SELECT + - 64 + - col1 FROM tab0 cor0
----
-150
-155
-161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + col1 + ( + 90 ) col2 FROM tab2 AS cor0
----
294
462
798
query I rowsort
SELECT - - 87 FROM tab0 cor0
----
87
87
87
query I rowsort
SELECT DISTINCT 75 + + tab0.col1 FROM tab0
----
161
166
172
query I rowsort
SELECT ALL + tab2.col0 + ( + col0 + col0 ) AS col0 FROM tab2
----
21
234
237
query I rowsort
SELECT 9 * - 52 AS col2 FROM tab0
----
-468
-468
-468
query I rowsort
SELECT 65 * + col1 FROM tab1
----
1690
650
845
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col0 + col1 col0 FROM tab2
----
2165
227
3098
query I rowsort
SELECT - - col0 * 24 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT ALL - - col1 - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + col2 * - 95 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT ALL - col1 * + 83 + - col2 FROM tab0 AS cor0
----
-7171
-7635
-8052
query I rowsort
SELECT DISTINCT - + col1 - 58 FROM tab2 AS cor0
----
-117
-75
-89
query I rowsort
SELECT DISTINCT + col1 + + 70 FROM tab2 AS cor0
----
101
129
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT DISTINCT + col0 DIV - 10 FROM tab2 AS cor0
----
-7
0
skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + col0 / - 10 FROM tab2 AS cor0
----
-7
0
query I rowsort
SELECT ALL col1 * 6 AS col2 FROM tab2 AS cor0
----
102
186
354
query I rowsort
SELECT ALL + col1 + - 7 FROM tab2 cor0
----
10
24
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6810
SELECT DISTINCT - + cor0.col2 * + CAST( NULL AS DECIMAL ) + 78 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - + cor0.col2 * + CAST ( NULL AS REAL ) + 78 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 7 * cor0.col1 FROM tab2, tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT - - col0 * ( 21 ) AS col0 FROM tab2 cor0
----
147
1638
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + - col1 * + col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT 43 * + 53 FROM tab2 AS cor0
----
2279
2279
2279
query I rowsort
SELECT + col0 * 50 AS col0 FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT - 46 * cor0.col1 FROM tab1 AS cor0
----
-1196
-460
-598
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6820
SELECT CAST( NULL AS SIGNED ) + col0 * col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6820
SELECT CAST ( NULL AS INTEGER ) + col0 * col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
26
27
38
query I rowsort
SELECT + ( col2 ) * 17 * - col0 AS col1 FROM tab0
----
-124066
-13464
-595
query I rowsort
SELECT - cor0.col0 * - cor0.col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL 8 + col2 FROM tab2 AS cor0
----
34
35
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-6825
SELECT ALL - col1 * col1 DIV + 80 FROM tab1
----
-1
-2
-8
skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - col1 * col1 / + 80 FROM tab1
----
-1
-2
-8
query I rowsort
SELECT DISTINCT 37 + col0 AS col1 FROM tab0 AS cor0
----
126
61
72
query I rowsort
SELECT + col0 + 29 * + cor0.col1 * col0 FROM tab0 AS cor0
----
234960
59880
98490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6828
SELECT DISTINCT col0 * CAST( - 36 AS SIGNED ) FROM tab1 AS cor0
----
-108
-2304
-2880
skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT col0 * CAST ( - 36 AS INTEGER ) FROM tab1 AS cor0
----
-108
-2304
-2880
query I rowsort
SELECT col2 * 29 AS col1 FROM tab1 AS cor0
----
1566
1653
2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT - col0 + + col1 DIV + 65 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-6830
SELECT - col0 + + col1 / + 65 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT - 29 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col0 * + tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6835
SELECT DISTINCT + col1 * CAST( col2 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
1798
5015
935
skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT + col1 * CAST ( col2 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT + col1 * - 81 + col0 AS col1 FROM tab0 AS cor0
----
-6942
-7282
-7822
query I rowsort
SELECT + - col2 - - ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col2 - + ( - col2 ) AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT col2 * cor0.col2 * - col1 + col0 * 37 AS col1 FROM tab0 AS cor0
----
-608591
-92766
1198
query I rowsort
SELECT ALL col1 * col2 - tab0.col2 AS col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT - col1 + + col2 - + tab2.col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 * 93 col2 FROM tab1
----
-1289
-2421
-994
query I rowsort
SELECT - col0 * + ( col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col0 + col1 * 58 FROM tab2
----
1065
1805
3500
query I rowsort
SELECT ALL - col2 * - col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 * ( cor0.col1 ) FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + + col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col0 - cor0.col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + col1 * + ( col1 ) FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT - CAST( - col0 AS SIGNED ) col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6851
SELECT - CAST ( - col0 AS INTEGER ) col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 - tab1.col2 col0 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 72 * tab1.col0 AS col1 FROM tab1
----
216
4608
5760
query I rowsort
SELECT 4 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + - 80 * col1 FROM tab1 cor0
----
-1040
-2080
-800
query I rowsort
SELECT ALL - - col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT + 8 DIV col0 + + col0 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6857
SELECT + 8 / col0 + + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + 97 + + col2 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT + + col1 * cor0.col1 - col2 AS col2 FROM tab2 cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-6860
SELECT ALL + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + col1 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL - 17 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1023
61
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT DISTINCT - - col0 DIV col1 + + col1 * - 34 FROM tab1 AS cor0
----
-334
-436
-884
skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT - - col0 / col1 + + col1 * - 34 FROM tab1 AS cor0
----
-334
-436
-884
query I rowsort
SELECT DISTINCT + - col1 * - col0 - 56 FROM tab0 cor0
----
2008
3339
8043
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - - 58 AS col1 FROM tab1 cor0
----
58
58
58
query I rowsort
SELECT ALL ( col1 ) + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + 42 * + col2 FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT - col1 + + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL - - 49 * + cor0.col1 + col2 FROM tab0 AS cor0
----
4247
4541
4754
query I rowsort
SELECT + - 40 FROM tab1 cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + col1 * - col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col1 * - col0 + - ( + 66 ) * - col0 * col1 AS col1 FROM tab0 AS cor0
----
134160
220675
526435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col2 col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL - 26 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT - col2 DIV ( - col2 ) - col1 DIV - col0 col1 FROM tab1 AS cor0
----
1
1
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6876
SELECT - col2 / ( - col2 ) - col1 / - col0 col1 FROM tab1 AS cor0
----
1
1
9
query I rowsort
SELECT DISTINCT + + col2 + 44 FROM tab0 AS cor0
----
126
45
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT + - col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6878
SELECT + - col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col0 * - col2 - - col0 * tab1.col1 AS col2 FROM tab1
----
-3008
-6640
-84
query I rowsort
SELECT ALL - 71 * col1 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 + + col0 FROM tab1 AS cor0
----
1408
1410
698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT ALL - CAST( col1 AS SIGNED ) * + cor0.col0 + 31 FROM tab2 AS cor0
----
-1312
-186
-4571
skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL - CAST ( col1 AS INTEGER ) * + cor0.col0 + 31 FROM tab2 AS cor0
----
-1312
-186
-4571
query I rowsort
SELECT + 36 AS col1 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT + col0 * 91 + col1 AS col0 FROM tab2 AS cor0
----
668
7157
7206
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 + + col0 col1 FROM tab0 AS cor0
----
121
56
67
query I rowsort
SELECT DISTINCT 56 + 13 FROM tab0 cor0
----
69
query I rowsort
SELECT - col1 + 93 AS col1 FROM tab1 AS cor0
----
67
80
83
query I rowsort
SELECT ALL ( - 63 ) FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab0 cor0, tab1, tab1 cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * + col1 + col0 col0 FROM tab1 AS cor0
----
1042
1927
804
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab0 AS cor0
----
79
79
79
query I rowsort
SELECT ALL - col1 * col2 + col0 * - col0 + - col1 * col2 FROM tab0 AS cor0
----
-1419
-22845
-6252
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT ALL - ( col2 ) DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - ( col2 ) / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 36 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col2 FROM tab2
----
23
23
23
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6900
SELECT - - col0 + - 28 DIV col0 AS col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-6900
SELECT - - col0 + - 28 / col0 AS col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6901
SELECT col0 + col1 DIV - col2 AS col1 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6901
SELECT col0 + col1 / - col2 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL col2 + ( col1 ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-60
query I rowsort
SELECT ALL - col0 * + col2 * - col2 AS col0 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT 60 DIV - col1 + cor0.col2 col0 FROM tab1 AS cor0
----
51
52
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT 60 / - col1 + cor0.col2 col0 FROM tab1 AS cor0
----
51
52
92
query I rowsort
SELECT 35 FROM tab1, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT - col0 * - 90 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT - cor0.col0 + + col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
17498
19676
54793
query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE cor0.col0 NOT IN ( cor0.col2 )
----
54 values hashing to 018801f36b33d2fe82cb95918ba502d6
query I rowsort
SELECT - + col0 * - col1 + col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-6911
SELECT - col0 DIV + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6911
SELECT - col0 / + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab0
----
-1
-33
-82
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
query I rowsort
SELECT DISTINCT - + 29 AS col0 FROM tab0, tab2 AS cor0
----
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT 99 * cor0.col2 DIV - ( + col0 ) + col2 + - col2 FROM tab1 AS cor0
----
-118
-1782
-88
skipif mysql # not compatible
query I rowsort label-6915
SELECT 99 * cor0.col2 / - ( + col0 ) + col2 + - col2 FROM tab1 AS cor0
----
-118
-1782
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6916
SELECT + col2 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT + + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6918
SELECT + + col1 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT ALL + col1 + + cor0.col2 DIV - col0 FROM tab2 cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL + col1 + + cor0.col2 / - col0 FROM tab2 cor0
----
17
28
59
query I rowsort
SELECT + cor0.col2 * - 30 AS col2 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT + col2 * + 55 * + cor0.col1 FROM tab0 AS cor0
----
156090
410410
5335
query I rowsort
SELECT - col2 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL col2 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 + 62 * 68 FROM tab2 AS cor0
----
4178
4189
4190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6926
SELECT ALL + col2 * CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL + col2 * CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * + col2 * col1 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 26 col0 FROM tab1 AS cor0
----
36
39
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT - col2 DIV + ( - col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6930
SELECT - col2 / + ( - col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - col0 * col1 * - col0 + col2 + col2 * tab0.col2 * + col1 AS col2 FROM tab0
----
118923
1332777
143223
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6932
SELECT ALL + - 7 * - cor1.col2 + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + - 7 * - cor1.col2 + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45
query I rowsort
SELECT + col1 + col2 * + 90 FROM tab1 AS cor0
----
4886
5140
8653
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0, tab0 cor0
----
95
query I rowsort
SELECT - cor2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT DISTINCT - + ( col2 ) * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 60 * col1 FROM tab2 AS cor0
----
-1020
-1860
-3540
onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6938
SELECT col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT + + col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT - col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6940
SELECT - col1 / col0 AS col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 75 col0 FROM tab2 AS cor0
----
-75
-75
-75
query I rowsort
SELECT DISTINCT - col0 * 61 AS col1 FROM tab0 AS cor0
----
-1464
-2135
-5429
query I rowsort
SELECT - ( col0 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col2 * 29 AS col1 FROM tab2
----
1102
754
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6945
SELECT + col0 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-6945
SELECT + col0 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab1, tab0 AS cor0
----
-2
query I rowsort
SELECT - 46 + col0 FROM tab0 AS cor0
----
-11
-22
43
query I rowsort
SELECT col2 + tab1.col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT 98 + + col2 AS col1 FROM tab2 AS cor0
----
124
125
136
query I rowsort
SELECT + col2 * col2 + - 12 * + col2 FROM tab0 AS cor0
----
-11
5740
693
query I rowsort
SELECT - 16 + - col0 AS col1 FROM tab0 AS cor0
----
-105
-40
-51
query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab1, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6954
SELECT DISTINCT + CAST( 11 + col2 AS SIGNED ) * ( - col2 ) AS col0 FROM tab1
----
-10272
-3510
-3876
skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + CAST ( 11 + col2 AS INTEGER ) * ( - col2 ) AS col0 FROM tab1
----
-10272
-3510
-3876
query I rowsort
SELECT 70 + col1 FROM tab2
----
101
129
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * col1 col2 FROM tab0
----
-2150
-2275
-2425
query I rowsort
SELECT + 59 + col2 * col0 AS col2 FROM tab1 AS cor0
----
221
3707
7739
query I rowsort
SELECT 7 + - col0 * + cor0.col2 * 64 AS col2 FROM tab1 cor0
----
-10361
-233465
-491513
query I rowsort
SELECT - + cor0.col0 * - col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0 AS cor0
----
-21
query I rowsort
SELECT DISTINCT 1 + col0 * col2 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT ALL - col1 * - cor0.col2 - - col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - col1 + 21 FROM tab1 AS cor0
----
-5
11
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 81 * - cor0.col2 * col0 col2 FROM tab2 cor0
----
15309
164268
243162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT ALL - CAST( NULL AS SIGNED ) * ( + col0 ) + + 47 + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - CAST ( NULL AS INTEGER ) * ( + col0 ) + + 47 + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6966
SELECT ALL + CAST( + col0 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL + CAST ( + col0 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + 39 * 96 FROM tab0 AS cor0
----
-3744
-3744
-3744
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * - cor0.col2 + - col0 + + col2 * + col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + + cor0.col0 * 27 + col1 AS col0 FROM tab2 AS cor0
----
2150
2165
220
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + 11 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT 4 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
4
query I rowsort
SELECT col2 - col1 * + col2 AS col0 FROM tab0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( col1 ) AS REAL ) * + col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT - + col0 + 22 * col0 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT ( col0 ) * - col0 * + 46 FROM tab2 AS cor0
----
-2254
-279864
-287086
query I rowsort
SELECT DISTINCT - col1 - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT cor0.col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col1 FROM tab0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT - 15 DIV cor0.col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6980
SELECT - 15 / cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 8 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT + col0 + - 70 FROM tab2 cor0
----
-63
8
9
query I rowsort
SELECT - col1 - 25 AS col2 FROM tab0
----
-111
-116
-122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6984
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6984
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * col2 AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT + col0 * + col1 + + 93 * col2 FROM tab0 cor0
----
15725
3488
5133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6988
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6988
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * + col0 * col0 FROM tab1 cor0
----
24
262080
511920
query I rowsort
SELECT ALL + 74 * col0 * col0 FROM tab2 AS cor0
----
3626
450216
461834
query I rowsort
SELECT col1 * ( col2 ) * ( - col1 * col0 ) FROM tab1 AS cor0
----
-109512
-1297920
-364800
query I rowsort
SELECT DISTINCT + 96 * 28 * + col0 FROM tab1 cor0
----
172032
215040
8064
query I rowsort
SELECT ALL - - 78 FROM tab2 AS cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6994
SELECT + 52 DIV - 37 + - tab1.col0 FROM tab1
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-6994
SELECT + 52 / - 37 + - tab1.col0 FROM tab1
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - - ( 67 ) + + col2 AS col1 FROM tab1 AS cor0
----
121
124
163
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * + col2 + col0 col0 FROM tab1 cor0
----
-4425
-4610
-7792
query I rowsort
SELECT - 85 FROM tab0, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7002
SELECT col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + ( - 29 ) * + col1 FROM tab1 AS cor0
----
-290
-377
-754
query I rowsort
SELECT ( ( col2 ) ) * - 57 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT 44 DIV - tab1.col1 col0 FROM tab1
----
-1
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7005
SELECT 44 / - tab1.col1 col0 FROM tab1
----
-1
-3
-4
query I rowsort
SELECT ALL + 46 + col0 + ( - 23 ) AS col1 FROM tab0
----
112
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT DISTINCT + - col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT + - col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT - - 60 - - cor0.col1 FROM tab0 AS cor0
----
146
151
157
query I rowsort
SELECT DISTINCT - - col0 * col1 + + 68 AS col1 FROM tab1 AS cor0
----
1108
146
708
query I rowsort
SELECT ALL - 13 * col1 AS col0 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT ALL col2 * + cor0.col2 AS col0 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT cor0.col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7013
SELECT cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( 27 AS REAL ) * col0 col2 FROM tab1 cor0
----
-17280
-2106
-28080
query I rowsort
SELECT ALL col0 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * col0 + col2 * - col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT ALL - - col1 + ( ( + cor0.col0 ) ) * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - - col1 + ( ( + cor0.col0 ) ) * col0 / col0 AS col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col1 * + 12 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT - col0 + cor0.col1 * 38 AS col2 FROM tab1 AS cor0
----
316
414
985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT col1 * col0 + CAST( NULL AS SIGNED ) * col2 + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7021
SELECT col1 * col0 + CAST ( NULL AS INTEGER ) * col2 + tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 + col2 col0 FROM tab0
----
147
66
98
query I rowsort
SELECT 75 - col2 AS col0 FROM tab1
----
-21
18
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT + col1 * + col2 DIV col2 + + col1 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-7024
SELECT + col1 * + col2 / col2 + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col2 * + col1 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT col1 + col2 * col1 * - ( 52 ) + tab2.col0 FROM tab2
----
-33496
-43486
-79631
query I rowsort
SELECT DISTINCT + 4 AS col0 FROM tab1
----
4
query I rowsort
SELECT - - 79 + + tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f99c7a3966f5f277edba726012984663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + + col1 col2 FROM tab1
----
-20
-33
-36
query I rowsort
SELECT DISTINCT + col0 * col1 + + 43 AS col2 FROM tab2 AS cor0
----
1386
260
4645
query I rowsort
SELECT DISTINCT - - ( - col2 ) * 72 AS col0 FROM tab0 cor0
----
-2376
-5904
-72
query I rowsort
SELECT DISTINCT - - col2 + col1 * col1 AS col0 FROM tab0 cor0
----
7429
8363
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7033
SELECT - col2 * + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7033
SELECT - col2 * + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - col1 + - tab1.col1 * col2 AS col0 FROM tab1
----
-1341
-1433
-644
query I rowsort
SELECT - col0 * + 43 AS col2 FROM tab1
----
-129
-2752
-3440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT DISTINCT tab0.col1 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT tab0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7037
SELECT + col0 DIV 72 AS col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7037
SELECT + col0 / 72 AS col0 FROM tab1
----
0
0
1
query I rowsort
SELECT col2 * - col1 * - col2 FROM tab2
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 + CAST ( + col1 AS REAL ) * col0 * - ( col0 ) FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT ALL + + col0 + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT + col2 DIV - col1 - + ( col2 ) FROM tab1 AS cor0
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-7041
SELECT + col2 / - col1 - + ( col2 ) FROM tab1 AS cor0
----
-103
-56
-62
query I rowsort
SELECT ALL - col0 + + ( + 55 * col2 ) + + ( - 58 * - col1 ) FROM tab0
----
5646
6779
9699
query I rowsort
SELECT ALL - - col1 * + 84 + - col2 AS col0 FROM tab2 AS cor0
----
1390
2577
4930
query I rowsort
SELECT col2 * - 77 AS col1 FROM tab1 AS cor0
----
-4158
-4389
-7392
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7045
SELECT DISTINCT CAST( + 88 AS SIGNED ) * col1 + col2 - - 53 AS col0 FROM tab2 AS cor0
----
1587
2808
5271
skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT CAST ( + 88 AS INTEGER ) * col1 + col2 - - 53 AS col0 FROM tab2 AS cor0
----
1587
2808
5271
onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT DISTINCT + 53 + - col2 DIV col0 col0 FROM tab0 AS cor0
----
52
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT + 53 + - col2 / col0 col0 FROM tab0 AS cor0
----
52
53
query I rowsort
SELECT ALL - - col1 * 12 FROM tab0 cor0
----
1032
1092
1164
query I rowsort
SELECT - cor0.col1 + 25 FROM tab2 AS cor0
----
-34
-6
8
query I rowsort
SELECT - ( cor0.col2 ) * col0 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT - + 25 FROM tab2, tab2 cor0, tab1, tab0 AS cor1
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8
query I rowsort
SELECT ALL col0 * - cor0.col0 * + col0 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
-10986
-42778
-697507
query I rowsort
SELECT + col1 + + col0 + + col2 AS col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT - 75 + col2 AS col1 FROM tab0 AS cor0
----
-42
-74
7
query I rowsort
SELECT + 85 AS col1 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ( col0 ) * col2 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + col2 + - tab0.col2 AS col2 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7057
SELECT + CAST( 81 AS SIGNED ) * + col1 - - CAST( - 46 + col0 AS SIGNED ) FROM tab2 AS cor0
----
1410
2472
4811
skipif mysql # not compatible
query I rowsort label-7057
SELECT + CAST ( 81 AS INTEGER ) * + col1 - - CAST ( - 46 + col0 AS INTEGER ) FROM tab2 AS cor0
----
1410
2472
4811
query I rowsort
SELECT DISTINCT + ( - tab0.col2 ) * col0 * + 96 FROM tab0
----
-3360
-700608
-76032
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE ( NULL ) <> ( NULL )
----
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT + 8 + - col1 + - col2 DIV 34 FROM tab0 AS cor0
----
-78
-85
-89
skipif mysql # not compatible
query I rowsort label-7061
SELECT + 8 + - col1 + - col2 / 34 FROM tab0 AS cor0
----
-78
-85
-89
query I rowsort
SELECT 86 - + 97 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT + + 86 * - col0 + + 23 + + col0 FROM tab2 cor0
----
-572
-6607
-6692
query I rowsort
SELECT + 12 + col1 * 99 AS col1 FROM tab0 AS cor0
----
8526
9021
9615
query I rowsort
SELECT + + 77 * col2 * col1 + - col1 FROM tab2 AS cor0
----
118059
49725
64418
query I rowsort
SELECT + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col2 + col2 col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-7069
SELECT col0 DIV 85 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7069
SELECT col0 / 85 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col1 ) + - ( - col0 ) + col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL + ( - col0 ) + - ( 48 ) FROM tab0 AS cor0
----
-137
-72
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT - + col2 DIV 43 AS col0 FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7072
SELECT - + col2 / 43 AS col0 FROM tab0 cor0
----
-1
0
0
query I rowsort
SELECT ALL cor0.col1 * 22 FROM tab1 AS cor0
----
220
286
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT col0 * 85 DIV col2 FROM tab1 AS cor0
----
4
70
95
skipif mysql # not compatible
query I rowsort label-7074
SELECT col0 * 85 / col2 FROM tab1 AS cor0
----
4
70
95
query I rowsort
SELECT col2 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT ALL col1 DIV - col2 + 41 AS col2 FROM tab0 AS cor0
----
-56
39
40
skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL col1 / - col2 + 41 AS col2 FROM tab0 AS cor0
----
-56
39
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT col1 DIV - col0 + + col1 DIV 35 col0 FROM tab2
----
-4
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7077
SELECT col1 / - col0 + + col1 / 35 col0 FROM tab2
----
-4
0
1
query I rowsort
SELECT ALL col2 + + 66 AS col1 FROM tab2
----
104
92
93
query I rowsort
SELECT 26 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT cor0.col1 * + col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * col0 + - col0 FROM tab1 AS cor0
----
233408
483
614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT DISTINCT col1 * + col1 DIV - ( cor0.col1 ) + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-7082
SELECT DISTINCT col1 * + col1 / - ( cor0.col1 ) + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + ( cor0.col2 ) FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + 45 * col2 AS col0 FROM tab1 cor0
----
2430
2565
4320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7085
SELECT col0 * - col2 * CAST( col2 * - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1370928
137781
4334888
skipif mysql # not compatible
query I rowsort label-7085
SELECT col0 * - col2 * CAST ( col2 * - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1370928
137781
4334888
query I rowsort
SELECT ALL + col0 * - cor0.col2 * 54 FROM tab2 AS cor0
----
-10206
-109512
-162108
onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT + ( + col1 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7087
SELECT + ( + col1 ) / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL col1 + 77 AS col0 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT col0 * 98 * ( col1 + - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + - col1 * 91 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + + 83 AS col0 FROM tab2 AS cor0
----
161
162
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + - cor0.col0 - col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + - cor0.col0 - col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col1 * 21 + cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
3858
708
7953
query I rowsort
SELECT DISTINCT - col1 * - tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 8 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - col1 + ( + col0 * col0 ) FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL + col2 + + 88 FROM tab1 cor0
----
142
145
184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7101
SELECT + + CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7101
SELECT + + CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7102
SELECT ALL - + CAST( col1 AS SIGNED ) + col0 * + 9 FROM tab2 cor0
----
32
643
694
skipif mysql # not compatible
query I rowsort label-7102
SELECT ALL - + CAST ( col1 AS INTEGER ) + col0 * + 9 FROM tab2 cor0
----
32
643
694
query I rowsort
SELECT ALL 44 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-34
-596
-996
query I rowsort
SELECT + 13 * + col0 FROM tab1 AS cor0
----
1040
39
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT - + col2 + + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-7105
SELECT - + col2 + + col1 / - col0 AS col0 FROM tab1 AS cor0
----
-57
-62
-96
query I rowsort
SELECT - 24 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT ALL + 88 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT - 11 FROM tab2, tab0 AS cor0
----
-11
query I rowsort
SELECT DISTINCT - ( 57 ) * col2 AS col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT DISTINCT - 70 DIV col0 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT - 70 / col0 FROM tab0 AS cor0
----
-2
0
query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + + col0 + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ( col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL ( 64 ) * - col2 + + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
-3008
-3378
-5104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT DISTINCT + col1 DIV 68 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + col1 / 68 + - cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col1 + col1 + col2 FROM tab0
----
195
205
264
onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT DISTINCT - col2 + col1 DIV ( + col2 + col0 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT - col2 + col1 / ( + col2 + col0 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + 17 + col2 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT - + 5 * - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
412
449
66
query I rowsort
SELECT 74 + - col1 AS col2 FROM tab2
----
15
43
57
query I rowsort
SELECT - - col0 * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT 27 + + col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
28
29
30
skipif mysql # not compatible
query I rowsort label-7122
SELECT 27 + + col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
28
29
30
query I rowsort
SELECT ALL + 47 AS col1 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
242
3715
7789
query I rowsort
SELECT - + col2 + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7126
SELECT DISTINCT - ( col2 ) DIV + col2 + col2 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT - ( col2 ) / + col2 + col2 AS col0 FROM tab0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * 34 + col2 + + tab1.col2 col0 FROM tab1
----
1128
1134
1212
query I rowsort
SELECT ALL 96 * col0 + col1 FROM tab1
----
314
6154
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT CAST( + 39 AS SIGNED ) * - col1 AS col0 FROM tab0
----
-3354
-3549
-3783
skipif mysql # not compatible
query I rowsort label-7129
SELECT CAST ( + 39 AS INTEGER ) * - col1 AS col0 FROM tab0
----
-3354
-3549
-3783
query I rowsort
SELECT DISTINCT col0 + ( col0 ) FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + 89 * tab2.col2 * col1 + + col1 FROM tab2
----
136585
57511
74524
query I rowsort
SELECT col1 + col1 * + col2 AS col2 FROM tab0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7133
SELECT + CAST( NULL AS SIGNED ) * + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7133
SELECT + CAST ( NULL AS INTEGER ) * + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 54 ) * - col2 + - col0 FROM tab0
----
-1806
-4517
-89
query I rowsort
SELECT 69 * + col1 FROM tab0
----
5934
6279
6693
query I rowsort
SELECT - col2 + + col0 * col2 AS col1 FROM tab1
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT ALL + cor0.col0 * col2 DIV - col1 + - col1 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-3541
-503
-994
skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + cor0.col0 * col2 / - col1 + - col1 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
-3541
-503
-994
query I rowsort
SELECT DISTINCT + col0 - col0 AS col2 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7139
SELECT DISTINCT - col0 DIV col0 + col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - col0 / col0 + col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col2 col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - 36 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 - + col0 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT - 80 + + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
-70
query I rowsort
SELECT ALL 54 * - col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-7145
SELECT - col2 DIV ( col2 ) + col1 AS col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7145
SELECT - col2 / ( col2 ) + col1 AS col2 FROM tab1
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT - col1 + - col0 DIV - col1 AS col2 FROM tab2
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-7146
SELECT - col1 + - col0 / - col1 AS col2 FROM tab2
----
-13
-31
-58
query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT ALL + col1 * ( + col2 ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - col0 * - col1 - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + ( col1 ) * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col2 - - 42 AS col0 FROM tab1 AS cor0
----
138
96
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT DISTINCT + 9 DIV - col0 + col2 AS col2 FROM tab2
----
26
38
skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT + 9 / - col0 + col2 AS col2 FROM tab2
----
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + + col1 * - tab1.col0 col1 FROM tab1
----
-540
-871
598
query I rowsort
SELECT ALL tab1.col0 + + 38 AS col2 FROM tab1
----
102
118
41
query I rowsort
SELECT + 84 * + 63 + col1 AS col0 FROM tab0 AS cor0
----
5378
5383
5389
query I rowsort
SELECT ALL 32 * 99 FROM tab2 AS cor0
----
3168
3168
3168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7158
SELECT - CAST( col0 AS SIGNED ) - - col1 * + col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif mysql # not compatible
query I rowsort label-7158
SELECT - CAST ( col0 AS INTEGER ) - - col1 * + col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7160
SELECT DISTINCT - + CAST( 80 AS SIGNED ) * col0 * - col2 FROM tab0 AS cor0
----
2800
583840
63360
skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT - + CAST ( 80 AS INTEGER ) * col0 * - col2 FROM tab0 AS cor0
----
2800
583840
63360
query I rowsort
SELECT ALL + + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL + ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - 38 - + col0 AS col2 FROM tab0 cor0
----
-127
-62
-73
query I rowsort
SELECT - - 92 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT DISTINCT + - col2 * 68 + - col1 FROM tab0 AS cor0
----
-165
-2330
-5667
query I rowsort
SELECT - - ( - col0 ) * cor0.col2 - - col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + col2 + - 11 FROM tab2 AS cor0
----
15
16
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - 21 ) + - cor0.col2 * cor0.col0 col2 FROM tab0 AS cor0
----
-1485
-56
-9020
query I rowsort
SELECT + col0 + col1 * col1 * cor0.col2 - + 62 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
-286624
-375881
22916
query I rowsort
SELECT - col0 * - col2 + + col2 + col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT col1 + 5 AS col1 FROM tab2 AS cor0
----
22
36
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7172
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - ( + 95 ) AS col1 FROM tab0
----
-8170
-8645
-9215
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7174
SELECT CAST( NULL AS SIGNED ) + col0 * + col0 / - 29 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7174
SELECT CAST ( NULL AS INTEGER ) + col0 * + col0 / - 29 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7175
SELECT CAST( NULL AS DECIMAL ) + - 52 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7175
SELECT CAST ( NULL AS REAL ) + - 52 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7176
SELECT DISTINCT col2 DIV col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT col2 / col1 AS col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT DISTINCT col1 DIV ( 14 * tab0.col1 ) col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT col1 / ( 14 * tab0.col1 ) col2 FROM tab0
----
0
query I rowsort
SELECT col1 + + col2 * tab2.col2 AS col0 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL - 60 AS col2 FROM tab0
----
-60
-60
-60
query I rowsort
SELECT - + col2 + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL - 79 FROM tab2, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7182
SELECT DISTINCT + col1 + col1 DIV - col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + col1 + col1 / - col1 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT ( + col1 ) * ( col1 ) + + col1 FROM tab0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7184
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7184
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT DISTINCT tab0.col2 DIV - col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT tab0.col2 / - col1 + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT DISTINCT + col0 DIV col2 + col2 * + 28 AS col0 FROM tab1
----
1512
1597
2688
skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + col0 / col2 + col2 * + 28 AS col0 FROM tab1
----
1512
1597
2688
query I rowsort
SELECT + 57 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - 24 AS col2 FROM tab2
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT + 76 DIV col2 AS col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7191
SELECT + 76 / col2 AS col0 FROM tab1
----
0
1
1
query I rowsort
SELECT 37 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT ALL + cor0.col2 DIV + 45 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + cor0.col2 / + 45 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - ( - col0 ) * - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-118922
-49622
-720902
query I rowsort
SELECT + 32 - - col2 AS col2 FROM tab1
----
128
86
89
query I rowsort
SELECT DISTINCT col1 - tab0.col1 * tab0.col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT col0 * ( - col1 ) + col0 * - col1 - - col0 FROM tab1
----
-1216
-153
-2000
query I rowsort
SELECT ALL col0 - ( - col1 ) FROM tab1
----
29
74
93
query I rowsort
SELECT col1 * + 24 FROM tab1
----
240
312
624
query I rowsort
SELECT - - col0 * - ( - col2 ) - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + + cor0.col0 * ( + col2 * col2 ) + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-9374
18740
590155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7202
SELECT DISTINCT - ( - tab2.col0 ) * CAST( 34 AS SIGNED ) - tab2.col1 AS col0 FROM tab2, tab1 cor0
----
207
2593
2669
skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT - ( - tab2.col0 ) * CAST ( 34 AS INTEGER ) - tab2.col1 AS col0 FROM tab2, tab1 cor0
----
207
2593
2669
onlyif mysql # use DIV operator for integer division
query I rowsort label-7203
SELECT - - ( + col0 ) DIV col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7203
SELECT - - ( + col0 ) / col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + - 63 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
40320
4914
65520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col2 FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - 29 + col0 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT + col2 + - 65 AS col2 FROM tab2
----
-27
-38
-39
query I rowsort
SELECT - - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL col1 + + col2 + - col1 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - 92 - tab0.col0 FROM tab0
----
-116
-127
-181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7214
SELECT CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7214
SELECT CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + col2 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT + ( col1 ) - - tab2.col0 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT 40 + 34 FROM tab2
----
74
query I rowsort
SELECT + 69 FROM tab0, tab1 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL + 31 - - col1 FROM tab0 AS cor0
----
117
122
128
query I rowsort
SELECT DISTINCT 89 * col0 AS col1 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ALL col2 + - col1 * - 4 FROM tab0 cor0
----
377
389
446
query I rowsort
SELECT + ( - col2 ) + 8 * - ( col2 ) FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT ALL col1 * col0 * - 22 + + 19 * col1 * + 5 AS col2 FROM tab1 AS cor0
----
-13130
-21645
754
query I rowsort
SELECT + 74 * + col2 AS col2 FROM tab0 AS cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT - 65 * - col0 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT DISTINCT col0 + col1 * 23 FROM tab1 AS cor0
----
294
379
601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7227
SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( + col2 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( + col2 ) FROM tab1
----
NULL
query I rowsort
SELECT ALL - + 60 FROM tab0 cor0
----
-60
-60
-60
query I rowsort
SELECT + - 94 * + cor0.col0 + - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-204
-5376
-6480
query I rowsort
SELECT col2 + + cor0.col0 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - + col2 - + ( cor0.col2 * - col1 + - col0 ) AS col1 FROM tab0 AS cor0
----
131
2829
7469
query I rowsort
SELECT ALL col2 * - col2 + - 50 FROM tab1 AS cor0
----
-2966
-3299
-9266
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7233
SELECT DISTINCT + + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + 54 * - col0 FROM tab2 AS cor0
----
-347
-4153
-4249
query I rowsort
SELECT ALL + + col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - + col2 + + cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 * - cor0.col2 - - col2 * col0 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT + col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * 35 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 0 * - cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 83 FROM tab2 AS cor0
----
83
83
83
query I rowsort
SELECT - ( - col1 ) + + col0 - - col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL 7 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to eb8e4907382073cf46d4e4e322830309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL tab1.col2 * col2 - - col0 FROM tab1
----
2919
3313
9296
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT ALL + 71 * 84 FROM tab0 AS cor0
----
5964
5964
5964
query I rowsort
SELECT ALL ( col1 ) + col0 + col1 * - col1 FROM tab0 AS cor0
----
-7286
-8101
-9277
query I rowsort
SELECT - - cor0.col2 + + 42 + + col2 * col0 FROM tab1 AS cor0
----
258
3747
7818
query I rowsort
SELECT DISTINCT - - col2 * - ( - col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7252
SELECT DISTINCT + ( col0 ) * col0 / + CAST( NULL AS SIGNED ) + - 50 * col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT + ( col0 ) * col0 / + CAST ( NULL AS INTEGER ) + - 50 * col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + - 34 AS col2 FROM tab2 AS cor0
----
-34
query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0 cor0
----
1
query I rowsort
SELECT - ( cor0.col1 ) - cor0.col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - ( col0 ) - col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - cor0.col1 + col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - + col0 * 37 + col2 FROM tab1 AS cor0
----
-2311
-2864
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7260
SELECT CAST( col1 AS SIGNED ) + col2 * 64 col2 FROM tab0 AS cor0
----
161
2198
5339
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7260
SELECT CAST ( col1 AS INTEGER ) + col2 * 64 col2 FROM tab0 AS cor0
----
161
2198
5339
query I rowsort
SELECT ALL + + col2 * + cor0.col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT ALL - CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
-31
-31
-31
skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL - CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
-31
-31
-31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT - - CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7263
SELECT - - CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 44 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-118
-3604
-7636
onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT DISTINCT + + CAST( + ( col1 ) AS SIGNED ) DIV + col1 - - col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7265
SELECT DISTINCT + + CAST ( + ( col1 ) AS INTEGER ) / + col1 - - col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + 29 + 30 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT + + ( cor0.col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + cor0.col1 * col0 + ( - col2 * cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7270
SELECT - CAST( NULL AS DECIMAL ) + + tab1.col1 * col1 * col2 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7270
SELECT - CAST ( NULL AS REAL ) + + tab1.col1 * col1 * col2 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 82 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT - ( 46 ) + - tab0.col0 FROM tab0
----
-135
-70
-81
query I rowsort
SELECT ALL - + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7275
SELECT DISTINCT - - col1 DIV col2 + + ( + cor0.col0 ) * 61 AS col0 FROM tab1 cor0
----
183
3904
4880
skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT - - col1 / col2 + + ( + cor0.col0 ) * 61 AS col0 FROM tab1 cor0
----
183
3904
4880
query I rowsort
SELECT col1 * col0 + + col2 * col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1
----
24
query I rowsort
SELECT 48 * cor1.col0 * - tab2.col0 FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 999cf875a5cda794d6ee39ad829016af
onlyif mysql # use DIV operator for integer division
query I rowsort label-7279
SELECT DISTINCT + + col0 + + ( col2 ) + col1 DIV cor0.col0 FROM tab0 AS cor0
----
172
38
60
skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + + col0 + + ( col2 ) + col1 / cor0.col0 FROM tab0 AS cor0
----
172
38
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7280
SELECT col1 + + CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-7280
SELECT col1 + + CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL - cor0.col1 + + 74 FROM tab2 AS cor0
----
15
43
57
query I rowsort
SELECT col1 + col1 * - col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - col2 + 55 * + col1 FROM tab0 AS cor0
----
4697
4923
5334
onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT DISTINCT - + col0 DIV + col1 + col1 * - cor0.col0 * + 70 FROM tab1 AS cor0
----
-44806
-5460
-72806
skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - + col0 / + col1 + col1 * - cor0.col0 * + 70 FROM tab1 AS cor0
----
-44806
-5460
-72806
query I rowsort
SELECT - col1 FROM tab0 WHERE NOT col1 NOT IN ( tab0.col1 + + col0 )
----
query I rowsort
SELECT - col1 * col0 * col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + tab2.col0 * + col1 + - col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT + cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col1 * col0 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - + col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * + col1 - + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + col1 - col2 FROM tab1 AS cor0 WHERE ( - col0 / col2 ) IN ( col2 + col1 )
----
query I rowsort
SELECT + col2 - + col0 * - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT + cor0.col2 * - cor0.col2 + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-6760
-7685
-778
query I rowsort
SELECT - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - col2 * + col1 * col1 + col2 AS col0 FROM tab1
----
-16128
-36450
-5643
query I rowsort
SELECT ALL + tab0.col0 + + col2 AS col0 FROM tab0
----
171
36
57
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IN ( + cor0.col1 )
----
query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab2 WHERE NULL NOT IN ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( cor0.col0 ) IN ( + cor0.col2 + + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + - cor0.col2 + col1 * cor0.col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - cor0.col1 * + col1 + col1 * col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT - ( col0 ) * tab2.col2 DIV - col1 + - tab2.col2 FROM tab2
----
-21
138
8
skipif mysql # not compatible
query I rowsort label-7310
SELECT - ( col0 ) * tab2.col2 / - col1 + - tab2.col2 FROM tab2
----
-21
138
8
query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab1
----
19
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab1, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col0 * tab0.col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT cor0.col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * - col2 + col1 * + col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT - col1 * + col2 + col0 FROM tab1
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7318
SELECT ALL + col1 * col1 * + CAST( NULL AS SIGNED ) - 39 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL + col1 * col1 * + CAST ( NULL AS INTEGER ) - 39 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col2 AS col0 FROM tab0 WHERE NULL >= NULL
----
query I rowsort
SELECT + tab2.col0 - + col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT DISTINCT 50 DIV col0 + 78 AS col1 FROM tab1 AS cor0
----
78
94
skipif mysql # not compatible
query I rowsort label-7322
SELECT DISTINCT 50 / col0 + 78 AS col1 FROM tab1 AS cor0
----
78
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 92 * col2 col2 FROM tab2 AS cor0
----
2451
2515
3513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT DISTINCT col2 - 4 DIV + 61 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT col2 - 4 / + 61 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 81 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col2 FROM tab1
----
2
2
2
query I rowsort
SELECT - 40 AS col1 FROM tab2
----
-40
-40
-40
query I rowsort
SELECT + 12 AS col2 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT ALL col0 DIV col1 + col0 * + col1 col0 FROM tab1
----
1046
646
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL col0 / col1 + col0 * + col1 col0 FROM tab1
----
1046
646
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7331
SELECT - col2 + - col0 DIV + tab2.col0 AS col2 FROM tab2
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-7331
SELECT - col2 + - col0 / + tab2.col0 AS col2 FROM tab2
----
-27
-28
-39
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - col0 * col2 ) AND col2 + - col1 + - col2
----
query I rowsort
SELECT - col2 + + col2 - + col0 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + col2 + + col2 * col1 FROM tab2 WHERE NOT NULL IN ( col1 + + col1 * + tab2.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT DISTINCT col2 DIV col0 + + col2 DIV - col1 AS col1 FROM tab1
----
-5
-6
16
skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT col2 / col0 + + col2 / - col1 AS col1 FROM tab1
----
-5
-6
16
query I rowsort
SELECT ALL - col0 + + tab0.col1 * col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 + col2 FROM tab0 WHERE ( NULL ) BETWEEN col0 AND NULL
----
query I rowsort
SELECT col2 * col0 + + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT - tab1.col1 + col2 * - col2 AS col0 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT col2 * tab0.col1 + - col0 FROM tab0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT ALL tab1.col2 + - col1 DIV col2 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL tab1.col2 + - col1 / col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1 + + col0 / - col1
----
query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab2.col1 + tab2.col0 * col2 AS col2 FROM tab2
----
2087
220
3019
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 > col1 - + col0 * col2
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 + - tab0.col2 )
----
query I rowsort
SELECT DISTINCT col2 + - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL - tab2.col1 * + col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 * col1 * - col1 FROM tab0
----
-636056
-753571
-912673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 col1 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT DISTINCT + - col0 DIV ( col0 ) FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + - col0 / ( col0 ) FROM tab2 AS cor0
----
-1
query I rowsort
SELECT col2 * - ( 67 ) FROM tab2 AS cor0
----
-1742
-1809
-2546
onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT ALL + - col2 + - col2 DIV - col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL + - col2 + - col2 / - col2 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT - + col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 51 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7357
SELECT ALL + col0 - + CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + col0 - + CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 43 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL col0 + - 79 + + col2 * col1 FROM tab2
----
1533
646
765
onlyif mysql # use DIV operator for integer division
query I rowsort label-7360
SELECT DISTINCT col2 + 15 DIV tab1.col1 FROM tab1
----
54
58
97
skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT col2 + 15 / tab1.col1 FROM tab1
----
54
58
97
query I rowsort
SELECT DISTINCT + col1 * col0 + 32 AS col2 FROM tab1
----
1072
110
672
onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT ALL col1 + 88 DIV + 21 FROM tab2
----
21
35
63
skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL col1 + 88 / + 21 FROM tab2
----
21
35
63
query I rowsort
SELECT ALL - + col2 + ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col1 + - 23 + - col0 AS col0 FROM tab0
----
-21
39
39
query I rowsort
SELECT - + cor0.col0 * col0 - 69 AS col1 FROM tab1 AS cor0
----
-4165
-6469
-78
query I rowsort
SELECT DISTINCT + cor1.col1 * + 31 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1829
527
961
query I rowsort
SELECT + col1 - + 32 * col1 FROM tab1
----
-310
-403
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col1 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 88 col2 FROM tab1 AS cor0
----
-264
-5632
-7040
query I rowsort
SELECT DISTINCT - cor0.col2 * 14 FROM tab2, tab1, tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT ALL ( 87 + col0 ) * col0 AS col0 FROM tab1
----
13360
270
9664
query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col0 * + col1 - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL ( cor0.col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT DISTINCT - - ( + col1 ) + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT - - ( + col1 ) + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 9 + - col2 - - 17 * - 81 AS col2 FROM tab1 AS cor0
----
-1422
-1425
-1464
query I rowsort
SELECT + + 91 * + col2 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT ALL + col1 + col2 * + col2 * + col0 AS col2 FROM tab2 AS cor0
----
114093
5134
52787
onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT ALL - - 43 + + col2 + - 93 DIV col2 FROM tab1 AS cor0
----
139
96
99
skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - - 43 + + col2 + - 93 / col2 FROM tab1 AS cor0
----
139
96
99
query I rowsort
SELECT ALL + col2 * col0 + - ( + col1 ) FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - 78 + col1 * - ( + 26 ) FROM tab1 AS cor0
----
-338
-416
-754
query I rowsort
SELECT ALL + 35 * - col1 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT DISTINCT - 35 + col0 FROM tab1 cor0
----
-32
29
45
query I rowsort
SELECT DISTINCT col0 * + col1 - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT - 17 FROM tab0, tab1, tab0 AS cor0
----
-17
query I rowsort
SELECT + ( - tab1.col0 * ( + col0 ) ) + - tab1.col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT - col2 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7389
SELECT - col2 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT ALL col1 * col0 * + CAST( 20 AS SIGNED ) col2 FROM tab1 AS cor0
----
12800
1560
20800
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL col1 * col0 * + CAST ( 20 AS INTEGER ) col2 FROM tab1 AS cor0
----
12800
1560
20800
query I rowsort
SELECT ALL - 3 * - cor0.col1 FROM tab1 cor0
----
30
39
78
query I rowsort
SELECT 56 * - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-229376
-358400
-504
query I rowsort
SELECT DISTINCT col1 * 42 + - col0 FROM tab0 AS cor0
----
3588
3733
4039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + col1 col0 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT + + col1 * 4 + + col1 AS col1 FROM tab0 AS cor0
----
430
455
485
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7396
SELECT DISTINCT + + col1 + CAST( NULL AS SIGNED ) * - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT + + col1 + CAST ( NULL AS INTEGER ) * - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + - 66 col2 FROM tab2 cor0
----
-59
12
13
query I rowsort
SELECT ALL - col1 * - ( - ( + col0 ) ) + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 65 col1 FROM tab2 cor0
----
34
48
6
query I rowsort
SELECT + - col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 * cor0.col1 * 95 AS col1 FROM tab1 AS cor0
----
16055
64220
9500
query I rowsort
SELECT - col1 + tab2.col1 * 9 FROM tab2
----
136
248
472
query I rowsort
SELECT ALL - col2 * - col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 + tab2.col2 * ( + 57 + col0 ) AS col0 FROM tab2
----
1735
3588
5247
query I rowsort
SELECT col1 * 27 * col0 FROM tab0 AS cor0
----
218673
55728
91665
query I rowsort
SELECT cor0.col2 * 93 AS col1 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT DISTINCT + cor0.col0 * 90 AS col1 FROM tab0 cor0
----
2160
3150
8010
query I rowsort
SELECT DISTINCT - - 71 * col1 FROM tab2 cor0
----
1207
2201
4189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 col1 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL - col0 DIV col1 + + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - col0 / col1 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 60 + - 20 FROM tab0 cor0
----
40
query I rowsort
SELECT ALL - col2 + col2 * - col1 AS col2 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT - - col2 * cor0.col0 + + col1 * + ( - col0 ) FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + 72 + - col0 AS col2 FROM tab2 AS cor0
----
-6
-7
65
query I rowsort
SELECT DISTINCT + 82 + col0 AS col1 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT + - 2 AS col1 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT col2 * - CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab1
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-7419
SELECT col2 * - CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - 50 * - 16 * - col1 FROM tab0 cor0
----
-68800
-72800
-77600
query I rowsort
SELECT DISTINCT + + ( - col0 ) + + col2 * 85 AS col2 FROM tab2 AS cor0
----
2132
2288
3151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * col2 col2 FROM tab1 AS cor0
----
4104
4332
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT + CAST( NULL AS SIGNED ) + col0 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-7423
SELECT + CAST ( NULL AS INTEGER ) + col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7424
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 + CAST( NULL AS SIGNED ) * - 11 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 + CAST ( NULL AS INTEGER ) * - 11 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 93 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
query I rowsort
SELECT + ( col0 ) * - ( + 4 ) FROM tab0 AS cor0
----
-140
-356
-96
query I rowsort
SELECT + tab2.col0 - - col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col0 * col0 + 54 AS col1 FROM tab2 AS cor0
----
103
6138
6295
query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7430
SELECT + CAST( 16 AS SIGNED ) * + col0 AS col2 FROM tab2 AS cor0
----
112
1248
1264
skipif mysql # not compatible
query I rowsort label-7430
SELECT + CAST ( 16 AS INTEGER ) * + col0 AS col2 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT DISTINCT tab0.col1 * 49 AS col0 FROM tab0
----
4214
4459
4753
query I rowsort
SELECT DISTINCT + 58 * + ( + col2 ) * col0 FROM tab1
----
211584
445440
9396
query I rowsort
SELECT DISTINCT + 96 FROM tab1
----
96
query I rowsort
SELECT ( - 73 ) FROM tab2
----
-73
-73
-73
query I rowsort
SELECT - - col0 * - 10 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT - cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT 49 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT + tab2.col1 + col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT DISTINCT col0 * - tab0.col2 DIV + col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT col0 * - tab0.col2 / + col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT + 34 FROM tab2 cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT ALL col2 + cor0.col1 DIV - 16 AS col0 FROM tab1 AS cor0
----
53
57
96
skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL col2 + cor0.col1 / - 16 AS col0 FROM tab1 AS cor0
----
53
57
96
query I rowsort
SELECT ALL - col2 + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL - 19 * + tab1.col2 FROM tab1
----
-1026
-1083
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * cor1.col0 * - cor0.col2 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 91bad642b4628eeed410c5ca3b756426
query I rowsort
SELECT - col2 * - ( 55 ) AS col1 FROM tab1 AS cor0
----
2970
3135
5280
query I rowsort
SELECT + col2 * ( + col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col2 * - 39 AS col2 FROM tab0 cor0
----
-1287
-3198
-39
query I rowsort
SELECT DISTINCT col1 + - 60 AS col0 FROM tab1
----
-34
-47
-50
query I rowsort
SELECT + cor0.col2 * col0 + 83 AS col2 FROM tab0 cor0
----
118
7381
875
query I rowsort
SELECT - + col2 + ( - 57 ) AS col0 FROM tab0 AS cor0
----
-139
-58
-90
query I rowsort
SELECT - col1 + - 41 * ( col2 ) AS col0 FROM tab0 cor0
----
-138
-1439
-3453
query I rowsort
SELECT DISTINCT - - col0 * - 41 AS col0 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT - col2 * 96 + 34 * col0 FROM tab1 AS cor0
----
-3296
-5082
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7454
SELECT - col0 * - CAST( NULL AS DECIMAL ) + - 30 * + col2 + - ( col2 ) * + col0 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7454
SELECT - col0 * - CAST ( NULL AS REAL ) + - 30 * + col2 + - ( col2 ) * + col0 * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7455
SELECT ALL - CAST( + col1 AS SIGNED ) * + cor0.col2 * - col2 + 29 FROM tab1 AS cor0
----
119837
32519
75845
skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL - CAST ( + col1 AS INTEGER ) * + cor0.col2 * - col2 + 29 FROM tab1 AS cor0
----
119837
32519
75845
query I rowsort
SELECT ALL + 9 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT + 8 + + col1 + + col2 FROM tab0 cor0
----
106
127
181
query I rowsort
SELECT ALL + col2 * - col0 + - col0 * + ( - col0 ) FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT DISTINCT cor0.col2 * - 72 AS col1 FROM tab2 AS cor0
----
-1872
-1944
-2736
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 67 AS REAL ) + cor1.col0 FROM tab2, tab2 cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 6c23453ae76362482d2823ca90c8afb2
query I rowsort
SELECT + cor0.col0 * cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT - 9 * + 65 FROM tab1, tab1 AS cor0
----
9 values hashing to 02cb68f564b7cd99c799b2b237857bf5
query I rowsort
SELECT ALL - ( - 11 ) FROM tab2, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT 13 + + 85 AS col1 FROM tab0, tab1 AS cor0
----
98
query I rowsort
SELECT + - 87 * 60 * + col2 + ( - col0 ) * - col1 FROM tab1 AS cor0
----
-281802
-296900
-500080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab0 AS cor0
----
37
37
37
query I rowsort
SELECT 0 - col2 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT cor0.col2 DIV col0 + col2 - - cor0.col0 * - col1 FROM tab1 cor0
----
-583
-6
-943
skipif mysql # not compatible
query I rowsort label-7468
SELECT cor0.col2 / col0 + col2 - - cor0.col0 * - col1 FROM tab1 cor0
----
-583
-6
-943
query I rowsort
SELECT - col1 * - col2 - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + + 42 * + col2 - + col0 * col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-157092
-189
-235562
query I rowsort
SELECT ALL col1 * - col2 + + col1 AS col0 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - 36 col2 FROM tab1
----
-360
-468
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT DISTINCT + col0 * col0 + - col1 * col2 DIV col1 FROM tab0 AS cor0
----
1224
543
7839
skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT + col0 * col0 + - col1 * col2 / col1 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT - col2 * ( - 73 ) AS col1 FROM tab1 cor0
----
3942
4161
7008
query I rowsort
SELECT DISTINCT + 34 - col1 FROM tab1
----
21
24
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7476
SELECT DISTINCT ( tab1.col1 ) * + CAST( NULL AS SIGNED ) + col0 - - col2 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT ( tab1.col1 ) * + CAST ( NULL AS INTEGER ) + col0 - - col2 AS col0 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT + ( - col1 ) DIV - col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7477
SELECT + ( - col1 ) / - col2 AS col0 FROM tab0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT DISTINCT col1 * col1 - + tab2.col1 DIV - 93 FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT col1 * col1 - + tab2.col1 / - 93 FROM tab2
----
289
3481
961
query I rowsort
SELECT col2 + tab2.col0 + - col2 FROM tab2
----
7
78
79
query I rowsort
SELECT - 81 AS col1 FROM tab2
----
-81
-81
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-7481
SELECT ALL col2 * col1 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL col2 * col1 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
3
64
80
query I rowsort
SELECT ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col1 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - 30 FROM tab2 cor0
----
-30
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 92 AS REAL ) + + col1 FROM tab2 AS cor0
----
109
123
151
query I rowsort
SELECT ALL + col2 + ( col0 + col2 ) AS col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT ALL + 48 * - 3 FROM tab2, tab1 AS cor0
----
9 values hashing to 3676328d75056be335dcb8cc110835b4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0
query I rowsort
SELECT DISTINCT - cor1.col1 - 29 FROM tab0, tab0 cor0, tab1 AS cor1
----
-39
-42
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 12 ) + col1 * ( + cor0.col2 * - cor0.col1 + - ( - col1 ) ) col2 FROM tab2 AS cor0
----
-10681
-24974
-87013
query I rowsort
SELECT ALL - col2 * 95 + - col1 - 95 FROM tab2
----
-2624
-2691
-3722
query I rowsort
SELECT ALL col0 - - col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - 60 * - col2 - col2 AS col1 FROM tab0
----
1947
4838
59
query I rowsort
SELECT - ( + col2 ) - - 48 FROM tab2 AS cor0
----
10
21
22
query I rowsort
SELECT DISTINCT col2 * col2 + + 61 + 38 FROM tab2 AS cor0
----
1543
775
828
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 + + 35 * col1 FROM tab2 AS cor0
----
1241
1922
3599
query I rowsort
SELECT - ( col0 * + tab0.col0 ) + - 26 FROM tab0
----
-1251
-602
-7947
query I rowsort
SELECT 72 FROM tab2
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7500
SELECT col1 DIV 93 AS col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7500
SELECT col1 / 93 AS col0 FROM tab0
----
0
0
1
query I rowsort
SELECT - col0 * col1 - - col0 FROM tab2
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 22 + col2 col0 FROM tab1
----
277
382
626
query I rowsort
SELECT ALL + col1 * col2 - - col2 AS col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT DISTINCT col0 + 5 AS col1 FROM tab0 AS cor0
----
29
40
94
query I rowsort
SELECT col1 * - col2 * ( col0 ) AS col2 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7506
SELECT DISTINCT - col0 DIV + col1 - + 33 FROM tab2 AS cor0
----
-33
-34
-37
skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT - col0 / + col1 - + 33 FROM tab2 AS cor0
----
-33
-34
-37
query I rowsort
SELECT ALL + col2 * - ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 * - col2 + col2 FROM tab1
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7510
SELECT tab0.col0 * + tab0.col1 * - CAST( + col1 + col1 AS SIGNED ) FROM tab0
----
-1474018
-355008
-658630
skipif mysql # not compatible
query I rowsort label-7510
SELECT tab0.col0 * + tab0.col1 * - CAST ( + col1 + col1 AS INTEGER ) FROM tab0
----
-1474018
-355008
-658630
query I rowsort
SELECT - 15 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT col2 + - col2 * + col2 AS col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT ALL + col0 + col2 * - col1 AS col1 FROM tab0 cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT DISTINCT + cor0.col1 DIV - ( 91 ) AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + cor0.col1 / - ( 91 ) AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 + + 51 FROM tab1 AS cor0
----
-3
-45
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7516
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7516
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + 68 FROM tab0 AS cor0
----
103
157
92
query I rowsort
SELECT ALL tab2.col1 * cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a499c3357b32340ea4100b46ab6f11f6
query I rowsort
SELECT - ( 86 ) + + col2 FROM tab1 cor0
----
-29
-32
10
query I rowsort
SELECT 1 + + 19 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ( col2 ) + col0 * col0 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT ALL - 1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT col1 + - 32 * col0 FROM tab0
----
-1023
-2757
-682
query I rowsort
SELECT DISTINCT + col2 * + 88 FROM tab2
----
2288
2376
3344
query I rowsort
SELECT ALL col0 * tab0.col0 * - ( + col0 ) FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - + col2 + - 96 AS col1 FROM tab1 AS cor0
----
-150
-153
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT DISTINCT + - 89 * col2 - col0 DIV col0 FROM tab1 AS cor0
----
-4807
-5074
-8545
skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT + - 89 * col2 - col0 / col0 FROM tab1 AS cor0
----
-4807
-5074
-8545
query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 9 * + ( col1 ) + + 74 FROM tab1 AS cor0
----
-16
-160
-43
query I rowsort
SELECT ( col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 * + 36 AS col2 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT + col2 * cor0.col2 FROM tab0 cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 * col2 col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 76 FROM tab1 cor0
----
76
76
76
query I rowsort
SELECT DISTINCT col2 * + col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL + - col2 + - col2 + + col1 FROM tab1 AS cor0
----
-104
-179
-82
query I rowsort
SELECT DISTINCT + - 10 + col2 * + col1 * col0 FROM tab0 cor0
----
3385
664108
68102
query I rowsort
SELECT ALL - - 71 - 59 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT - ( - col2 ) * - col1 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT DISTINCT tab0.col1 * col2 DIV - CAST( - 36 AS SIGNED ) + + col2 * ( + 97 + col0 ) AS col0 FROM tab0
----
134
15459
4071
skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT tab0.col1 * col2 / - CAST ( - 36 AS INTEGER ) + + col2 * ( + 97 + col0 ) AS col0 FROM tab0
----
134
15459
4071
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 98 col2 FROM tab2 AS cor0
----
98
98
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT - 79 * col1 + CAST( col1 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-6675
-7016
-7565
skipif mysql # not compatible
query I rowsort label-7543
SELECT - 79 * col1 + CAST ( col1 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-6675
-7016
-7565
query I rowsort
SELECT + ( + tab0.col2 ) * + col0 + + col0 AS col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL col2 * - col1 + + 19 * - cor0.col1 AS col1 FROM tab2 cor0
----
-1426
-2655
-969
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - ( + col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + 99 * col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * + ( col1 ) AS col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7552
SELECT 52 + - col2 + CAST( NULL AS SIGNED ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7552
SELECT 52 + - col2 + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 2 * + cor0.col2 FROM tab2 AS cor0
----
52
54
76
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 49 * + col1 + + 65 + col1 AS col0 FROM tab2 AS cor0
----
1615
3015
915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 34 * - col2 + - col1 * - col1 col0 FROM tab2 AS cor0
----
22253
29419
55637
query I rowsort
SELECT 77 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL + + col1 * col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - + cor0.col0 + + col0 + 73 AS col0 FROM tab1 cor0
----
73
73
73
query I rowsort
SELECT DISTINCT + 84 + - col0 + ( - col1 ) FROM tab2 cor0
----
-12
-53
46
query I rowsort
SELECT DISTINCT 17 + col2 AS col1 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT - - cor0.col2 * col2 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( - 26 ) col1 FROM tab1
----
-23
38
54
query I rowsort
SELECT - 97 * col2 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-2503
-2643
-3624
query I rowsort
SELECT cor0.col0 + col2 * - col1 * - 15 FROM tab1 AS cor0
----
18800
21063
8614
query I rowsort
SELECT + col1 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL col1 + ( - col1 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7570
SELECT - ( col1 ) * - tab2.col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-205379
-29791
-4913
skipif mysql # not compatible
query I rowsort label-7570
SELECT - ( col1 ) * - tab2.col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col1 + 33 * col0 FROM tab2 AS cor0
----
200
2515
2590
query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2, tab2 AS cor0
----
65
query I rowsort
SELECT - - cor0.col0 * 25 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT DISTINCT col2 * col1 * - cor0.col0 - 47 AS col2 FROM tab2 AS cor0
----
-119699
-51081
-5906
query I rowsort
SELECT + ( + cor0.col1 ) * col1 - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7578
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 * + col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 * + col2 FROM tab2
----
NULL
query I rowsort
SELECT + + ( col0 ) + + col2 * ( col0 ) FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ( + cor0.col0 ) * + col2 FROM tab0 cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * cor0.col1 - - ( + 33 + col1 ) col0 FROM tab1 AS cor0
----
143
215
735
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
3
64
80
query I rowsort
SELECT col1 + col2 + col1 AS col1 FROM tab2
----
144
72
89
query I rowsort
SELECT DISTINCT col0 + - col1 AS col2 FROM tab0
----
-2
-62
query I rowsort
SELECT ALL + + col0 + col0 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT ALL + - 53 DIV cor0.col1 FROM tab1 cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL + - 53 / cor0.col1 FROM tab1 cor0
----
-2
-4
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT col1 * 25 FROM tab2 AS cor0
----
1475
425
775
onlyif mysql # use DIV operator for integer division
query I rowsort label-7589
SELECT col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7589
SELECT col1 / col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT 57 + 31 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT + 73 * + 64 - col0 FROM tab0 AS cor0
----
4583
4637
4648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7592
SELECT ALL - CAST( 15 AS SIGNED ) * col0 FROM tab0 cor0
----
-1335
-360
-525
skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL - CAST ( 15 AS INTEGER ) * col0 FROM tab0 cor0
----
-1335
-360
-525
onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT - - 14 DIV - col0 - col1 * 85 AS col2 FROM tab2 AS cor0
----
-1445
-2637
-5015
skipif mysql # not compatible
query I rowsort label-7593
SELECT - - 14 / - col0 - col1 * 85 AS col2 FROM tab2 AS cor0
----
-1445
-2637
-5015
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 14 * + col1 col2 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT + ( - 74 ) - + cor0.col2 FROM tab0 cor0
----
-107
-156
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7596
SELECT 84 + col2 * col2 * + CAST( col0 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
114198
5214
52838
skipif mysql # not compatible
query I rowsort label-7596
SELECT 84 + col2 * col2 * + CAST ( col0 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
114198
5214
52838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 55 col2 FROM tab0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL - - col0 DIV ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - - col0 / ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL 70 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7600
SELECT DISTINCT - - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT - - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7602
SELECT DISTINCT + CAST( - cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT + CAST ( - cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT + CAST( col1 AS SIGNED ) * col2 * col0 col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7603
SELECT + CAST ( col1 AS INTEGER ) * col2 * col0 col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7604
SELECT ALL - col2 + col0 DIV col1 AS col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL - col2 + col0 / col1 AS col1 FROM tab2 cor0
----
-25
-27
-34
query I rowsort
SELECT DISTINCT ( + col0 ) - + col2 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + 18 AS col0 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT ALL - ( 1 ) * col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 79 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT ALL - 64 + col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-56
-64
-64
skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL - 64 + col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-56
-64
-64
query I rowsort
SELECT DISTINCT + - col2 + - 47 FROM tab2 AS cor0
----
-73
-74
-85
query I rowsort
SELECT cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col0 * + col1 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT ALL - 4 + - col0 AS col1 FROM tab0 AS cor0
----
-28
-39
-93
query I rowsort
SELECT - - col0 + col2 - ( col1 ) AS col1 FROM tab1 AS cor0
----
111
163
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT DISTINCT 37 DIV + col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT 37 / + col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 6 * tab0.col1 * col0 + - col2 + col0 * + col0 AS col2 FROM tab0
----
-11841
-19146
-40755
query I rowsort
SELECT ALL 17 + + col0 AS col2 FROM tab0
----
106
41
52
query I rowsort
SELECT + 77 + col2 AS col1 FROM tab0 AS cor0
----
110
159
78
query I rowsort
SELECT 8 + col2 FROM tab1 AS cor0
----
104
62
65
query I rowsort
SELECT ALL - - col2 + + col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT - col2 + - col0 DIV CAST( - 56 AS SIGNED ) + col2 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7622
SELECT - col2 + - col0 / CAST ( - 56 AS INTEGER ) + col2 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT ALL + cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT ALL + cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab2 AS cor0
----
-5
query I rowsort
SELECT ALL - col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7627
SELECT ALL col0 * CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL col0 * CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 - - cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + + col2 + - col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT DISTINCT + + col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-7631
SELECT DISTINCT + + col0 / cor0.col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT col2 * col2 + col2 FROM tab2 cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7633
SELECT DISTINCT - 9 DIV - col1 + tab0.col1 + col0 AS col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT - 9 / - col1 + tab0.col1 + col0 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT 92 + + col2 FROM tab0
----
125
174
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT + 67 * col1 DIV col1 + col0 FROM tab0
----
102
156
91
skipif mysql # not compatible
query I rowsort label-7635
SELECT + 67 * col1 / col1 + col0 FROM tab0
----
102
156
91
query I rowsort
SELECT + - tab0.col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT col2 + + col2 - ( - tab2.col1 ) FROM tab2
----
111
85
93
query I rowsort
SELECT 21 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - 65 * col1 col0 FROM tab2 AS cor0
----
-1184
-2022
-3913
query I rowsort
SELECT - col0 + - 53 FROM tab1 AS cor0
----
-117
-133
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT DISTINCT + col0 DIV + 36 FROM tab0 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + col0 / + 36 FROM tab0 cor0
----
0
2
query I rowsort
SELECT + + col2 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + ( col2 ) * col0 + + col2 FROM tab2
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT - cor0.col1 DIV - 50 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7644
SELECT - cor0.col1 / - 50 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT col2 + + col2 DIV + 81 AS col0 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-7645
SELECT col2 + + col2 / + 81 AS col0 FROM tab0 AS cor0
----
1
33
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7646
SELECT + 56 * 32 DIV col2 AS col2 FROM tab1 AS cor0
----
18
31
33
skipif mysql # not compatible
query I rowsort label-7646
SELECT + 56 * 32 / col2 AS col2 FROM tab1 AS cor0
----
18
31
33
query I rowsort
SELECT ALL - col1 * + col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + cor0.col2 + - 41 FROM tab0 AS cor0
----
-40
-8
41
query I rowsort
SELECT 67 - 78 * - col2 FROM tab1
----
4279
4513
7555
query I rowsort
SELECT - col0 - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT + col0 + - col1 * col0 * - col0 AS col1 FROM tab2
----
106176
1526
359034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7652
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7652
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - tab0.col0 * - 43 FROM tab0
----
1032
1505
3827
query I rowsort
SELECT - 72 * + 93 + + col0 FROM tab1
----
-6616
-6632
-6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + + col2 * - col1 col1 FROM tab2
----
-1477
-589
-780
query I rowsort
SELECT DISTINCT - ( + tab0.col0 ) * tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT 21 * col1 DIV - col2 AS col0 FROM tab0
----
-2037
-23
-54
skipif mysql # not compatible
query I rowsort label-7657
SELECT 21 * col1 / - col2 AS col0 FROM tab0
----
-2037
-23
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT ALL - col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL - col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + 40 * - col0 AS col2 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT ALL + - 17 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
18
7
72
query I rowsort
SELECT DISTINCT + col2 * col2 + 62 FROM tab2 AS cor0
----
1506
738
791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col2 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - - 24 + + col2 - + 74 * col1 FROM tab2 AS cor0
----
-1196
-2243
-4316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 + col2 col0 FROM tab0 cor0
----
-14
-63
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 + + ( col0 + col2 ) col2 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT + ( col2 ) * ( col2 ) - - col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - col0 * - col2 + - 70 + + col1 FROM tab0 AS cor0
----
62
7319
808
onlyif mysql # use DIV operator for integer division
query I rowsort label-7668
SELECT col2 + + col0 DIV + 92 col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7668
SELECT col2 + + col0 / + 92 col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + ( col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * - col1 * - col2 AS col1 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT DISTINCT + col1 * col2 DIV - col0 FROM tab0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + col1 * col2 / - col0 FROM tab0
----
-118
-2
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + tab1.col0 - col0 * col2 AS col2 FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + col0 col2 FROM tab0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT col1 DIV col0 - col0 AS col2 FROM tab2
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-7675
SELECT col1 / col0 - col0 AS col2 FROM tab2
----
-3
-78
-79
query I rowsort
SELECT ALL + col2 * - col1 * col1 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT DISTINCT + col0 DIV col1 col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + col0 / col1 col2 FROM tab0
----
0
query I rowsort
SELECT + col1 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - + col0 * col0 + + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - col0 * + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + - col2 + + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT col2 + - col1 * col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL - + col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 5 FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT ALL - + col1 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - + col1 * - col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - 43 * col1 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT DISTINCT + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 * col0 - - col1 * col2 FROM tab0 cor0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT + col2 DIV col1 + - col0 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1266
210
4524
skipif mysql # not compatible
query I rowsort label-7691
SELECT + col2 / col1 + - col0 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1266
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col0 col1 FROM tab1
----
138
2944
3680
query I rowsort
SELECT - 86 * + col1 * + col0 AS col2 FROM tab0
----
-177504
-291970
-696514
query I rowsort
SELECT DISTINCT tab1.col1 * + col1 FROM tab1
----
100
169
676
query I rowsort
SELECT + col0 + col2 * col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL - tab2.col0 * - col0 + - col0 AS col1 FROM tab2
----
42
6006
6162
query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col0 / col2 )
----
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 + + tab2.col1 AS col0 FROM tab2
----
107
6169
6296
query I rowsort
SELECT DISTINCT col1 + col2 * - col0 AS col1 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + tab0.col1 * col2 col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL + col2 * col2 + + col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT tab2.col2 * - col0 AS col1 FROM tab2 WHERE NOT NULL <> col1 / - col1 + col0
----
query I rowsort
SELECT col1 + + col1 * + col2 AS col1 FROM tab1
----
1261
1430
580
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 / - col1 ) IN ( tab0.col1 * - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT col0 DIV col1 + col2 AS col1 FROM tab1
----
102
54
63
skipif mysql # not compatible
query I rowsort label-7708
SELECT col0 / col1 + col2 AS col1 FROM tab1
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7709
SELECT DISTINCT col2 DIV tab1.col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT col2 / tab1.col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT - col0 * + col1 + col2 AS col1 FROM tab2
----
-1305
-190
-4576
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( col2 * col2 )
----
query I rowsort
SELECT col2 * tab2.col2 * col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT tab1.col2 + - col0 AS col0 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT DISTINCT tab0.col1 DIV - col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT tab0.col1 / - col1 FROM tab0
----
-1
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( tab0.col0 )
----
query I rowsort
SELECT ALL + col2 * - col1 + col0 - + col1 * - col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7717
SELECT col2 DIV - col1 + + col1 AS col0 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-7717
SELECT col2 / - col1 + + col1 AS col0 FROM tab1
----
24
5
6
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col0 * tab2.col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 FROM tab0 WHERE + col1 + col0 IN ( + col0 )
----
query I rowsort
SELECT col1 * + col0 FROM tab2 WHERE NOT NULL IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT DISTINCT tab1.col2 * + tab1.col2 DIV - col2 col0 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT tab1.col2 * + tab1.col2 / - col2 col0 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT - col2 DIV - col0 col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7724
SELECT - col2 / - col0 col1 FROM tab1
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-7725
SELECT DISTINCT tab0.col0 DIV - col0 col1 FROM tab0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7725
SELECT DISTINCT tab0.col0 / - col0 col1 FROM tab0
----
-1
query I rowsort
SELECT ALL col2 + + tab0.col1 + col0 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT col2 + col2 * col2 + col0 FROM tab2
----
1561
763
780
query I rowsort
SELECT ALL col1 * - col1 * + col0 AS col2 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - col1 + + col2 - col0 AS col0 FROM tab2 AS cor0
----
-11
-111
-58
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7732
SELECT DISTINCT col1 DIV col2 + + col0 * - col1 FROM tab0
----
-2062
-3298
-8098
skipif mysql # not compatible
query I rowsort label-7732
SELECT DISTINCT col1 / col2 + + col0 * - col1 FROM tab0
----
-2062
-3298
-8098
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( tab0.col0 * col1 + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT ALL col2 DIV - col1 + - col1 AS col2 FROM tab1
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL col2 / - col1 + - col1 AS col2 FROM tab1
----
-15
-20
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT col0 DIV - col1 + + col2 - col0 AS col0 FROM tab2
----
-45
-53
20
skipif mysql # not compatible
query I rowsort label-7735
SELECT col0 / - col1 + + col2 - col0 AS col0 FROM tab2
----
-45
-53
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT ALL col2 DIV col1 + + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL col2 / col1 + + col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - tab2.col1 - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL col2 * col1 + - tab0.col1 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col1 + col0 + + col0 AS col2 FROM tab0
----
134
167
269
query I rowsort
SELECT col1 * - cor0.col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col2
----
query I rowsort
SELECT ALL col2 + col2 - - col2 FROM tab0 AS cor0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab2 AS cor0
----
-21
33
4
query IIIIII rowsort
SELECT * FROM tab0, tab0 cor0 WHERE NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 99 ) + - col2 col1 FROM tab1
----
3
42
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT DISTINCT + - col2 DIV - col2 + ( + 21 ) + - col0 * ( - col2 ) AS col2 FROM tab1 cor0
----
184
3670
7702
skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT + - col2 / - col2 + ( + 21 ) + - col0 * ( - col2 ) AS col2 FROM tab1 cor0
----
184
3670
7702
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + 50 AS col1 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT + 41 + - col1 AS col1 FROM tab0 AS cor0
----
-45
-50
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7750
SELECT ALL CAST( NULL AS SIGNED ) + + col1 / tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 / tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT cor0.col1 * cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT ALL - col1 * col2 + col1 + - col2 FROM tab2 AS cor0
----
-1501
-667
-833
query I rowsort
SELECT ALL 29 * col2 + - 38 * col1 * + cor0.col2 FROM tab0 AS cor0
----
-106887
-281178
-3657
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT DISTINCT + + 3 FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL - 60 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT col2 - - col2 AS col0 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT DISTINCT tab0.col0 DIV + 74 + col1 * col0 AS col0 FROM tab0
----
2064
3395
8100
skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT tab0.col0 / + 74 + col1 * col0 AS col0 FROM tab0
----
2064
3395
8100
query I rowsort
SELECT DISTINCT - + col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT col1 * 54 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab0, tab0 AS cor0
----
16
query I rowsort
SELECT + col0 + - 16 + + col1 AS col1 FROM tab1
----
13
58
77
query I rowsort
SELECT col1 + + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 * col1 col0 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT ALL + + 65 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL - - ( 18 ) * col0 FROM tab0 AS cor0
----
1602
432
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT DISTINCT - + cor0.col1 * ( + col2 + + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - + cor0.col1 * ( + col2 + + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 50 + + 59 AS col0 FROM tab2 AS cor0
----
109
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7771
SELECT ALL CAST( - col1 AS SIGNED ) + col0 * col2 FROM tab0 cor0
----
-62
706
7207
skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 * col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT col1 + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) + ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT ALL + cor0.col2 - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 * + col1 * col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT ALL - ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT col2 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - ( + col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col2 * cor0.col1 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT ALL - 70 AS col1 FROM tab0 AS cor0
----
-70
-70
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7781
SELECT - CAST( + 99 AS SIGNED ) + col0 + 90 FROM tab0 AS cor0
----
15
26
80
skipif mysql # not compatible
query I rowsort label-7781
SELECT - CAST ( + 99 AS INTEGER ) + col0 + 90 FROM tab0 AS cor0
----
15
26
80
query I rowsort
SELECT DISTINCT + - ( col0 ) * + col1 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT 33 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT ALL col0 - 65 AS col1 FROM tab1
----
-1
-62
15
query I rowsort
SELECT DISTINCT ( - 30 ) + + col0 FROM tab2 AS cor0
----
-23
48
49
query I rowsort
SELECT ALL - col1 * - 66 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT + ( col0 ) * - col2 + + 19 * - 47 FROM tab1 AS cor0
----
-1055
-4541
-8573
onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT DISTINCT + col0 + col1 * + col1 + - col0 DIV 77 AS col1 FROM tab1 AS cor0
----
164
248
679
skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + col0 + col1 * + col1 + - col0 / 77 AS col1 FROM tab1 AS cor0
----
164
248
679
query I rowsort
SELECT ALL + cor0.col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + col2 + 81 * - col1 AS col1 FROM tab2 AS cor0
----
-1339
-2484
-4753
query I rowsort
SELECT DISTINCT - ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ( col0 ) - cor0.col2 * + 66 FROM tab1 AS cor0
----
-3561
-3698
-6256
onlyif mysql # use DIV operator for integer division
query I rowsort label-7793
SELECT ALL + col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT + ( + col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) + cor0.col2 + col0 FROM tab1 AS cor0
----
221
345
733
query I rowsort
SELECT ALL ( + col1 ) + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - col2 - 97 AS col0 FROM tab0 AS cor0
----
-130
-179
-98
query I rowsort
SELECT - 83 FROM tab2, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT DISTINCT - 61 FROM tab0, tab2 cor0
----
-61
query I rowsort
SELECT ( ( tab1.col2 ) ) FROM tab1
----
54
57
96
query I rowsort
SELECT - 83 * col2 AS col1 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT ( - col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + ( 48 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1152
-1680
-4272
query I rowsort
SELECT + 73 - - col1 AS col1 FROM tab1 AS cor0
----
83
86
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT col1 DIV col1 + col1 * + cor0.col2 + + col0 * - 35 FROM tab2 AS cor0
----
-1195
-2118
593
skipif mysql # not compatible
query I rowsort label-7805
SELECT col1 / col1 + col1 * + cor0.col2 + + col0 * - 35 FROM tab2 AS cor0
----
-1195
-2118
593
query I rowsort
SELECT + + 32 + + cor0.col1 FROM tab0 AS cor0
----
118
123
129
onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT col2 * col1 DIV cor0.col2 + col1 + - cor0.col0 * ( - col2 ) FROM tab0 AS cor0
----
229
7480
964
skipif mysql # not compatible
query I rowsort label-7807
SELECT col2 * col1 / cor0.col2 + col1 + - cor0.col0 * ( - col2 ) FROM tab0 AS cor0
----
229
7480
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-7808
SELECT - - ( - col1 ) + - ( - col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-7808
SELECT - - ( - col1 ) + - ( - col1 ) / col0 AS col2 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT - + cor0.col0 * cor0.col1 + ( + col1 * + col1 ) + - col1 AS col1 FROM tab0 cor0
----
5246
5917
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7810
SELECT ALL 23 + - col1 * + tab0.col2 DIV col2 col0 FROM tab0
----
-63
-68
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL 23 + - col1 * + tab0.col2 / col2 col0 FROM tab0
----
-63
-68
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7811
SELECT CAST( + ( col0 ) AS SIGNED ) + ( - ( tab0.col1 ) ) * - CAST( - col2 AS SIGNED ) * col1 AS col0 FROM tab0
----
-244044
-678953
-9374
skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( + ( col0 ) AS INTEGER ) + ( - ( tab0.col1 ) ) * - CAST ( - col2 AS INTEGER ) * col1 AS col0 FROM tab0
----
-244044
-678953
-9374
query I rowsort
SELECT ALL + cor0.col2 * - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a
query I rowsort
SELECT DISTINCT + col1 + 62 * col1 + + col0 FROM tab1
----
1641
694
899
query I rowsort
SELECT - col2 * 56 + - tab0.col0 + ( - ( col1 ) ) AS col0 FROM tab0
----
-188
-1958
-4772
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * - 12 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6bdb3a3b0b9e19ecf3acb745e5b4f09c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col2 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7817
SELECT DISTINCT - tab1.col1 * 13 + - col2 DIV col1 + - 78 FROM tab1
----
-213
-254
-418
skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - tab1.col1 * 13 + - col2 / col1 + - 78 FROM tab1
----
-213
-254
-418
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + cor0.col2 - + col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col2 * 6 + col2 + - col1 FROM tab2 cor0
----
4023
4370
8685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + col1 col0 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col0 - 98 * col2 * col2 FROM tab2 AS cor0
----
-141433
-66170
-71435
query I rowsort
SELECT DISTINCT - - col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7824
SELECT DISTINCT col0 * 83 + - col0 DIV - col2 FROM tab1 AS cor0
----
249
5313
6640
skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT col0 * 83 + - col0 / - col2 FROM tab1 AS cor0
----
249
5313
6640
query I rowsort
SELECT ALL - cor0.col2 * + ( 88 ) AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7827
SELECT ALL + + col2 DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + + col2 / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 + col1 FROM tab2 AS cor0
----
10999
25978
90565
query I rowsort
SELECT - col1 * + 28 AS col0 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT + tab0.col0 + + col1 AS col0 FROM tab0
----
110
132
180
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7833
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 - col1 col2 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT - col2 + - ( + 13 ) AS col1 FROM tab1 AS cor0
----
-109
-67
-70
query I rowsort
SELECT DISTINCT - 71 + + tab2.col1 FROM tab2
----
-12
-40
-54
query I rowsort
SELECT ALL tab1.col1 * + tab1.col2 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 * col0 col2 FROM tab1 AS cor0
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT + col1 * - col1 + col1 DIV col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
skipif mysql # not compatible
query I rowsort label-7840
SELECT + col1 * - col1 + col1 / col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
query I rowsort
SELECT - - col2 * - 68 * - col0 - col0 FROM tab0 AS cor0
----
2345
496175
53832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7842
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT 38 * - col1 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL ( cor0.col0 ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT 15 * col1 * col2 + cor0.col1 FROM tab1 AS cor0
----
18733
21086
8560
query I rowsort
SELECT col1 * - col0 + - cor0.col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + 15 * ( col1 * cor0.col1 ) FROM tab0 cor0
----
110940
124215
141135
query I rowsort
SELECT 38 * - col2 + col2 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT col2 * - 56 + col1 FROM tab1 AS cor0
----
-2998
-3182
-5363
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7850
SELECT cor0.col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----
query I rowsort
SELECT + tab2.col0 + col2 * col2 AS col2 FROM tab2
----
1523
736
754
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 6275704c8dcc358f1d7c268582457eaa
query I rowsort
SELECT + 2 AS col1 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT - col1 * col1 * + col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL - 68 * col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT - + 18 + - col0 AS col1 FROM tab2 AS cor0
----
-25
-96
-97
query I rowsort
SELECT DISTINCT + + col0 * col1 * + cor0.col2 + - 6 FROM tab0 AS cor0
----
3389
664112
68106
query I rowsort
SELECT DISTINCT - 67 + + col0 AS col1 FROM tab0 AS cor0
----
-32
-43
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT DISTINCT col1 DIV + col2 + CAST( ( col2 ) AS SIGNED ) DIV CAST( col0 + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT col1 / + col2 + CAST ( ( col2 ) AS INTEGER ) / CAST ( col0 + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT col0 * + col1 * 22 AS col2 FROM tab1 AS cor0
----
14080
1716
22880
query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + 4 * + col0 + - 7 * + col0 * col1 FROM tab1 AS cor0
----
-4224
-534
-6960
query I rowsort
SELECT - col1 * + col1 * - col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + - cor0.col2 + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7866
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0, tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7867
SELECT ALL + - col1 DIV + 21 + - cor0.col0 FROM tab0 AS cor0
----
-28
-39
-93
skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + - col1 / + 21 + - cor0.col0 FROM tab0 AS cor0
----
-28
-39
-93
query I rowsort
SELECT tab1.col1 * - col1 + tab1.col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + 59 * - col1 FROM tab1
----
-1534
-590
-767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * col2 + - col2 col0 FROM tab1 AS cor0
----
-3132
-3306
-5568
onlyif mysql # use DIV operator for integer division
query I rowsort label-7871
SELECT DISTINCT - col2 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT - col2 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col1 * col0 + col2 + + col1 FROM tab2 AS cor0
----
1398
275
4687
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe
query I rowsort
SELECT ALL 19 + cor0.col2 * 49 + + 22 FROM tab2, tab0 AS cor0
----
9 values hashing to c3a91c726eae5b3a9fd88c0f6a85e281
query I rowsort
SELECT - col1 - + col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + col0 * + 5 * + tab0.col1 + col2 AS col0 FROM tab0
----
10353
16976
40577
query I rowsort
SELECT ( 48 ) FROM tab2
----
48
48
48
query I rowsort
SELECT ( + col0 ) * col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + ( col2 ) AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7882
SELECT - 30 DIV - ( col1 * - col0 ) - 45 AS col1 FROM tab2
----
-45
-45
-45
skipif mysql # not compatible
query I rowsort label-7882
SELECT - 30 / - ( col1 * - col0 ) - 45 AS col1 FROM tab2
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + + 1 col2 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT col1 + tab0.col0 AS col1 FROM tab0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT + col1 DIV + 56 + 73 AS col1 FROM tab1 cor0
----
73
73
73
skipif mysql # not compatible
query I rowsort label-7885
SELECT + col1 / + 56 + 73 AS col1 FROM tab1 cor0
----
73
73
73
query I rowsort
SELECT ALL + col2 + - cor0.col1 * + col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + col1 + - 63 + - col2 * col2 FROM tab1 AS cor0
----
-2953
-3302
-9266
query I rowsort
SELECT - - col0 * 67 + col2 * col2 AS col0 FROM tab1 cor0
----
14576
3117
7537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - 18 * + col1 col1 FROM tab2 AS cor0
----
-24174
-3906
-82836
query I rowsort
SELECT DISTINCT - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col1 + ( + col2 ) - col1 FROM tab0 AS cor0
----
-100
-139
-193
query I rowsort
SELECT ALL + col2 + 16 FROM tab1 AS cor0
----
112
70
73
query I rowsort
SELECT DISTINCT 29 - - col2 FROM tab0
----
111
30
62
query I rowsort
SELECT ALL col0 + col2 * col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7895
SELECT ALL - col0 DIV 94 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - col0 / 94 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT + - col1 + CAST( + col1 * - col1 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
-7449
-8290
-9505
skipif mysql # not compatible
query I rowsort label-7896
SELECT + - col1 + CAST ( + col1 * - col1 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
-7449
-8290
-9505
query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 41 col0 FROM tab1 AS cor0
----
105
121
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7899
SELECT + + col1 DIV - 6 + col0 - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
1118
703
77
skipif mysql # not compatible
query I rowsort label-7899
SELECT + + col1 / - 6 + col0 - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
1118
703
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7900
SELECT - - cor0.col0 / + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7900
SELECT - - cor0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) * col0 + + tab0.col0 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT 21 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT ALL - 19 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + col1 + col0 + col1 * - col1 FROM tab1
----
-26
-647
-76
query I rowsort
SELECT DISTINCT + - 68 - col0 * - ( - 56 * - col0 ) FROM tab1 AS cor0
----
229308
358332
436
query I rowsort
SELECT ALL - + 34 - col2 FROM tab0 cor0
----
-116
-35
-67
query I rowsort
SELECT DISTINCT col1 * - col0 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 + - cor0.col1 * col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + 56 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
56
query I rowsort
SELECT 79 AS col2 FROM tab0
----
79
79
79
query I rowsort
SELECT + 10 * - tab1.col0 * 66 - + 5 FROM tab1, tab0 AS cor0
----
9 values hashing to fdd3c0b1217db644becdc43c34753411
query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7913
SELECT DISTINCT - CAST( col0 * col1 AS SIGNED ) AS col2 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 36 FROM tab1
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT 28 DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7915
SELECT 28 / col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 34 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
onlyif mysql # use DIV operator for integer division
query I rowsort label-7917
SELECT ALL - col1 + - col1 DIV - 92 FROM tab0 cor0
----
-86
-91
-96
skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - col1 + - col1 / - 92 FROM tab0 cor0
----
-86
-91
-96
query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 27 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1275
-1431
-597
query I rowsort
SELECT + 31 + - col0 * - cor0.col0 FROM tab2 AS cor0
----
6115
6272
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * + ( + 18 ) col0 FROM tab1 AS cor0
----
11520
1404
18720
query I rowsort
SELECT DISTINCT - col0 - + col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7923
SELECT - col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-7923
SELECT - col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 3 FROM tab0, tab0 AS cor0
----
3
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT - 6 FROM tab0
----
-6
-6
-6
query I rowsort
SELECT - 6 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT ALL col0 * - 29 FROM tab0
----
-1015
-2581
-696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col2 FROM tab2 AS cor0
----
-30
-30
-30
query I rowsort
SELECT - 24 FROM tab2 cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT 41 + col1 AS col1 FROM tab1 AS cor0
----
51
54
67
query I rowsort
SELECT ALL 30 + cor0.col0 AS col0 FROM tab2 AS cor0
----
108
109
37
query I rowsort
SELECT ALL - - 81 AS col2 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 * col1 col2 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7937
SELECT ALL - - col2 + - col1 * + CAST( - col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
1619
701
895
skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL - - col2 + - col1 * + CAST ( - col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT ALL + - 46 * + col2 - ( col0 + col0 ) FROM tab2 AS cor0
----
-1256
-1352
-1906
query I rowsort
SELECT + 41 AS col1 FROM tab2 AS cor0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ( + col2 ) + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT 38 * ( col2 ) FROM tab0
----
1254
3116
38
query I rowsort
SELECT - 79 + - 83 AS col1 FROM tab0
----
-162
-162
-162
query I rowsort
SELECT + 93 FROM tab2 cor0
----
93
93
93
query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7946
SELECT DISTINCT - CAST( + col1 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - 78 AS col1 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT ( col1 ) * col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + + ( + 67 ) FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT + 87 * - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 36fd85b80bbe4f604aea0d879a9ad10a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7951
SELECT ALL - CAST( NULL AS DECIMAL ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - CAST ( NULL AS REAL ) / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT 2 AS col0 FROM tab2
----
2
2
2
query I rowsort
SELECT ALL + 4 AS col1 FROM tab2 AS cor0
----
4
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7955
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7955
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 81 * + col2 FROM tab2
----
2106
2187
3078
query I rowsort
SELECT + 83 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT - col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + 72 FROM tab0, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT + tab0.col2 DIV 2 FROM tab0, tab0 AS cor0
----
9 values hashing to 0300d531a8661cbb87a0f269275ec1e2
skipif mysql # not compatible
query I rowsort label-7960
SELECT + tab0.col2 / 2 FROM tab0, tab0 AS cor0
----
9 values hashing to 0300d531a8661cbb87a0f269275ec1e2
query I rowsort
SELECT + 62 * col0 * - 21 FROM tab0
----
-115878
-31248
-45570
query I rowsort
SELECT ALL + col0 + - tab1.col0 FROM tab1
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
query I rowsort
SELECT col1 + 82 AS col2 FROM tab2 cor0
----
113
141
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + col2 * col2 col1 FROM tab0 AS cor0
----
-1197
-1224
513
query I rowsort
SELECT col2 + - 14 * 33 AS col0 FROM tab2 cor0
----
-424
-435
-436
query I rowsort
SELECT DISTINCT - 86 FROM tab2, tab1 AS cor0
----
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 72 + - 95 col1 FROM tab2
----
1777
1849
2641
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + + ( 15 ) * + col1 * - CAST ( col1 AS REAL ) AS col2 FROM tab2
----
-14388
-4297
-52189
query I rowsort
SELECT col0 + - ( - 38 + - col2 ) FROM tab2
----
142
155
72
query I rowsort
SELECT + col2 * tab0.col0 FROM tab0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7972
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7973
SELECT DISTINCT + + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT + + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 * 80 * col1 - + col2 FROM tab0
----
227007
596878
7759
query I rowsort
SELECT - col1 + col2 + - col2 * - col1 AS col1 FROM tab2
----
1501
667
833
query I rowsort
SELECT DISTINCT + col1 - + 57 AS col2 FROM tab0 cor0
----
29
34
40
query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + + col1 * + col2 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL + 97 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-3999
-6303
88
query I rowsort
SELECT + col0 * - 84 FROM tab1 AS cor0
----
-252
-5376
-6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7980
SELECT ALL + - col0 DIV + 90 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + - col0 / + 90 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col1 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - + 81 * + cor0.col0 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL - col1 - + col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + + col1 * - cor0.col0 col1 FROM tab2 AS cor0
----
-1346
-220
-4605
query I rowsort
SELECT ALL col0 * col2 + + col2 - ( col2 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT ALL - ( col2 ) DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - ( col2 ) / col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + 75 FROM tab2 cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + cor0.col0 + - 24 FROM tab2 AS cor0
----
-17
54
55
query I rowsort
SELECT ALL - col2 * - col1 + col2 * - 82 FROM tab2 AS cor0
----
-1377
-2470
-598
onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT - - 37 + - col0 DIV + 59 + col0 * + col1 FROM tab2 AS cor0
----
1379
254
4638
skipif mysql # not compatible
query I rowsort label-7991
SELECT - - 37 + - col0 / + 59 + col0 * + col1 FROM tab2 AS cor0
----
1379
254
4638
query I rowsort
SELECT 39 * col0 FROM tab1 cor0
----
117
2496
3120
onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT col2 DIV tab2.col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-7993
SELECT col2 / tab2.col0 FROM tab2
----
0
0
3
query I rowsort
SELECT DISTINCT - 59 * - col0 AS col0 FROM tab1 AS cor0
----
177
3776
4720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 9 * col0 col0 FROM tab2 AS cor0
----
-63
-702
-711
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * - col1 - - ( - 96 * - col2 ) AS col1 FROM tab0 AS cor0
----
-227
-3299
1104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT - col0 DIV col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3649
-7680
skipif mysql # not compatible
query I rowsort label-7999
SELECT - col0 / col2 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3649
-7680
query I rowsort
SELECT cor0.col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT DISTINCT - + col1 * - ( ( col1 ) ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + + col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col2 + - 43 * col0 * + col1 FROM tab0 AS cor0
----
-145984
-348175
-88719
onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT - 74 DIV - 19 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
skipif mysql # not compatible
query I rowsort label-8005
SELECT - 74 / - 19 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - cor0.col1 + 46 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 53419662bd47a363930e3dec8f4005ea
query I rowsort
SELECT 51 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8008
SELECT ( + col1 ) DIV + col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8008
SELECT ( + col1 ) / + col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) + - cor0.col1 * col0 * col2 FROM tab0 AS cor0
----
-3396
-664200
-68145
query I rowsort
SELECT ALL 59 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab0 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 83 col2 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT ALL + + 48 + col2 FROM tab0 AS cor0
----
130
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT + cor0.col1 + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT 92 + + 34 * cor0.col0 AS col1 FROM tab1 AS cor0
----
194
2268
2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT DISTINCT + col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8017
SELECT DISTINCT + col1 / - col0 FROM tab2 AS cor0
----
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8018
SELECT + CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-8018
SELECT + CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + ( + col1 ) * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 91 * + col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT CAST( 40 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
3440
3640
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8023
SELECT CAST ( 40 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
3440
3640
3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 94 * + ( col1 ) * col2 col2 FROM tab1 cor0
----
117312
131976
53580
query I rowsort
SELECT 0 * + 66 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT 50 * cor0.col1 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT + col1 - - cor0.col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8029
SELECT + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8029
SELECT + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + 20 * col2 * cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
13461
14549
28863
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8031
SELECT ALL + + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8031
SELECT ALL + + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + 79 * 81 + col0 AS col0 FROM tab2 AS cor0
----
6399
6399
6399
query I rowsort
SELECT - col1 + + col0 * + col2 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - col0 * + 2 + - col1 + col1 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT + col0 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8036
SELECT + col0 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * 11 FROM tab1 AS cor0
----
-110
-143
-286
query I rowsort
SELECT DISTINCT + col0 * 86 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT ALL col2 * - 28 AS col2 FROM tab1 AS cor0
----
-1512
-1596
-2688
query I rowsort
SELECT - ( 19 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT + + cor0.col0 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + - ( col0 ) * - col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT tab0.col1 + ( + tab0.col0 + + col0 ) AS col0 FROM tab0
----
134
167
269
query I rowsort
SELECT DISTINCT - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col0 * col0 + col1 * col2 AS col2 FROM tab1
----
-3526
-5152
1395
query I rowsort
SELECT - col2 * col0 + - col1 AS col0 FROM tab0
----
-132
-7389
-878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8047
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8047
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col0 + 29 AS col0 FROM tab0
----
-6
-60
5
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT + ( + 79 * col1 ) FROM tab0
----
6794
7189
7663
query I rowsort
SELECT ALL 89 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab0, tab0 AS cor0
----
94
query I rowsort
SELECT + 11 * - col1 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT ALL - + 96 * col0 AS col1 FROM tab0 AS cor0
----
-2304
-3360
-8544
query I rowsort
SELECT DISTINCT - 2 * - col2 * col1 + col2 FROM tab1
----
1197
2592
2862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT - 80 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT ALL - col0 + - col2 * col0 * - ( + col0 ) AS col0 FROM tab2
----
1316
158106
237079
query I rowsort
SELECT ( col2 ) * - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 17 - col0 FROM tab2
----
-61
-62
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8062
SELECT - col2 + - col1 * CAST( + col0 AS SIGNED ) + + col0 * col2 FROM tab2
----
-2600
-55
1621
skipif mysql # not compatible
query I rowsort label-8062
SELECT - col2 + - col1 * CAST ( + col0 AS INTEGER ) + + col0 * col2 FROM tab2
----
-2600
-55
1621
query I rowsort
SELECT ALL - ( col0 + tab2.col0 ) FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - - ( col2 ) - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + ( - col1 ) * ( + 0 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - cor0.col2 * col2 + 66 * + col2 AS col1 FROM tab2 cor0
----
1040
1053
1064
query I rowsort
SELECT DISTINCT - ( col0 * col0 ) + col0 FROM tab1
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT - col1 DIV + col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8069
SELECT - col1 / + col0 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8071
SELECT DISTINCT + - col2 * CAST( + col2 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + - col2 * CAST ( + col2 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-8072
SELECT ALL - col1 + cor0.col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL - col1 + cor0.col2 / + cor0.col0 FROM tab0 AS cor0
----
-85
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT + col0 * ( col1 ) + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT - - col0 * + ( 14 + col2 ) FROM tab2 AS cor0
----
287
3120
4108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) + cor0.col0 + + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) + cor0.col0 + + col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + 76 AS col2 FROM tab2 cor0
----
107
135
93
query I rowsort
SELECT - + col2 * col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - - col0 * - 17 AS col1 FROM tab0 cor0
----
-1513
-408
-595
query I rowsort
SELECT 51 * - col0 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT 68 * - col0 + + 39 FROM tab2
----
-437
-5265
-5333
query I rowsort
SELECT ALL - tab1.col1 + - tab1.col1 + col2 * 22 AS col0 FROM tab1
----
1136
1234
2086
onlyif mysql # use DIV operator for integer division
query I rowsort label-8083
SELECT + + col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8083
SELECT + + col0 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT 17 * - col2 FROM tab1 AS cor0
----
-1632
-918
-969
query I rowsort
SELECT cor2.col0 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT ( cor0.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-8087
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8087
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8088
SELECT cor0.col2 + - ( + 11 ) DIV - col2 AS col1 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8088
SELECT cor0.col2 + - ( + 11 ) / - col2 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + - col2 + + ( col2 + - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - col2 * + 76 * col1 AS col2 FROM tab2 AS cor0
----
116584
49096
63612
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - ( col2 ) * - ( col2 ) AS col0 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab1
----
87
87
87
query I rowsort
SELECT + ( - col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + 45 - + cor0.col0 FROM tab2 AS cor0
----
-33
-34
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8096
SELECT - + cor0.col2 * + col2 + + col2 DIV + cor0.col0 - + 5 AS col0 FROM tab1 AS cor0
----
-2903
-3254
-9220
skipif mysql # not compatible
query I rowsort label-8096
SELECT - + cor0.col2 * + col2 + + col2 / + cor0.col0 - + 5 AS col0 FROM tab1 AS cor0
----
-2903
-3254
-9220
query I rowsort
SELECT - + 2 AS col1 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT - - 3 * - 25 FROM tab2 cor0
----
-75
-75
-75
query I rowsort
SELECT 83 - - col1 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT + - cor0.col1 * col1 - + col0 FROM tab2 cor0
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT col1 + + 14 FROM tab1
----
24
27
40
query I rowsort
SELECT - 79 + 62 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT DISTINCT col1 + - col2 * - col2 * + col0 + - col0 DIV col2 AS col1 FROM tab0
----
26222
598526
97
skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT col1 + - col2 * - col2 * + col0 + - col0 / col2 AS col1 FROM tab0
----
26222
598526
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT col0 DIV tab0.col0 col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8104
SELECT col0 / tab0.col0 col0 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + col2 + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL 82 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col1 FROM tab1
----
-30
query I rowsort
SELECT - ( + col2 ) + + col1 * 63 + 32 * + col1 AS col2 FROM tab0 AS cor0
----
8137
8563
9214
onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT + 93 + - cor0.col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
92
92
92
skipif mysql # not compatible
query I rowsort label-8109
SELECT + 93 + - cor0.col2 / + col2 AS col2 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT + cor0.col1 * - 59 + - 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1551
-607
-784
query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab1, tab0, tab2 AS cor0
----
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8112
SELECT DISTINCT - - cor0.col2 DIV + col1 + + col0 * - 10 FROM tab0 cor0
----
-240
-350
-890
skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - - cor0.col2 / + col1 + + col0 * - 10 FROM tab0 cor0
----
-240
-350
-890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT ALL - col0 * - col1 - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - col0 * - col1 - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT - cor0.col2 + col0 DIV 53 FROM tab2 cor0
----
-25
-27
-37
skipif mysql # not compatible
query I rowsort label-8114
SELECT - cor0.col2 + col0 / 53 FROM tab2 cor0
----
-25
-27
-37
query I rowsort
SELECT DISTINCT - 52 * - col2 * - col0 + col2 * + col1 FROM tab2 AS cor0
----
-103922
-155458
-8991
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + + 92 * col2 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT DISTINCT col0 - + col2 * col1 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ( + 67 ) + col0 * - ( + col1 + col1 * - col2 ) AS col1 FROM tab0
----
656086
66115
67
query I rowsort
SELECT ALL - col1 - - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( + col2 * - tab1.col0 ) + + col2 + col2 AS col0 FROM tab1
----
-3534
-54
-7488
query I rowsort
SELECT DISTINCT col0 - + col1 AS col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 - ( col1 ) FROM tab0
----
-2
-62
query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - col0 col1 FROM tab0 cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col0 * 1 * + col1 col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT col2 * - col1 + 3 AS col2 FROM tab0 AS cor0
----
-2835
-7459
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * + 67 col1 FROM tab1 AS cor0
----
3615
3755
6352
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + + 92 * - 40 FROM tab2 AS cor0
----
-199
-2719
-3391
query I rowsort
SELECT ( col1 ) + ( - col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT cor0.col1 * col1 + - col2 AS col2 FROM tab0 cor0
----
7363
8199
9408
query I rowsort
SELECT - col2 * ( col0 ) * col1 - ( + col2 ) AS col1 FROM tab2
----
-119678
-51072
-5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 * col0 col2 FROM tab2 AS cor0
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8136
SELECT - col1 * CAST( NULL AS DECIMAL ) * + col1 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-8136
SELECT - col1 * CAST ( NULL AS REAL ) * + col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 60 * 56 FROM tab2 cor0
----
3360
3360
3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * 26 col2 FROM tab2 AS cor0
----
1482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8139
SELECT DISTINCT - + 41 * ( col1 * + CAST( 3 AS SIGNED ) ) FROM tab2 AS cor0
----
-2091
-3813
-7257
skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - + 41 * ( col1 * + CAST ( 3 AS INTEGER ) ) FROM tab2 AS cor0
----
-2091
-3813
-7257
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8140
SELECT + + CAST( + col0 AS SIGNED ) * - cor0.col2 * cor0.col1 - cor0.col0 * col1 FROM tab0 AS cor0
----
-672217
-6790
-70176
skipif mysql # not compatible
query I rowsort label-8140
SELECT + + CAST ( + col0 AS INTEGER ) * - cor0.col2 * cor0.col1 - cor0.col0 * col1 FROM tab0 AS cor0
----
-672217
-6790
-70176
query I rowsort
SELECT ALL + col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + 66 * col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-101244
-42636
-55242
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + 80 FROM tab2, tab1 AS cor0
----
144
160
83
query I rowsort
SELECT DISTINCT - ( 21 ) + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6105
-6262
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8145
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8145
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * + 57 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 845086b0033ec6c263d53a1cb16671ae
query I rowsort
SELECT + col0 + tab2.col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT 11 + 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( col0 AS REAL ) * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT 0 + 33 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 * col1 - col1 col0 FROM tab1 AS cor0
----
260
338
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT DISTINCT 90 DIV 23 AS col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT 90 / 23 AS col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT - 83 * 81 + cor0.col2 FROM tab1 cor0
----
-6627
-6666
-6669
query I rowsort
SELECT - 99 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT ALL + 3 * 1 AS col1 FROM tab0 cor0
----
3
3
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT - - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8156
SELECT - - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 41 FROM tab0 cor0
----
-41
-41
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8159
SELECT ALL + ( col1 ) + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL + ( col1 ) + col2 / + col2 AS col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT col1 + cor0.col2 * + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - 49 + - 29 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL + - cor0.col2 - - cor0.col0 * - cor0.col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 46 * col1 col0 FROM tab0 AS cor0
----
-3956
-4186
-4462
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 + + 59 * 59 FROM tab0 AS cor0
----
3472
3488
3515
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT - col2 * + col2 - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-8165
SELECT - col2 * + col2 - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL + + col0 + - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL - 84 AS col1 FROM tab2 cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT - + col0 DIV - col1 + - cor0.col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-8168
SELECT - + col0 / - col1 + - cor0.col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT DISTINCT cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8170
SELECT ALL + ( + col1 ) + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + ( + col1 ) + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 27 + - col0 AS col1 FROM tab0 AS cor0
----
-62
-8
3
query I rowsort
SELECT + - col0 * col2 + - 20 AS col1 FROM tab2 AS cor0
----
-2048
-209
-3022
query I rowsort
SELECT + - 35 FROM tab2 cor0
----
-35
-35
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 * col2 + 20 col2 FROM tab2 AS cor0
----
514
533
742
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + + cor0.col1 + + ( col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col2 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 * + 16 AS col2 FROM tab2 cor0
----
112
1248
1264
query I rowsort
SELECT ALL - 13 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT ALL ( col0 ) + - 99 AS col2 FROM tab2
----
-20
-21
-92
query I rowsort
SELECT ALL + 84 + - col0 * - col2 FROM tab1
----
246
3732
7764
query I rowsort
SELECT ALL + col0 + 74 FROM tab2 cor0
----
152
153
81
query I rowsort
SELECT 34 AS col0 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT + 59 FROM tab1, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT DISTINCT + + cor0.col2 DIV 82 col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + + cor0.col2 / 82 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 + ( + ( col2 ) + - col0 ) AS col2 FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT col2 * col0 + col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + col0 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + - 45 * 59 + + col0 AS col1 FROM tab2 AS cor0
----
-2576
-2577
-2648
query I rowsort
SELECT ALL + 6 FROM tab0, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT + 9 * 86 AS col2 FROM tab2 AS cor0
----
774
774
774
query I rowsort
SELECT - cor0.col1 * col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col2 * - col0 * col0 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col1 * tab0.col2 AS col1 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8196
SELECT ALL col0 DIV 92 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL col0 / 92 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + col2 * ( col1 ) FROM tab1
----
16224
36504
5700
query I rowsort
SELECT + cor0.col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + + col1 + - col0 * - 60 FROM tab0 AS cor0
----
1526
2197
5431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * + col2 - + ( col0 ) * - col2 col2 FROM tab1 cor0
----
-1512
1881
4704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( + col1 ) ) col1 FROM tab1
----
10
13
26
query I rowsort
SELECT col1 + - col1 + - 79 FROM tab2
----
-79
-79
-79
query I rowsort
SELECT - 72 * tab1.col1 + 48 AS col2 FROM tab1
----
-1824
-672
-888
query I rowsort
SELECT tab1.col2 + col1 + 9 FROM tab1
----
118
76
89
query I rowsort
SELECT DISTINCT - 67 + col0 + + 84 AS col0 FROM tab2
----
24
95
96
query I rowsort
SELECT ALL 8 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT 29 * col1 * tab1.col0 FROM tab1
----
18560
2262
30160
query I rowsort
SELECT - 35 * + col0 AS col2 FROM tab2
----
-245
-2730
-2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT cor0.col2 DIV + col2 - ( col0 ) FROM tab1 cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-8209
SELECT cor0.col2 / + col2 - ( col0 ) FROM tab1 cor0
----
-2
-63
-79
query I rowsort
SELECT 75 * col2 * + ( + 65 ) AS col0 FROM tab0
----
160875
399750
4875
query I rowsort
SELECT DISTINCT 10 * col1 FROM tab1
----
100
130
260
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT - col2 * - col2 * col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT + ( - 83 ) * tab0.col1 FROM tab0
----
-7138
-7553
-8051
query I rowsort
SELECT + - 27 + + 89 * + col0 FROM tab1 cor0
----
240
5669
7093
query I rowsort
SELECT - 60 - + col0 AS col2 FROM tab0 AS cor0
----
-149
-84
-95
query I rowsort
SELECT ALL ( 68 ) - - col2 FROM tab1
----
122
125
164
onlyif mysql # use DIV operator for integer division
query I rowsort label-8218
SELECT ALL + 35 + + cor0.col0 DIV + col1 FROM tab1 AS cor0
----
35
41
41
skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL + 35 + + cor0.col0 / + col1 FROM tab1 AS cor0
----
35
41
41
query I rowsort
SELECT ALL - - 76 + + col0 AS col0 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT DISTINCT - + ( col2 ) + 14 AS col1 FROM tab0 AS cor0
----
-19
-68
13
query I rowsort
SELECT - 60 + - 95 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5b18da41c84a41d044761c6a4512a30b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8222
SELECT ALL + CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 14 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * 11 FROM tab1 AS cor0
----
1056
594
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col2 + col1 * col1 col1 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT + 15 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 928aaf725c32823660515d7f1332f381
query I rowsort
SELECT - cor0.col2 * ( col0 ) * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - 21 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-21
query I rowsort
SELECT - - ( ( - col1 ) ) * - 85 FROM tab0 cor0
----
7310
7735
8245
query I rowsort
SELECT ALL + ( 96 ) + col1 AS col1 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT + ( 91 ) DIV col1 - - ( + col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-61
-62
skipif mysql # not compatible
query I rowsort label-8235
SELECT + ( 91 ) / col1 - - ( + col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-61
-62
query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 * + col2 + col0 AS col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT + 90 + + col1 FROM tab0 AS cor0
----
176
181
187
query I rowsort
SELECT - col2 * - cor0.col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT - - 33 + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1310
-184
-4569
query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8242
SELECT ALL + - col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL + - col0 / - col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + 78 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
42
query I rowsort
SELECT ALL - + col0 * col2 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - + 13 AS col1 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + 68 + + col0 AS col2 FROM tab2 AS cor0
----
146
147
75
query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + 97 * 73 AS col0 FROM tab2 AS cor0
----
7081
7081
7081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 col2 FROM tab1, tab2 cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 + col1 col1 FROM tab2 AS cor0
----
-33
-61
-75
query I rowsort
SELECT DISTINCT - + 77 * col1 + col1 * + ( col0 * col1 ) FROM tab2 cor0
----
21522
266975
4340
query I rowsort
SELECT ALL + - cor0.col0 * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col2 * + 88 FROM tab2 AS cor0
----
-2288
-2376
-3344
query I rowsort
SELECT DISTINCT cor0.col1 * + 95 * - col2 FROM tab1 AS cor0
----
-118560
-133380
-54150
query I rowsort
SELECT - col1 + - col1 - col0 FROM tab1
----
-106
-55
-84
query I rowsort
SELECT DISTINCT tab2.col0 - + cor0.col2 FROM tab2, tab2 AS cor0
----
-19
-20
-31
40
41
51
52
53
query I rowsort
SELECT ALL + 40 + col0 - col1 AS col1 FROM tab2
----
102
16
59
query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col0 * + col0 * - 46 AS col1 FROM tab2 AS cor0
----
-2254
-279864
-287086
query I rowsort
SELECT + + col0 + - col2 + 48 AS col0 FROM tab2 AS cor0
----
100
28
89
query I rowsort
SELECT + + col1 - col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT DISTINCT col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8263
SELECT DISTINCT col0 / cor0.col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col0 + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - 67 + + ( col0 ) FROM tab0
----
-32
-43
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8267
SELECT CAST( col0 AS SIGNED ) + col0 FROM tab2
----
14
156
158
skipif mysql # not compatible
query I rowsort label-8267
SELECT CAST ( col0 AS INTEGER ) + col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL + + col0 + col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + col0 * + 76 AS col2 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT ALL col2 * 81 * col1 + col0 FROM tab0 AS cor0
----
229902
604511
7892
query I rowsort
SELECT DISTINCT + col1 * 28 AS col1 FROM tab1 AS cor0
----
280
364
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab1
----
70
70
70
query I rowsort
SELECT DISTINCT - + cor0.col1 + - 74 AS col0 FROM tab1 AS cor0
----
-100
-84
-87
query I rowsort
SELECT ALL + col0 + col0 + col2 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT ( col1 ) * - 42 - + tab1.col2 AS col0 FROM tab1
----
-1146
-477
-642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - tab0.col1 ) + - ( - 34 + - tab0.col2 ) col0 FROM tab0
----
132
153
207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8277
SELECT - ( col2 * + CAST( NULL AS SIGNED ) ) - + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8277
SELECT - ( col2 * + CAST ( NULL AS INTEGER ) ) - + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 * col0 ) + - col0 FROM tab2
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8279
SELECT DISTINCT + - col0 + cor0.col2 + col1 DIV + col0 col1 FROM tab1 AS cor0
----
-7
16
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8279
SELECT DISTINCT + - col0 + cor0.col2 + col1 / + col0 col1 FROM tab1 AS cor0
----
-7
16
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT - col0 DIV col2 col1 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8280
SELECT - col0 / col2 col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col2 + cor0.col2 * - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL + ( - col0 ) + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 57 AS col1 FROM tab2
----
-57
-57
-57
query I rowsort
SELECT + col0 + - col1 + tab0.col0 AS col1 FROM tab0
----
-27
-38
87
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + ( + 43 ) * + col0 + - tab0.col2 * col0 AS col0 FROM tab0
----
-3471
1470
240
query I rowsort
SELECT DISTINCT col1 + + 18 AS col2 FROM tab0
----
104
109
115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8288
SELECT CAST( - tab1.col0 AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8288
SELECT CAST ( - tab1.col0 AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8289
SELECT - col2 DIV col1 + col1 * - 13 * - col1 FROM tab0
----
107653
122317
96148
skipif mysql # not compatible
query I rowsort label-8289
SELECT - col2 / col1 + col1 * - 13 * - col1 FROM tab0
----
107653
122317
96148
query I rowsort
SELECT ALL - 31 + + col0 FROM tab2 AS cor0
----
-24
47
48
query I rowsort
SELECT 11 + - col1 * - col2 * 23 AS col0 FROM tab1 AS cor0
----
13121
28715
32303
query I rowsort
SELECT DISTINCT 19 FROM tab0 cor0
----
19
query I rowsort
SELECT - - cor0.col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 29 + + col1 AS col1 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT + - col2 * + col2 + + 55 AS col2 FROM tab2 AS cor0
----
-1389
-621
-674
query I rowsort
SELECT - col0 + - col2 * 40 * col0 + - col1 AS col2 FROM tab2
----
-120176
-7598
-81257
query I rowsort
SELECT ALL cor1.col2 * 72 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 0cbe31ebe383d21e113aa6fe38f9b384
query I rowsort
SELECT DISTINCT + col2 - - ( + col0 + + col2 ) FROM tab2
----
130
155
61
query I rowsort
SELECT ALL + col2 - + col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - + col1 + col2 * col2 FROM tab2 cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT + col0 + 47 * col1 * + col2 FROM tab1 AS cor0
----
26854
58736
65991
query I rowsort
SELECT ALL 21 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8304
SELECT DISTINCT + col0 DIV 37 + col0 AS col1 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + col0 / 37 + col0 AS col1 FROM tab0 AS cor0
----
24
35
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT + ( - col0 ) * col1 * col1 - - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6401
skipif mysql # not compatible
query I rowsort label-8305
SELECT + ( - col0 ) * col1 * col1 - - col0 / - col2 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6401
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8306
SELECT ALL - CAST( NULL AS SIGNED ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - CAST ( NULL AS INTEGER ) - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 41 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT + ( cor0.col1 ) * col0 - col0 AS col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL col1 * 81 FROM tab2 AS cor0
----
1377
2511
4779
onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT ALL - 4 DIV - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL - 4 / - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
13616
2082
6457
onlyif mysql # use DIV operator for integer division
query I rowsort label-8312
SELECT DISTINCT - ( + col2 ) DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - ( + col2 ) / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT - - ( cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8314
SELECT DISTINCT + - col2 DIV col2 + - col0 AS col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + - col2 / col2 + - col0 AS col2 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8315
SELECT + col0 DIV - 20 col2 FROM tab0
----
-1
-1
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8315
SELECT + col0 / - 20 col2 FROM tab0
----
-1
-1
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
16
query I rowsort
SELECT ALL 70 AS col2 FROM tab0
----
70
70
70
query I rowsort
SELECT + ( + col1 ) + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 66 + + 59 AS col2 FROM tab2 AS cor0
----
125
125
125
query I rowsort
SELECT ALL + + col2 * - col2 + col2 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT - - 19 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT ALL col2 * col2 - + col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT 73 * - col2 - - ( 69 ) AS col0 FROM tab1 cor0
----
-3873
-4092
-6939
query I rowsort
SELECT - 85 * - col2 + 54 * 0 * col0 AS col0 FROM tab0 AS cor0
----
2805
6970
85
query I rowsort
SELECT col1 * - col2 + 45 AS col0 FROM tab2 AS cor0
----
-1489
-601
-792
query I rowsort
SELECT ALL - + col1 + - col1 + + col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col1 * + col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ( 17 ) + - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b27559727312042b119b5825248e0488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8330
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * ( - col1 ) AS col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 21 col0 FROM tab2 AS cor0
----
-546
-567
-798
query I rowsort
SELECT + 26 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT - cor0.col0 DIV + 13 AS col2 FROM tab1 cor0
----
-4
-6
0
skipif mysql # not compatible
query I rowsort label-8334
SELECT - cor0.col0 / + 13 AS col2 FROM tab1 cor0
----
-4
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8335
SELECT + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8335
SELECT + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 15 ) * col2 + - col2 AS col0 FROM tab0 AS cor0
----
1148
14
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-8337
SELECT - 69 DIV col0 AS col0 FROM tab2 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-8337
SELECT - 69 / col0 AS col0 FROM tab2 AS cor0
----
-9
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT DISTINCT + col2 DIV ( cor0.col1 ) + + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + col2 / ( cor0.col1 ) + + col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - + cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 52 * tab1.col0 + col1 AS col2 FROM tab1
----
182
3338
4173
query I rowsort
SELECT DISTINCT - tab0.col2 - - col1 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT - col2 - + col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col1 + - 93 - 74 * col1 FROM tab1 cor0
----
-1042
-1991
-823
query I rowsort
SELECT col0 + - ( + col1 ) + col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT - col2 + - ( col1 ) - col2 AS col1 FROM tab1 AS cor0
----
-124
-134
-205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8347
SELECT ALL + CAST( NULL AS SIGNED ) * + ( col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - ( + 65 ) AS col1 FROM tab2 AS cor0
----
-65
-65
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT - ( 37 ) FROM tab2 AS cor0
----
-37
-37
-37
query I rowsort
SELECT - + 42 AS col1 FROM tab0 AS cor0
----
-42
-42
-42
query I rowsort
SELECT ALL + 89 + - col0 AS col0 FROM tab1 AS cor0
----
25
86
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT DISTINCT col1 + - col2 DIV + col0 + col0 * - col2 col0 FROM tab1 AS cor0
----
-154
-3638
-7668
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT col1 + - col2 / + col0 + col0 * - col2 col0 FROM tab1 AS cor0
----
-154
-3638
-7668
query I rowsort
SELECT ALL + 74 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT - + ( - cor0.col0 ) + ( 19 ) AS col2 FROM tab2 AS cor0
----
26
97
98
query I rowsort
SELECT ALL tab2.col0 * col0 * col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 61 + col0 FROM tab1 AS cor0
----
125
141
64
query I rowsort
SELECT ALL - col0 + - cor0.col1 + - cor0.col2 FROM tab1 cor0
----
-131
-189
-83
query I rowsort
SELECT ALL - + 61 AS col0 FROM tab2 AS cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT DISTINCT - col2 DIV - 92 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8362
SELECT DISTINCT - col2 / - 92 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * + 16 AS col2 FROM tab1 AS cor0
----
-1024
-1280
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - col0 * - col2 + - col1 - col0 FROM tab0 AS cor0
----
-97
682
7118
query I rowsort
SELECT - col1 * + 95 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
-724
-7594
-7990
onlyif mysql # use DIV operator for integer division
query I rowsort label-8368
SELECT - col2 + + col0 DIV ( - 76 + col2 * col0 ) AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8368
SELECT - col2 + + col0 / ( - 76 + col2 * col0 ) AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - + col1 + cor0.col1 * ( col1 ) FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL - col0 + + 69 * 94 FROM tab2 AS cor0
----
6407
6408
6479
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col0 * col2 + - col0 * 74 + cor0.col2 col2 FROM tab2 AS cor0
----
-125398
-56842
-6350
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT - col1 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8372
SELECT - col1 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col2 + + 58 FROM tab2 AS cor0
----
20
31
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * + col2 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * + col2 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - - 54 * - cor0.col0 + + col0 + + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-154
-2844
468
query I rowsort
SELECT col0 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + + ( - col1 ) AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - cor0.col1 * - col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 * + col0 + - 19 * cor0.col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-4060
-802780
-83160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8380
SELECT DISTINCT + + CAST( 62 AS SIGNED ) * + col0 col0 FROM tab1 AS cor0
----
186
3968
4960
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8380
SELECT DISTINCT + + CAST ( 62 AS INTEGER ) * + col0 col0 FROM tab1 AS cor0
----
186
3968
4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8381
SELECT col0 DIV - col1 + cor0.col2 FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-8381
SELECT col0 / - col1 + cor0.col2 FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT + col1 + 76 + col2 FROM tab2 AS cor0
----
131
134
161
query I rowsort
SELECT 39 * tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 86fbc498c8643fae1c9b6a8927493ea9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * ( + col1 ) + + col0 col0 FROM tab2 AS cor0
----
1354
2332
4503
query I rowsort
SELECT - 97 * + col0 * col0 AS col1 FROM tab2 cor0
----
-4753
-590148
-605377
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8386
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - ( - col0 ) * col1 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT + ( - 84 ) + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-76
-84
-84
skipif mysql # not compatible
query I rowsort label-8388
SELECT + ( - 84 ) + col1 / col0 AS col0 FROM tab1 AS cor0
----
-76
-84
-84
query I rowsort
SELECT ALL - ( cor0.col1 ) + + col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8390
SELECT DISTINCT col2 * ( + cor0.col0 + CAST( col0 AS SIGNED ) * col2 ) FROM tab1 AS cor0
----
211584
744960
8910
skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT col2 * ( + cor0.col0 + CAST ( col0 AS INTEGER ) * col2 ) FROM tab1 AS cor0
----
211584
744960
8910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT ALL CAST( col1 AS SIGNED ) DIV col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL CAST ( col1 AS INTEGER ) / col2 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8392
SELECT ALL col0 + + 50 + + tab1.col0 DIV 23 AS col2 FROM tab1
----
116
133
53
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL col0 + + 50 + + tab1.col0 / 23 AS col2 FROM tab1
----
116
133
53
query I rowsort
SELECT ALL - col1 * + col0 + + tab2.col2 * + 93 AS col1 FROM tab2
----
-2184
2191
2294
query I rowsort
SELECT ALL col1 + + 46 FROM tab2
----
105
63
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * ( + col0 ) * cor0.col1 col2 FROM tab0 cor0
----
118824
49503
720729
query I rowsort
SELECT + - col0 * - 19 AS col0 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT ALL 3 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8398
SELECT + tab1.col0 * CAST( col1 AS SIGNED ) AS col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-8398
SELECT + tab1.col0 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col2 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL 77 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - col2 - - col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - 62 + 13 FROM tab1 AS cor0
----
-49
-49
-49
query I rowsort
SELECT - ( col1 ) + - col2 AS col0 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col0 * 2 + - col2 FROM tab0
----
15
69
96
query I rowsort
SELECT tab1.col0 + 4 FROM tab1
----
68
7
84
query I rowsort
SELECT + col1 * 65 + 1 + - col1 FROM tab1
----
1665
641
833
query I rowsort
SELECT col2 * - col1 + + 33 AS col1 FROM tab1
----
-1215
-1371
-537
query I rowsort
SELECT DISTINCT col2 * + ( 6 * tab1.col1 ) + 76 AS col0 FROM tab1
----
3496
7564
8500
query I rowsort
SELECT DISTINCT - 39 + col2 FROM tab2 AS cor0
----
-1
-12
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( cor0.col0 ) col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8412
SELECT ALL - col2 DIV + col0 + - ( - 55 ) FROM tab2 AS cor0
----
52
55
55
skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - col2 / + col0 + - ( - 55 ) FROM tab2 AS cor0
----
52
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col2 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT - + cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8415
SELECT - ( col0 ) DIV col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8415
SELECT - ( col0 ) / col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT col0 * - col0 * ( col2 + + col1 ) FROM tab0 AS cor0
----
-120050
-1370333
-68544
query I rowsort
SELECT ( + col1 ) + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + 35 * + col2 AS col1 FROM tab0 AS cor0
----
1155
2870
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT DISTINCT + 68 * col0 DIV col1 FROM tab0
----
18
24
66
skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT + 68 * col0 / col1 FROM tab0
----
18
24
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 * col0 col0 FROM tab2
----
28
312
316
query I rowsort
SELECT ( + 11 ) * col2 + + ( - col1 ) * + col1 FROM tab0
----
-7033
-7379
-9398
query I rowsort
SELECT DISTINCT 54 * col1 FROM tab2
----
1674
3186
918
query I rowsort
SELECT 97 * + col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT DISTINCT - - 38 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2878
-3211
-9178
query I rowsort
SELECT - 42 + col1 * col0 FROM tab0 cor0
----
2022
3353
8057
query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT 47 AS col0 FROM tab1
----
47
47
47
query I rowsort
SELECT DISTINCT 76 * + col2 FROM tab0
----
2508
6232
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col1 FROM tab1
----
1
query I rowsort
SELECT ALL - 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT - tab1.col0 * 92 FROM tab1
----
-276
-5888
-7360
query I rowsort
SELECT + - col1 + ( col1 ) * col2 * + col0 FROM tab2 AS cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-8433
SELECT - + cor0.col1 DIV col0 AS col1 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8433
SELECT - + cor0.col1 / col0 AS col1 FROM tab1 cor0
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8434
SELECT + col1 * + CAST( + ( col2 ) AS SIGNED ) * + col2 FROM tab2 AS cor0
----
22599
24548
39884
skipif mysql # not compatible
query I rowsort label-8434
SELECT + col1 * + CAST ( + ( col2 ) AS INTEGER ) * + col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ( + col0 ) * - col0 + - col2 AS col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT + ( - col0 ) * - cor0.col0 + + 1 AS col1 FROM tab0 AS cor0
----
1226
577
7922
query I rowsort
SELECT ALL - 95 + - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-136
-147
-75
query I rowsort
SELECT ALL ( - col2 ) * cor0.col1 + cor0.col1 * + 26 FROM tab0 AS cor0
----
-5096
-602
2425
query I rowsort
SELECT - col2 + 36 AS col2 FROM tab2 AS cor0
----
-2
10
9
query I rowsort
SELECT ALL - col1 + ( col0 * + col2 + + col2 ) AS col1 FROM tab1 AS cor0
----
190
3695
7763
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col0 FROM tab1
----
-15
-15
-15
query I rowsort
SELECT + + col2 * col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2704
4446
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-8443
SELECT - cor0.col0 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-8443
SELECT - cor0.col0 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT - + ( - cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col0 * col2 * + col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ( + 37 ) FROM tab1 AS cor0
----
37
37
37
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 - 68 FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8450
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 6 AS col2 FROM tab1 AS cor0
----
6
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - + cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + cor0.col0 + + col1 - + col2 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT + - 14 + + col2 FROM tab0 AS cor0
----
-13
19
68
query I rowsort
SELECT DISTINCT - 67 * + col0 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT - col1 + col2 * col1 AS col0 FROM tab0
----
0
2752
7371
query I rowsort
SELECT - cor0.col0 + + ( + ( col0 ) ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - col2 * - tab1.col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT col1 + - 43 AS col0 FROM tab0
----
43
48
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * tab1.col2 col0 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col2 ) col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8464
SELECT - col1 * ( col0 ) DIV col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8464
SELECT - col1 * ( col0 ) / col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT col2 + col0 DIV + col0 AS col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8465
SELECT col2 + col0 / + col0 AS col2 FROM tab2
----
27
28
39
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 26 col0 FROM tab1
----
-260
-338
-676
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col1 + 56 AS col0 FROM tab1
----
66
69
82
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT - cor0.col0 DIV - cor0.col0 + 5 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
skipif mysql # not compatible
query I rowsort label-8472
SELECT - cor0.col0 / - cor0.col0 + 5 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT ALL col0 DIV 33 AS col0 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL col0 / 33 AS col0 FROM tab2
----
0
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT ALL CAST( - 15 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL CAST ( - 15 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - cor0.col2 * 73 AS col1 FROM tab2 AS cor0
----
-1898
-1971
-2774
onlyif mysql # use DIV operator for integer division
query I rowsort label-8477
SELECT 32 DIV - col2 + col1 + + 30 AS col2 FROM tab0 cor0
----
116
121
95
skipif mysql # not compatible
query I rowsort label-8477
SELECT 32 / - col2 + col1 + + 30 AS col2 FROM tab0 cor0
----
116
121
95
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
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-8479
SELECT ALL - - ( col1 ) + - col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab2 cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8481
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 - - 23 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 92ae2dd688908f2b480fc4bccb9c0f66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 - - col2 col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT + ( col0 ) + 9 AS col2 FROM tab2
----
16
87
88
query I rowsort
SELECT - + cor0.col0 * tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 897f7ed602fc86364e8d474cab107f0c
query I rowsort
SELECT + 90 AS col2 FROM tab1
----
90
90
90
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( tab2.col0 ) * cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4072458fabf3729ae820975197a76bd2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 - cor0.col2 * col2 col0 FROM tab1 AS cor0
----
-2847
-3180
-9147
query I rowsort
SELECT col0 - + col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 + 88 AS col2 FROM tab1 AS cor0
----
196
202
280
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 * 94 AS col0 FROM tab0 AS cor0
----
-3016
-7617
3
query I rowsort
SELECT DISTINCT - col1 + col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT - + col2 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL - + 67 + col0 AS col1 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT ALL col1 + + 59 FROM tab1 cor0
----
69
72
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8496
SELECT ALL - col1 * + col0 - + 14 DIV col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL - col1 * + col0 - + 14 / col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + col2 * col2 + 62 * + col2 FROM tab2 AS cor0
----
2288
2403
3800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8498
SELECT - - col1 + + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8498
SELECT - - col1 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col0 + 70 AS col1 FROM tab1 cor0
----
134
150
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8500
SELECT DISTINCT + col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT + col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 82 - col2 col2 FROM tab1 AS cor0
----
-1162
-2186
-877
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8502
SELECT + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8502
SELECT + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + 93 AS col2 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 - ( 40 ) AS col1 FROM tab1 AS cor0
----
14
17
56
query I rowsort
SELECT ALL col0 * - 96 + - col1 FROM tab2 AS cor0
----
-703
-7547
-7601
onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT - + cor0.col1 * col1 * - ( + col0 ) + 1 DIV col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-8509
SELECT - + cor0.col1 * col1 * - ( + col0 ) + 1 / col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + cor0.col0 - - col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 * ( - col2 ) + + col0 * + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + 44 AS col0 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT ALL + col0 * ( 53 ) FROM tab2 AS cor0
----
371
4134
4187
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT ( - col2 ) * + CAST ( + col1 AS REAL ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL 62 AS col1 FROM tab0
----
62
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8516
SELECT DISTINCT - + col2 + col1 DIV - 68 + col2 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT - + col2 + col1 / - 68 + col2 AS col1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - 56 * cor0.col1 - col0 AS col1 FROM tab0 AS cor0
----
-4840
-5185
-5467
query I rowsort
SELECT ALL + ( + col2 ) * + 44 FROM tab1 AS cor0
----
2376
2508
4224
query I rowsort
SELECT DISTINCT 23 + col1 AS col0 FROM tab2 AS cor0
----
40
54
82
query I rowsort
SELECT DISTINCT + - col2 - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT - - col0 - - col0 DIV col1 AS col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8521
SELECT - - col0 - - col0 / col1 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col1 - + cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 + 10 AS col1 FROM tab1 AS cor0
----
-44
-47
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8524
SELECT col1 - - CAST( - 27 AS SIGNED ) AS col0 FROM tab0 cor0
----
59
64
70
skipif mysql # not compatible
query I rowsort label-8524
SELECT col1 - - CAST ( - 27 AS INTEGER ) AS col0 FROM tab0 cor0
----
59
64
70
query I rowsort
SELECT DISTINCT - col1 + - col0 * 64 FROM tab0 AS cor0
----
-1622
-2337
-5787
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8526
SELECT ALL + cor0.col0 * ( - col2 ) + + col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + cor0.col0 * ( - col2 ) + + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - - cor0.col2 * + col1 * + col0 FROM tab0 cor0
----
3492
664209
68198
query I rowsort
SELECT ALL - col0 + + cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT DISTINCT col2 DIV + ( col0 ) FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT col2 / + ( col0 ) FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + cor0.col2 * col1 * + col1 + - col2 * + 79 FROM tab1 AS cor0
----
1197
32238
8640
query I rowsort
SELECT col1 * col1 + - col0 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT - col1 + + col0 * tab2.col1 AS col1 FROM tab2
----
1326
186
4543
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - col1
----
query I rowsort
SELECT col1 * col1 + - col0 * - col2 FROM tab1
----
3748
7849
838
query I rowsort
SELECT col0 FROM tab2 WHERE NULL <= NULL
----
query I rowsort
SELECT - tab0.col2 * + col2 + col1 FROM tab0
----
-1003
-6633
96
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col2 + col2 ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT tab0.col2 + col0 + + col2 AS col1 FROM tab0
----
253
37
90
query I rowsort
SELECT ALL + col1 + + col0 + col2 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT col2 * col0 * + tab0.col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL tab0.col0 + + col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 + col0 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1 WHERE ( + col0 ) NOT IN ( tab1.col0 * + tab1.col0 + col2 )
----
10
13
26
query I rowsort
SELECT tab1.col1 + - col2 * - col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE ( NULL ) > col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + tab0.col2 * col0 * col0 col1 FROM tab0
----
-1224
-18975
-649440
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * col2 ) NOT IN ( + col0 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT 3 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
1043
643
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT + col2 * col1 DIV 47 + - col2 AS col1 FROM tab0 AS cor0
----
1
27
76
skipif mysql # not compatible
query I rowsort label-8550
SELECT + col2 * col1 / 47 + - col2 AS col1 FROM tab0 AS cor0
----
1
27
76
query I rowsort
SELECT col2 + col0 * 64 FROM tab2 AS cor0
----
475
5018
5094
query I rowsort
SELECT + col2 * col1 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT 66 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT 65 + + col2 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT DISTINCT - 16 * col2 AS col1 FROM tab0
----
-1312
-16
-528
query I rowsort
SELECT - ( - 55 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT + ( - col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT + tab0.col0 DIV 92 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8558
SELECT + tab0.col0 / 92 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab1, tab0 AS cor0
----
7
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8561
SELECT ALL + col1 DIV - col0 AS col2 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + col1 / - col0 AS col2 FROM tab1
----
-8
0
0
query I rowsort
SELECT ALL 31 AS col0 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT + 82 AS col1 FROM tab0
----
82
82
82
query I rowsort
SELECT ALL + ( + tab2.col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT 27 AS col1 FROM tab2 AS cor0
----
27
27
27
query I rowsort
SELECT ALL + + 69 * col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT + - col0 * - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + + cor0.col2 AS col1 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT ALL + cor0.col2 DIV + col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + cor0.col2 / + col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL 88 * col1 - - col0 FROM tab0 cor0
----
7592
8097
8571
query I rowsort
SELECT + col1 * - col2 + - col0 * - col1 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT - + col0 * - col2 - - col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col1 + - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 + col0 * - col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - + col1 + + col2 * - col0 * - col0 FROM tab0 AS cor0
----
1128
18922
649431
query I rowsort
SELECT + col2 * + col2 * - col1 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8578
SELECT - CAST( col2 AS SIGNED ) * - col1 - - col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-8578
SELECT - CAST ( col2 AS INTEGER ) * - col1 - - col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + 15 * + col0 AS col1 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT DISTINCT - col0 * + 29 AS col1 FROM tab2 AS cor0
----
-203
-2262
-2291
query I rowsort
SELECT ALL + tab2.col0 * - col0 * col1 FROM tab2
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT - col2 + col1 + + cor0.col0 DIV - col2 FROM tab0 cor0
----
53
61
8
skipif mysql # not compatible
query I rowsort label-8582
SELECT - col2 + col1 + + cor0.col0 / - col2 FROM tab0 cor0
----
53
61
8
query I rowsort
SELECT ALL - + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col2 + + col1 * - col0 col0 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT ALL cor0.col1 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - col2 * + col2 + col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-273
663
69
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + ( ( col1 ) ) * + col2 * col1 - col2 FROM tab0
----
244035
678960
9408
query I rowsort
SELECT ALL ( - 4 ) - + col1 FROM tab0
----
-101
-90
-95
query I rowsort
SELECT + 0 + ( + tab2.col2 ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT + col0 * + tab0.col0 * - col0 AS col1 FROM tab0
----
-13824
-42875
-704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * - col0 col2 FROM tab2
----
-616
-6864
-6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * + col2 col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT col0 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8594
SELECT col0 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - tab2.col0 - + col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - tab2.col2 * + col0 * - col1 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col1 + col0 * col0 + col1 FROM tab2
----
111
6202
6275
query I rowsort
SELECT - col0 + col2 - tab0.col0 AS col0 FROM tab0
----
-15
-69
-96
query I rowsort
SELECT DISTINCT + col1 + + tab0.col2 - - col1 FROM tab0
----
195
205
264
query I rowsort
SELECT DISTINCT - col0 * col2 + col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col2 * col1 + col2 AS col0 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 * - col2 AS col1 FROM tab2
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-8603
SELECT - col1 DIV col1 col2 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8603
SELECT - col1 / col1 col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL col1 + + col0 + + col0 FROM tab0
----
134
167
269
query I rowsort
SELECT DISTINCT - tab1.col1 * - tab1.col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT ALL - col0 * col2 DIV col1 FROM tab1 AS cor0
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL - col0 * col2 / col1 FROM tab1 AS cor0
----
-364
-590
-6
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 NOT BETWEEN ( NULL ) AND - col2
----
query I rowsort
SELECT + col0 + - col2 * col0 AS col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL col2 * + tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT NULL BETWEEN ( + col0 - + col2 ) AND ( NULL )
----
query I rowsort
SELECT - col2 + col2 * col0 FROM tab1
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8612
SELECT - tab1.col1 DIV - col1 - tab1.col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-8612
SELECT - tab1.col1 / - col1 - tab1.col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + col1 + col0 * col1 col2 FROM tab2 cor0
----
1281
241
4583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 + col1 * - col1 col1 FROM tab0 cor0
----
-15005
-8485
-9410
query I rowsort
SELECT DISTINCT - - col1 * - col2 + + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + - cor0.col2 + + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - tab0.col2 + + col1 - col0 * + col0 FROM tab0
----
-1129
-523
-7912
query I rowsort
SELECT DISTINCT + tab1.col2 * col1 * col1 + - col0 AS col2 FROM tab1
----
16144
36501
5636
onlyif mysql # use DIV operator for integer division
query I rowsort label-8620
SELECT + col1 DIV + tab2.col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8620
SELECT + col1 / + tab2.col0 FROM tab2
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT DISTINCT cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT cor0.col0 + col1 * cor0.col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-8624
SELECT ALL + - col1 + - col0 DIV - col0 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + - col1 + - col0 / - col0 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT + + col2 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT ALL + - cor0.col1 DIV + col0 - cor0.col2 DIV col2 FROM tab1 cor0
----
-1
-1
-9
skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + - cor0.col1 / + col0 - cor0.col2 / col2 FROM tab1 cor0
----
-1
-1
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT ALL - cor0.col2 + + col0 + + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-9
69
8
skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL - cor0.col2 + + col0 + + col0 / + col2 AS col1 FROM tab0 AS cor0
----
-9
69
8
query I rowsort
SELECT col1 * + col1 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-540
-871
598
query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT + col1 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-8630
SELECT + col1 + col2 / cor0.col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col1 * - col0 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL 47 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab2, tab0 AS cor0
----
6
query I rowsort
SELECT - 7 * + col1 FROM tab0 AS cor0
----
-602
-637
-679
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT DISTINCT tab1.col0 DIV + col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT tab1.col0 / + col2 FROM tab1
----
0
1
query I rowsort
SELECT + 18 * tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0bf093f7c10a9fd1ff625c454db58fe1
query I rowsort
SELECT - ( - ( col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT + + cor0.col2 * + 11 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
-1
-33
-82
query I rowsort
SELECT + 61 + col2 * col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35998
551429
62
query I rowsort
SELECT DISTINCT - 28 * col0 AS col0 FROM tab2
----
-196
-2184
-2212
query I rowsort
SELECT ALL + 42 + - col1 FROM tab0 cor0
----
-44
-49
-55
query I rowsort
SELECT DISTINCT col2 + + 17 * col2 AS col1 FROM tab0 AS cor0
----
1476
18
594
query I rowsort
SELECT DISTINCT + - col0 + - col1 * - col1 * ( - col2 ) + col1 FROM tab1 AS cor0
----
-16291
-36481
-5754
query I rowsort
SELECT col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-8647
SELECT 57 DIV - col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8647
SELECT 57 / - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT 30 * col2 AS col2 FROM tab1
----
1620
1710
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + col2 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 28 * 22 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
616
query I rowsort
SELECT DISTINCT col2 * - tab0.col0 * 93 + col0 * col2 FROM tab0
----
-3220
-671416
-72864
query I rowsort
SELECT DISTINCT - + col1 * + col1 + cor0.col0 * 52 FROM tab1 AS cor0
----
-520
3228
3991
query I rowsort
SELECT + - 7 - col2 * 60 AS col2 FROM tab0 AS cor0
----
-1987
-4927
-67
query I rowsort
SELECT ALL 67 * - col0 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT ALL + + col2 DIV + col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + + col2 / + col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + + col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + - col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col1 * - ( - cor0.col1 ) + + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + + col0 + - 98 AS col2 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT ALL - cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8663
SELECT + - col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8663
SELECT + - col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + - col1 * + col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + col2 * 55 AS col0 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT col1 - + col1 FROM tab0
----
0
query I rowsort
SELECT - 90 FROM tab1, tab1 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT + col1 - + col0 DIV cor0.col2 AS col1 FROM tab0 cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-8669
SELECT + col1 - + col0 / cor0.col2 AS col1 FROM tab0 cor0
----
62
86
90
query I rowsort
SELECT col0 + ( col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col0 * - col0 + + col1 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT 91 * - ( + col2 ) FROM tab1 AS cor0
----
-4914
-5187
-8736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8673
SELECT - - CAST( + 94 AS SIGNED ) FROM tab2 AS cor0
----
94
94
94
skipif mysql # not compatible
query I rowsort label-8673
SELECT - - CAST ( + 94 AS INTEGER ) FROM tab2 AS cor0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT - cor0.col2 DIV col1 + + cor0.col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8674
SELECT - cor0.col2 / col1 + + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - col2 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT col0 * 7 + col2 FROM tab2 AS cor0
----
572
591
76
query I rowsort
SELECT ALL + col1 * 32 + col1 FROM tab1 cor0
----
330
429
858
query I rowsort
SELECT DISTINCT - - 69 - - 23 FROM tab1 AS cor0
----
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8679
SELECT ALL - + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8681
SELECT 95 + - col2 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1349
-581
-634
skipif mysql # not compatible
query I rowsort label-8681
SELECT 95 + - col2 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1349
-581
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + + col2 * - col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + col0 * - col2 * + col2 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT - ( col1 ) * + ( + 47 ) AS col1 FROM tab1 cor0
----
-1222
-470
-611
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - col1 col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - 35 + - col2 FROM tab0
----
-117
-36
-68
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT 73 FROM tab0, tab2 AS cor0, tab2 cor1
----
73
query I rowsort
SELECT + - col2 * - 50 FROM tab2 cor0
----
1300
1350
1900
query I rowsort
SELECT DISTINCT - cor0.col0 + 79 FROM tab0 AS cor0
----
-10
44
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8693
SELECT - + col2 * - CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-8693
SELECT - + col2 * - CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-8694
SELECT - col1 DIV - col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8694
SELECT - col1 / - col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT 34 FROM tab1, tab0, tab2 AS cor0
----
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8696
SELECT DISTINCT - col0 DIV + col1 + + col2 * col2 AS col1 FROM tab1 cor0
----
2916
3243
9210
skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - col0 / + col1 + + col2 * col2 AS col1 FROM tab1 cor0
----
2916
3243
9210
onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT + 86 DIV ( tab0.col1 + 18 * + col2 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8697
SELECT + 86 / ( tab0.col1 + 18 * + col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col0 ) * 54 + 40 AS col0 FROM tab1 AS cor0
----
202
3496
4360
onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT DISTINCT cor0.col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT cor0.col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8700
SELECT 38 DIV col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8700
SELECT 38 / col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL 50 + col0 FROM tab2
----
128
129
57
query I rowsort
SELECT ALL ( col1 ) + - col2 + 85 AS col0 FROM tab0
----
138
181
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-8703
SELECT ALL tab1.col1 * + col0 - col0 DIV col1 FROM tab1
----
1034
634
78
skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL tab1.col1 * + col0 - col0 / col1 FROM tab1
----
1034
634
78
query I rowsort
SELECT ALL + ( - col1 ) * col0 - ( + 26 ) AS col1 FROM tab2
----
-1369
-243
-4628
query I rowsort
SELECT ALL col1 - + 42 AS col1 FROM tab0
----
44
49
55
query I rowsort
SELECT cor0.col2 * cor0.col0 + col1 AS col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col2 + + col1 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT ALL - + 1 * + col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT ALL + 88 DIV - col1 FROM tab1 cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + 88 / - col1 FROM tab1 cor0
----
-3
-6
-8
query I rowsort
SELECT - 29 + + col0 AS col0 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT ALL + - col1 * col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT ALL + cor0.col2 DIV col1 + - CAST( - col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1241
-1402
-565
skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL + cor0.col2 / col1 + - CAST ( - col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1241
-1402
-565
query I rowsort
SELECT ALL + ( - 68 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT DISTINCT + 94 FROM tab0, tab2 AS cor0
----
94
query I rowsort
SELECT ALL + 25 FROM tab0, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - col2 + + 90 AS col2 FROM tab2 AS cor0
----
52
63
64
query I rowsort
SELECT + col1 - 50 FROM tab0 AS cor0
----
36
41
47
query I rowsort
SELECT DISTINCT - ( + col0 ) + - cor0.col1 + + 46 AS col2 FROM tab1 AS cor0
----
-28
-47
17
query I rowsort
SELECT ALL - 92 + 95 AS col0 FROM tab2 AS cor0
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) - col2 * 82 * + 17 col2 FROM tab0 AS cor0
----
-114390
-1395
-46035
query I rowsort
SELECT ALL + 12 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL + cor0.col1 - - 24 FROM tab0 AS cor0
----
110
115
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT 71 + 38 AS col0 FROM tab0 AS cor0
----
109
query I rowsort
SELECT DISTINCT + + 99 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1633
745
936
query I rowsort
SELECT DISTINCT - 59 + 38 - + col0 AS col0 FROM tab2 AS cor0
----
-100
-28
-99
query I rowsort
SELECT ALL + 26 + col0 AS col1 FROM tab0 AS cor0
----
115
50
61
query I rowsort
SELECT ALL + + 44 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT ALL - col0 * col0 - - col2 AS col1 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + + cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + col1 * 93 FROM tab1 AS cor0
----
1209
2418
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col2 FROM tab2 AS cor0
----
68
query I rowsort
SELECT - + col0 + 54 * + col2 FROM tab1 cor0
----
2913
3014
5104
query I rowsort
SELECT + - ( + col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT ALL - ( + 8 ) DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - ( + 8 ) / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * - 44 FROM tab1 AS cor0
----
-132
-2816
-3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT - col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT - col1 / + col0 FROM tab2 AS cor0
----
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT ALL + - 72 - + col0 DIV 26 FROM tab1 cor0
----
-72
-74
-75
skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL + - 72 - + col0 / 26 FROM tab1 cor0
----
-72
-74
-75
query I rowsort
SELECT 80 * col1 FROM tab0
----
6880
7280
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8740
SELECT ALL - col2 DIV - 97 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL - col2 / - 97 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT + cor0.col2 + col1 DIV + col0 col0 FROM tab2 AS cor0
----
26
31
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8741
SELECT + cor0.col2 + col1 / + col0 col0 FROM tab2 AS cor0
----
26
31
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 74 col0 FROM tab0 cor0
----
2442
6068
74
query I rowsort
SELECT DISTINCT - col1 * - ( col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT + col0 * 81 AS col0 FROM tab1 AS cor0
----
243
5184
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT ALL + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8745
SELECT ALL + col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8746
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8746
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 52 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ALL - col1 * col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 + tab0.col0 col2 FROM tab0
----
1
12
66
query I rowsort
SELECT - col1 + - col0 * 46 AS col0 FROM tab0
----
-1190
-1707
-4185
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 + 0 * 51 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8753
SELECT - col2 + col1 DIV cor0.col2 col2 FROM tab0 AS cor0
----
-31
-81
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8753
SELECT - col2 + col1 / cor0.col2 col2 FROM tab0 AS cor0
----
-31
-81
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT + - col1 + + col0 AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + col2 - col0 * - col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT tab1.col1 - col2 FROM tab1
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8759
SELECT + tab0.col2 * + CAST( NULL AS SIGNED ) + col0 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8759
SELECT + tab0.col2 * + CAST ( NULL AS INTEGER ) + col0 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 37 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8761
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT ALL + col2 DIV - col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + col2 / - col0 FROM tab2
----
-3
0
0
query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT tab2.col1 + + col1 DIV col1 col2 FROM tab2
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8764
SELECT tab2.col1 + + col1 / col1 col2 FROM tab2
----
18
32
60
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2 AS cor0
----
86
query I rowsort
SELECT + + ( - col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT 40 * + col1 FROM tab2
----
1240
2360
680
query I rowsort
SELECT - - col0 + + 65 * + col2 AS col2 FROM tab1 AS cor0
----
3513
3769
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8770
SELECT - col2 * + CAST( ( + col0 ) AS SIGNED ) + + 77 FROM tab0 AS cor0
----
-715
-7221
42
skipif mysql # not compatible
query I rowsort label-8770
SELECT - col2 * + CAST ( ( + col0 ) AS INTEGER ) + + 77 FROM tab0 AS cor0
----
-715
-7221
42
query I rowsort
SELECT - 63 + - cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c05f2aced86eba5849633db1b078a032
query I rowsort
SELECT ALL - 81 AS col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab0 cor0
----
17
31
59
query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT + col1 + + col0 + col1 AS col0 FROM tab2
----
113
196
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8776
SELECT CAST( 70 AS SIGNED ) * col1 * + col2 FROM tab0 AS cor0
----
198660
522340
6790
skipif mysql # not compatible
query I rowsort label-8776
SELECT CAST ( 70 AS INTEGER ) * col1 * + col2 FROM tab0 AS cor0
----
198660
522340
6790
query I rowsort
SELECT ( col1 ) + - cor0.col0 - col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - ( 69 ) - col0 AS col2 FROM tab1 AS cor0
----
-133
-149
-72
query I rowsort
SELECT - tab2.col2 * + col1 + col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL - - 29 AS col1 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT - 75 * + cor0.col0 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-471
-5798
-5849
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 * - ( + col2 ) col2 FROM tab2 AS cor0
----
-1014
-1053
-1482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT ALL + - CAST( NULL AS SIGNED ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 46 + col0 AS col1 FROM tab0 cor0
----
135
70
81
query I rowsort
SELECT + ( 39 ) AS col2 FROM tab2 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT - 87 * + 69 + col2 DIV 12 AS col2 FROM tab1 AS cor0
----
-5995
-5999
-5999
skipif mysql # not compatible
query I rowsort label-8787
SELECT - 87 * + 69 + col2 / 12 AS col2 FROM tab1 AS cor0
----
-5995
-5999
-5999
query I rowsort
SELECT DISTINCT 93 * col1 FROM tab2 AS cor0
----
1581
2883
5487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8789
SELECT + CAST( - cor0.col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8789
SELECT + CAST ( - cor0.col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 * + 40 + - col1 col2 FROM tab2 AS cor0
----
821
849
863
query I rowsort
SELECT ALL - - col1 + + 15 FROM tab0 cor0
----
101
106
112
query I rowsort
SELECT + 79 + - col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1040
3560
368
query I rowsort
SELECT DISTINCT + 41 + - col0 AS col2 FROM tab1 AS cor0
----
-23
-39
38
query I rowsort
SELECT DISTINCT + 40 + ( col1 ) FROM tab0 AS cor0
----
126
131
137
query I rowsort
SELECT DISTINCT cor0.col0 * 82 AS col2 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL 75 AS col0 FROM tab1
----
75
75
75
query I rowsort
SELECT ALL 51 + + col1 + ( col2 ) FROM tab0 AS cor0
----
149
170
224
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - 39 * 57 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-2223
query I rowsort
SELECT - - col1 - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 36 + + col1 * 42 FROM tab1 AS cor0
----
1128
456
582
query I rowsort
SELECT - col2 * - col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - + 38 AS col0 FROM tab2 cor0
----
-38
query I rowsort
SELECT 54 * + col1 AS col0 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT + col2 + col1 * ( col2 * col2 ) + cor0.col1 FROM tab2 AS cor0
----
22657
24603
39969
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT - + cor0.col1 * cor0.col1 DIV + 71 col0 FROM tab0 AS cor0
----
-104
-116
-132
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - + cor0.col1 * cor0.col1 / + 71 col0 FROM tab0 AS cor0
----
-104
-116
-132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8807
SELECT CAST( NULL AS SIGNED ) + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8807
SELECT CAST ( NULL AS INTEGER ) + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 29 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 89 col1 FROM tab0
----
175
180
186
query I rowsort
SELECT - col1 + + 91 AS col1 FROM tab1
----
65
78
81
query I rowsort
SELECT col2 * 76 FROM tab2 AS cor0
----
1976
2052
2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT - cor0.col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8812
SELECT - cor0.col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - - col1 * + col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + col0 * + col1 + col0 * + cor0.col2 FROM tab0 cor0
----
15397
2856
3430
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8815
SELECT + col0 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8815
SELECT + col0 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * 44 AS col1 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT - - col0 - - col1 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 + col0 * - cor0.col0 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + col1 + 49 AS col0 FROM tab1 cor0
----
59
62
75
query I rowsort
SELECT col1 * 70 * col0 + + col0 * 69 + 92 FROM tab0 AS cor0
----
146228
240157
573163
query I rowsort
SELECT col2 * col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL + ( col2 ) * + 77 FROM tab2
----
2002
2079
2926
query I rowsort
SELECT ALL + col2 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-8824
SELECT tab1.col2 DIV + 29 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 14abe0a65ffde3428a361c66e935c2aa
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8824
SELECT tab1.col2 / + 29 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 14abe0a65ffde3428a361c66e935c2aa
query I rowsort
SELECT col1 * col1 * tab0.col1 AS col0 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT + col0 - col1 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8827
SELECT + col0 DIV + CAST( + 44 AS SIGNED ) - - col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1039
-639
-78
skipif mysql # not compatible
query I rowsort label-8827
SELECT + col0 / + CAST ( + 44 AS INTEGER ) - - col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1039
-639
-78
query I rowsort
SELECT col1 * ( cor0.col2 * col0 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col1 * - col0 + col1 + col2 FROM tab1
----
-573
-931
2
query I rowsort
SELECT DISTINCT - 20 * col2 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
2178
5822
77
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 86 * - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1294c3453ddfdba6547ffe07f8fd749d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT ALL - col2 * col2 + CAST( NULL AS SIGNED ) * 32 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - col2 * col2 + CAST ( NULL AS INTEGER ) * 32 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 38 * col1 AS col0 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT ALL ( col2 ) * - 31 AS col1 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT DISTINCT - - ( col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 * 14 AS col1 FROM tab2 AS cor0
----
18802
3038
64428
query I rowsort
SELECT - - col2 + - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT + 53 + cor0.col2 * + ( 29 ) * col1 AS col2 FROM tab1 AS cor0
----
16583
36245
40769
query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT col1 * + col2 + 83 FROM tab1 AS cor0
----
1331
1487
653
query I rowsort
SELECT ALL 66 + col2 AS col1 FROM tab0 AS cor0
----
148
67
99
query I rowsort
SELECT ALL - col2 + + col1 * ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT cor0.col0 * 20 AS col1 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT + col0 + - ( + col0 ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * ( + ( - col1 ) ) + col0 col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - col0 + ( col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col2 + ( col1 ) + col2 FROM tab2 cor0
----
111
85
93
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + 87 * - col0 AS col0 FROM tab0 AS cor0
----
-1296
-3010
-445
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8853
SELECT ALL - col2 * CAST( NULL AS SIGNED ) - + 69 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) - + 69 / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - col2 ) * - col0 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + + tab0.col1 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + ( - col1 ) + tab0.col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * 91 FROM tab1
----
1183
2366
910
query I rowsort
SELECT ALL + col1 + col0 + col2 FROM tab1 AS cor0
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col2 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - + 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 - cor0.col0 * 27 col0 FROM tab0 AS cor0
----
-1014
-2472
-717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 - - col0 col0 FROM tab1 AS cor0
----
-68
-7
9
query I rowsort
SELECT DISTINCT ( col1 ) + - tab2.col0 * 49 + + col0 FROM tab2
----
-305
-3685
-3775
query I rowsort
SELECT col0 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + ( col0 ) + 91 * - 14 * col0 FROM tab0 AS cor0
----
-113297
-30552
-44555
query I rowsort
SELECT + + 90 AS col1 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT + 77 * + col1 * ( - ( + col1 ) ) + + col1 * + ( - col2 * 18 ) FROM tab0 AS cor0
----
-620576
-726239
-771953
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT DISTINCT - 90 DIV + col2 - + ( + col1 ) col0 FROM tab1 AS cor0
----
-11
-13
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT - 90 / + col2 - + ( + col1 ) col0 FROM tab1 AS cor0
----
-11
-13
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * - col0 col1 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT - 42 * col1 * + tab1.col0 FROM tab1
----
-26880
-3276
-43680
query I rowsort
SELECT DISTINCT 89 * + ( tab0.col1 ) + - ( - col2 ) AS col1 FROM tab0
----
7687
8181
8634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT ALL col2 * + col1 * tab2.col1 + - 8 DIV + col1 FROM tab2
----
10982
25947
90506
skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL col2 * + col1 * tab2.col1 + - 8 / + col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT 39 * 75 * + col2 AS col1 FROM tab0
----
239850
2925
96525
onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT ALL + 33 + col1 DIV col0 FROM tab2
----
33
33
37
skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL + 33 + col1 / col0 FROM tab2
----
33
33
37
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0, tab0 cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT DISTINCT col1 + + col2 * col2 * 88 AS col0 FROM tab0
----
185
591803
95918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT DISTINCT CAST( NULL AS SIGNED ) + tab2.col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT CAST ( NULL AS INTEGER ) + tab2.col1 AS col0 FROM tab2
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 >= col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) > ( - col1 )
----
query I rowsort
SELECT ALL + tab2.col0 + tab2.col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT col1 * col1 + + col1 AS col1 FROM tab0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-8883
SELECT + col0 * col2 DIV - col2 + - tab0.col1 * + col1 FROM tab0
----
-7420
-8370
-9444
skipif mysql # not compatible
query I rowsort label-8883
SELECT + col0 * col2 / - col2 + - tab0.col1 * + col1 FROM tab0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-8884
SELECT DISTINCT col0 + col0 DIV col1 AS col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT col0 + col0 / col1 AS col0 FROM tab2
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT DISTINCT + col2 * col0 DIV - col1 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + col2 * col0 / - col1 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT DISTINCT col2 + col1 + + col1 FROM tab0
----
195
205
264
query I rowsort
SELECT col2 * col2 + + col0 AS col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + col1 + - col1 - col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT col2 + + col2 + + col1 DIV tab1.col2 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT col2 + + col2 + + col1 / tab1.col2 FROM tab1
----
108
114
192
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT col0 * col0 + col2 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ALL + tab2.col1 * + tab2.col1 + - tab2.col2 FROM tab2
----
251
3455
934
query I rowsort
SELECT col0 * col1 + + col0 * + col2 AS col0 FROM tab2
----
406
4345
6630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + - cor0.col0 col2 FROM tab2 AS cor0
----
19
20
91
query I rowsort
SELECT col1 * - col2 - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT ALL + tab1.col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - tab0.col2 - col2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + tab2.col0 * - col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col2 + col2 * - col0 FROM tab0
----
-34
-7216
-759
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col0 * cor0.col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ( + col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( col2 )
----
query I rowsort
SELECT ALL + col1 + + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT - col0 + - tab2.col2 * - col2 FROM tab2
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT DISTINCT col2 DIV col1 + - col1 AS col0 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT col2 / col1 + - col1 AS col0 FROM tab1
----
-24
-5
-6
query I rowsort
SELECT col0 - - col2 * + col0 FROM tab2 WHERE col1 NOT IN ( - col0 )
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT + col2 DIV col0 AS col1 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8908
SELECT + col2 / col0 AS col1 FROM tab2
----
0
0
3
query I rowsort
SELECT DISTINCT + tab1.col2 + col1 * - col0 * col1 AS col2 FROM tab1
----
-13424
-1974
-6343
query I rowsort
SELECT DISTINCT + tab1.col2 * - col1 + + col1 AS col2 FROM tab1
----
-1235
-1378
-560
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( col0 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT col0 + + col0 DIV col0 col0 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8912
SELECT col0 + + col0 / col0 col0 FROM tab2
----
79
8
80
query I rowsort
SELECT 31 + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 24fa8f685160021bf96af2f39a41800b
query I rowsort
SELECT ALL + - 45 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT DISTINCT - 23 * + col0 FROM tab0 cor0
----
-2047
-552
-805
query I rowsort
SELECT 22 + - col1 FROM tab0 cor0
----
-64
-69
-75
query I rowsort
SELECT + + 27 FROM tab1 cor0
----
27
27
27
query I rowsort
SELECT + 39 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
273
3042
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT + 25 * + col2 AS col0 FROM tab1 AS cor0
----
1350
1425
2400
query I rowsort
SELECT - 30 * - col0 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT ALL 45 + + 70 FROM tab2 AS cor0
----
115
115
115
onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT ( - col2 ) DIV - col0 AS col2 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8923
SELECT ( - col2 ) / - col0 AS col2 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) * - ( cor0.col1 ) + + col2 FROM tab0 cor0
----
7405
8274
9375
onlyif mysql # use DIV operator for integer division
query I rowsort label-8925
SELECT DISTINCT + col1 DIV + CAST( - 34 AS SIGNED ) FROM tab0
----
-2
skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT + col1 / + CAST ( - 34 AS INTEGER ) FROM tab0
----
-2
query I rowsort
SELECT DISTINCT + col1 * col0 + ( - col1 ) AS col2 FROM tab1 cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-8927
SELECT + cor0.col2 + - col2 DIV 48 AS col1 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-8927
SELECT + cor0.col2 + - col2 / 48 AS col1 FROM tab0 AS cor0
----
1
33
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col0 col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8929
SELECT col2 DIV + 41 AS col2 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-8929
SELECT col2 / + 41 AS col2 FROM tab1
----
1
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT ALL 62 DIV - tab0.col2 FROM tab0
----
-1
-62
0
skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL 62 / - tab0.col2 FROM tab0
----
-1
-62
0
query I rowsort
SELECT col2 + - 93 AS col2 FROM tab1
----
-36
-39
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8932
SELECT - CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8932
SELECT - CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - ( col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
-598
540
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-8934
SELECT col2 + - 78 DIV - col2 FROM tab0 AS cor0
----
35
79
82
skipif mysql # not compatible
query I rowsort label-8934
SELECT col2 + - 78 / - col2 FROM tab0 AS cor0
----
35
79
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8935
SELECT ALL - cor0.col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL - cor0.col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + col0 * 25 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT ALL col1 + - col0 * - col0 AS col2 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT ALL tab1.col2 * + tab1.col2 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 255bedb67400f83d272763889db4ca4f
query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col1 FROM tab0
----
38
38
38
query I rowsort
SELECT 72 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col2 ) col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT 56 FROM tab0, tab2 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934
query I rowsort
SELECT - + col1 + - ( col0 ) FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL 53 FROM tab2
----
53
53
53
query I rowsort
SELECT ALL + 64 + + col1 AS col1 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT + + col0 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - + 11 * col2 FROM tab1 AS cor0
----
-1056
-594
-627
query I rowsort
SELECT - + 89 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 * col2 + + col2 col1 FROM tab0 AS cor0
----
1208
6897
99
query I rowsort
SELECT - col0 + col0 * col0 * col1 FROM tab0 AS cor0
----
118790
49512
720722
query I rowsort
SELECT DISTINCT + - col0 + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + + 93 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT ALL + + 98 + col2 + + col0 FROM tab2 AS cor0
----
132
202
215
onlyif mysql # use DIV operator for integer division
query I rowsort label-8960
SELECT DISTINCT + + col2 DIV - cor0.col1 + col0 DIV col0 FROM tab2 AS cor0
----
-1
1
skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT + + col2 / - cor0.col1 + col0 / col0 FROM tab2 AS cor0
----
-1
1
query I rowsort
SELECT DISTINCT + 41 * col0 FROM tab1
----
123
2624
3280
query I rowsort
SELECT + ( + col0 ) + col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL 62 * col0 + + col2 * col2 FROM tab2 AS cor0
----
1163
5512
6342
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ( col0 * col0 + col0 * col0 ) AS col0 FROM tab2
----
12168
12482
98
query I rowsort
SELECT - ( + 3 ) * tab1.col2 - col2 FROM tab1
----
-216
-228
-384
query I rowsort
SELECT cor0.col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col0 + + 58 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT cor0.col2 * 80 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT DISTINCT - col2 * - 67 AS col1 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT ALL - col0 * - ( col0 + - col1 ) AS col2 FROM tab2 cor0
----
-168
1482
4898
query I rowsort
SELECT col0 * + 78 * + cor0.col2 + + col2 FROM tab1 cor0
----
12690
284601
599136
query I rowsort
SELECT - cor0.col0 * 34 FROM tab0 cor0
----
-1190
-3026
-816
query I rowsort
SELECT col0 * col1 + + cor0.col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8975
SELECT col0 * col1 DIV col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8975
SELECT col0 * col1 / col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col1 + - 35 * + col1 FROM tab0 AS cor0
----
-2924
-3094
-3298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8977
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col0 * tab1.col2 * col2 AS col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT ALL col2 * + col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL + - cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8981
SELECT ALL - col1 * - CAST( + 99 + col1 AS SIGNED ) FROM tab2 cor0
----
1972
4030
9322
skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL - col1 * - CAST ( + 99 + col1 AS INTEGER ) FROM tab2 cor0
----
1972
4030
9322
query I rowsort
SELECT + + col0 + col0 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT ALL - - ( col2 ) * + col2 + col2 AS col2 FROM tab0 cor0
----
1122
2
6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8985
SELECT DISTINCT CAST( - col0 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col2 * col1 * - col1 + - cor0.col1 FROM tab0 AS cor0
----
-244154
-679133
-9506
query I rowsort
SELECT + + ( - col1 ) * - col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT col2 + col1 * - col2 * - col2 AS col0 FROM tab2
----
22626
24586
39910
query I rowsort
SELECT DISTINCT tab0.col1 + 22 AS col1 FROM tab0
----
108
113
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col0 col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8991
SELECT - col0 DIV + cor0.col1 + + col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-8991
SELECT - col0 / + cor0.col1 + + col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col1 * - col0 + + col0 AS col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - col1 * - cor0.col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT DISTINCT + col2 DIV tab2.col1 + tab2.col2 * + col1 * + col2 FROM tab2
----
22599
24550
39884
skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + col2 / tab2.col1 + tab2.col2 * + col1 * + col2 FROM tab2
----
22599
24550
39884
query I rowsort
SELECT + col0 * col1 + tab1.col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT col2 + col0 * col1 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT col0 * col0 + - tab0.col1 * - col0 * - tab0.col0 AS col2 FROM tab0
----
-117600
-48960
-712890
query I rowsort
SELECT ALL + col1 + - col1 + + col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 + - col0 + col1 AS col1 FROM tab2
----
-141
-97
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab2.col1 + col1 * + col2 col2 FROM tab2
----
1671
742
875
query I rowsort
SELECT - tab0.col2 * col1 * col2 - + col0 FROM tab0
----
-132
-611973
-93678
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT - col1 * - col0 + tab0.col0 DIV - col2 FROM tab0
----
2064
3360
8098
skipif mysql # not compatible
query I rowsort label-9002
SELECT - col1 * - col0 + tab0.col0 / - col2 FROM tab0
----
2064
3360
8098
query I rowsort
SELECT DISTINCT col0 * col0 + col0 + tab0.col1 * + tab0.col1 AS col1 FROM tab0 WHERE NOT NULL < NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT + col0 + - col1 + + col0 * col1 FROM tab1 WHERE ( NULL ) IN ( col2 * tab1.col1 )
----
query I rowsort
SELECT col1 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT ALL - col2 + - col0 * + col1 DIV col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - col2 + - col0 * + col1 / col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + cor0.col2 * + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col2 + + col0 * col1 - col0 FROM tab0
----
2073
3361
8092
query I rowsort
SELECT + 94 * tab0.col0 FROM tab0
----
2256
3290
8366
query I rowsort
SELECT ALL 48 * col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1608
4025
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT ALL + col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + col2 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - 13 * + col0 FROM tab2 cor0
----
-1014
-1027
-91
query I rowsort
SELECT tab1.col2 * col2 + col1 + col1 FROM tab1
----
2968
3269
9242
query I rowsort
SELECT + cor0.col0 + col1 + col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL + cor0.col1 * - col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT - col0 + col0 * col2 DIV - col2 AS col1 FROM tab1
----
-128
-160
-6
skipif mysql # not compatible
query I rowsort label-9017
SELECT - col0 + col0 * col2 / - col2 AS col1 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT - col2 * col1 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - col1 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + + col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9021
SELECT - col2 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-9021
SELECT - col2 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9022
SELECT - 63 DIV cor0.col1 col2 FROM tab1 AS cor0
----
-2
-4
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9022
SELECT - 63 / cor0.col1 col2 FROM tab1 AS cor0
----
-2
-4
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9023
SELECT DISTINCT + + cor0.col0 DIV - cor0.col1 + col2 * 30 col0 FROM tab1 AS cor0
----
1620
1704
2874
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + + cor0.col0 / - cor0.col1 + col2 * 30 col0 FROM tab1 AS cor0
----
1620
1704
2874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9024
SELECT ALL - col2 * + CAST( col2 AS SIGNED ) FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL - col2 * + CAST ( col2 AS INTEGER ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * 54 AS col1 FROM tab2 AS cor0
----
1404
1458
2052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9026
SELECT - + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9026
SELECT - + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT cor0.col1 + 8 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 313dcd799c74493c30b7b87b7094dafc
query I rowsort
SELECT - cor2.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9031
SELECT - CAST( cor0.col2 AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9031
SELECT - CAST ( cor0.col2 AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - 30 * - cor0.col1 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
1848
589
937
query I rowsort
SELECT - col2 * col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT + - 97 FROM tab2 AS cor0
----
-97
-97
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT + ( - col1 ) + - CAST( 87 AS SIGNED ) FROM tab1 AS cor0
----
-100
-113
-97
skipif mysql # not compatible
query I rowsort label-9035
SELECT + ( - col1 ) + - CAST ( 87 AS INTEGER ) FROM tab1 AS cor0
----
-100
-113
-97
query I rowsort
SELECT DISTINCT - 15 + + cor0.col2 FROM tab1 AS cor0
----
39
42
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9037
SELECT ALL + col2 * col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL + col2 * col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + 47 AS col1 FROM tab0 cor0
----
1551
3854
47
query I rowsort
SELECT DISTINCT + - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col0 * 59 * col2 AS col0 FROM tab1 AS cor0
----
215232
453120
9558
query I rowsort
SELECT ALL + + col2 + ( + col1 ) AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL - col0 + + ( + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col0 * col1 + ( cor0.col1 * - col1 ) FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT + 97 AS col1 FROM tab1
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + 38 + col2 + - col2 FROM tab2 cor0
----
38
38
38
query I rowsort
SELECT + col0 + ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col1 * 60 AS col0 FROM tab1 AS cor0
----
-1560
-600
-780
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 + - col0 - ( col1 ) col1 FROM tab0 AS cor0
----
1954
3263
7919
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab2, tab2 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT - col2 DIV col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9052
SELECT - col2 / col2 AS col1 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * - 22 * + col2 col0 FROM tab2
----
-14212
-18414
-33748
query I rowsort
SELECT + ( - col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 4 * - 22 AS col1 FROM tab1
----
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT col2 * - 32 + + col1 DIV + 57 col1 FROM tab1 cor0
----
-1728
-1824
-3072
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9057
SELECT col2 * - 32 + + col1 / + 57 col1 FROM tab1 cor0
----
-1728
-1824
-3072
query I rowsort
SELECT - + 49 + + col2 * + col0 * col0 FROM tab0 AS cor0
----
1176
18959
649473
query I rowsort
SELECT + 7 * - col2 AS col0 FROM tab0 AS cor0
----
-231
-574
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9060
SELECT - CAST( - 34 AS SIGNED ) * - col2 * col2 FROM tab2
----
-22984
-24786
-49096
skipif mysql # not compatible
query I rowsort label-9060
SELECT - CAST ( - 34 AS INTEGER ) * - col2 * col2 FROM tab2
----
-22984
-24786
-49096
query I rowsort
SELECT ALL + 5 FROM tab1, tab2 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - 68 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab0.col2 * col2 col0 FROM tab0
----
1
35937
551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * + 18 col2 FROM tab2
----
-126
-1404
-1422
query I rowsort
SELECT - col0 + + ( 12 + + col2 ) AS col0 FROM tab0
----
-22
21
5
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT ALL + col0 DIV 59 + + 56 FROM tab2
----
56
57
57
skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + col0 / 59 + + 56 FROM tab2
----
56
57
57
query I rowsort
SELECT ALL - col0 + + 83 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT ALL + - 42 + + col2 * + col2 * ( - 62 ) AS col2 FROM tab2 AS cor0
----
-41954
-45240
-89570
query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col2 * + cor0.col1 + col1 col0 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT ALL + 93 * + cor0.col0 FROM tab1 AS cor0
----
279
5952
7440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 + 35 col0 FROM tab0 AS cor0
----
62
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9074
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + - col0 * + col1 * cor0.col1 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT - 33 FROM tab0 cor0
----
-33
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT col1 * + 77 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT - + ( ( col1 ) ) * 57 AS col0 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT 63 - 15 * - cor0.col1 FROM tab0, tab0 AS cor0
----
1353
1428
1518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 12 col0 FROM tab2
----
84
936
948
query I rowsort
SELECT DISTINCT + col1 * - ( - col2 ) FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT ALL + ( + 65 ) DIV col0 + - col0 * - col2 FROM tab0 AS cor0
----
36
7298
794
skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + ( + 65 ) / col0 + - col0 * - col2 FROM tab0 AS cor0
----
36
7298
794
query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 23 AS col2 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT - + 94 AS col2 FROM tab2 AS cor0
----
-94
-94
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9088
SELECT DISTINCT - - col1 * + col0 + + cor0.col2 * + ( - ( + col2 ) + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT - - col1 * + col0 + + cor0.col2 * + ( - ( + col2 ) + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col1 - 46 FROM tab0 AS cor0
----
40
45
51
query I rowsort
SELECT 7 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
onlyif mysql # use DIV operator for integer division
query I rowsort label-9091
SELECT - ( + col0 ) DIV 20 + + 27 - - tab2.col0 AS col1 FROM tab2
----
102
103
34
skipif mysql # not compatible
query I rowsort label-9091
SELECT - ( + col0 ) / 20 + + 27 - - tab2.col0 AS col1 FROM tab2
----
102
103
34
query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab2
----
55
58
85
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 - 37 * cor0.col0 * - 16 + + col2 AS col1 FROM tab2 AS cor0
----
4171
46202
46806
query I rowsort
SELECT + + ( + col2 ) + col1 * 90 FROM tab2 AS cor0
----
1568
2817
5336
query I rowsort
SELECT ALL + + 6 * - cor0.col1 AS col1 FROM tab2 cor0
----
-102
-186
-354
query I rowsort
SELECT col0 * col0 + 49 FROM tab1 AS cor0
----
4145
58
6449
query I rowsort
SELECT DISTINCT ( col2 ) + + 72 FROM tab1 cor0
----
126
129
168
query I rowsort
SELECT DISTINCT col0 + col2 * - 52 FROM tab2 AS cor0
----
-1274
-1397
-1897
onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT - col2 - + col0 DIV + col2 col1 FROM tab0 AS cor0
----
-33
-36
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT - col2 - + col0 / + col2 col1 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT - ( col2 ) * - 6 * col1 + - col2 * - col1 FROM tab1 AS cor0
----
3990
8736
9828
query I rowsort
SELECT + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0 AS cor0
----
53
query I rowsort
SELECT ALL - + 4 FROM tab0, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT ALL - col1 * cor0.col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT ALL - + col0 * ( col2 ) + - cor0.col1 DIV ( + col0 ) + - col1 col2 FROM tab1 AS cor0
----
-196
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - + col0 * ( col2 ) + - cor0.col1 / ( + col0 ) + - col1 col2 FROM tab1 AS cor0
----
-196
-3658
-7693
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT col0 + + ( col1 ) * col0 * + ( col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
106255
1533
359112
query I rowsort
SELECT - tab0.col0 - tab0.col0 FROM tab0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - col2 * 58 FROM tab2 AS cor0
----
-1508
-1566
-2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT DISTINCT + - col1 * col2 DIV ( col0 ) FROM tab0 AS cor0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + - col1 * col2 / ( col0 ) FROM tab0 AS cor0
----
-118
-2
-83
query I rowsort
SELECT - col2 * + 93 AS col1 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT ALL + + col2 * - 15 FROM tab0 cor0
----
-1230
-15
-495
query I rowsort
SELECT col0 + col0 * - col0 + col2 FROM tab1 AS cor0
----
-3975
-6224
48
query I rowsort
SELECT + col2 * 45 + + col2 * col1 FROM tab0 AS cor0
----
11152
142
4323
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - col2 + col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - - col0 * - 45 * - col0 - col1 AS col1 FROM tab1 AS cor0
----
184310
287987
379
query I rowsort
SELECT - + cor0.col0 * + col2 + - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + col2 + - col0 * 68 * col1 AS col1 FROM tab0 AS cor0
----
-140319
-230859
-550650
query I rowsort
SELECT col2 - 95 FROM tab2 AS cor0
----
-57
-68
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - cor0.col2 * CAST ( + 14 AS REAL ) col2 FROM tab1 AS cor0
----
1344
756
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 13 + col2 col1 FROM tab1 cor0
----
122
80
93
query I rowsort
SELECT - col1 * - col2 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT cor0.col0 * 32 AS col0 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT col0 * + 77 * ( col2 ) FROM tab1 AS cor0
----
12474
280896
591360
query I rowsort
SELECT + + col1 - - col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9129
SELECT - tab2.col0 * + CAST( NULL AS SIGNED ) - 4 * tab2.col1 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9129
SELECT - tab2.col0 * + CAST ( NULL AS INTEGER ) - 4 * tab2.col1 * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col1 + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - ( - col1 ) * - col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT col1 DIV 41 + + col1 * col0 FROM tab2 AS cor0
----
1343
217
4603
skipif mysql # not compatible
query I rowsort label-9132
SELECT col1 / 41 + + col1 * col0 FROM tab2 AS cor0
----
1343
217
4603
query I rowsort
SELECT ALL + tab0.col2 + col1 * + 71 FROM tab0
----
6139
6543
6888
query I rowsort
SELECT 19 * - 21 FROM tab1, tab1 AS cor0
----
9 values hashing to 31d56a4f35e4dc03c0e8657a75459999
query I rowsort
SELECT - 61 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9136
SELECT - 97 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9136
SELECT - 97 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL + 5 FROM tab0
----
5
5
5
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 + - 48 FROM tab0 AS cor0
----
1177
528
7873
query I rowsort
SELECT col1 + - 65 AS col0 FROM tab0
----
21
26
32
query I rowsort
SELECT col2 + col0 * ( col1 ) AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + col0 * col1 * + 4 FROM tab0 AS cor0
----
13580
32396
8256
query I rowsort
SELECT ALL + col1 * col2 + - ( col0 ) FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + 76 col2 FROM tab0 AS cor0
----
111
7374
868
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT ALL col2 DIV col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL col2 / col2 AS col0 FROM tab1
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT - + col2 + + col1 * col2 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9149
SELECT - + col2 + + col1 * col2 / + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 2 * + 11 AS col0 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + col2 * + 94 FROM tab2 AS cor0
----
2444
2538
3572
query I rowsort
SELECT + col1 + + ( col1 ) FROM tab0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9153
SELECT - CAST( - cor0.col1 AS SIGNED ) * col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-9153
SELECT - CAST ( - cor0.col1 AS INTEGER ) * col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + col0 + - 56 * col0 AS col2 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT + 81 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
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 + col2 * ( - col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT ALL tab0.col2 + tab0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) FROM tab1, tab0 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9160
SELECT - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9160
SELECT - col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9161
SELECT + - col1 + + col1 * col2 DIV - col0 FROM tab2 AS cor0
----
-150
-25
-78
skipif mysql # not compatible
query I rowsort label-9161
SELECT + - col1 + + col1 * col2 / - col0 FROM tab2 AS cor0
----
-150
-25
-78
query I rowsort
SELECT col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9163
SELECT ALL CAST( NULL AS SIGNED ) + 83 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL CAST ( NULL AS INTEGER ) + 83 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 * - ( col1 ) - cor0.col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT col1 + - col0 * 39 + col1 FROM tab0
----
-1171
-3289
-764
query I rowsort
SELECT + 47 FROM tab1, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT + ( + col1 ) * col0 * 63 + ( col0 ) AS col1 FROM tab1
----
40384
4917
65600
query I rowsort
SELECT ALL 64 + ( + cor0.col0 + + col2 ) AS col1 FROM tab0 AS cor0
----
100
121
235
query I rowsort
SELECT - 8 AS col1 FROM tab1 cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT - col2 * - 15 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT DISTINCT + - cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + col1 - col2 * + col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT 22 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1, tab1 cor2
----
81 values hashing to c6f049334398e3533dd6996714479a2f
query I rowsort
SELECT - - col2 - + col2 * cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT - col0 * col1 * 54 AS col0 FROM tab0 AS cor0
----
-111456
-183330
-437346
query I rowsort
SELECT + col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - tab0.col2 * - col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 14 * col1 FROM tab2
----
238
434
826
query I rowsort
SELECT - col2 - + col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT 24 * - col2 FROM tab0
----
-1968
-24
-792
query I rowsort
SELECT ALL - 94 * - col0 FROM tab2 cor0
----
658
7332
7426
onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT 50 DIV - cor0.col0 + + 94 FROM tab0 AS cor0
----
92
93
94
skipif mysql # not compatible
query I rowsort label-9184
SELECT 50 / - cor0.col0 + + 94 FROM tab0 AS cor0
----
92
93
94
query I rowsort
SELECT + col1 - - cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + + ( col2 ) + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 - col0 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col0 col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + 43 * col1 + col1 * col2 + - col1 * - col0 FROM tab1
----
1640
2600
2847
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9191
SELECT col0 + col1 * CAST( - 76 AS SIGNED ) FROM tab2
----
-1213
-2349
-4406
skipif mysql # not compatible
query I rowsort label-9191
SELECT col0 + col1 * CAST ( - 76 AS INTEGER ) FROM tab2
----
-1213
-2349
-4406
query I rowsort
SELECT 62 + + col1 + + col1 * col1 FROM tab0
----
7544
8434
9568
query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 * 14 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 19f3f49135650bf0280b60efd8152d02
query I rowsort
SELECT ( col2 ) * col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 41 * col1 + + col1 FROM tab0
----
3612
3822
4074
query I rowsort
SELECT DISTINCT + tab1.col1 * + col1 + - col0 AS col1 FROM tab1
----
36
673
89
query I rowsort
SELECT col1 * col1 * 90 + + 79 FROM tab0
----
665719
745369
846889
query I rowsort
SELECT ALL tab1.col0 + + col1 * - ( col2 + + col1 ) AS col2 FROM tab1
----
-1337
-2077
-606
query I rowsort
SELECT col2 + col0 * + 69 FROM tab2
----
510
5408
5489
onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT DISTINCT col2 DIV + ( + 90 ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT col2 / + ( + 90 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL col1 * + 48 FROM tab0
----
4128
4368
4656
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 cor0, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9203
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - 4 AS col0 FROM tab1 cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 42 col0 FROM tab2 AS cor0
----
42
query I rowsort
SELECT tab2.col1 * tab2.col0 + 21 * - col0 FROM tab2
----
-316
2964
70
query I rowsort
SELECT - col0 * 72 - col2 FROM tab1
----
-270
-4665
-5856
query I rowsort
SELECT col2 + col0 * + 88 AS col2 FROM tab2
----
643
6890
6990
query I rowsort
SELECT DISTINCT - ( col0 * + col1 ) + 64 + 39 AS col1 FROM tab1
----
-537
-937
25
query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT col1 * 23 + + col0 DIV col1 + - cor0.col1 * + col0 FROM tab1 cor0
----
-404
-735
520
skipif mysql # not compatible
query I rowsort label-9211
SELECT col1 * 23 + + col0 / col1 + - cor0.col1 * + col0 FROM tab1 cor0
----
-404
-735
520
query I rowsort
SELECT DISTINCT col1 + ( col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 76 + col2 col1 FROM tab1 AS cor0
----
-4050
-4275
-7200
query I rowsort
SELECT ALL + 0 + - cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + cor0.col1 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - + ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT CAST( NULL AS SIGNED ) + - 91 + cor0.col2 * ( + col0 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( NULL AS INTEGER ) + - 91 + cor0.col2 * ( + col0 * cor0.col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 * - col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - + ( col2 ) * - col2 + - 19 FROM tab0 AS cor0
----
-18
1070
6705
query I rowsort
SELECT DISTINCT 54 FROM tab2 AS cor0
----
54
query I rowsort
SELECT ALL + ( - col0 ) + + col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + ( + col2 ) * - cor0.col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 66 - col1 * + col0 FROM tab0 AS cor0
----
-2130
-3461
-8165
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9226
SELECT ALL + CAST( 0 AS SIGNED ) * + col2 + 31 * - ( - col0 * 60 ) FROM tab1 cor0
----
119040
148800
5580
skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL + CAST ( 0 AS INTEGER ) * + col2 + 31 * - ( - col0 * 60 ) FROM tab1 cor0
----
119040
148800
5580
query I rowsort
SELECT DISTINCT - ( 63 ) * + col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2103
-5255
-98
query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL col0 + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - 65 + col1 FROM tab0 AS cor0
----
21
26
32
query I rowsort
SELECT - + col2 + col0 - - 2 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
1301
207
322
query I rowsort
SELECT DISTINCT + 62 * + col2 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL 2 * - col2 AS col1 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT + col0 + col2 + + ( col1 ) FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT + cor0.col0 * + col1 + + col1 - - col1 FROM tab2 AS cor0
----
1377
279
4720
query I rowsort
SELECT ALL - col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT DISTINCT col2 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT col2 / cor0.col0 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT + col2 * + cor0.col2 * cor0.col0 + 79 * - col1 + + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-7531
19428
591338
query I rowsort
SELECT 94 * - col0 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT - - col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - col0 + - col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 + + 73 FROM tab1 AS cor0
----
235
3721
7753
query I rowsort
SELECT ALL - col2 - ( - col1 + col2 ) FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT ALL + col1 * 40 AS col2 FROM tab2 AS cor0
----
1240
2360
680
query I rowsort
SELECT + col0 * + 62 FROM tab0 cor0
----
1488
2170
5518
query I rowsort
SELECT ALL + cor0.col1 * col1 - + 25 FROM tab0 AS cor0
----
7371
8256
9384
onlyif mysql # use DIV operator for integer division
query I rowsort label-9247
SELECT DISTINCT - col1 * ( col2 * col1 ) - + cor0.col2 DIV 71 AS col0 FROM tab1 AS cor0
----
-16225
-36504
-5700
skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT - col1 * ( col2 * col1 ) - + cor0.col2 / 71 AS col0 FROM tab1 AS cor0
----
-16225
-36504
-5700
query I rowsort
SELECT + col0 + 54 AS col0 FROM tab0 cor0
----
143
78
89
query I rowsort
SELECT cor0.col1 * col1 + - col0 * - col0 AS col1 FROM tab1 cor0
----
4196
6569
685
query I rowsort
SELECT + col1 + + col1 + col1 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + - col0 + 32 AS col0 FROM tab1 AS cor0
----
-32
-48
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-9253
SELECT - col0 DIV col0 + col1 col2 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9253
SELECT - col0 / col0 + col1 col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + + cor0.col2 * - 14 AS col0 FROM tab0 cor0
----
-1148
-14
-462
query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - cor0.col0 * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 37 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9258
SELECT - + CAST( col0 AS SIGNED ) + + cor0.col2 * 81 FROM tab0 AS cor0
----
2649
46
6553
skipif mysql # not compatible
query I rowsort label-9258
SELECT - + CAST ( col0 AS INTEGER ) + + cor0.col2 * 81 FROM tab0 AS cor0
----
2649
46
6553
query I rowsort
SELECT col1 * 6 + + col0 AS col2 FROM tab0
----
540
617
635
query I rowsort
SELECT + 67 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2, tab2 AS cor3
----
243 values hashing to d502cfec04c7f71d688175ee0de49a52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 cor2, tab0 AS cor3
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9264
SELECT DISTINCT - col0 * col1 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1326
-186
-4543
skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT - col0 * col1 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - col2 + col0 + col0 AS col1 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT + col1 + - col0 * - col1 + ( + col2 ) * 46 AS col1 FROM tab0 AS cor0
----
11962
3538
3668
query I rowsort
SELECT - + ( col0 ) + col2 + 37 * + col0 AS col0 FROM tab2 AS cor0
----
279
2834
2882
query I rowsort
SELECT col2 * - col2 * - 26 AS col1 FROM tab0
----
174824
26
28314
query I rowsort
SELECT DISTINCT + col0 * col0 * - col2 AS col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col0 * - col0 * - col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT - col0 * - 17 FROM tab1 cor0
----
1088
1360
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * col2 col0 FROM tab0 AS cor0
----
1683
4182
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9273
SELECT - CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9273
SELECT - CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-9276
SELECT - col2 DIV 56 AS col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9276
SELECT - col2 / 56 AS col1 FROM tab1
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT 63 DIV - col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9277
SELECT 63 / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 + + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT 50 - - col2 FROM tab2 AS cor0
----
76
77
88
query I rowsort
SELECT ALL - - ( 40 ) FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT ( - col0 ) - - col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT cor1.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + 57 * + col2 AS col1 FROM tab0
----
1881
4674
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9284
SELECT tab0.col1 DIV - col1 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9284
SELECT tab0.col1 / - col1 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL 63 + - col0 FROM tab1 AS cor0
----
-1
-17
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + 77 + + col2 AS col1 FROM tab1 AS cor0
----
131
134
173
query I rowsort
SELECT DISTINCT ( - col0 + col1 * col2 ) FROM tab1
----
1168
1401
506
query I rowsort
SELECT - 87 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT DISTINCT - 99 * + tab2.col2 * - 70 FROM tab2, tab0 AS cor0
----
180180
187110
263340
query I rowsort
SELECT - 77 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT + col2 + col1 - + col0 FROM tab1
----
29
3
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + tab1.col2 * + tab1.col0 col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT - + col2 - - col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + 66 * cor0.col1 - 41 FROM tab0 AS cor0
----
5635
5965
6361
query I rowsort
SELECT DISTINCT col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - tab1.col2 + col0 * + 58 + + 26 AS col1 FROM tab1
----
146
3681
4570
query I rowsort
SELECT 64 * col0 - cor0.col1 * 57 AS col2 FROM tab1 AS cor0
----
-1290
3526
4379
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2, tab1 AS cor0
----
87
query I rowsort
SELECT + - tab2.col2 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT col2 - + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + ( cor1.col0 ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT col0 + + cor0.col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9305
SELECT + + CAST( 46 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
46
46
46
skipif mysql # not compatible
query I rowsort label-9305
SELECT + + CAST ( 46 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - - 42 * col0 FROM tab0 cor0
----
1008
1470
3738
query I rowsort
SELECT ALL + col1 + - 51 AS col1 FROM tab2 AS cor0
----
-20
-34
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9308
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col1 - - 56 AS col1 FROM tab0 AS cor0
----
-2008
-3339
-8043
skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col1 - - 56 AS col1 FROM tab0 AS cor0
----
-2008
-3339
-8043
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9309
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col0 * col0 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-9309
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col0 * col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT ALL - tab0.col0 DIV - col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - tab0.col0 / - col2 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT ( 14 ) FROM tab0, tab2 AS cor0
----
14
query I rowsort
SELECT DISTINCT + 91 + - col0 FROM tab1 AS cor0
----
11
27
88
query I rowsort
SELECT ALL - - col1 * 2 + col1 - col2 * ( + col1 ) * + col1 FROM tab2 cor0
----
-10931
-25854
-90329
query I rowsort
SELECT DISTINCT - col1 - ( col1 ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - cor0.col2 * - 33 * col0 AS col0 FROM tab2 AS cor0
----
6237
66924
99066
query I rowsort
SELECT col0 + + 8 * ( col1 ) AS col1 FROM tab0 AS cor0
----
712
811
817
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT DISTINCT - col2 DIV - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT - col2 / - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * col1 * 41 AS col2 FROM tab2 AS cor0
----
-11849
-142721
-39401
query I rowsort
SELECT ALL - - col2 * + col2 + col1 * col1 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT DISTINCT - + col0 * 59 FROM tab0 AS cor0
----
-1416
-2065
-5251
query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * - 94 AS col1 FROM tab0 AS cor0
----
-2256
-3290
-8366
query I rowsort
SELECT ( - col2 ) + + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 - 49 * ( tab1.col0 ) AS col0 FROM tab1
----
-144
-3072
-3840
query I rowsort
SELECT + - col0 + 28 * col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT - col0 + + 70 AS col2 FROM tab1 AS cor0
----
-10
6
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT DISTINCT + col1 + 3 DIV - col2 AS col1 FROM tab0 cor0
----
86
91
94
skipif mysql # not compatible
query I rowsort label-9328
SELECT DISTINCT + col1 + 3 / - col2 AS col1 FROM tab0 cor0
----
86
91
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT DISTINCT - col2 * 57 + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-1879
-4673
40
skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT - col2 * 57 + cor0.col1 / + col2 FROM tab0 AS cor0
----
-1879
-4673
40
query I rowsort
SELECT DISTINCT - ( ( col2 ) ) + 87 FROM tab2 AS cor0
----
49
60
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT ALL - 94 * + col2 + cor0.col0 DIV ( col1 * col1 + - col1 ) FROM tab2 AS cor0
----
-2444
-2538
-3572
skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL - 94 * + col2 + cor0.col0 / ( col1 * col1 + - col1 ) FROM tab2 AS cor0
----
-2444
-2538
-3572
query I rowsort
SELECT ALL + 95 AS col1 FROM tab1 AS cor0
----
95
95
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9333
SELECT + + col2 * + col2 * - col0 + col1 DIV - 18 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8749
skipif mysql # not compatible
query I rowsort label-9333
SELECT + + col2 * + col2 * - col0 + col1 / - 18 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8749
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9334
SELECT + CAST( NULL AS DECIMAL ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9334
SELECT + CAST ( NULL AS REAL ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 16 * - col0 + + col0 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT DISTINCT col1 + ( col1 + + col0 ) AS col1 FROM tab0
----
196
229
271
query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab2, tab2 AS cor0
----
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT col0 DIV - col1 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9338
SELECT col0 / - col1 AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT + ( tab2.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col1 * ( + tab2.col2 ) + - col2 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 + - cor0.col0 col0 FROM tab1 AS cor0
----
-154
-170
-93
query I rowsort
SELECT ALL 5 + - col1 * 46 FROM tab2 cor0
----
-1421
-2709
-777
query I rowsort
SELECT - 9 * col1 AS col1 FROM tab1 cor0
----
-117
-234
-90
query I rowsort
SELECT 46 * cor0.col1 + 36 FROM tab2 AS cor0
----
1462
2750
818
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab1, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL 71 AS col1 FROM tab2 cor0
----
71
71
71
query I rowsort
SELECT + + col0 * col2 * col1 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT tab1.col0 - col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL + col1 + - col2 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT col2 * + 12 + - tab2.col0 DIV + col0 FROM tab2
----
311
323
455
skipif mysql # not compatible
query I rowsort label-9350
SELECT col2 * + 12 + - tab2.col0 / + col0 FROM tab2
----
311
323
455
query I rowsort
SELECT DISTINCT col1 + ( + col0 ) FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT tab2.col0 + col0 FROM tab2
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9353
SELECT ALL CAST( 40 AS SIGNED ) AS col2 FROM tab1
----
40
40
40
skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL CAST ( 40 AS INTEGER ) AS col2 FROM tab1
----
40
40
40
query I rowsort
SELECT + 54 * + cor0.col1 * - col0 FROM tab0 AS cor0
----
-111456
-183330
-437346
query I rowsort
SELECT ALL + col0 * col0 + 83 * + col0 FROM tab1 cor0
----
13040
258
9408
query I rowsort
SELECT DISTINCT - - ( col0 ) * ( - col0 + + col1 ) AS col1 FROM tab2 AS cor0
----
-1482
-4898
168
query I rowsort
SELECT + - col2 * - col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + - 69 * - col2 AS col0 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT ALL + 47 AS col1 FROM tab1
----
47
47
47
query I rowsort
SELECT 95 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT - 16 + + col0 AS col2 FROM tab1
----
-13
48
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9363
SELECT ALL - col0 DIV - col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - col0 / - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 * + 14 AS col1 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT col0 * 21 AS col1 FROM tab1 cor0
----
1344
1680
63
query I rowsort
SELECT 30 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT + col1 * col2 + + ( 46 ) AS col1 FROM tab0
----
143
2884
7508
query I rowsort
SELECT DISTINCT col2 + ( ( + col0 ) * + col1 ) AS col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 + ( 35 ) AS col1 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT + - col0 + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT + col1 DIV - ( 82 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9372
SELECT + col1 / - ( 82 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + - col2 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT + col2 * col1 DIV col0 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-9375
SELECT + col2 * col1 / col0 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT 42 FROM tab2, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
query I rowsort
SELECT ALL tab2.col0 + + col2 * col2 AS col2 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT + - 4 * col0 AS col2 FROM tab2 AS cor0
----
-28
-312
-316
query I rowsort
SELECT + ( - ( + col0 ) ) * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9381
SELECT ALL - CAST( - col0 AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - CAST ( - col0 AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9382
SELECT + + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9382
SELECT + + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * + 90 + - col1 FROM tab0 AS cor0
----
-7
2884
7289
query I rowsort
SELECT DISTINCT + col2 * 96 - + col2 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT ALL - 1 + - 34 * col0 FROM tab0 AS cor0
----
-1191
-3027
-817
query I rowsort
SELECT + - 9 - col1 * col1 AS col2 FROM tab2 AS cor0
----
-298
-3490
-970
query I rowsort
SELECT + 46 + + cor0.col0 AS col1 FROM tab0 cor0
----
135
70
81
query I rowsort
SELECT DISTINCT + + 77 - 50 FROM tab0 AS cor0
----
27
query I rowsort
SELECT + + col0 * 71 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 - - 49 AS col2 FROM tab2 cor0
----
1583
695
886
query I rowsort
SELECT ALL + + 40 * - col0 AS col1 FROM tab2 AS cor0
----
-280
-3120
-3160
query I rowsort
SELECT + + ( cor0.col0 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - 90 AS col0 FROM tab1 AS cor0
----
90
query I rowsort
SELECT 9 + col2 * 60 FROM tab0 AS cor0
----
1989
4929
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9396
SELECT 74 DIV col0 + - col0 AS col2 FROM tab0
----
-21
-33
-89
skipif mysql # not compatible
query I rowsort label-9396
SELECT 74 / col0 + - col0 AS col2 FROM tab0
----
-21
-33
-89
query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 02081120b66025475df9f31f465bcbe4
query I rowsort
SELECT - 60 * tab2.col0 * col1 FROM tab2
----
-13020
-276120
-80580
query I rowsort
SELECT DISTINCT 10 + col0 + - col2 * ( col1 * + col0 ) FROM tab1 cor0
----
-36406
-4199
-99750
query I rowsort
SELECT - - col0 + - col1 * col2 FROM tab2 AS cor0
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col2 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT + - col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9403
SELECT DISTINCT col1 + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT col1 + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT + 23 DIV - col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9404
SELECT + 23 / - col0 FROM tab2
----
-3
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9406
SELECT DISTINCT CAST( 89 AS SIGNED ) FROM tab1
----
89
skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT CAST ( 89 AS INTEGER ) FROM tab1
----
89
query I rowsort
SELECT - col1 * - cor0.col0 + 13 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-12276
-2414
-40651
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9408
SELECT - 0 / col1 + CAST( NULL AS SIGNED ) - 2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9408
SELECT - 0 / col1 + CAST ( NULL AS INTEGER ) - 2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 21 + col1 FROM tab1 AS cor0
----
-11
-8
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9410
SELECT + col1 * cor0.col0 DIV + 89 + col0 * cor0.col1 * ( cor0.col0 ) + + cor0.col2 FROM tab1 AS cor0
----
288
41024
83307
skipif mysql # not compatible
query I rowsort label-9410
SELECT + col1 * cor0.col0 / + 89 + col0 * cor0.col1 * ( cor0.col0 ) + + cor0.col2 FROM tab1 AS cor0
----
288
41024
83307
onlyif mysql # use DIV operator for integer division
query I rowsort label-9411
SELECT DISTINCT + col2 DIV col1 - - 26 * + 29 FROM tab1
----
756
759
761
skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + col2 / col1 - - 26 * + 29 FROM tab1
----
756
759
761
query I rowsort
SELECT + + 40 * cor0.col0 AS col2 FROM tab1 AS cor0
----
120
2560
3200
query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 + col1 * + cor0.col2 * - cor0.col1 FROM tab2 cor0
----
-10903
-25940
-90428
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77
query I rowsort
SELECT DISTINCT - 46 + + cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
-43
18
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9417
SELECT ALL - CAST( NULL AS SIGNED ) - - cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - CAST ( NULL AS INTEGER ) - - cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col1 AS REAL ) * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + col0 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - cor1.col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT - + ( cor0.col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 43 + - 14 AS col2 FROM tab0 AS cor0
----
-57
-57
-57
query I rowsort
SELECT ALL - 14 * + col2 FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT DISTINCT col0 + ( + col1 ) * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT 20 + col1 FROM tab0 AS cor0
----
106
111
117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 5 * + 21 + col0 AS col2 FROM tab2 AS cor0
----
112
183
184
query I rowsort
SELECT ALL + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 39 + col0 AS col2 FROM tab1 cor0
----
103
119
42
query I rowsort
SELECT ALL + - 58 * col0 - + col0 AS col2 FROM tab2 AS cor0
----
-413
-4602
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + 24 * + col0 FROM tab1 AS cor0
----
1536
1920
72
query I rowsort
SELECT DISTINCT - col1 * 4 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT ALL + - col2 - ( col2 ) FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9435
SELECT DISTINCT 70 * ( - col2 + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT 70 * ( - col2 + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + + 83 AS col2 FROM tab0 AS cor0
----
83
83
83
query I rowsort
SELECT DISTINCT + - 82 * - cor0.col2 + 75 FROM tab2 AS cor0
----
2207
2289
3191
query I rowsort
SELECT ALL 13 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT ALL 29 + col1 AS col0 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e1120e7b687b32270ef70393236e7341
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT ALL - col1 * ( cor0.col1 ) + col1 DIV col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
skipif mysql # not compatible
query I rowsort label-9444
SELECT ALL - col1 * ( cor0.col1 ) + col1 / col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
query I rowsort
SELECT ALL + 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT 1 * col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col1 + - ( + 16 ) * col1 * col2 AS col1 FROM tab0
----
-119301
-1455
-45322
query I rowsort
SELECT ALL col2 + + ( + col2 ) FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT tab0.col2 + 77 AS col0 FROM tab0
----
110
159
78
query I rowsort
SELECT + 29 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT 75 FROM tab2, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT + col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9453
SELECT DISTINCT - col1 * - col1 + ( col2 * 8 ) + + col0 DIV col0 AS col1 FROM tab1
----
1109
557
938
skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - col1 * - col1 + ( col2 * 8 ) + + col0 / col0 AS col1 FROM tab1
----
1109
557
938
query I rowsort
SELECT + col1 + 8 FROM tab2
----
25
39
67
query I rowsort
SELECT - tab0.col1 * - ( col1 ) + col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT DISTINCT - col0 + col0 DIV + 81 + + col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - col0 + col0 / + 81 + + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col1 + - cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9458
SELECT DISTINCT col1 + - col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT col1 + - col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 60 - col2 FROM tab0 AS cor0
----
-22
27
59
query I rowsort
SELECT ALL + 63 * + col1 FROM tab1 AS cor0
----
1638
630
819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT - - 82 * col1 * 78 + col0 AS col2 FROM tab2 AS cor0
----
108811
198283
377442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 + + 87 AS col2 FROM tab1 AS cor0
----
151
167
90
query I rowsort
SELECT DISTINCT + 54 * cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1782
4428
54
query I rowsort
SELECT + - 23 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
243 values hashing to ef919ea6037591a6f09aab2a0b91bc31
query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 15 * col0 col0 FROM tab2 AS cor0
----
1144
1147
78
query I rowsort
SELECT DISTINCT - + col0 * col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) * ( - col1 ) AS col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + 2 AS col0 FROM tab2 cor0
----
2
2
2
query I rowsort
SELECT ALL + + col1 * ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - col1 * - 77 * - cor0.col1 FROM tab1 AS cor0
----
-13013
-52052
-7700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * cor0.col0 col1 FROM tab2, tab0 cor0
----
9 values hashing to 72973d97b549754e6af15688b9282638
onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT DISTINCT - col1 + 59 DIV col2 FROM tab0 AS cor0
----
-38
-85
-91
skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT - col1 + 59 / col2 FROM tab0 AS cor0
----
-38
-85
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9480
SELECT + CAST( NULL AS DECIMAL ) * - col1 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9480
SELECT + CAST ( NULL AS REAL ) * - col1 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 * 74 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab0 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT ALL + col1 * cor0.col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + col1 * cor0.col2 / - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ( - 61 ) * + col0 FROM tab1 AS cor0
----
-183
-3904
-4880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + + col0 * - cor0.col0 col2 FROM tab2 cor0
----
-124
-6159
-6316
onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT cor0.col0 DIV cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7318d0dc3ebf76e990ab679b26520e3b
skipif mysql # not compatible
query I rowsort label-9486
SELECT cor0.col0 / cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7318d0dc3ebf76e990ab679b26520e3b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT ALL + col0 * + col0 + - CAST( + 65 AS SIGNED ) col0 FROM tab2 AS cor0
----
-16
6019
6176
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9487
SELECT ALL + col0 * + col0 + - CAST ( + 65 AS INTEGER ) col0 FROM tab2 AS cor0
----
-16
6019
6176
query I rowsort
SELECT ALL + + col0 + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 65 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
124
82
96
query I rowsort
SELECT DISTINCT col1 + + col0 * 29 FROM tab2 AS cor0
----
2308
2321
234
query I rowsort
SELECT DISTINCT + 66 * col0 FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT - 65 * + col1 FROM tab1 AS cor0
----
-1690
-650
-845
onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT - - col0 * - col2 + cor0.col0 + col1 * col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
-147
-3583
-7599
skipif mysql # not compatible
query I rowsort label-9494
SELECT - - col0 * - col2 + cor0.col0 + col1 * col1 / + col2 AS col0 FROM tab1 AS cor0
----
-147
-3583
-7599
query I rowsort
SELECT DISTINCT - - 30 * col1 * + 31 FROM tab0 cor0
----
79980
84630
90210
query I rowsort
SELECT + - col0 + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + - col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT ALL + col0 DIV col1 + ( col2 ) * col0 + 38 FROM tab1 AS cor0
----
200
3692
7724
skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + col0 / col1 + ( col2 ) * col0 + 38 FROM tab1 AS cor0
----
200
3692
7724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + 14 * - tab1.col2 AS col2 FROM tab1
----
-1344
-756
-798
query I rowsort
SELECT + ( col2 ) * + col1 * ( col0 * - tab1.col0 ) FROM tab1
----
-12636
-2334720
-7987200
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT ALL ( + 56 ) + + col2 FROM tab2
----
82
83
94
query I rowsort
SELECT + 73 + + col1 AS col1 FROM tab0 cor0
----
159
164
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT ALL - + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL - + col1 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - 46 + col1 FROM tab2 AS cor0
----
105
63
77
query I rowsort
SELECT ALL - 56 FROM tab1 AS cor0
----
-56
-56
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9508
SELECT + - cor0.col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9508
SELECT + - cor0.col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col0 * - 58 + 83 FROM tab1 AS cor0
----
-3629
-4557
-91
query I rowsort
SELECT cor0.col0 * 99 AS col2 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT + tab0.col0 + + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 727cf91885da1564b9eb8c57fe9a5d27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT - cor0.col0 DIV + 99 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9512
SELECT - cor0.col0 / + 99 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + col0 * + col0 * tab0.col0 FROM tab0
----
13824
42875
704969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT - CAST( NULL AS SIGNED ) * col2 + col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9514
SELECT - CAST ( NULL AS INTEGER ) * col2 + col2 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 - - tab2.col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT 58 * + 12 * col0 AS col2 FROM tab2 AS cor0
----
4872
54288
54984
query I rowsort
SELECT + 79 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1327
1483
649
query I rowsort
SELECT - col0 + 39 AS col0 FROM tab2 AS cor0
----
-39
-40
32
query I rowsort
SELECT - tab1.col1 + - 61 FROM tab1
----
-71
-74
-87
query I rowsort
SELECT 57 FROM tab1, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT ( - 51 ) * + col2 + 85 DIV col1 FROM tab0 cor0
----
-1683
-4182
-51
skipif mysql # not compatible
query I rowsort label-9521
SELECT ( - 51 ) * + col2 + 85 / col1 FROM tab0 cor0
----
-1683
-4182
-51
query I rowsort
SELECT - col2 + - col2 + - col1 * col1 FROM tab2 AS cor0
----
-1015
-3533
-365
query I rowsort
SELECT + 43 - col1 FROM tab2 cor0
----
-16
12
26
query I rowsort
SELECT - + cor0.col2 * + 17 + - col0 + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-17
207
5815
query I rowsort
SELECT - ( - ( tab2.col0 ) ) FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + cor0.col2 AS REAL ) * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 12 - col2 * col2 FROM tab2 AS cor0
----
-1432
-664
-717
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT DISTINCT + ( - cor0.col1 ) DIV col1 col0 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + ( - cor0.col1 ) / col1 col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - col0 * 43 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT + col2 * - 85 FROM tab1 AS cor0
----
-4590
-4845
-8160
query I rowsort
SELECT ALL - col2 * + 23 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9533
SELECT ALL + + col0 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + + col0 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9534
SELECT + + col1 * 28 DIV + col0 AS col1 FROM tab0 AS cor0
----
100
28
77
skipif mysql # not compatible
query I rowsort label-9534
SELECT + + col1 * 28 / + col0 AS col1 FROM tab0 AS cor0
----
100
28
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * + col1 col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT col0 * 40 FROM tab1
----
120
2560
3200
query I rowsort
SELECT ALL 7 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT + - cor0.col2 + - 14 AS col1 FROM tab2 AS cor0
----
-40
-41
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9539
SELECT col2 * - CAST( - 9 AS SIGNED ) FROM tab2 AS cor0
----
234
243
342
skipif mysql # not compatible
query I rowsort label-9539
SELECT col2 * - CAST ( - 9 AS INTEGER ) FROM tab2 AS cor0
----
234
243
342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9540
SELECT + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9540
SELECT + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - 4 AS col2 FROM tab0
----
-3
29
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9542
SELECT ALL tab2.col0 DIV 56 col0 FROM tab2
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL tab2.col0 / 56 col0 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT + 13 * 13 + + col2 * cor0.col2 + + col2 FROM tab0 AS cor0
----
1291
171
6975
query I rowsort
SELECT ALL + cor0.col0 * - col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + 69 - col2 FROM tab1 AS cor0
----
-27
12
15
query I rowsort
SELECT - col1 * + 77 + col0 FROM tab0 AS cor0
----
-6598
-6918
-7434
query I rowsort
SELECT - 86 AS col1 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab2
----
89
query I rowsort
SELECT - - col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 16 + col1 AS col2 FROM tab0
----
102
107
113
query I rowsort
SELECT ALL col0 + - col2 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - + 3 + + col1 FROM tab0 cor0
----
83
88
94
query I rowsort
SELECT col0 + + col2 * ( + col0 + col0 ) AS col1 FROM tab1 AS cor0
----
15440
327
7360
query I rowsort
SELECT DISTINCT - col0 * col1 * - col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT ALL - 57 DIV + col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - 57 / + col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1 cor0
----
-58
query I rowsort
SELECT + 46 + cor0.col0 * 12 AS col2 FROM tab0 cor0
----
1114
334
466
query I rowsort
SELECT ( col2 ) * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT + col1 * ( + 50 ) * + col0 + - col1 AS col0 FROM tab1 AS cor0
----
31990
3874
51987
query I rowsort
SELECT ALL - cor0.col2 * + col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + col1 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( cor0.col1 * - col0 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 5 col0 FROM tab1 AS cor0
----
101
59
62
query I rowsort
SELECT 49 AS col0 FROM tab1
----
49
49
49
query I rowsort
SELECT - 53 - col0 * col1 FROM tab2 AS cor0
----
-1396
-270
-4655
query I rowsort
SELECT - 93 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT - cor0.col1 * 5 AS col1 FROM tab2 AS cor0
----
-155
-295
-85
query I rowsort
SELECT col1 * col0 * - col1 AS col0 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT ALL col2 DIV + col1 + - tab1.col1 + - 40 FROM tab1
----
-45
-46
-64
skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL col2 / + col1 + - tab1.col1 + - 40 FROM tab1
----
-45
-46
-64
query I rowsort
SELECT ALL 93 + 48 FROM tab2
----
141
141
141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + 84 * - col0 AS col2 FROM tab2 AS cor0
----
-588
-6552
-6636
query I rowsort
SELECT 41 * col0 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT ALL + 12 AS col1 FROM tab0 AS cor0
----
12
12
12
query I rowsort
SELECT ALL + - 66 * + col0 * col1 FROM tab2 AS cor0
----
-14322
-303732
-88638
query I rowsort
SELECT DISTINCT col0 * - col0 + col1 + 12 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-3966
-6231
329
query I rowsort
SELECT + cor0.col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 1 * - col0 + + 7 * 32 FROM tab2 AS cor0
----
231
302
303
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL - - col2 + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * - col1 + + 58 * + 72 FROM tab0 AS cor0
----
11638
4273
7014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT 26 - + col2 * tab1.col2 AS col0 FROM tab1
----
-2890
-3223
-9190
query I rowsort
SELECT ALL - 54 AS col0 FROM tab2
----
-54
-54
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9587
SELECT ALL col0 + 88 DIV + tab1.col2 + + tab1.col2 FROM tab1
----
122
176
58
skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL col0 + 88 / + tab1.col2 + + tab1.col2 FROM tab1
----
122
176
58
query I rowsort
SELECT + col2 * + col1 + col1 + + col1 * ( + col2 ) AS col0 FROM tab1
----
1150
2509
2834
query I rowsort
SELECT col1 * ( - col2 + + col1 ) FROM tab2
----
-357
124
1947
query I rowsort
SELECT ALL col2 * col2 + - tab1.col0 FROM tab1
----
2913
3185
9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-9591
SELECT ALL - col0 * col0 DIV - col1 + col2 AS col2 FROM tab2
----
129
28
405
skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL - col0 * col0 / - col1 + col2 AS col2 FROM tab2
----
129
28
405
query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1, tab0 cor0
----
15
query I rowsort
SELECT ALL - + ( + col1 ) * col1 * + col1 FROM tab2 cor0
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT 57 FROM tab0, tab1, tab1 AS cor0
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 97 col2 FROM tab2 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9596
SELECT col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9596
SELECT col1 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 2 + col1 AS col0 FROM tab1 cor0
----
11
24
8
query I rowsort
SELECT ALL + col1 * 9 * + col1 AS col1 FROM tab2 AS cor0
----
2601
31329
8649
onlyif mysql # use DIV operator for integer division
query I rowsort label-9599
SELECT + 11 DIV col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9599
SELECT + 11 / col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL + 52 + col2 + + 87 FROM tab0
----
140
172
221
query I rowsort
SELECT col2 + - col0 + col0 AS col0 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col2 col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - col2 - tab1.col0 AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT 7 FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT ALL col0 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 + col0 - col1 FROM tab2 AS cor0
----
100
3
45
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
onlyif mysql # use DIV operator for integer division
query I rowsort label-9609
SELECT col0 - + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-9609
SELECT col0 - + col1 / col1 AS col2 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT + + 12 - col1 AS col1 FROM tab0 cor0
----
-74
-79
-85
query I rowsort
SELECT DISTINCT + - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + + col0 col1 FROM tab0
----
27
38
92
query I rowsort
SELECT DISTINCT + - col1 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9615
SELECT col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9615
SELECT col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + 85 FROM tab1 AS cor0
----
1105
2210
850
onlyif mysql # use DIV operator for integer division
query I rowsort label-9617
SELECT ALL - + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - + col1 / + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 + 72 AS col2 FROM tab1 AS cor0
----
82
85
98
query I rowsort
SELECT col0 + + 13 FROM tab2 AS cor0
----
20
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT - col1 * col1 + 76 DIV + col1 - - col0 col2 FROM tab0 cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9620
SELECT - col1 * col1 + 76 / + col1 - - col0 col2 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + col0 * ( + col1 ) + - col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + - col0 * col0 col2 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT col2 + col1 * + 15 AS col1 FROM tab2 AS cor0
----
293
492
911
query I rowsort
SELECT + col2 * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 + ( - col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-106
-55
-84
query I rowsort
SELECT DISTINCT col1 * - 62 FROM tab2 cor0
----
-1054
-1922
-3658
query I rowsort
SELECT ALL col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + col1 * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col0 + + 71 * + col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600
query I rowsort
SELECT DISTINCT + + col2 + - 13 FROM tab0 AS cor0
----
-12
20
69
query I rowsort
SELECT ALL col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT ALL col1 DIV + 57 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL col1 / + 57 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - cor0.col0 + - 81 FROM tab2 AS cor0
----
-2
-3
-74
query I rowsort
SELECT DISTINCT + col2 * 7 FROM tab0 AS cor0
----
231
574
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT DISTINCT + col2 DIV ( col0 * - col1 ) + + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + col2 / ( col0 * - col1 ) + + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9636
SELECT DISTINCT col1 DIV col1 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT col1 / col1 FROM tab2 cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT - - cor0.col2 - 90 DIV col2 FROM tab1 AS cor0
----
53
56
96
skipif mysql # not compatible
query I rowsort label-9637
SELECT - - cor0.col2 - 90 / col2 FROM tab1 AS cor0
----
53
56
96
query I rowsort
SELECT col2 + 65 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT + + col0 + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT cor0.col2 * + 5 AS col0 FROM tab0 AS cor0
----
165
410
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT + col1 + + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9641
SELECT + col1 + + col0 / col0 AS col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT col2 + col2 * tab2.col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT - 18 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-18
query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT col1 * 23 AS col1 FROM tab0
----
1978
2093
2231
query I rowsort
SELECT col1 * 24 AS col0 FROM tab0
----
2064
2184
2328
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( 64 + col2 AS REAL ) * col1 AS col0 FROM tab0
----
13377
6402
8428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * cor0.col2 col0 FROM tab2 AS cor0
----
-546
-567
-798
query I rowsort
SELECT ALL + 27 * - col2 + 7 + 22 * + col2 * - col2 FROM tab2 AS cor0
----
-15567
-16760
-32787
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9651
SELECT DISTINCT + + col2 - - cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT + + col2 - - cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT + col2 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - + cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + ( - col0 ) + col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col1 * col1 + 24 AS col1 FROM tab2 AS cor0
----
-265
-3457
-937
query I rowsort
SELECT ALL - 77 + col1 * col2 - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
15484
3415
4825
query I rowsort
SELECT - ( tab0.col2 * col1 ) + col1 AS col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT col1 + tab2.col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT + 71 * col1 * 91 FROM tab2 AS cor0
----
109837
200291
381199
query I rowsort
SELECT + col0 * 74 AS col2 FROM tab2 AS cor0
----
518
5772
5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT + col0 DIV - cor0.col1 col0 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9662
SELECT + col0 / - cor0.col1 col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL - 38 AS col0 FROM tab0 AS cor0
----
-38
-38
-38
query I rowsort
SELECT DISTINCT + - 50 FROM tab0 AS cor0
----
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9665
SELECT - - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9665
SELECT - - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9666
SELECT - CAST( + 7 AS SIGNED ) * col2 + - col2 AS col2 FROM tab2 AS cor0
----
-208
-216
-304
skipif mysql # not compatible
query I rowsort label-9666
SELECT - CAST ( + 7 AS INTEGER ) * col2 + - col2 AS col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT DISTINCT - 21 * + col1 FROM tab0 cor0
----
-1806
-1911
-2037
query I rowsort
SELECT ALL - - 62 FROM tab1 AS cor0
----
62
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9670
SELECT DISTINCT + - 57 DIV - col0 + col2 FROM tab1 AS cor0
----
57
73
96
skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT + - 57 / - col0 + col2 FROM tab1 AS cor0
----
57
73
96
query I rowsort
SELECT + 25 FROM tab0 cor0
----
25
25
25
query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - col2 + col2 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT 78 AS col0 FROM tab2 AS cor0
----
78
78
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9675
SELECT ALL - ( col1 ) * + CAST( col1 + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-1209
-740
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - ( col1 ) * + CAST ( col1 + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-1209
-740
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - - col0 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 37 * - col0 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT + - ( col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 86 * + tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0246696263f11371e6d6fb8f79dfa27d
query I rowsort
SELECT + 56 - - col2 * - col2 AS col0 FROM tab0
----
-1033
-6668
55
query I rowsort
SELECT - cor0.col1 * - ( col0 ) + col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT col0 + 14 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-102
-361
-76
query I rowsort
SELECT col1 + 78 AS col0 FROM tab1 cor0
----
104
88
91
query I rowsort
SELECT ALL 32 * col1 FROM tab1
----
320
416
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT 68 DIV col1 AS col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-9685
SELECT 68 / col1 AS col1 FROM tab2
----
1
2
4
query I rowsort
SELECT ALL cor0.col2 + 65 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to a30edc5076a8d465f52d7dbc30da9a32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT DISTINCT + tab1.col1 DIV + col2 AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT + tab1.col1 / + col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 AS col2 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT ( col2 ) DIV - ( col2 + + col2 * - 31 ) col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9689
SELECT ( col2 ) / - ( col2 + + col2 * - 31 ) col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * 68 * - col1 AS col2 FROM tab1
----
-38760
-84864
-95472
query I rowsort
SELECT ALL - 53 FROM tab1, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT col0 * - 87 * + col1 FROM tab0
----
-179568
-295365
-704613
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-66
query I rowsort
SELECT - + col0 + col2 + - 90 FROM tab0 AS cor0
----
-124
-81
-97
query I rowsort
SELECT col1 + + 51 FROM tab1 AS cor0
----
61
64
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 + + cor0.col2 * - col2 + col2 FROM tab0 AS cor0
----
-1032
-6553
35
query I rowsort
SELECT ALL 41 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - col1 * - 5 AS col2 FROM tab2
----
155
295
85
query I rowsort
SELECT DISTINCT + - ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + - ( 81 ) * - col1 AS col0 FROM tab2
----
1339
2484
4753
query I rowsort
SELECT col1 * + 87 + - col2 AS col0 FROM tab2 cor0
----
1441
2670
5107
query I rowsort
SELECT ALL - + ( 41 ) AS col1 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - + 2 + + 81 + col0 FROM tab1 cor0
----
143
159
82
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + ( + 28 ) FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL - ( 12 ) + - col2 AS col2 FROM tab2 AS cor0
----
-38
-39
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 89 col0 FROM tab1 AS cor0
----
-89
-89
-89
query I rowsort
SELECT + ( 9 ) * col1 + ( - 81 ) + col0 FROM tab0 AS cor0
----
717
827
827
query I rowsort
SELECT - 0 + + col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * + col1 col0 FROM tab2
----
22831
271518
6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 * col0 col0 FROM tab2
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab0, tab2 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT ALL - col2 - col0 DIV tab2.col1 AS col0 FROM tab2
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL - col2 - col0 / tab2.col1 AS col0 FROM tab2
----
-27
-27
-42
query I rowsort
SELECT ALL + ( 14 * + tab0.col2 ) + - col0 * col0 FROM tab0
----
-114
-1211
-6773
query I rowsort
SELECT ALL col2 * - col0 + - tab1.col2 AS col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT ALL 13 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT + + 13 AS col0 FROM tab0 AS cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 col2 FROM tab2 AS cor0
----
-14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9721
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT - - cor0.col0 DIV + col0 + + col0 AS col0 FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-9722
SELECT - - cor0.col0 / + col0 + + col0 AS col0 FROM tab2 cor0
----
79
8
80
query I rowsort
SELECT ALL + - 8 AS col1 FROM tab0 cor0
----
-8
-8
-8
query I rowsort
SELECT + 73 + col1 + col2 FROM tab1 AS cor0
----
140
153
182
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col1 * 24 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT + col0 + 5 * + col2 AS col0 FROM tab1 AS cor0
----
273
349
560
query I rowsort
SELECT ALL + 83 * col2 FROM tab0 AS cor0
----
2739
6806
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT DISTINCT - col1 + - col2 DIV col0 FROM tab0 cor0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - col1 + - col2 / col0 FROM tab0 cor0
----
-87
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 * col0 col2 FROM tab1
----
216
4608
5760
query I rowsort
SELECT 93 AS col2 FROM tab1 AS cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT - + cor0.col2 * cor0.col0 - col0 DIV col0 FROM tab2 AS cor0
----
-190
-2029
-3003
skipif mysql # not compatible
query I rowsort label-9732
SELECT - + cor0.col2 * cor0.col0 - col0 / col0 FROM tab2 AS cor0
----
-190
-2029
-3003
query I rowsort
SELECT col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9734
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + col0 * col2 + cor0.col0 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT ALL - 84 + col1 DIV - col0 FROM tab1 AS cor0
----
-84
-84
-92
skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - 84 + col1 / - col0 FROM tab1 AS cor0
----
-84
-84
-92
query I rowsort
SELECT DISTINCT + + col0 * - col1 + col2 AS col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * - ( - col2 ) AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL 49 + col2 AS col2 FROM tab0 AS cor0
----
131
50
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 * + col1 * - col1 col1 FROM tab1 AS cor0
----
-10816
-1600
-2704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT ALL - + col1 + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - + col1 + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 3 * col0 AS col2 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT + ( + col1 ) + + 84 * - col1 AS col2 FROM tab2 cor0
----
-1411
-2573
-4897
onlyif mysql # use DIV operator for integer division
query I rowsort label-9747
SELECT + col0 * cor0.col1 + 30 DIV 45 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9747
SELECT + col0 * cor0.col1 + 30 / 45 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * - col0 col2 FROM tab1 AS cor0
----
1984
2480
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT ( - col0 ) * col1 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-9749
SELECT ( - col0 ) * col1 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT DISTINCT + 43 - col0 FROM tab2
----
-35
-36
36
query I rowsort
SELECT ALL 60 - + ( col2 ) AS col2 FROM tab0
----
-22
27
59
query I rowsort
SELECT ALL - cor0.col0 + - col0 * ( col0 ) FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT col2 * col1 * + col0 - col1 AS col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT ( col1 ) * + col0 - - col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT 34 + col0 AS col1 FROM tab1 AS cor0
----
114
37
98
query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - - 9 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - col0 + 82 * + col2 * col2 - + 66 * + cor0.col0 FROM tab0 AS cor0
----
-2263
545405
87690
query I rowsort
SELECT + ( 25 ) + - col1 AS col0 FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT + - 9 * + 75 AS col0 FROM tab0 cor0
----
-675
-675
-675
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - col1 * 40 * col1 FROM tab1 AS cor0
----
-27040
-4000
-6760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT col1 DIV 90 AS col2 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9764
SELECT col1 / 90 AS col2 FROM tab0 AS cor0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT DISTINCT 1 DIV col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT 1 / col1 FROM tab0 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT + CAST( - col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9766
SELECT + CAST ( - col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 81 col2 FROM tab0
----
-48
-80
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2, tab2 cor3
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT col2 DIV col1 + col1 * col0 + + 61 * - col2 * col1 FROM tab1
----
-34125
-75081
-85564
skipif mysql # not compatible
query I rowsort label-9769
SELECT col2 / col1 + col1 * col0 + + 61 * - col2 * col1 FROM tab1
----
-34125
-75081
-85564
query I rowsort
SELECT ALL - col1 + - col0 * + col2 * ( + 76 ) FROM tab1
----
-12338
-277258
-583693
query I rowsort
SELECT 97 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT ( col1 + col0 ) * - 5 AS col1 FROM tab2
----
-190
-480
-685
query I rowsort
SELECT DISTINCT + 2 FROM tab0, tab2 AS cor0
----
2
query I rowsort
SELECT DISTINCT + 87 * + 44 AS col0 FROM tab1 AS cor0
----
3828
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9775
SELECT ALL + - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9775
SELECT ALL + - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col2 * 53 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT DISTINCT col0 * + ( - col2 * - col1 ) AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + + 54 * col0 AS col1 FROM tab0 cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT 8 * + 26 FROM tab0
----
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9781
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 66 AS col1 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT - col1 * col1 + cor0.col0 * 8 AS col0 FROM tab1 AS cor0
----
-652
412
471
onlyif mysql # use DIV operator for integer division
query I rowsort label-9784
SELECT + - col0 DIV - cor0.col1 - - col2 col0 FROM tab1 AS cor0
----
102
54
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9784
SELECT + - col0 / - cor0.col1 - - col2 col0 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT ALL - tab0.col0 * + 7 FROM tab0
----
-168
-245
-623
query I rowsort
SELECT ALL - 91 FROM tab2, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT DISTINCT + cor0.col0 * ( col1 * + col0 ) + col1 FROM tab0 AS cor0
----
118922
49622
720902
query I rowsort
SELECT cor0.col0 * ( 74 ) AS col0 FROM tab2 cor0
----
518
5772
5846
query I rowsort
SELECT ALL + - cor0.col2 * 84 FROM tab2 AS cor0
----
-2184
-2268
-3192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9790
SELECT + ( 57 ) DIV + col1 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-9790
SELECT + ( 57 ) / + col1 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT + + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - col1 * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + ( col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - ( - col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 24 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 31b2383e66654ef34f9b8e4b30a4ae4b
query I rowsort
SELECT - - cor0.col1 * col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NULL > ( + tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT tab0.col1 DIV col0 col2 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9799
SELECT tab0.col1 / col0 col2 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL col2 + col0 + - col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - col2 + + col0 * - col1 * col2 + tab0.col0 FROM tab0
----
-3361
-664111
-68121
query I rowsort
SELECT DISTINCT col1 + + col0 * - col0 AS col0 FROM tab2 WHERE tab2.col2 <= + col1 * - tab2.col0 + - col1 - col0
----
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT ALL col1 * - col0 FROM tab2 WHERE NOT NULL IN ( + tab2.col2 / - col1 )
----
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL > col1
----
query I rowsort
SELECT col0 + + tab1.col0 - col1 FROM tab1
----
-20
118
147
query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT col0 * col2 < col1
----
3
64
80
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NULL ) IN ( - tab0.col0 )
----
query I rowsort
SELECT - tab0.col0 + - col2 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL - col2 + + tab2.col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT + col1 * col0 * col2 NOT IN ( col1 )
----
query I rowsort
SELECT ALL + col2 * + col1 + - col2 FROM tab2
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-9814
SELECT + col2 + + col1 DIV + col0 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-9814
SELECT + col2 + + col1 / + col0 FROM tab0
----
3
36
83
query I rowsort
SELECT DISTINCT - tab2.col1 * - col0 + + col0 AS col0 FROM tab2
----
1422
224
4680
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= - col2 OR NOT NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT - col1 * col1 DIV - col0 + - col0 - - col0 * - tab1.col2 FROM tab1
----
-3711
-7758
60
skipif mysql # not compatible
query I rowsort label-9817
SELECT - col1 * col1 / - col0 + - col0 - - col0 * - tab1.col2 FROM tab1
----
-3711
-7758
60
query I rowsort
SELECT ALL col0 * tab0.col2 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT DISTINCT col2 DIV + cor0.col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT col2 / + cor0.col0 FROM tab0 AS cor0
----
0
1
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) >= NULL
----
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9822
SELECT col0 * col1 DIV col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9822
SELECT col0 * col1 / col0 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 * col0 + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-4797
-5408
680
query I rowsort
SELECT + col0 + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL + + col0 - cor0.col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col0 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + col0 * + ( 11 ) FROM tab1 cor0
----
33
704
880
query I rowsort
SELECT ALL + col0 * + 9 - ( + col0 ) * 60 * cor0.col2 FROM tab0 AS cor0
----
-1785
-437079
-47304
query I rowsort
SELECT ALL - cor0.col0 + col1 * - ( col1 ) * - col0 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT - col2 + - 34 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-118380
-32701
-9864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - 48 ) + + col1 col2 FROM tab2 AS cor0
----
-305
-3685
-3775
query I rowsort
SELECT col1 + 12 * 9 FROM tab0 AS cor0
----
194
199
205
onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT - + col1 + col0 DIV col1 col1 FROM tab1 cor0
----
-26
-4
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9833
SELECT - + col1 + col0 / col1 col1 FROM tab1 cor0
----
-26
-4
-7
query I rowsort
SELECT DISTINCT - col0 * + col0 + - 27 + col2 * ( 8 + col2 * col2 ) FROM tab0 AS cor0
----
-1243
35598
544076
query I rowsort
SELECT ALL + + col0 * + ( cor0.col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - 18 FROM tab0
----
-18
query I rowsort
SELECT col1 * - col1 * col0 - + ( col0 ) FROM tab0
----
-177528
-329350
-737098
query I rowsort
SELECT DISTINCT - cor0.col2 * + 75 AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75
query I rowsort
SELECT ALL - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT 31 * col1 FROM tab1
----
310
403
806
query I rowsort
SELECT col0 + 82 + + tab1.col2 * + col2 * - col1 AS col1 FROM tab1
----
-119646
-32344
-75731
query I rowsort
SELECT col1 + col1 - col1 * tab1.col0 AS col2 FROM tab1
----
-1014
-26
-620
query I rowsort
SELECT DISTINCT - ( 94 ) FROM tab1 cor0
----
-94
query I rowsort
SELECT - - col0 * + col2 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - ( 59 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + + col1 col1 FROM tab0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT DISTINCT - + ( col0 ) + - 31 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-78
-8
-80
skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - + ( col0 ) + - 31 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-78
-8
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 + - col2 col2 FROM tab0
----
-7429
-8363
-9410
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( + col1 * col0 )
----
query I rowsort
SELECT ALL - col1 + col0 * + col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT - col0 + + tab0.col1 - - col1 * col1 FROM tab0
----
7458
8283
9471
query I rowsort
SELECT col2 * tab0.col1 * col1 + col2 + - col1 * - col2 AS col1 FROM tab0
----
246939
686586
9507
query I rowsort
SELECT + tab2.col1 * - tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - - ( + col1 ) + ( + 41 ) FROM tab0 cor0
----
127
132
138
query I rowsort
SELECT + col0 * col0 * ( col1 ) FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - cor0.col2 + 12 FROM tab1 AS cor0
----
-42
-45
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT DISTINCT + col1 * - col2 DIV - col2 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + col1 * - col2 / - col2 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - - col1 * 96 + - col1 AS col0 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT ALL + col2 - - col0 * 49 FROM tab0 AS cor0
----
1209
1716
4443
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT DISTINCT col1 * 84 DIV - 55 - col2 FROM tab1 AS cor0
----
-115
-72
-93
skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT col1 * 84 / - 55 - col2 FROM tab1 AS cor0
----
-115
-72
-93
query I rowsort
SELECT DISTINCT - col2 * - 47 - 93 FROM tab0 AS cor0
----
-46
1458
3761
query I rowsort
SELECT ALL col1 * ( + 24 ) + - col2 AS col2 FROM tab2 AS cor0
----
1390
370
717
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9865
SELECT ALL + col2 + CAST( + col0 AS SIGNED ) * col1 FROM tab1 cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL + col2 + CAST ( + col0 AS INTEGER ) * col1 FROM tab1 cor0
----
1136
132
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9866
SELECT DISTINCT - - col0 * - CAST( + ( + col1 ) AS SIGNED ) + + col0 * col2 FROM tab1 AS cor0
----
3008
6640
84
skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT - - col0 * - CAST ( + ( + col1 ) AS INTEGER ) + + col0 * col2 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT DISTINCT + col2 * 50 AS col0 FROM tab2 AS cor0
----
1300
1350
1900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9868
SELECT ALL - col0 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL - col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT - - col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9870
SELECT - - col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 76 FROM tab1 AS cor0
----
-76
-76
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + ( - col0 ) - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + ( - col1 ) - - col2 * + cor0.col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - col2 * col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9877
SELECT CAST( col2 AS SIGNED ) * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-9877
SELECT CAST ( col2 AS INTEGER ) * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort
SELECT col1 * + CAST ( tab1.col2 AS REAL ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT DISTINCT - + 97 * + col1 + 73 * cor0.col0 DIV + col1 FROM tab1 AS cor0
----
-2514
-503
-812
skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - + 97 * + col1 + 73 * cor0.col0 / + col1 FROM tab1 AS cor0
----
-2514
-503
-812
query I rowsort
SELECT DISTINCT - - ( col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96
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-9884
SELECT ALL cor0.col2 + cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL cor0.col2 + cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT DISTINCT - 79 + - col0 FROM tab0 AS cor0
----
-103
-114
-168
query I rowsort
SELECT ALL col0 + col2 * col0 + - col1 FROM tab0 AS cor0
----
-27
7296
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT + col0 - - col0 DIV - col1 AS col2 FROM tab1
----
3
58
74
skipif mysql # not compatible
query I rowsort label-9887
SELECT + col0 - - col0 / - col1 AS col2 FROM tab1
----
3
58
74
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * ( col0 ) * col0 FROM tab0 AS cor0
----
-13791
-42874
-704887
query I rowsort
SELECT ALL + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col0 FROM tab2
----
52
54
76
query I rowsort
SELECT col2 * 93 AS col1 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT 29 + + col2 * + 16 FROM tab1
----
1565
893
941
query I rowsort
SELECT + col1 * col0 + - col0 AS col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT col1 + - col2 * - 25 * ( col0 + + col1 ) AS col1 FROM tab1
----
105460
223213
39176
query I rowsort
SELECT - + col2 + + cor0.col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + 27 * + col0 AS col0 FROM tab0
----
2403
648
945
query I rowsort
SELECT cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 * + col1 * col1 AS col1 FROM tab1
----
16224
36504
5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9899
SELECT DISTINCT + cor0.col2 * col0 DIV col2 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + cor0.col2 * col0 / col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT ( 26 ) + + tab0.col1 + col2 FROM tab0
----
124
145
199
query I rowsort
SELECT DISTINCT 22 + + ( + col2 ) AS col1 FROM tab0
----
104
23
55
query I rowsort
SELECT 95 * col1 AS col0 FROM tab1
----
1235
2470
950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * col1 col2 FROM tab0
----
5590
5915
6305
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT - CAST( NULL AS SIGNED ) / - col2 + col0 col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9904
SELECT - CAST ( NULL AS INTEGER ) / - col2 + col0 col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - col1 AS col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ( + col2 ) + col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9908
SELECT CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9908
SELECT CAST ( NULL AS REAL ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * - col1 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT tab2.col0 * col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 + + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT - - 94 * + col2 FROM tab1 AS cor0
----
5076
5358
9024
query I rowsort
SELECT col0 + - 35 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1078
-1987
-516
query I rowsort
SELECT ALL - ( col0 ) * + col1 AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9915
SELECT 30 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9915
SELECT 30 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 4 * col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
114
78
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT ALL + col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + col1 / + col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - - 98 * cor0.col1 AS col2 FROM tab0 AS cor0
----
8428
8918
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col1 FROM tab1 cor0
----
12
query I rowsort
SELECT - col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 * col2 col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + 78 AS col1 FROM tab2 cor0
----
78
78
78
query I rowsort
SELECT col0 + - col1 * col0 * - col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT 16 + - col2 FROM tab0 AS cor0
----
-17
-66
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT 89 DIV - col1 FROM tab2 cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-9925
SELECT 89 / - col1 FROM tab2 cor0
----
-1
-2
-5
query I rowsort
SELECT + 98 AS col2 FROM tab2 cor0
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9927
SELECT cor0.col2 DIV - col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9927
SELECT cor0.col2 / - col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + cor0.col2 + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT col0 + col0 * col1 * 0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 31 + - col1 * 68 FROM tab1 AS cor0
----
-1737
-649
-853
query I rowsort
SELECT - 46 * col2 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 37 * 84 FROM tab1
----
3108
3108
3108
query I rowsort
SELECT DISTINCT 53 + - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
-25
-26
46
query I rowsort
SELECT ALL + 88 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT + 74 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - 77 FROM tab2, tab0 cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL - 57 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 + - col1 * + col1 col1 FROM tab2
----
-172
-3377
-927
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9942
SELECT - ( col2 ) * CAST( NULL AS SIGNED ) * 96 + - col1 * ( col0 * + col2 + col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9942
SELECT - ( col2 ) * CAST ( NULL AS INTEGER ) * 96 + - col1 * ( col0 * + col2 + col1 ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * col2 + tab1.col0 * col0 AS col1 FROM tab1
----
15616
2925
7345
query I rowsort
SELECT + 47 * col1 + + ( - 75 ) FROM tab0
----
3967
4202
4484
query I rowsort
SELECT col2 * col2 + - tab1.col0 + col1 AS col0 FROM tab1
----
2939
3195
9149
query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL col1 * - col2 - col2 AS col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT 80 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT ALL 35 + + col0 * col0 * + tab1.col0 FROM tab1
----
262179
512035
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT + + ( col1 ) - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9950
SELECT + + ( col1 ) - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 34 AS col1 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT + cor0.col0 * - ( - ( col1 ) ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + cor0.col2 + ( col1 ) * col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT - col1 - col1 * + col2 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT tab1.col2 + 26 FROM tab1
----
122
80
83
query I rowsort
SELECT + 14 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + 83 * cor0.col0 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT 51 * + col2 FROM tab0 AS cor0
----
1683
4182
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT ALL - col1 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - col1 / cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 70 * col0 col0 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT ALL 53 * tab1.col1 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 81b191200f3cb1721594ff604da49844
query I rowsort
SELECT ALL + - ( - col2 ) + col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - + 88 * - col2 AS col2 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT cor0.col1 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + 65 AS col0 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + 60 * - 35 FROM tab0 cor0
----
-2100
-2100
-2100
query I rowsort
SELECT DISTINCT - tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-10
-13
-26
query I rowsort
SELECT ALL + 20 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1069
-6704
19
query I rowsort
SELECT DISTINCT col0 * - 49 + col0 AS col0 FROM tab2 AS cor0
----
-336
-3744
-3792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 - 18 col0 FROM tab2 AS cor0
----
-25
-96
-97
query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT - 59 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT ALL + col2 * cor0.col2 + col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + col2 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT DISTINCT - + col1 + cor0.col0 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - + col1 + cor0.col0 / ( col2 ) AS col0 FROM tab0 AS cor0
----
-62
-86
-90
query I rowsort
SELECT - + cor0.col1 + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT - - col0 * col0 * 88 FROM tab0 AS cor0
----
107800
50688
697048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col0 + cor0.col0 col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + + 60 + + col2 col0 FROM tab2 AS cor0
----
1620
744
924
onlyif mysql # use DIV operator for integer division
query I rowsort label-9983
SELECT ALL - + col1 DIV col2 + + 64 FROM tab1 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL - + col1 / col2 + + 64 FROM tab1 AS cor0
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - col1 * - col0 + 0 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 80 col1 FROM tab0
----
113
162
81
query I rowsort
SELECT + ( 24 ) FROM tab2
----
24
24
24
query I rowsort
SELECT - 49 * + col2 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT DISTINCT - - col1 * col2 * + col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL - 88 * col2 AS col1 FROM tab1
----
-4752
-5016
-8448
query I rowsort
SELECT - 46 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + 50 FROM tab1 AS cor0
----
212
3698
7730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT ALL - cor0.col1 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - cor0.col1 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - col0 + 19 FROM tab2 AS cor0
----
-22
-33
39
query I rowsort
SELECT col0 * col1 + cor0.col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT - col0 * + ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col0 * 72 FROM tab2 cor0
----
504
5616
5688
query I rowsort
SELECT + 89 * col1 AS col1 FROM tab1
----
1157
2314
890