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(97,1,99)
statement ok
INSERT INTO tab0 VALUES(15,81,47)
statement ok
INSERT INTO tab0 VALUES(87,21,10)
statement ok
INSERT INTO tab1 VALUES(51,14,96)
statement ok
INSERT INTO tab1 VALUES(85,5,59)
statement ok
INSERT INTO tab1 VALUES(91,47,68)
statement ok
INSERT INTO tab2 VALUES(64,77,40)
statement ok
INSERT INTO tab2 VALUES(75,67,58)
statement ok
INSERT INTO tab2 VALUES(46,51,23)
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-0
SELECT ALL 77 * - + 18 * + COUNT( * ) - + COUNT( * ) * - 9 AS col0, COUNT( * ) * 67 - 21 DIV - MAX( - 35 ) col1 FROM tab1
----
-4131
201
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-0
SELECT ALL 77 * - + 18 * + COUNT ( * ) - + COUNT ( * ) * - 9 AS col0, COUNT ( * ) * 67 - 21 / - MAX ( - 35 ) col1 FROM tab1
----
-4131
201
query I rowsort
SELECT 40 FROM tab0 WHERE + col0 + 37 * - col2 - + 38 NOT IN ( 20, + col1 )
----
40
40
40
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2
SELECT + col2 + - CAST( - 12 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
111
22
59
skipif mysql # not compatible
query I rowsort label-2
SELECT + col2 + - CAST ( - 12 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
111
22
59
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-3
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-3
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
query II rowsort
SELECT + col1 + - 13, col0 FROM tab0 AS cor0
----
-12
97
68
15
8
87
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-5
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 col2 FROM tab0
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 80 col1 FROM tab1
----
4720
5440
7680
query I rowsort
SELECT - ( + 27 ) AS col1 FROM tab1 AS cor0
----
-27
-27
-27
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9
SELECT - SUM( + CAST( + 88 AS SIGNED ) ) FROM tab2 AS cor0
----
-264
skipif mysql # not compatible
query I rowsort label-9
SELECT - SUM ( + CAST ( + 88 AS INTEGER ) ) FROM tab2 AS cor0
----
-264
query I rowsort
SELECT ALL - - col1 + - col2 + + + col2 + col0 * 6 FROM tab2 AS cor0 WHERE NOT - 75 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-11
SELECT - MIN( ALL + + col1 ) FROM tab2 cor0
----
-51
skipif mysql # not compatible
query I rowsort label-11
SELECT - MIN ( ALL + + col1 ) FROM tab2 cor0
----
-51
query I rowsort
SELECT + col0 * - + col2 AS col1 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT DISTINCT - 71 + col1 AS col0 FROM tab0 WHERE NOT - col1 BETWEEN - - 6 AND NULL
----
-50
-70
10
onlyif mysql # DIV for integer division:
query I rowsort label-14
SELECT col2 DIV ( - ( ( - col0 ) ) ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-14
SELECT col2 / ( - ( ( - col0 ) ) ) FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - col0 * + + col2 FROM tab0
----
-705
-870
-9603
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-17
SELECT - MAX( - + 31 ) FROM tab1 cor0
----
31
skipif mysql # not compatible
query I rowsort label-17
SELECT - MAX ( - + 31 ) FROM tab1 cor0
----
31
query I rowsort
SELECT + 20 * 15 * - col1 - 4 FROM tab1 WHERE NULL > NULL
----
query II rowsort
SELECT 82, + 37 * + 8 AS col0 FROM tab1 AS cor0
----
82
296
82
296
82
296
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 23 AND + - col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-21
SELECT - col0 DIV col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-21
SELECT - col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col2 * + col2 + 87 FROM tab1 AS cor0
----
3568
4711
9303
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + col0 NOT IN ( + 47 / + col2 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col2 FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-25
SELECT ALL + - COUNT( * ) DIV + + 52 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-25
SELECT ALL + - COUNT ( * ) / + + 52 AS col1 FROM tab0 AS cor0
----
0
query II rowsort
SELECT DISTINCT - col0 + + col1 - + col1 AS col1, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-27
SELECT + col0 * + - CAST( - 3 AS DECIMAL ) + - + col2 + - + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-27
SELECT + col0 * + - CAST ( - 3 AS REAL ) + - + col2 + - + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-28
SELECT - col0 + - ( - - ( + CAST( + - col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-8
13
5
skipif mysql # not compatible
query I rowsort label-28
SELECT - col0 + - ( - - ( + CAST ( + - col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-8
13
5
query I rowsort
SELECT 51 * - 6 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-306
-306
-306
query I rowsort
SELECT 73 + - + col2 FROM tab2 AS cor0
----
15
33
50
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-31
SELECT - 69 * + CAST( - col0 AS SIGNED ) + + col2 + col1 AS col0 FROM tab1 cor0
----
3629
5929
6394
skipif mysql # not compatible
query I rowsort label-31
SELECT - 69 * + CAST ( - col0 AS INTEGER ) + + col2 + col1 AS col0 FROM tab1 cor0
----
3629
5929
6394
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-32
SELECT ALL + CAST( 67 AS SIGNED ) AS col0 FROM tab1
----
67
67
67
skipif mysql # not compatible
query I rowsort label-32
SELECT ALL + CAST ( 67 AS INTEGER ) AS col0 FROM tab1
----
67
67
67
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 96 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL 45 + + 97 AS col0 FROM tab2
----
142
142
142
query I rowsort
SELECT ALL 72 + + col1 - - + col0 * + + col2 FROM tab1
----
4982
5092
6307
query III rowsort
SELECT * FROM tab0 WHERE - 63 > - + 44
----
query II rowsort
SELECT 84, - 89 AS col1 FROM tab2
----
84
-89
84
-89
84
-89
query I rowsort
SELECT DISTINCT col2 + + - col2 - - col2 + - col0 - 74 FROM tab0
----
-151
-42
-72
onlyif mysql # aggregate syntax:
query II rowsort label-39
SELECT ALL - 8 col2, COUNT( * ) * - + COUNT( * ) + 42 AS col2 FROM tab1 cor0
----
-8
33
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-39
SELECT ALL - 8 col2, COUNT ( * ) * - + COUNT ( * ) + 42 AS col2 FROM tab1 cor0
----
-8
33
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col1 * - col0 + + 83 * + + 1 - + - col2, col2 * - 61 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-42
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-42
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * + + col1 AS col2 FROM tab1 AS cor0 WHERE col0 = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-44
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 < + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-44
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 < + CAST ( NULL AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-45
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-45
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab1 cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-46
SELECT ALL + - 28 * 43 DIV - col1 + col1 FROM tab2 AS cor0
----
74
84
92
skipif mysql # not compatible
query I rowsort label-46
SELECT ALL + - 28 * 43 / - col1 + col1 FROM tab2 AS cor0
----
74
84
92
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-48
SELECT ALL - 87 * - + COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-48
SELECT ALL - 87 * - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 BETWEEN NULL AND ( NULL )
----
0
query I rowsort
SELECT 76 * + 99 AS col1 FROM tab2 WHERE NOT 51 * col1 + - col2 IS NULL
----
7524
7524
7524
onlyif mysql # aggregate syntax:
query I rowsort label-50
SELECT ALL - COUNT( DISTINCT + + 79 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + col2
----
0
skipif mysql # not compatible
query I rowsort label-50
SELECT ALL - COUNT ( DISTINCT + + 79 ) AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - + col2
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + col0 + - 62 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-52
SELECT ALL - + COUNT( * ) FROM tab1 WHERE NULL <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE NULL <> NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-53
SELECT ALL + COUNT( * ) * - + 94 * - 30 + + 66 FROM tab0
----
8526
skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + COUNT ( * ) * - + 94 * - 30 + + 66 FROM tab0
----
8526
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 89 + - col2 >= - 37
----
query I rowsort
SELECT 85 FROM tab2 AS cor0 WHERE NULL IS NULL
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col0 FROM tab1 cor0
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - - + col0 col2 FROM tab1 cor0
----
-45
23
26
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 <> NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 * col1 + + - col1 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-60
SELECT ( 2 ) - - COUNT( * ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-60
SELECT ( 2 ) - - COUNT ( * ) FROM tab1 AS cor0
----
5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-61
SELECT DISTINCT 54 + + + MAX( CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-61
SELECT DISTINCT 54 + + + MAX ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL
query I rowsort
SELECT 37 - - - col1 FROM tab1
----
-10
23
32
query I rowsort
SELECT ALL col0 * - ( - col0 ) + - col1 FROM tab0
----
144
7548
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * - 22 - col2 * - col2 col1 FROM tab0
----
-10
2099
9691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + + 74 col0 FROM tab2
----
109
109
109
query III rowsort
SELECT * FROM tab0 WHERE col0 * - 26 / 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab0 cor0
----
-62
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 col2 FROM tab2 AS cor0
----
97
query II rowsort
SELECT ALL + 12, col2 AS col0 FROM tab1 AS cor0
----
12
59
12
68
12
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-70
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-70
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * + + 75 FROM tab0 AS cor0
----
-1575
-6075
-75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-72
SELECT + - ( + + 42 ) DIV - MIN( col1 ) FROM tab1 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-72
SELECT + - ( + + 42 ) / - MIN ( col1 ) FROM tab1 AS cor0
----
8
query II rowsort
SELECT + 96 AS col1, 5 FROM tab2 AS cor0
----
96
5
96
5
96
5
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / + + 5 <> + - ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 6 * + + 32 FROM tab2
----
-192
-192
-192
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT 43 AS col1, + 65 AS col2 FROM tab1 cor0
----
43
65
query I rowsort
SELECT DISTINCT - + 37 * + 90 * - 5 + + 75 AS col0 FROM tab0 AS cor0
----
16725
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 55, col1, + col0 + + 75 )
----
query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col2 < + col0 / - - col1
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-82
SELECT DISTINCT - - SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185
skipif mysql # not compatible
query I rowsort label-82
SELECT DISTINCT - - SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185
onlyif mysql # aggregate syntax:
query I rowsort label-83
SELECT + MIN( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95
skipif mysql # not compatible
query I rowsort label-83
SELECT + MIN ( DISTINCT - 95 ) FROM tab1 AS cor0
----
-95
query I rowsort
SELECT DISTINCT - col1 * col1 * col1 * 7 FROM tab1 cor0
----
-19208
-726761
-875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, col2 col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58
query I rowsort
SELECT 49 * + col0 FROM tab1 AS cor0
----
2499
4165
4459
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 BETWEEN col2 AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <> - col2 * - col1 * col2 * - - 73
----
query II rowsort
SELECT ALL 93 + + + col2, col0 FROM tab2
----
116
46
133
64
151
75
query I rowsort
SELECT 43 + + ( + col1 ) FROM tab1
----
48
57
90
query II rowsort
SELECT DISTINCT col1 + - col2, + col1 FROM tab2
----
28
51
37
77
9
67
query I rowsort
SELECT - col2 * + + ( - col0 ) * - col1 + + 28 FROM tab1
----
-25047
-290808
-68516
query III rowsort
SELECT * FROM tab1 WHERE - col0 / - col2 - + col2 * - - ( 30 ) + + - col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 col1 FROM tab2 AS cor0
----
46
46
46
onlyif mysql # DIV for integer division:
query I rowsort label-95
SELECT - col0 DIV col0 * - - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9
skipif mysql # not compatible
query I rowsort label-95
SELECT - col0 / col0 * - - col1 - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9
query I rowsort
SELECT ALL + + 4 AS col1 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
query I rowsort
SELECT DISTINCT col0 + + - col0 * col0 FROM tab0
----
-210
-7482
-9312
query I rowsort
SELECT DISTINCT ( - col0 ) + - + col0 FROM tab0
----
-174
-194
-30
onlyif mysql # DIV for integer division:
query I rowsort label-99
SELECT - 22 + + col0 DIV - 62 + - + 41 * + 20 FROM tab0 AS cor0
----
-842
-843
-843
skipif mysql # not compatible
query I rowsort label-99
SELECT - 22 + + col0 / - 62 + - + 41 * + 20 FROM tab0 AS cor0
----
-842
-843
-843
onlyif mysql # DIV for integer division:
query II rowsort label-100
SELECT 94 + + col0 DIV - col2, + col2 FROM tab1 AS cor0
----
93
59
93
68
94
96
skipif mysql # not compatible
query II rowsort label-100
SELECT 94 + + col0 / - col2, + col2 FROM tab1 AS cor0
----
93
59
93
68
94
96
onlyif mysql # aggregate syntax:
query I rowsort label-101
SELECT DISTINCT + SUM( ALL + + ( + - col1 ) ) FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT + SUM ( ALL + + ( + - col1 ) ) FROM tab1 AS cor0
----
-66
query I rowsort
SELECT DISTINCT col2 * + 67 FROM tab2
----
1541
2680
3886
query I rowsort
SELECT ALL + 30 * 58 AS col2 FROM tab2
----
1740
1740
1740
onlyif mysql # aggregate syntax:
query I rowsort label-104
SELECT - MIN( col2 ) AS col0 FROM tab1
----
-59
skipif mysql # not compatible
query I rowsort label-104
SELECT - MIN ( col2 ) AS col0 FROM tab1
----
-59
query I rowsort
SELECT - 70 * + 99 AS col2 FROM tab1
----
-6930
-6930
-6930
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-106
SELECT DISTINCT - AVG ( + CAST( + + 30 AS SIGNED ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT - AVG ( + CAST ( + + 30 AS INTEGER ) ) FROM tab2 WHERE NOT NULL > NULL
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 * - ( - col2 )
----
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 BETWEEN + 28 AND NULL )
----
query I rowsort
SELECT + col0 + + col2 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( + + 2 )
----
query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col0 FROM tab0
----
-705
-870
-9603
query I rowsort
SELECT + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # aggregate syntax:
query I rowsort label-112
SELECT DISTINCT + SUM( DISTINCT - + col1 ) FROM tab1
----
-66
skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT + SUM ( DISTINCT - + col1 ) FROM tab1
----
-66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-113
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
-10
-47
-99
skipif mysql # not compatible
query I rowsort label-113
SELECT ALL - col2 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-10
-47
-99
query II rowsort
SELECT + col1 + - - ( - col0 ) AS col2, col0 + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
-96
96
66
-66
onlyif mysql # DIV for integer division:
query I rowsort label-115
SELECT + + col1 DIV col2 * 46 * + 0 + - ( 17 ) + - - col2 + + - col0 + - 32 AS col2 FROM tab1 AS cor0
----
-4
-72
-75
skipif mysql # not compatible
query I rowsort label-115
SELECT + + col1 / col2 * 46 * + 0 + - ( 17 ) + - - col2 + + - col0 + - 32 AS col2 FROM tab1 AS cor0
----
-4
-72
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-116
SELECT CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-116
SELECT CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-117
SELECT - MAX( ALL col0 ) FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-117
SELECT - MAX ( ALL col0 ) FROM tab0 AS cor0
----
-97
onlyif mysql # aggregate syntax:
query I rowsort label-118
SELECT ALL + SUM( + col2 ) + - COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
153
skipif mysql # not compatible
query I rowsort label-118
SELECT ALL + SUM ( + col2 ) + - COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
153
onlyif mysql # aggregate syntax:
query I rowsort label-119
SELECT SUM( col0 ) FROM tab0 cor0
----
199
skipif mysql # not compatible
query I rowsort label-119
SELECT SUM ( col0 ) FROM tab0 cor0
----
199
onlyif mysql # DIV for integer division:
query I rowsort label-120
SELECT ALL - col0 DIV - - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-33
-33
-34
skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - col0 / - - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-33
-33
-34
query I rowsort
SELECT ALL + - col0 * + + 53 + - col2 FROM tab1 AS cor0
----
-2799
-4564
-4891
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - ( + col0 ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + col2 * + + ( + - 46 ) AS col1 FROM tab1
----
-2714
-3128
-4416
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-124
SELECT ALL - col1 + + - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-13
-5
8
skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - col1 + + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-13
-5
8
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-125
SELECT + COUNT( * ) DIV + 73 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-125
SELECT + COUNT ( * ) / + 73 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-126
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE + 63 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-126
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE + 63 IS NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 35 + col1 BETWEEN + + 52 AND + + col1 + col2 + 66
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-128
SELECT ALL - col1 DIV - + col0 + - col0 FROM tab2
----
-45
-63
-75
skipif mysql # not compatible
query I rowsort label-128
SELECT ALL - col1 / - + col0 + - col0 FROM tab2
----
-45
-63
-75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-129
SELECT - 67 * 24 DIV + SUM( ALL - col0 ) + - - COUNT( * ) * - + 15 AS col2 FROM tab1
----
-38
skipif mysql # not compatible
query I rowsort label-129
SELECT - 67 * 24 / + SUM ( ALL - col0 ) + - - COUNT ( * ) * - + 15 AS col2 FROM tab1
----
-38
onlyif mysql # aggregate syntax:
query I rowsort label-130
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT col2 ) - - - 11 FROM tab2
----
-185
skipif mysql # not compatible
query I rowsort label-130
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT col2 ) - - - 11 FROM tab2
----
-185
onlyif mysql # aggregate syntax:
query I rowsort label-131
SELECT COUNT( ALL + ( - + 88 ) ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-131
SELECT COUNT ( ALL + ( - + 88 ) ) AS col2 FROM tab0 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 / - col1 <> 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-133
SELECT ALL CAST( - MIN( + 36 ) AS SIGNED ) FROM tab0 AS cor0
----
-36
skipif mysql # not compatible
query I rowsort label-133
SELECT ALL CAST ( - MIN ( + 36 ) AS INTEGER ) FROM tab0 AS cor0
----
-36
onlyif mysql # aggregate syntax:
query I rowsort label-134
SELECT DISTINCT + MAX( ALL - - 5 ) AS col1 FROM tab2 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT + MAX ( ALL - - 5 ) AS col1 FROM tab2 AS cor0
----
5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-135
SELECT + CAST( NULL AS SIGNED ) * + 14 + - 68 / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-135
SELECT + CAST ( NULL AS INTEGER ) * + 14 + - 68 / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-136
SELECT ALL col2 DIV + 36 AS col1 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-136
SELECT ALL col2 / + 36 AS col1 FROM tab1 AS cor0
----
1
1
2
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 39 * + - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-138
SELECT ALL - 30 + COUNT( * ) AS col2 FROM tab0 WHERE NOT + - col2 + - + col2 IS NULL
----
-27
skipif mysql # not compatible
query I rowsort label-138
SELECT ALL - 30 + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - col2 + - + col2 IS NULL
----
-27
query II rowsort
SELECT DISTINCT 31 AS col2, + col2 AS col1 FROM tab2
----
31
23
31
40
31
58
query I rowsort
SELECT ALL - 54 AS col1 FROM tab1
----
-54
-54
-54
query II rowsort
SELECT col1, 14 * - 69 FROM tab0
----
1
-966
21
-966
81
-966
query I rowsort
SELECT + 28 * - col1 AS col0 FROM tab0
----
-2268
-28
-588
onlyif mysql # aggregate syntax:
query I rowsort label-143
SELECT DISTINCT COUNT( ALL + 87 ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT COUNT ( ALL + 87 ) AS col2 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-144
SELECT ALL - COUNT( * ) * COUNT( DISTINCT - 34 ) * - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-144
SELECT ALL - COUNT ( * ) * COUNT ( DISTINCT - 34 ) * - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-27
query II rowsort
SELECT 33, + col2 FROM tab2 AS cor0 WHERE NOT - 84 NOT BETWEEN NULL AND - 63
----
query I rowsort
SELECT - 32 FROM tab0 AS cor0 WHERE NOT NULL <= + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-147
SELECT ALL - COUNT( ALL col2 ) FROM tab0 AS cor0 WHERE ( 17 ) BETWEEN ( NULL ) AND + col0
----
0
skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - COUNT ( ALL col2 ) FROM tab0 AS cor0 WHERE ( 17 ) BETWEEN ( NULL ) AND + col0
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + col1 IS NULL
----
query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
51
85
91
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-150
SELECT - CAST( - col1 AS SIGNED ) AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77
skipif mysql # not compatible
query II rowsort label-150
SELECT - CAST ( - col1 AS INTEGER ) AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77
onlyif mysql # aggregate syntax:
query I rowsort label-151
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-151
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-152
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE col1 IS NULL
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * - - col2 * col2 col1 FROM tab2
----
107200
225388
35443
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd
onlyif mysql # DIV for integer division:
query I rowsort label-155
SELECT ALL + col1 * - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-155
SELECT ALL + col1 * - col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT 10 IS NOT NULL OR NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT - col2 * + - 11 AS col0 FROM tab2 AS cor0
----
253
440
638
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-158
SELECT DISTINCT + - col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-158
SELECT DISTINCT + - col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + + col0 - col2 AS col2 FROM tab0 AS cor0
----
15
87
97
query I rowsort
SELECT + - col1 + - col1 + 67 AS col2 FROM tab0 AS cor0
----
-95
25
65
query II rowsort
SELECT DISTINCT + 2 AS col2, - col1 FROM tab0
----
2
-1
2
-21
2
-81
query II rowsort
SELECT + ( col0 ) + 96 AS col1, + 51 FROM tab0
----
111
51
183
51
193
51
onlyif mysql # aggregate syntax:
query I rowsort label-163
SELECT DISTINCT 86 + - COUNT( - 7 ) FROM tab1
----
83
skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT 86 + - COUNT ( - 7 ) FROM tab1
----
83
query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE col2 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 59 IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + col1 IS NULL AND + col0 - + ( + col2 ) + + col1 * - col1 / col2 + + col2 BETWEEN ( - 67 ) AND - + col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-167
SELECT ALL + col0 + + - col0 + - - 86 + - col1 DIV - + col2 * - - col1 AS col2 FROM tab1
----
86
86
86
skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + col0 + + - col0 + - - 86 + - col1 / - + col2 * - - col1 AS col2 FROM tab1
----
86
86
86
query I rowsort
SELECT DISTINCT - col2 + 7 AS col1 FROM tab0
----
-3
-40
-92
query I rowsort
SELECT DISTINCT - 36 + + col0 - 94 * - 48 FROM tab0
----
4491
4563
4573
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-170
SELECT DISTINCT col0 - + col0 + col2 + ( + + CAST( 49 AS SIGNED ) ) * - + col1 * 11 * + col0 AS col1 FROM tab2
----
-1264471
-2656152
-2708417
skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT col0 - + col0 + col2 + ( + + CAST ( 49 AS INTEGER ) ) * - + col1 * 11 * + col0 AS col1 FROM tab2
----
-1264471
-2656152
-2708417
query II rowsort
SELECT col0 AS col2, col1 FROM tab2 AS cor0
----
46
51
64
77
75
67
query I rowsort
SELECT - col0 * - + col2 FROM tab2 AS cor0
----
1058
2560
4350
query I rowsort
SELECT 85 * - col0 FROM tab0 AS cor0
----
-1275
-7395
-8245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col1 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT ALL + 19 + 97 FROM tab2
----
116
116
116
onlyif mysql # aggregate syntax:
query I rowsort label-176
SELECT DISTINCT + + 40 - - 54 * - MIN( DISTINCT - + 90 ) AS col2 FROM tab2 AS cor0
----
4900
skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + + 40 - - 54 * - MIN ( DISTINCT - + 90 ) AS col2 FROM tab2 AS cor0
----
4900
query I rowsort
SELECT col2 + + 8 AS col1 FROM tab2 AS cor0
----
31
48
66
onlyif mysql # aggregate syntax:
query I rowsort label-178
SELECT DISTINCT - - COUNT( col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT - - COUNT ( col2 ) FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-179
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * + col1 + - - 27 * + col2 * - col2 - - 46 + + 2 + + CAST( + - col1 AS SIGNED ) * + 78 + + - 24 <> ( NULL )
----
skipif mysql # not compatible
query III rowsort label-179
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * + col1 + - - 27 * + col2 * - col2 - - 46 + + 2 + + CAST ( + - col1 AS INTEGER ) * + 78 + + - 24 <> ( NULL )
----
onlyif mysql # aggregate syntax:
query II rowsort label-180
SELECT DISTINCT - 54 AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-54
3
skipif mysql # not compatible
query II rowsort label-180
SELECT DISTINCT - 54 AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-54
3
query II rowsort
SELECT DISTINCT - - col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51
query II rowsort
SELECT col2, 53 * - col0 FROM tab0 cor0
----
10
-4611
47
-795
99
-5141
query I rowsort
SELECT ALL + + ( 44 ) AS col1 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT + col2 + + col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
query I rowsort
SELECT - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-67
-77
query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
14
47
5
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 77 <> NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-189
SELECT 85 + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
88
skipif mysql # not compatible
query I rowsort label-189
SELECT 85 + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 cor0 WHERE col2 + - col2 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-191
SELECT DISTINCT + COUNT( DISTINCT - 61 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1
skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + COUNT ( DISTINCT - 61 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-192
SELECT + MIN( DISTINCT + - 33 ) + - ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24
skipif mysql # not compatible
query I rowsort label-192
SELECT + MIN ( DISTINCT + - 33 ) + - ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-24
query I rowsort
SELECT DISTINCT + col2 * 3 FROM tab2
----
120
174
69
query I rowsort
SELECT DISTINCT 50 * 72 FROM tab1 AS cor0
----
3600
query I rowsort
SELECT + - col1 + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-19
195
76
onlyif mysql # aggregate syntax:
query I rowsort label-196
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-197
SELECT - + COUNT( col0 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-197
SELECT - + COUNT ( col0 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL col2 + - + col0 FROM tab1 cor0
----
-23
-26
45
onlyif mysql # aggregate syntax:
query I rowsort label-199
SELECT 3 * + - AVG ( + col1 ) * - COUNT( * ) + - - SUM( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE ( + col2 - - - col0 - + col0 ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-199
SELECT 3 * + - AVG ( + col1 ) * - COUNT ( * ) + - - SUM ( DISTINCT - + col2 ) FROM tab0 AS cor0 WHERE ( + col2 - - - col0 - + col0 ) IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-200
SELECT ALL - 56 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - 56 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-201
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-201
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0
query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 NOT BETWEEN - - ( + + col2 ) + + col0 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-203
SELECT ALL - 19 + - CAST( + 50 AS SIGNED ) FROM tab2
----
-69
-69
-69
skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - 19 + - CAST ( + 50 AS INTEGER ) FROM tab2
----
-69
-69
-69
query I rowsort
SELECT DISTINCT 29 * 72 + - 10 * 80 + ( + col2 ) AS col2 FROM tab1
----
1347
1356
1384
query I rowsort
SELECT ALL col1 + + 77 FROM tab0
----
158
78
98
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 66 < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-207
SELECT * FROM tab0 WHERE + col1 * - - 16 * - + 11 + - col0 / CAST( NULL AS SIGNED ) NOT IN ( + ( + col2 ), 13 + + 40 + ( - col1 ) - + 47 * ( - col0 ) * - col2, col1, + col2 / + col1, + col1 )
----
skipif mysql # not compatible
query III rowsort label-207
SELECT * FROM tab0 WHERE + col1 * - - 16 * - + 11 + - col0 / CAST ( NULL AS INTEGER ) NOT IN ( + ( + col2 ), 13 + + 40 + ( - col1 ) - + 47 * ( - col0 ) * - col2, col1, + col2 / + col1, + col1 )
----
query I rowsort
SELECT 59 * col1 AS col2 FROM tab1 AS cor0 WHERE ( + ( + 6 ) * + - 9 ) IS NOT NULL
----
2773
295
826
onlyif mysql # aggregate syntax:
query I rowsort label-209
SELECT ALL - - COUNT( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - - COUNT ( DISTINCT - - col0 ) FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 + + 8 + CAST( 56 AS SIGNED ) * col2 + - - 77 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-210
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 85 + + 8 + CAST ( 56 AS INTEGER ) * col2 + - - 77 / - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col2 + - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-19
195
76
onlyif mysql # aggregate syntax:
query I rowsort label-212
SELECT COUNT( * ) * - 53 AS col2 FROM tab2
----
-159
skipif mysql # not compatible
query I rowsort label-212
SELECT COUNT ( * ) * - 53 AS col2 FROM tab2
----
-159
query I rowsort
SELECT DISTINCT 84 + + 31 AS col1 FROM tab0
----
115
query I rowsort
SELECT DISTINCT + 97 * + col1 FROM tab0
----
2037
7857
97
query I rowsort
SELECT ( - 8 ) FROM tab2
----
-8
-8
-8
onlyif mysql # DIV for integer division:
query I rowsort label-216
SELECT + + col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-216
SELECT + + col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-217
SELECT ALL COUNT( * ) DIV + 13 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-217
SELECT ALL COUNT ( * ) / + 13 AS col0 FROM tab1 cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-218
SELECT - MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-218
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99
query I rowsort
SELECT ( col1 ) * - 79 FROM tab0 AS cor0
----
-1659
-6399
-79
query I rowsort
SELECT DISTINCT + + col1 * 98 AS col2 FROM tab0 AS cor0
----
2058
7938
98
query I rowsort
SELECT ALL + 69 * - - col0 AS col2 FROM tab0
----
1035
6003
6693
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-222
SELECT CAST( NULL AS SIGNED ) * + + col2 / - + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-222
SELECT CAST ( NULL AS INTEGER ) * + + col2 / - + col0 FROM tab0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 11 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-224
SELECT ALL - ( - + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-224
SELECT ALL - ( - + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-225
SELECT + col2 AS col2, 90 DIV col1 + + + col2 FROM tab1
----
59
77
68
69
96
102
skipif mysql # not compatible
query II rowsort label-225
SELECT + col2 AS col2, 90 / col1 + + + col2 FROM tab1
----
59
77
68
69
96
102
onlyif mysql # DIV for integer division:
query I rowsort label-226
SELECT col1 * - col0 * 6 DIV col0 FROM tab2
----
-306
-402
-462
skipif mysql # not compatible
query I rowsort label-226
SELECT col1 * - col0 * 6 / col0 FROM tab2
----
-306
-402
-462
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + 65 col1 FROM tab1
----
3835
4420
6240
onlyif mysql # DIV for integer division:
query I rowsort label-228
SELECT DISTINCT - col2 DIV - - col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT - col2 / - - col1 FROM tab2
----
0
query II rowsort
SELECT - 61 * + col0 * + col2 AS col2, - col0 / 8 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - - col0 )
----
query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT - 28 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + + ( + 84 ) IS NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - 16 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-234
SELECT + ( - 35 ) + + 82 + + col2 DIV + col2 FROM tab2 AS cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-234
SELECT + ( - 35 ) + + 82 + + col2 / + col2 FROM tab2 AS cor0
----
48
48
48
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-235
SELECT ALL - 78 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT ALL - 78 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 13 + col2 AS col2 FROM tab0 AS cor0
----
112
23
60
query I rowsort
SELECT ( col0 ) + - + col1 FROM tab2
----
-13
-5
8
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + ( - col2 )
----
query II rowsort
SELECT DISTINCT 6 + ( - col0 ), - col0 * col0 AS col2 FROM tab0
----
-81
-7569
-9
-225
-91
-9409
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 48 = 89
----
onlyif mysql # aggregate syntax:
query I rowsort label-241
SELECT - MIN( ALL 34 ) col0 FROM tab2
----
-34
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-241
SELECT - MIN ( ALL 34 ) col0 FROM tab2
----
-34
query I rowsort
SELECT - col2 * col2 FROM tab0 WHERE + col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-243
SELECT DISTINCT COUNT( ALL col2 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT COUNT ( ALL col2 ) AS col1 FROM tab0
----
3
query I rowsort
SELECT ALL 11 + + col2 FROM tab1
----
107
70
79
query I rowsort
SELECT col1 + + ( col2 ) FROM tab0
----
100
128
31
onlyif mysql # aggregate syntax:
query I rowsort label-246
SELECT ALL + COUNT( * ) FROM tab2 WHERE NULL < ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-246
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NULL < ( NULL )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-247
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE - 19 <> + col2 + col2
----
3
skipif mysql # not compatible
query I rowsort label-247
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE - 19 <> + col2 + col2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-248
SELECT DISTINCT COUNT( ALL 40 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT COUNT ( ALL 40 ) FROM tab2
----
3
query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) AS col0 FROM tab1
----
-110
-115
-64
query III rowsort
SELECT * FROM tab2 WHERE col1 = + 19 * col0
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-251
SELECT ALL - MIN( - CAST( + 29 AS SIGNED ) ) AS col0 FROM tab2
----
29
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL - MIN ( - CAST ( + 29 AS INTEGER ) ) AS col0 FROM tab2
----
29
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 40 NOT IN ( + col2 * col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-253
SELECT col2 + + col0 AS col1 FROM tab0 WHERE NOT - CAST( - 46 AS SIGNED ) * - 28 BETWEEN + 29 AND 30 * + 93 + col2
----
196
62
97
skipif mysql # not compatible
query I rowsort label-253
SELECT col2 + + col0 AS col1 FROM tab0 WHERE NOT - CAST ( - 46 AS INTEGER ) * - 28 BETWEEN + 29 AND 30 * + 93 + col2
----
196
62
97
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col2 * - col0 + + col1 / 96
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 >= - 12 * + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-256
SELECT DISTINCT MAX( ALL col0 ) FROM tab2
----
75
skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT MAX ( ALL col0 ) FROM tab2
----
75
query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 = col2 + col0
----
query I rowsort
SELECT - 11 + + col0 FROM tab2
----
35
53
64
query I rowsort
SELECT col0 + col0 * - 18 FROM tab1
----
-1445
-1547
-867
onlyif mysql # aggregate syntax:
query I rowsort label-260
SELECT + COUNT( * ) + MIN( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 )
----
62
skipif mysql # not compatible
query I rowsort label-260
SELECT + COUNT ( * ) + MIN ( ALL + col2 ) FROM tab1 WHERE NOT + 61 IN ( 4 - 58 )
----
62
onlyif mysql # aggregate syntax:
query I rowsort label-261
SELECT DISTINCT + 75 + - COUNT( * ) AS col1 FROM tab0
----
72
skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT + 75 + - COUNT ( * ) AS col1 FROM tab0
----
72
query III rowsort
SELECT * FROM tab0 WHERE NOT + 46 IS NOT NULL
----
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE ( NULL ) = - 45 + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-264
SELECT ALL col2 * + 33 FROM tab2 WHERE NULL <> col0 / col1 + 94 / CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-264
SELECT ALL col2 * + 33 FROM tab2 WHERE NULL <> col0 / col1 + 94 / CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT 96 * + col2 AS col2 FROM tab1 WHERE NOT col0 IS NULL
----
5664
6528
9216
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-266
SELECT + CAST( NULL AS SIGNED ) + col2 * 68 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-266
SELECT + CAST ( NULL AS INTEGER ) + col2 * 68 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 7 ) * 16 + col2 AS col2 FROM tab2
----
135
152
170
onlyif mysql # aggregate syntax:
query I rowsort label-268
SELECT + COUNT( + 10 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-268
SELECT + COUNT ( + 10 ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 39 ) + - 82 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col0 / col1
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 49 * col0 ) <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-273
SELECT 69 FROM tab0 WHERE 40 + col2 NOT IN ( col1 + CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-273
SELECT 69 FROM tab0 WHERE 40 + col2 NOT IN ( col1 + CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT DISTINCT - ( ( 58 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - col1 + 57 AS col1 FROM tab1
----
10
43
52
onlyif mysql # aggregate syntax:
query I rowsort label-276
SELECT COUNT( * ) + 53 FROM tab0
----
56
skipif mysql # not compatible
query I rowsort label-276
SELECT COUNT ( * ) + 53 FROM tab0
----
56
query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 58 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab0 WHERE 37 <> NULL
----
query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + 37 * 90 AS col2 FROM tab0
----
3330
3330
3330
onlyif mysql # aggregate syntax:
query I rowsort label-282
SELECT 91 * - COUNT( * ) FROM tab1 AS cor0
----
-273
skipif mysql # not compatible
query I rowsort label-282
SELECT 91 * - COUNT ( * ) FROM tab1 AS cor0
----
-273
query I rowsort
SELECT + col0 * + 41 FROM tab2 cor0
----
1886
2624
3075
query I rowsort
SELECT ( - 74 ) * col2 AS col1 FROM tab2 AS cor0
----
-1702
-2960
-4292
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN ( col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ( + col2 ) FROM tab0 AS cor0 WHERE 23 + - ( - col2 ) * - col2 NOT IN ( - col0 * col1 )
----
10
47
99
query I rowsort
SELECT - 69 AS col0 FROM tab1 WHERE NULL IN ( col1 * col1 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-288
SELECT DISTINCT + 51 DIV - 64 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT + 51 / - 64 FROM tab0
----
0
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-289
SELECT col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-289
SELECT col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 WHERE + col1 / 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col2 * + 23 + - col2 AS col0 FROM tab2
----
1276
506
880
onlyif mysql # aggregate syntax:
query I rowsort label-292
SELECT + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-292
SELECT + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
0
query I rowsort
SELECT DISTINCT col0 * col0 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-294
SELECT ALL CAST( - + 87 AS SIGNED ) FROM tab2
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-294
SELECT ALL CAST ( - + 87 AS INTEGER ) FROM tab2
----
-87
-87
-87
query I rowsort
SELECT 89 - + - col0 AS col2 FROM tab0
----
104
176
186
query I rowsort
SELECT DISTINCT + col0 - + - 53 + + col2 AS col1 FROM tab0
----
115
150
249
query I rowsort
SELECT ALL - 85 - + 25 + - 89 * + col1 AS col1 FROM tab0
----
-1979
-199
-7319
query I rowsort
SELECT - 3 + + - col1 * + 31 AS col1 FROM tab0
----
-2514
-34
-654
query I rowsort
SELECT + col1 + - + 92 AS col2 FROM tab1
----
-45
-78
-87
query I rowsort
SELECT 76 + + + 30 * col2 AS col2 FROM tab1
----
1846
2116
2956
query I rowsort
SELECT col0 + col2 AS col2 FROM tab1 WHERE NULL > ( + 90 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-302
SELECT DISTINCT 8 DIV + 45 - - 44 FROM tab2 AS cor0
----
44
skipif mysql # not compatible
query I rowsort label-302
SELECT DISTINCT 8 / + 45 - - 44 FROM tab2 AS cor0
----
44
query I rowsort
SELECT ALL col1 + - - col2 FROM tab2 AS cor0
----
117
125
74
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL + 58 * + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5a31e878cc2bc550d4e0c92ef51811c
onlyif mysql # aggregate syntax:
query I rowsort label-306
SELECT ALL + COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 31 * + 12 ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 31 * + 12 ) IS NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 60 + - 15 - + 93 * - 25 BETWEEN - 39 AND NULL
----
query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0 WHERE NULL >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-309
SELECT + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1 / - 46
----
NULL
skipif mysql # not compatible
query I rowsort label-309
SELECT + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col1 / - 46
----
NULL
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * - col0 NOT BETWEEN - col1 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 4 IS NOT NULL OR col2 * + col1 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-312
SELECT ALL 73 DIV + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-312
SELECT ALL 73 / + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
-4
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( ( col0 ) / col2 + - col2 ) OR - 28 <> ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-314
SELECT DISTINCT - ( - MIN( DISTINCT - - col1 ) ) AS col1 FROM tab2 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-314
SELECT DISTINCT - ( - MIN ( DISTINCT - - col1 ) ) AS col1 FROM tab2 AS cor0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-315
SELECT + COUNT( * ) * + + 48 col1 FROM tab1 AS cor0
----
144
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-315
SELECT + COUNT ( * ) * + + 48 col1 FROM tab1 AS cor0
----
144
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT + + 42 * + col0 FROM tab2 AS cor0
----
1932
2688
3150
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 * 8 <= - ( col1 ) - 87 * 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - ( + - ( + - col0 ) ) AS col0 FROM tab0
----
-15
-87
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + - col1 col2, - 88 FROM tab0
----
-1
-88
-441
-88
-6561
-88
query I rowsort
SELECT ALL - 91 + + col1 + - - col0 * + + 46 FROM tab0
----
3932
4372
680
query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 <= NULL
----
query I rowsort
SELECT DISTINCT - col2 + + 95 FROM tab0
----
-4
48
85
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 43 * + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-325
SELECT ALL + MAX( DISTINCT - + ( - col1 ) ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-325
SELECT ALL + MAX ( DISTINCT - + ( - col1 ) ) FROM tab2
----
77
onlyif mysql # aggregate syntax:
query I rowsort label-326
SELECT DISTINCT - COUNT( * ) * 96 AS col1 FROM tab2 AS cor0
----
-288
skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - COUNT ( * ) * 96 AS col1 FROM tab2 AS cor0
----
-288
onlyif mysql # aggregate syntax:
query I rowsort label-327
SELECT ALL - - COUNT( * ) * MIN( col0 ) AS col2 FROM tab2 AS cor0
----
138
skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - - COUNT ( * ) * MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
138
query I rowsort
SELECT ALL - + col1 * + col2 * + 98 * + + col0 AS col0 FROM tab1 AS cor0
----
-2457350
-28501928
-6717312
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-329
SELECT CAST( - col1 AS SIGNED ) DIV + col2 FROM tab2 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-329
SELECT CAST ( - col1 AS INTEGER ) / + col2 FROM tab2 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL 34 + 40 AS col1 FROM tab1
----
74
74
74
query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # aggregate syntax:
query I rowsort label-332
SELECT DISTINCT MIN( DISTINCT - 39 ) * - - 62 FROM tab2
----
-2418
skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT MIN ( DISTINCT - 39 ) * - - 62 FROM tab2
----
-2418
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 82 ) col0 FROM tab1 AS cor0
----
82
query I rowsort
SELECT col2 + - 10 - - - 54 FROM tab1 AS cor0
----
-5
32
4
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-335
SELECT * FROM tab1 cor0 WHERE + col0 - - - CAST( + 25 AS SIGNED ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-335
SELECT * FROM tab1 cor0 WHERE + col0 - - - CAST ( + 25 AS INTEGER ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-336
SELECT + COUNT( * ) + - 93 AS col2 FROM tab2 AS cor0
----
-90
skipif mysql # not compatible
query I rowsort label-336
SELECT + COUNT ( * ) + - 93 AS col2 FROM tab2 AS cor0
----
-90
query I rowsort
SELECT + 64 * ( - 49 ) * + 73 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-338
SELECT + - COUNT( * ) * - COUNT( * ) + 80 FROM tab0 AS cor0
----
89
skipif mysql # not compatible
query I rowsort label-338
SELECT + - COUNT ( * ) * - COUNT ( * ) + 80 FROM tab0 AS cor0
----
89
query I rowsort
SELECT DISTINCT col2 * - ( 16 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - 48 + - col0 - - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1443
-3335
-428
query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN ( + 58 ) AND NULL
----
51
85
91
query II rowsort
SELECT DISTINCT + col2 + - + 16, - 53 AS col2 FROM tab0
----
-6
-53
31
-53
83
-53
query I rowsort
SELECT DISTINCT - + ( + ( + 41 ) ) AS col1 FROM tab0 WHERE NOT col0 + - col0 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-344
SELECT - COUNT( * ), - 15 AS col1 FROM tab0
----
-3
-15
skipif mysql # not compatible
query II rowsort label-344
SELECT - COUNT ( * ), - 15 AS col1 FROM tab0
----
-3
-15
query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2 WHERE + 90 * - + col1 * - col0 + ( col1 ) <> col0
----
49
query I rowsort
SELECT DISTINCT col2 + - col0 FROM tab2 WHERE col1 IS NOT NULL
----
-17
-23
-24
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL NOT IN ( - col0, ( - col2 ) ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-348
SELECT ALL CAST( + 56 AS SIGNED ), col1 FROM tab0 cor0
----
56
1
56
21
56
81
skipif mysql # not compatible
query II rowsort label-348
SELECT ALL CAST ( + 56 AS INTEGER ), col1 FROM tab0 cor0
----
56
1
56
21
56
81
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL IN ( - 85 )
----
query II rowsort
SELECT col2 AS col0, 26 AS col0 FROM tab0 AS cor0
----
10
26
47
26
99
26
query I rowsort
SELECT DISTINCT - ( - 92 ) AS col0 FROM tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT ( - 45 ) AS col1 FROM tab0 AS cor0
----
-45
query I rowsort
SELECT ALL col1 * - + 54 + + + 32 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-2722
-3586
-4126
query I rowsort
SELECT DISTINCT + + 16 FROM tab1 WHERE NOT col1 > + + col2 * - col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-355
SELECT + col1 * + + col0 + 76 DIV col1 AS col1 FROM tab2 AS cor0
----
2347
4928
5026
skipif mysql # not compatible
query I rowsort label-355
SELECT + col1 * + + col0 + 76 / col1 AS col1 FROM tab2 AS cor0
----
2347
4928
5026
query I rowsort
SELECT ALL + - 89 FROM tab2 cor0
----
-89
-89
-89
query II rowsort
SELECT + col0, - 75 + - col2 AS col1 FROM tab2
----
46
-98
64
-115
75
-133
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-358
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT 95 BETWEEN NULL AND - col1
----
NULL
skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT 95 BETWEEN NULL AND - col1
----
NULL
query I rowsort
SELECT + col0 * 45 * - 97 AS col0 FROM tab0
----
-379755
-423405
-65475
onlyif mysql # aggregate syntax:
query I rowsort label-360
SELECT ALL COUNT( * ) * + 40 col2 FROM tab0
----
120
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-360
SELECT ALL COUNT ( * ) * + 40 col2 FROM tab0
----
120
query I rowsort
SELECT - 91 * - - col1 AS col2 FROM tab1
----
-1274
-4277
-455
onlyif mysql # DIV for integer division:
query I rowsort label-362
SELECT col0 DIV + ( + - col0 ) FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-362
SELECT col0 / + ( + - col0 ) FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col2 FROM tab2 WHERE - 27 <= NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-364
SELECT DISTINCT + MAX( ALL - + col0 ) * - - COUNT( * ) + COUNT( * ) DIV + + 2 AS col2 FROM tab0
----
-44
skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + MAX ( ALL - + col0 ) * - - COUNT ( * ) + COUNT ( * ) / + + 2 AS col2 FROM tab0
----
-44
query I rowsort
SELECT DISTINCT col0 * ( + ( + col2 ) ) FROM tab2 WHERE + 97 <= - col2 OR - - 23 - + - col2 IS NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col0 col2 FROM tab1 cor0
----
4896
5015
6188
onlyif mysql # aggregate syntax:
query I rowsort label-368
SELECT DISTINCT + SUM( DISTINCT - col0 ) * - - 35 + - 74 FROM tab0 AS cor0
----
-7039
skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT + SUM ( DISTINCT - col0 ) * - - 35 + - 74 FROM tab0 AS cor0
----
-7039
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 * + - col1 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-370
SELECT DISTINCT MIN( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT MIN ( ALL - - col1 ) AS col1 FROM tab2 AS cor0
----
51
onlyif mysql # DIV for integer division:
query I rowsort label-371
SELECT DISTINCT + col2 DIV ( + 41 ) + + 8 FROM tab0
----
10
8
9
skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT + col2 / ( + 41 ) + + 8 FROM tab0
----
10
8
9
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-373
SELECT + + 3 + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-373
SELECT + + 3 + + - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col2 + col2 * 8 col0 FROM tab1
----
472
544
768
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-375
SELECT * FROM tab0 cor0 WHERE ( col1 + + - col2 + - + col0 * - CAST( NULL AS SIGNED ) * + + ( + + col0 ) ) = - col1 + - - col2
----
skipif mysql # not compatible
query III rowsort label-375
SELECT * FROM tab0 cor0 WHERE ( col1 + + - col2 + - + col0 * - CAST ( NULL AS INTEGER ) * + + ( + + col0 ) ) = - col1 + - - col2
----
query I rowsort
SELECT DISTINCT 62 * + 92 - 91 AS col2 FROM tab2 AS cor0
----
5613
query I rowsort
SELECT DISTINCT - 19 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 77 * col0 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab1 cor0
----
34
query II rowsort
SELECT col1 AS col0, - ( col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-382
SELECT ALL CAST( - ( - 38 ) AS SIGNED ) + + col1 col1 FROM tab1
----
43
52
85
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-382
SELECT ALL CAST ( - ( - 38 ) AS INTEGER ) + + col1 col1 FROM tab1
----
43
52
85
query I rowsort
SELECT - col1 - 73 FROM tab1
----
-120
-78
-87
onlyif mysql # aggregate syntax:
query I rowsort label-384
SELECT - SUM( + col2 ) AS col1 FROM tab0
----
-156
skipif mysql # not compatible
query I rowsort label-384
SELECT - SUM ( + col2 ) AS col1 FROM tab0
----
-156
onlyif mysql # DIV for integer division:
query I rowsort label-385
SELECT ALL + 74 DIV - 66 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-385
SELECT ALL + 74 / - 66 AS col1 FROM tab1
----
-1
-1
-1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-386
SELECT ALL CAST( - + col0 AS SIGNED ) * col0 FROM tab2
----
-2116
-4096
-5625
skipif mysql # not compatible
query I rowsort label-386
SELECT ALL CAST ( - + col0 AS INTEGER ) * col0 FROM tab2
----
-2116
-4096
-5625
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-387
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + CAST( NULL AS SIGNED ) ) * - col0 * - col0 * - - ( col2 ) <> 7 )
----
skipif mysql # not compatible
query III rowsort label-387
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + CAST ( NULL AS INTEGER ) ) * - col0 * - col0 * - - ( col2 ) <> 7 )
----
query I rowsort
SELECT - col1 * + 3 FROM tab0 AS cor0 WHERE NOT col0 * - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-389
SELECT DISTINCT COUNT( * ) * + 97 FROM tab2 AS cor0 WHERE NULL <> col0
----
0
skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT COUNT ( * ) * + 97 FROM tab2 AS cor0 WHERE NULL <> col0
----
0
query II rowsort
SELECT DISTINCT - - col0 AS col1, + ( - - col2 ) FROM tab1 AS cor0
----
51
96
85
59
91
68
query I rowsort
SELECT + 28 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
onlyif mysql # aggregate syntax:
query II rowsort label-392
SELECT 70 AS col1, - COUNT( * ) AS col2 FROM tab1
----
70
-3
skipif mysql # not compatible
query II rowsort label-392
SELECT 70 AS col1, - COUNT ( * ) AS col2 FROM tab1
----
70
-3
query I rowsort
SELECT - - col0 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-394
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-394
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < + + 23 - + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 47 AS col2, + 42 col2 FROM tab0 AS cor0
----
47
42
onlyif mysql # aggregate syntax:
query I rowsort label-397
SELECT - - COUNT( * ) * + SUM( ALL + col2 ) + COUNT( * ) + 98 AS col2 FROM tab0 cor0
----
569
skipif mysql # not compatible
query I rowsort label-397
SELECT - - COUNT ( * ) * + SUM ( ALL + col2 ) + COUNT ( * ) + 98 AS col2 FROM tab0 cor0
----
569
query I rowsort
SELECT ( col0 ) FROM tab1 cor0 WHERE NOT 19 + + - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-399
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-399
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + - col2 + - - col2 FROM tab2 cor0
----
0
query II rowsort
SELECT - col0, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 51 * + 86 - + col2
----
query I rowsort
SELECT DISTINCT col2 + + 54 FROM tab0
----
101
153
64
query I rowsort
SELECT col0 + + + col1 AS col1 FROM tab2
----
141
142
97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 * - ( + 9 ) * 28 / + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT col2 * - 10 * + col0 AS col1 FROM tab2
----
-10580
-25600
-43500
query I rowsort
SELECT - + col2 FROM tab2 WHERE col2 IS NOT NULL
----
-23
-40
-58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-408
SELECT CAST( NULL AS SIGNED ) * + - 23 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-408
SELECT CAST ( NULL AS INTEGER ) * + - 23 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 46 >= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col1 FROM tab1 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-411
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-411
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-412
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-412
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab0
----
NULL
query I rowsort
SELECT + - 38 + 36 + - col2 FROM tab0 AS cor0
----
-101
-12
-49
onlyif mysql # aggregate syntax:
query I rowsort label-414
SELECT ALL - COUNT( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0 + - 9
----
0
skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - COUNT ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0 + - 9
----
0
query I rowsort
SELECT ALL - col2 * - col0 - + - col2 FROM tab0 AS cor0
----
752
880
9702
query II rowsort
SELECT DISTINCT - 88, + col2 FROM tab2 AS cor0
----
-88
23
-88
40
-88
58
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-417
SELECT DISTINCT - COUNT( * ) * - 9 DIV + COUNT( * ) FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT - COUNT ( * ) * - 9 / + COUNT ( * ) FROM tab1 AS cor0
----
9
query I rowsort
SELECT + 43 * 8 FROM tab2 AS cor0
----
344
344
344
query II rowsort
SELECT ALL - + 13 AS col1, 34 AS col1 FROM tab1 AS cor0
----
-13
34
-13
34
-13
34
onlyif mysql # aggregate syntax:
query I rowsort label-420
SELECT + + COUNT( ALL + 74 ) AS col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-420
SELECT + + COUNT ( ALL + 74 ) AS col1 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-421
SELECT - - COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-421
SELECT - - COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-422
SELECT * FROM tab1 WHERE NOT - 84 NOT IN ( - CAST( NULL AS SIGNED ) / - col0, col0 )
----
skipif mysql # not compatible
query III rowsort label-422
SELECT * FROM tab1 WHERE NOT - 84 NOT IN ( - CAST ( NULL AS INTEGER ) / - col0, col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col0 * + 22 * + - 21
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * - col0 * + col2 col1 FROM tab1
----
-100300
-123760
-97920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 WHERE NOT 5 / col2 + + + col2 - + + col1 / - 68 * - + 57 * - col2 IS NOT NULL
----
query I rowsort
SELECT 88 * - col0 FROM tab0
----
-1320
-7656
-8536
onlyif mysql # aggregate syntax:
query II rowsort label-427
SELECT ALL COUNT( * ) * - 13 AS col0, 43 FROM tab1
----
-39
43
skipif mysql # not compatible
query II rowsort label-427
SELECT ALL COUNT ( * ) * - 13 AS col0, 43 FROM tab1
----
-39
43
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 62 NOT BETWEEN - col1 + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-429
SELECT DISTINCT - col0 DIV - + col2 AS col0 FROM tab0
----
0
8
skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT - col0 / - + col2 AS col0 FROM tab0
----
0
8
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( + CAST( 16 AS DECIMAL ) )
----
skipif mysql # not compatible
query III rowsort label-430
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= ( + CAST ( 16 AS REAL ) )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 - + col0 AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * + 92 + - col0 FROM tab2 AS cor0
----
-4278
-5952
-6975
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 >= - 45
----
onlyif mysql # aggregate syntax:
query I rowsort label-434
SELECT DISTINCT - - 69 * - - COUNT( * ) * + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4968
skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - - 69 * - - COUNT ( * ) * + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
4968
onlyif mysql # DIV for integer division:
query I rowsort label-435
SELECT DISTINCT + 52 DIV 76 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT + 52 / 76 FROM tab0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-436
SELECT ALL 47 DIV - 86 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-436
SELECT ALL 47 / - 86 FROM tab0
----
0
0
0
query I rowsort
SELECT - 14 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
onlyif mysql # aggregate syntax:
query I rowsort label-438
SELECT + MAX( 16 ) AS col2 FROM tab0, tab1 AS cor0
----
16
skipif mysql # not compatible
query I rowsort label-438
SELECT + MAX ( 16 ) AS col2 FROM tab0, tab1 AS cor0
----
16
onlyif mysql # aggregate syntax:
query I rowsort label-439
SELECT COUNT( DISTINCT - - col1 ) + - COUNT( * ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-439
SELECT COUNT ( DISTINCT - - col1 ) + - COUNT ( * ) FROM tab1 cor0
----
0
query I rowsort
SELECT + col1 * + 19 AS col0 FROM tab1 cor0
----
266
893
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE + col0 > NULL
----
query II rowsort
SELECT col2, 80 + 28 FROM tab1
----
59
108
68
108
96
108
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-443
SELECT ALL + 57 * CAST( NULL AS SIGNED ) + + 17 - + 38 / - MIN( DISTINCT col1 ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-443
SELECT ALL + 57 * CAST ( NULL AS INTEGER ) + + 17 - + 38 / - MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
NULL
query II rowsort
SELECT col0 AS col0, col0 * + ( + + 7 ) FROM tab1
----
51
357
85
595
91
637
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - 85
----
query III rowsort
SELECT * FROM tab0 WHERE + 96 + - col0 < col2
----
87
21
10
97
1
99
query I rowsort
SELECT ALL 11 + + - col2 FROM tab1
----
-48
-57
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + col1 + + 73 * + + col1 col2, col0 FROM tab0 WHERE - + col0 * + col1 BETWEEN + col2 + + - col0 AND + + col2
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = + col2 + - 7 * col1
----
query III rowsort
SELECT * FROM tab2 WHERE - + 76 / + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-451
SELECT + 3 * + COUNT( * ) + + + COUNT( * ) col1 FROM tab2 cor0
----
12
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT + 3 * + COUNT ( * ) + + + COUNT ( * ) col1 FROM tab2 cor0
----
12
onlyif mysql # DIV for integer division:
query I rowsort label-452
SELECT ALL 13 DIV col1 - + - 41 AS col2 FROM tab1
----
41
41
43
skipif mysql # not compatible
query I rowsort label-452
SELECT ALL 13 / col1 - + - 41 AS col2 FROM tab1
----
41
41
43
query I rowsort
SELECT DISTINCT + + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
89
query I rowsort
SELECT DISTINCT - + col2 + 80 * + - col0 / 79 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-455
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 70 <> + col0 / + - col0
----
0
skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 70 <> + col0 / + - col0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-456
SELECT ALL + - MAX( DISTINCT + ( - + 40 ) ), ( + - 36 ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
40
108
skipif mysql # not compatible
query II rowsort label-456
SELECT ALL + - MAX ( DISTINCT + ( - + 40 ) ), ( + - 36 ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
40
108
query I rowsort
SELECT - 12 * + + 27 AS col1 FROM tab0 AS cor0
----
-324
-324
-324
onlyif mysql # DIV for integer division:
query I rowsort label-458
SELECT DISTINCT - + 75 DIV + 75 AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - + 75 / + 75 AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT + 22 * ( + col1 ) FROM tab1
----
1034
110
308
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-460
SELECT - CAST( - col1 AS SIGNED ) * + + col0 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-460
SELECT - CAST ( - col1 AS INTEGER ) * + + col0 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) * - 0 + - 67 col1 FROM tab2
----
-67
-67
-67
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL <> 41 )
----
query II rowsort
SELECT col1 AS col1, 22 - + col2 FROM tab1
----
14
-74
47
-46
5
-37
onlyif mysql # aggregate syntax:
query I rowsort label-465
SELECT 27 * - COUNT( ( + col1 ) ) AS col1 FROM tab2
----
-81
skipif mysql # not compatible
query I rowsort label-465
SELECT 27 * - COUNT ( ( + col1 ) ) AS col1 FROM tab2
----
-81
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-466
SELECT DISTINCT ( + - col0 ) DIV col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
-64
-75
-92
skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT ( + - col0 ) / col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
-64
-75
-92
query I rowsort
SELECT DISTINCT + ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + col2 + 85 * 66 * - col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 94 - + - 44 ) <> NULL
----
query I rowsort
SELECT ALL col0 + - col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-471
SELECT MAX( ALL + + ( - + col0 ) ) FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-471
SELECT MAX ( ALL + + ( - + col0 ) ) FROM tab0
----
-15
query III rowsort
SELECT * FROM tab1 WHERE NOT - + 1 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 95 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - col2 * + 77 FROM tab1
----
-4543
-5236
-7392
query I rowsort
SELECT DISTINCT + 62 * + 14 - + + 2 FROM tab1 AS cor0
----
866
onlyif mysql # DIV for integer division:
query I rowsort label-476
SELECT col2 DIV + 53 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-476
SELECT col2 / + 53 FROM tab0 cor0
----
0
0
1
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-477
SELECT CAST( + + col1 AS SIGNED ) DIV + col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-477
SELECT CAST ( + + col1 AS INTEGER ) / + col1 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # DIV for integer division:
query I rowsort label-478
SELECT + col0 + - 43 + - 68 + col1 DIV - ( + + 75 ) FROM tab0 AS cor0
----
-14
-24
-97
skipif mysql # not compatible
query I rowsort label-478
SELECT + col0 + - 43 + - 68 + col1 / - ( + + 75 ) FROM tab0 AS cor0
----
-14
-24
-97
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 - + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT col1 + - + col2 AS col2 FROM tab0
----
-98
11
34
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-481
SELECT col0 + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-481
SELECT col0 + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col2 + 81 + + col1 AS col0 FROM tab2
----
1305
3238
4034
onlyif mysql # aggregate syntax:
query I rowsort label-483
SELECT ALL - SUM( - col1 ) * + ( - ( - - ( - 49 ) ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - SUM ( - col1 ) * + ( - ( - - ( - 49 ) ) ) FROM tab0 WHERE NOT col1 IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-484
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 = - CAST( - ( - col2 ) AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-484
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE + col2 = - CAST ( - ( - col2 ) AS INTEGER )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 48 ) col2 FROM tab0 cor0
----
48
48
48
query I rowsort
SELECT - col2 * - - col1 - + 87 AS col0 FROM tab0 AS cor0
----
-186
-297
-3894
onlyif mysql # aggregate syntax:
query I rowsort label-487
SELECT ALL + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-488
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-488
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
query I rowsort
SELECT ALL ( + 38 ) FROM tab2
----
38
38
38
onlyif mysql # aggregate syntax:
query II rowsort label-490
SELECT DISTINCT + 61 AS col2, COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
61
3
skipif mysql # not compatible
query II rowsort label-490
SELECT DISTINCT + 61 AS col2, COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
61
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-491
SELECT - CAST( + ( + col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-491
SELECT - CAST ( + ( + col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-492
SELECT DISTINCT MIN( ALL + + col2 ) AS col1 FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT MIN ( ALL + + col2 ) AS col1 FROM tab1 cor0
----
59
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-493
SELECT - - 30, CAST( NULL AS SIGNED ) * - + 32 + + 42 + + col2 AS col0 FROM tab0 AS cor0
----
30
NULL
30
NULL
30
NULL
skipif mysql # not compatible
query II rowsort label-493
SELECT - - 30, CAST ( NULL AS INTEGER ) * - + 32 + + 42 + + col2 AS col0 FROM tab0 AS cor0
----
30
NULL
30
NULL
30
NULL
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE - 74 IS NULL
----
query II rowsort
SELECT + col2 AS col2, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97
query I rowsort
SELECT DISTINCT - + col2 * + col0 - 48 - + - ( - - 87 ) + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-5001
-5053
-8358
query I rowsort
SELECT ALL - col0 * - + col0 FROM tab0 cor0
----
225
7569
9409
onlyif mysql # aggregate syntax:
query I rowsort label-498
SELECT DISTINCT + MIN( DISTINCT - + col2 ) col1 FROM tab0 AS cor0
----
-99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-498
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) col1 FROM tab0 AS cor0
----
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE NOT - col2 IS NULL
----
23
40
58
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( - ( + col1 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-501
SELECT ALL + COUNT( + 91 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + COUNT ( + 91 ) FROM tab1
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-502
SELECT - col2 DIV col0 * - + 84 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-502
SELECT - col2 / col0 * - + 84 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + ( + - 55 ) * + + 15 FROM tab2
----
-825
-825
-825
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-504
SELECT 88 DIV + 18 + + COUNT( DISTINCT + 25 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-504
SELECT 88 / + 18 + + COUNT ( DISTINCT + 25 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
2
onlyif mysql # aggregate syntax:
query I rowsort label-505
SELECT MAX( ALL + ( - 44 ) ) col1 FROM tab1 AS cor0
----
-44
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-505
SELECT MAX ( ALL + ( - 44 ) ) col1 FROM tab1 AS cor0
----
-44
onlyif mysql # DIV for integer division:
query I rowsort label-506
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - 51 DIV + col2 + + - col1 )
----
skipif mysql # not compatible
query I rowsort label-506
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 IN ( - 51 / + col2 + + - col1 )
----
query I rowsort
SELECT - 55 + + 6 FROM tab0
----
-49
-49
-49
query I rowsort
SELECT - 57 * + 41 + + col2 - - - 33 AS col2 FROM tab0
----
-2271
-2323
-2360
query I rowsort
SELECT DISTINCT + 36 * col0 * 82 FROM tab2 AS cor0
----
135792
188928
221400
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-510
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 80 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-510
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - 80 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT 10 * - 38 FROM tab0 AS cor0
----
-380
-380
-380
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-512
SELECT - CAST( NULL AS SIGNED ) - - + col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-512
SELECT - CAST ( NULL AS INTEGER ) - - + col1 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 72 + - col0 FROM tab1
----
-13
-19
21
query I rowsort
SELECT ALL + 13 * - - col0 AS col1 FROM tab1 WHERE NOT + + 85 IS NULL
----
1105
1183
663
query I rowsort
SELECT + col1 - + 41 AS col0 FROM tab2
----
10
26
36
query I rowsort
SELECT ALL - col1 + - 12 + - col2 FROM tab0
----
-112
-140
-43
query II rowsort
SELECT ALL col2 + + col1 AS col2, 0 FROM tab2
----
117
0
125
0
74
0
onlyif mysql # aggregate syntax:
query I rowsort label-518
SELECT COUNT( * ) + - + 87 FROM tab2
----
-84
skipif mysql # not compatible
query I rowsort label-518
SELECT COUNT ( * ) + - + 87 FROM tab2
----
-84
query I rowsort
SELECT DISTINCT + ( + col0 ) * 14 FROM tab0
----
1218
1358
210
query I rowsort
SELECT - ( + - col2 ) + + col2 * + col1 FROM tab0 AS cor0
----
198
220
3854
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-522
SELECT - + MAX( ALL - col1 ) FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-522
SELECT - + MAX ( ALL - col1 ) FROM tab1 AS cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-523
SELECT ALL MIN( DISTINCT - + col2 ) AS col0 FROM tab2
----
-58
skipif mysql # not compatible
query I rowsort label-523
SELECT ALL MIN ( DISTINCT - + col2 ) AS col0 FROM tab2
----
-58
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-524
SELECT + COUNT( * ) DIV + - 34 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-524
SELECT + COUNT ( * ) / + - 34 AS col2 FROM tab0
----
0
query II rowsort
SELECT col2, - 88 AS col1 FROM tab0 AS cor0
----
10
-88
47
-88
99
-88
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-526
SELECT ALL + CAST( NULL AS SIGNED ), col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91
skipif mysql # not compatible
query II rowsort label-526
SELECT ALL + CAST ( NULL AS INTEGER ), col0 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 < + col2 * - 21
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + + - col2 * - col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-529
SELECT - MIN( col2 ) AS col0 FROM tab2 cor0
----
-23
skipif mysql # not compatible
query I rowsort label-529
SELECT - MIN ( col2 ) AS col0 FROM tab2 cor0
----
-23
onlyif mysql # aggregate syntax:
query I rowsort label-530
SELECT DISTINCT - MIN( - ( + - col1 ) ) FROM tab1
----
-5
skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - MIN ( - ( + - col1 ) ) FROM tab1
----
-5
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-531
SELECT ALL col1, + col1 * + CAST( NULL AS DECIMAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL
skipif mysql # not compatible
query II rowsort label-531
SELECT ALL col1, + col1 * + CAST ( NULL AS REAL ) FROM tab0
----
1
NULL
21
NULL
81
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-532
SELECT ALL - COUNT( * ), + 75 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND + col2
----
-3
75
skipif mysql # not compatible
query II rowsort label-532
SELECT ALL - COUNT ( * ), + 75 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND + col2
----
-3
75
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = 24
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47
onlyif mysql # aggregate syntax:
query II rowsort label-535
SELECT - - COUNT( * ) AS col2, COUNT( * ) + + 62 * + 55 col2 FROM tab0 cor0
----
3
3413
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-535
SELECT - - COUNT ( * ) AS col2, COUNT ( * ) + + 62 * + 55 col2 FROM tab0 cor0
----
3
3413
query II rowsort
SELECT ALL - col0 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97
query I rowsort
SELECT + + col2 * + + 93 FROM tab2 AS cor0
----
2139
3720
5394
query I rowsort
SELECT DISTINCT 32 * ( - 65 ) + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-539
SELECT + - MAX( + 76 ) AS col0 FROM tab0 AS cor0
----
-76
skipif mysql # not compatible
query I rowsort label-539
SELECT + - MAX ( + 76 ) AS col0 FROM tab0 AS cor0
----
-76
onlyif mysql # aggregate syntax:
query I rowsort label-540
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-540
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
onlyif mysql # DIV for integer division:
query I rowsort label-541
SELECT DISTINCT + col2 DIV + + col1 FROM tab0 AS cor0
----
0
99
skipif mysql # not compatible
query I rowsort label-541
SELECT DISTINCT + col2 / + + col1 FROM tab0 AS cor0
----
0
99
onlyif mysql # DIV for integer division:
query I rowsort label-542
SELECT - - col2 + + col2 DIV - col2 AS col0 FROM tab2 AS cor0
----
22
39
57
skipif mysql # not compatible
query I rowsort label-542
SELECT - - col2 + + col2 / - col2 AS col0 FROM tab2 AS cor0
----
22
39
57
onlyif mysql # aggregate syntax:
query I rowsort label-543
SELECT ALL COUNT( * ) * COUNT( * ) + 76 FROM tab0 AS cor0
----
85
skipif mysql # not compatible
query I rowsort label-543
SELECT ALL COUNT ( * ) * COUNT ( * ) + 76 FROM tab0 AS cor0
----
85
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-545
SELECT + COUNT( * ) * + + 1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-545
SELECT + COUNT ( * ) * + + 1 FROM tab1
----
3
query I rowsort
SELECT ALL + col1 + - 76 AS col0 FROM tab1
----
-29
-62
-71
query I rowsort
SELECT DISTINCT col2 + 52 AS col0 FROM tab0
----
151
62
99
query III rowsort
SELECT * FROM tab0 WHERE - + col0 <= NULL
----
query III rowsort
SELECT * FROM tab1 WHERE + col2 * 85 IN ( col1 + 47 + col2 * col0, 85 )
----
query II rowsort
SELECT 37, - 66 * + col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-551
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + COUNT( * ) col0 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-551
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) col0 FROM tab0
----
NULL
query III rowsort
SELECT ALL * FROM tab2 WHERE - - 1 IS NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 - - + 59 FROM tab1 cor0
----
4955
5074
6247
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
query I rowsort
SELECT ALL - ( + + 93 ) FROM tab0 AS cor0
----
-93
-93
-93
query II rowsort
SELECT DISTINCT + + col1, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77
query II rowsort
SELECT DISTINCT + col1 * - + col0, - col0 - - col1 / - col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
query II rowsort
SELECT DISTINCT - 53 AS col0, 62 * - 94 FROM tab1 AS cor0
----
-53
-5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 19 * + + 90 * - + col1 * + col1 col2 FROM tab2
----
-102297330
-405543600
-445219020
onlyif mysql # DIV for integer division:
query II rowsort label-560
SELECT ALL + col0 * col0 AS col1, + col2 DIV col2 * col2 AS col0 FROM tab2
----
2116
23
4096
40
5625
58
skipif mysql # not compatible
query II rowsort label-560
SELECT ALL + col0 * col0 AS col1, + col2 / col2 * col2 AS col0 FROM tab2
----
2116
23
4096
40
5625
58
onlyif mysql # aggregate syntax:
query I rowsort label-561
SELECT DISTINCT - - ( - MIN( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - - ( - MIN ( ALL + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-562
SELECT DISTINCT ( 86 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
28
skipif mysql # not compatible
query I rowsort label-562
SELECT DISTINCT ( 86 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 35 col1 FROM tab1 AS cor0
----
35
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-564
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2 FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab2, tab1 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-565
SELECT ( MIN( DISTINCT - col1 ) ) FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-565
SELECT ( MIN ( DISTINCT - col1 ) ) FROM tab0
----
-81
query I rowsort
SELECT ALL - 49 + - col2 AS col0 FROM tab1
----
-108
-117
-145
onlyif mysql # DIV for integer division:
query II rowsort label-567
SELECT 14 DIV + ( + - col0 ) col2, col1 FROM tab1
----
0
14
0
47
0
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-567
SELECT 14 / + ( + - col0 ) col2, col1 FROM tab1
----
0
14
0
47
0
5
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-568
SELECT ALL COUNT( * ) DIV + + 28 col2 FROM tab0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-568
SELECT ALL COUNT ( * ) / + + 28 col2 FROM tab0
----
0
query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 BETWEEN NULL AND + + 70
----
query I rowsort
SELECT col1 * + - 12 * 88 * - + 78 FROM tab2
----
4200768
5518656
6342336
onlyif mysql # aggregate syntax:
query I rowsort label-571
SELECT ALL - - MAX( ALL - col0 ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-571
SELECT ALL - - MAX ( ALL - col0 ) FROM tab0 AS cor0
----
-15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-572
SELECT - col1 + + col2 / col0 + + col1 * + 98 + - - CAST( NULL AS SIGNED ) + - - 72 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-572
SELECT - col1 + + col2 / col0 + + col1 * + 98 + - - CAST ( NULL AS INTEGER ) + - - 72 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + 31 FROM tab1 cor0
----
-28
-37
-65
query I rowsort
SELECT ALL col2 + + col0 + - col2 AS col0 FROM tab0
----
15
87
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-575
SELECT ALL + col0 + - col0 - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + col0 + - col0 - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 62 * ( 76 ) - + col0 FROM tab2
----
-4758
-4776
-4787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 col1 FROM tab0 AS cor0
----
15
81
87
21
97
1
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 51 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-579
SELECT + ( - MAX( DISTINCT - + col2 ) ) - - + 6 AS col1 FROM tab2
----
29
skipif mysql # not compatible
query I rowsort label-579
SELECT + ( - MAX ( DISTINCT - + col2 ) ) - - + 6 AS col1 FROM tab2
----
29
onlyif mysql # aggregate syntax:
query I rowsort label-580
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + col1 * - 16 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + col1 * - 16 IS NULL
----
-3
query II rowsort
SELECT 63 AS col2, 25 FROM tab0 WHERE - col0 + + 91 > NULL
----
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col0 <= + col2 * - col1
----
10
47
99
query I rowsort
SELECT DISTINCT - col0 + - ( - - col0 ) * + col2 * + + 27 + - col1 FROM tab2
----
-117592
-28663
-69261
query I rowsort
SELECT + 13 + + - col0 AS col2 FROM tab1
----
-38
-72
-78
query I rowsort
SELECT ALL 92 + - - col1 FROM tab2
----
143
159
169
query I rowsort
SELECT - 80 * - col1 * + - 42 FROM tab2
----
-171360
-225120
-258720
query II rowsort
SELECT DISTINCT + 69 * 35, col2 FROM tab0 WHERE NULL BETWEEN - 13 AND NULL
----
query I rowsort
SELECT DISTINCT 18 * - AVG ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0 WHERE - 94 IS NULL
----
NULL
query I rowsort
SELECT ALL col2 * + col1 * - col0 FROM tab1 cor0
----
-25075
-290836
-68544
query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab2 AS cor0
----
-33
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 >= col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - - 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL - 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
onlyif mysql # aggregate syntax:
query I rowsort label-594
SELECT ALL + SUM( - - col2 ) AS col1 FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + SUM ( - - col2 ) AS col1 FROM tab0
----
156
query II rowsort
SELECT col2 / + col2 - - + col1, col2 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT + col1 * + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
38367
97
98415
query I rowsort
SELECT ALL 67 AS col0 FROM tab1 cor0
----
67
67
67
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - col0 + - - col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-66
-96
66
onlyif mysql # aggregate syntax:
query I rowsort label-600
SELECT + MAX( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-600
SELECT + MAX ( DISTINCT - - col2 ) AS col2 FROM tab0 AS cor0
----
99
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> col1 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col2 * - 27 + - col2 FROM tab0
----
-1316
-2772
-280
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-603
SELECT DISTINCT CAST( - 66 AS SIGNED ) + + COUNT( * ) AS col1 FROM tab2
----
-63
skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT CAST ( - 66 AS INTEGER ) + + COUNT ( * ) AS col1 FROM tab2
----
-63
onlyif mysql # aggregate syntax:
query I rowsort label-604
SELECT - MAX( DISTINCT + col1 ) + + COUNT( * ) FROM tab1
----
-44
skipif mysql # not compatible
query I rowsort label-604
SELECT - MAX ( DISTINCT + col1 ) + + COUNT ( * ) FROM tab1
----
-44
query I rowsort
SELECT ALL - col0 * col1 * + col2 FROM tab0
----
-18270
-57105
-9603
onlyif mysql # DIV for integer division:
query II rowsort label-606
SELECT ALL + col0 DIV - col1, col2 AS col0 FROM tab1
----
-1
68
-17
59
-3
96
skipif mysql # not compatible
query II rowsort label-606
SELECT ALL + col0 / - col1, col2 AS col0 FROM tab1
----
-1
68
-17
59
-3
96
query I rowsort
SELECT - ( - - col0 ) + + col2 FROM tab1
----
-23
-26
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * + - 84 + + col2 col0 FROM tab2
----
7583
7600
7618
query I rowsort
SELECT + col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-610
SELECT DISTINCT 52 * + - col0 + + + CAST( NULL AS SIGNED ) + + col0 / 85 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-610
SELECT DISTINCT 52 * + - col0 + + + CAST ( NULL AS INTEGER ) + + col0 / 85 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 col2 FROM tab1 AS cor0
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col2 FROM tab0 AS cor0
----
90
90
90
onlyif mysql # aggregate syntax:
query I rowsort label-613
SELECT + 57 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-171
skipif mysql # not compatible
query I rowsort label-613
SELECT + 57 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-171
query I rowsort
SELECT DISTINCT + col0 + + + col1 * col0 FROM tab1 AS cor0
----
4368
510
765
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-615
SELECT - col1 FROM tab2 WHERE + - CAST( NULL AS SIGNED ) - - col1 NOT IN ( + col2 )
----
skipif mysql # not compatible
query I rowsort label-615
SELECT - col1 FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) - - col1 NOT IN ( + col2 )
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - + 75 IS NOT NULL AND + ( - - col0 ) <> NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-617
SELECT ALL + 90 * + 55 * + + SUM( ALL + CAST( - 22 AS SIGNED ) ), + COUNT( * ) + - 67 AS col2 FROM tab0 AS cor0
----
-326700
-64
skipif mysql # not compatible
query II rowsort label-617
SELECT ALL + 90 * + 55 * + + SUM ( ALL + CAST ( - 22 AS INTEGER ) ), + COUNT ( * ) + - 67 AS col2 FROM tab0 AS cor0
----
-326700
-64
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - 57 * col2 / 58 )
----
query I rowsort
SELECT - 2 + + 63 AS col2 FROM tab0 cor0
----
61
61
61
query I rowsort
SELECT ALL + + 80 * + col1 AS col0 FROM tab0 AS cor0
----
1680
6480
80
onlyif mysql # aggregate syntax:
query I rowsort label-621
SELECT 9 * COUNT( ALL + col2 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-621
SELECT 9 * COUNT ( ALL + col2 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
24
query I rowsort
SELECT DISTINCT col2 * - 63 FROM tab2 AS cor0
----
-1449
-2520
-3654
onlyif mysql # aggregate syntax:
query II rowsort label-623
SELECT DISTINCT - COUNT( * ), + 67 AS col1 FROM tab2
----
-3
67
skipif mysql # not compatible
query II rowsort label-623
SELECT DISTINCT - COUNT ( * ), + 67 AS col1 FROM tab2
----
-3
67
query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + col2 ) * - 9 + - 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col1 * + - col2 AS col2 FROM tab0
----
-210
-3807
-99
query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <> + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, 54 FROM tab2
----
-51
54
-67
54
-77
54
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-628
SELECT + + col0 AS col0, 84 + - + CAST( NULL AS SIGNED ) + - - col2 + 22 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL
skipif mysql # not compatible
query II rowsort label-628
SELECT + + col0 AS col0, 84 + - + CAST ( NULL AS INTEGER ) + - - col2 + 22 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL
query I rowsort
SELECT + + 26 AS col2 FROM tab2 cor0
----
26
26
26
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 cor0 WHERE 93 IS NOT NULL
----
-10
-47
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col2 FROM tab0 AS cor0
----
38
38
38
query II rowsort
SELECT DISTINCT + - col1 * 46 * - - ( - col1 ), 41 AS col1 FROM tab1 AS cor0
----
101614
41
1150
41
9016
41
query I rowsort
SELECT ALL col1 * - + col0 + col1 FROM tab1 cor0
----
-420
-4230
-700
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 BETWEEN NULL AND col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-635
SELECT ALL - - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-636
SELECT 17 DIV - COUNT( * ) FROM tab2 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-636
SELECT 17 / - COUNT ( * ) FROM tab2 AS cor0
----
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-638
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= - - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-638
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <= - - CAST ( NULL AS INTEGER )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 24 ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
onlyif mysql # aggregate syntax:
query II rowsort label-640
SELECT ALL 43 AS col0, + COUNT( - 64 ) + 51 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
43
51
skipif mysql # not compatible
query II rowsort label-640
SELECT ALL 43 AS col0, + COUNT ( - 64 ) + 51 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
43
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, col1 FROM tab2
----
-51
51
-67
67
-77
77
query I rowsort
SELECT DISTINCT col1 + col1 + + col0 + - col0 AS col1 FROM tab2
----
102
134
154
onlyif mysql # DIV for integer division:
query I rowsort label-643
SELECT ALL - col1 + col2 DIV col2 * + col0 DIV + col0 + + 41 AS col1 FROM tab0 AS cor0
----
-39
21
41
skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - col1 + col2 / col2 * + col0 / + col0 + + 41 AS col1 FROM tab0 AS cor0
----
-39
21
41
query I rowsort
SELECT DISTINCT + - ( + + ( - - col2 ) ) FROM tab1 cor0
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query II rowsort label-645
SELECT ALL + COUNT( * ) AS col1, - 72 FROM tab0 AS cor0
----
3
-72
skipif mysql # not compatible
query II rowsort label-645
SELECT ALL + COUNT ( * ) AS col1, - 72 FROM tab0 AS cor0
----
3
-72
query I rowsort
SELECT col0 * + col1 * - col1 + + col1 FROM tab0 AS cor0
----
-38346
-96
-98334
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 49 BETWEEN + - col2 * - 40 + - + ( + + col0 ) + ( + col1 ) AND - 21
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-648
SELECT + 19 + + + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
104
110
70
skipif mysql # not compatible
query I rowsort label-648
SELECT + 19 + + + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
104
110
70
query I rowsort
SELECT DISTINCT + + 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
51
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 55 = - + ( - + 41 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + 12 / - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-652
SELECT ALL - COUNT( ALL + col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-652
SELECT ALL - COUNT ( ALL + col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-653
SELECT CAST( NULL AS SIGNED ) * - + ( 71 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-653
SELECT CAST ( NULL AS INTEGER ) * - + ( 71 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + 92 * - 49 AS col0 FROM tab1
----
-229908
-383180
-410228
onlyif mysql # DIV for integer division:
query I rowsort label-655
SELECT - 40 DIV + col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-655
SELECT - 40 / + col0 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-656
SELECT ALL + MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-656
SELECT ALL + MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
96
query II rowsort
SELECT col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99
query I rowsort
SELECT - ( 1 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + 8 FROM tab1 cor0
----
8
query III rowsort
SELECT * FROM tab2 WHERE NOT - 63 IS NOT NULL
----
query I rowsort
SELECT 30 * - - 32 FROM tab2
----
960
960
960
onlyif mysql # aggregate syntax:
query I rowsort label-662
SELECT DISTINCT - MIN( - col0 ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
291
skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT - MIN ( - col0 ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
291
onlyif mysql # DIV for integer division:
query I rowsort label-663
SELECT DISTINCT 54 DIV col2 + 10 FROM tab2 AS cor0
----
10
11
12
skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT 54 / col2 + 10 FROM tab2 AS cor0
----
10
11
12
query I rowsort
SELECT ALL + col0 * 66 * ( 89 ) FROM tab0 AS cor0
----
511038
569778
88110
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-665
SELECT - - AVG ( + - col0 ) + + COUNT( * ) - CAST( NULL AS SIGNED ) * - + MAX( col2 ) * - SUM( - 17 ) col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-665
SELECT - - AVG ( + - col0 ) + + COUNT ( * ) - CAST ( NULL AS INTEGER ) * - + MAX ( col2 ) * - SUM ( - 17 ) col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + col0 + + - 44 * + - ( - + ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-3549
-837
53
query I rowsort
SELECT ALL - - 22 * + + col1 + + 2 AS col1 FROM tab0 AS cor0
----
1784
24
464
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-668
SELECT ALL - 19 * ( - + col0 ) + + ( + ( - col1 ) ) DIV + - col1 col2, + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1217
NULL
1426
NULL
875
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-668
SELECT ALL - 19 * ( - + col0 ) + + ( + ( - col1 ) ) / + - col1 col2, + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1217
NULL
1426
NULL
875
NULL
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58
query I rowsort
SELECT - + col1 * - col1 + - + col2 FROM tab2 AS cor0
----
2578
4431
5889
query I rowsort
SELECT + - col0 + - ( - - 45 ) * col1 FROM tab2 AS cor0
----
-2341
-3090
-3529
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-672
SELECT 32 * 59 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-672
SELECT 32 * 59 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 78 + - + col0 FROM tab2
----
14
3
32
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 34 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 78 + + col2 FROM tab2
----
101
118
136
query II rowsort
SELECT ALL - col2 + - 24 + 56 AS col1, - ( 8 ) AS col1 FROM tab1 AS cor0
----
-27
-8
-36
-8
-64
-8
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-678
SELECT DISTINCT + - 15 DIV - + COUNT( * ) - + - MIN( col2 ) - 12 AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT + - 15 / - + COUNT ( * ) - + - MIN ( col2 ) - 12 AS col0 FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT col2 + + 30 FROM tab2
----
53
70
88
onlyif mysql # aggregate syntax:
query I rowsort label-680
SELECT MIN( + - col2 ) FROM tab0 cor0
----
-99
skipif mysql # not compatible
query I rowsort label-680
SELECT MIN ( + - col2 ) FROM tab0 cor0
----
-99
query I rowsort
SELECT col2 - - + 26 + + col2 * 60 - + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col2 * + + 18 AS col1 FROM tab1 AS cor0
----
-1062
-1224
-1728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64
query II rowsort
SELECT ALL + - col2 AS col0, - col2 * 83 FROM tab2 AS cor0
----
-23
-1909
-40
-3320
-58
-4814
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + ( - col1 ) * 77 + - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL + col2 AS col0, 18 - col1 - 92 * col2 FROM tab1 AS cor0
----
59
-5415
68
-6285
96
-8828
query II rowsort
SELECT - + col1, - col2 AS col1 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59
query II rowsort
SELECT col1 AS col0, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77
query II rowsort
SELECT ALL + 81, col2 AS col2 FROM tab2 AS cor0
----
81
23
81
40
81
58
query I rowsort
SELECT + 2 * - col2 FROM tab2
----
-116
-46
-80
query I rowsort
SELECT DISTINCT + col2 * + 95 * + col2 AS col1 FROM tab2
----
152000
319580
50255
onlyif mysql # aggregate syntax:
query I rowsort label-692
SELECT ALL + MIN( + + 76 ) AS col2 FROM tab2 WHERE NOT - 36 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + MIN ( + + 76 ) AS col2 FROM tab2 WHERE NOT - 36 IS NOT NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-693
SELECT - SUM( DISTINCT 81 ) AS col0 FROM tab2 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-693
SELECT - SUM ( DISTINCT 81 ) AS col0 FROM tab2 AS cor0
----
-81
onlyif mysql # aggregate syntax:
query I rowsort label-694
SELECT DISTINCT + + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-694
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9
onlyif mysql # aggregate syntax:
query II rowsort label-695
SELECT - COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-695
SELECT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-3
3
onlyif mysql # DIV for integer division:
query I rowsort label-696
SELECT - + col1 DIV + + 21 col0 FROM tab2 cor0
----
-2
-3
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-696
SELECT - + col1 / + + 21 col0 FROM tab2 cor0
----
-2
-3
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-697
SELECT DISTINCT CAST( + ( - col2 ) AS SIGNED ) * - col1 + col1 FROM tab0 cor0
----
100
231
3888
skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT CAST ( + ( - col2 ) AS INTEGER ) * - col1 + col1 FROM tab0 cor0
----
100
231
3888
onlyif mysql # aggregate syntax:
query I rowsort label-698
SELECT MIN( - 15 ) AS col0 FROM tab2 cor0
----
-15
skipif mysql # not compatible
query I rowsort label-698
SELECT MIN ( - 15 ) AS col0 FROM tab2 cor0
----
-15
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * - - ( + col2 ) <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - 58 + - + col2 + - + col2 FROM tab1 AS cor0
----
-176
-194
-250
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + + col1 ) * + 29 IS NULL
----
query I rowsort
SELECT DISTINCT + - 17 AS col1 FROM tab1 AS cor0
----
-17
query I rowsort
SELECT DISTINCT + 44 + + col1 FROM tab2
----
111
121
95
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 93 <> NULL AND NOT NULL IS NULL
----
query I rowsort
SELECT - 67 + - 68 + + 43 FROM tab2 AS cor0
----
-92
-92
-92
query II rowsort
SELECT DISTINCT + col1 AS col1, + 33 AS col1 FROM tab2 AS cor0
----
51
33
67
33
77
33
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-707
SELECT DISTINCT - 91 + + CAST( + + MAX( + 41 ) AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-707
SELECT DISTINCT - 91 + + CAST ( + + MAX ( + 41 ) AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-50
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 91 IS NOT NULL
----
query I rowsort
SELECT + + 62 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-710
SELECT + 59 * 67 * 63 + - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-710
SELECT + 59 * 67 * 63 + - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # aggregate syntax:
query I rowsort label-711
SELECT SUM( + col2 ) FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-711
SELECT SUM ( + col2 ) FROM tab1 AS cor0
----
223
query I rowsort
SELECT ALL + col0 * + + col0 * col1 FROM tab1 AS cor0
----
36125
36414
389207
onlyif mysql # aggregate syntax:
query I rowsort label-713
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-713
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab0 cor0
----
-3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + 62 + 73 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-715
SELECT DISTINCT col0 * + col1 / + col0 + + col0 + - 14 + - CAST( NULL AS SIGNED ) * + - col2 FROM tab2 AS cor0 WHERE NULL >= ( + col2 )
----
skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT col0 * + col1 / + col0 + + col0 + - 14 + - CAST ( NULL AS INTEGER ) * + - col2 FROM tab2 AS cor0 WHERE NULL >= ( + col2 )
----
query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab1 cor0
----
-88
onlyif mysql # aggregate syntax:
query II rowsort label-717
SELECT DISTINCT + MIN( ALL - - col0 ) AS col2, + 80 FROM tab0 AS cor0
----
15
80
skipif mysql # not compatible
query II rowsort label-717
SELECT DISTINCT + MIN ( ALL - - col0 ) AS col2, + 80 FROM tab0 AS cor0
----
15
80
query II rowsort
SELECT - 86, - col2 AS col2 FROM tab1
----
-86
-59
-86
-68
-86
-96
query I rowsort
SELECT - ( + 96 ) * col1 FROM tab0
----
-2016
-7776
-96
onlyif mysql # DIV for integer division:
query II rowsort label-720
SELECT ALL - 70 * 99 DIV - - 64 col0, col2 col2 FROM tab1
----
-108
59
-108
68
-108
96
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-720
SELECT ALL - 70 * 99 / - - 64 col0, col2 col2 FROM tab1
----
-108
59
-108
68
-108
96
onlyif mysql # aggregate syntax:
query I rowsort label-721
SELECT + COUNT( * ) * + - COUNT( + col0 ) AS col1 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-721
SELECT + COUNT ( * ) * + - COUNT ( + col0 ) AS col1 FROM tab1
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * + col0 * - - 51 col1, col1 AS col2 FROM tab0
----
-4947
1
-61965
81
-93177
21
query I rowsort
SELECT DISTINCT - 76 * - 63 FROM tab0
----
4788
onlyif mysql # aggregate syntax:
query I rowsort label-724
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( - col0 / + - col2 + col1 IS NOT NULL )
----
0
skipif mysql # not compatible
query I rowsort label-724
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( - col0 / + - col2 + col1 IS NOT NULL )
----
0
query II rowsort
SELECT 10 AS col2, col0 AS col1 FROM tab2
----
10
46
10
64
10
75
query I rowsort
SELECT ALL ( + 8 ) FROM tab2, tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-727
SELECT DISTINCT - - ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT - - ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3
query I rowsort
SELECT + - ( - 81 ) AS col2 FROM tab0 AS cor0
----
81
81
81
onlyif mysql # aggregate syntax:
query I rowsort label-729
SELECT + + ( ( + MIN( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
59
skipif mysql # not compatible
query I rowsort label-729
SELECT + + ( ( + MIN ( col2 ) ) ) AS col1 FROM tab1 AS cor0
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-730
SELECT COUNT( * ) * ( - 38 ) * + SUM( ( col0 ) ) FROM tab2 AS cor0
----
-21090
skipif mysql # not compatible
query I rowsort label-730
SELECT COUNT ( * ) * ( - 38 ) * + SUM ( ( col0 ) ) FROM tab2 AS cor0
----
-21090
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-731
SELECT - CAST( 38 AS SIGNED ) AS col2 FROM tab0 cor0
----
-38
-38
-38
skipif mysql # not compatible
query I rowsort label-731
SELECT - CAST ( 38 AS INTEGER ) AS col2 FROM tab0 cor0
----
-38
-38
-38
query I rowsort
SELECT ALL - 24 AS col0 FROM tab0 WHERE NOT + 90 * + col1 BETWEEN NULL AND + col2 + col2
----
-24
-24
query I rowsort
SELECT 26 + col2 FROM tab2
----
49
66
84
query I rowsort
SELECT ALL 70 * col1 FROM tab0
----
1470
5670
70
onlyif mysql # aggregate syntax:
query I rowsort label-735
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-735
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
-9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + ( col1 )
----
query I rowsort
SELECT - 5 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-738
SELECT - MIN( col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
skipif mysql # not compatible
query I rowsort label-738
SELECT - MIN ( col2 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-739
SELECT 23 * COUNT( * ) FROM tab0 WHERE + col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-739
SELECT 23 * COUNT ( * ) FROM tab0 WHERE + col1 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-740
SELECT ALL - MAX( ALL - col2 ) * - COUNT( * ) AS col1 FROM tab0
----
-30
skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - MAX ( ALL - col2 ) * - COUNT ( * ) AS col1 FROM tab0
----
-30
query I rowsort
SELECT col0 * - col2 + + 53 FROM tab0
----
-652
-817
-9550
onlyif mysql # aggregate syntax:
query I rowsort label-742
SELECT COUNT( * ) * - 61 + 97 FROM tab1
----
-86
skipif mysql # not compatible
query I rowsort label-742
SELECT COUNT ( * ) * - 61 + 97 FROM tab1
----
-86
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-743
SELECT - col0 * + col1 + + CAST( 78 AS SIGNED ) AS col0 FROM tab2
----
-2268
-4850
-4947
skipif mysql # not compatible
query I rowsort label-743
SELECT - col0 * + col1 + + CAST ( 78 AS INTEGER ) AS col0 FROM tab2
----
-2268
-4850
-4947
onlyif mysql # aggregate syntax:
query I rowsort label-744
SELECT 86 * SUM( DISTINCT + col2 ) + 73 FROM tab1
----
19251
skipif mysql # not compatible
query I rowsort label-744
SELECT 86 * SUM ( DISTINCT + col2 ) + 73 FROM tab1
----
19251
onlyif mysql # aggregate syntax:
query I rowsort label-745
SELECT + COUNT( * ) * SUM( DISTINCT - 91 ) FROM tab2
----
-273
skipif mysql # not compatible
query I rowsort label-745
SELECT + COUNT ( * ) * SUM ( DISTINCT - 91 ) FROM tab2
----
-273
query I rowsort
SELECT DISTINCT - col2 + - 70 AS col1 FROM tab1
----
-129
-138
-166
query I rowsort
SELECT ALL - 27 * 10 AS col0 FROM tab2
----
-270
-270
-270
query I rowsort
SELECT DISTINCT + col2 + col2 * - 4 FROM tab2
----
-120
-174
-69
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-749
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-749
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-750
SELECT CAST( ( - col2 ) AS SIGNED ) * 26 + 42 FROM tab1
----
-1492
-1726
-2454
skipif mysql # not compatible
query I rowsort label-750
SELECT CAST ( ( - col2 ) AS INTEGER ) * 26 + 42 FROM tab1
----
-1492
-1726
-2454
query I rowsort
SELECT ALL col0 + 18 AS col2 FROM tab1
----
103
109
69
onlyif mysql # aggregate syntax:
query I rowsort label-752
SELECT ALL SUM( DISTINCT + 71 ) * SUM( ALL + col2 - 15 ) AS col0 FROM tab1
----
12638
skipif mysql # not compatible
query I rowsort label-752
SELECT ALL SUM ( DISTINCT + 71 ) * SUM ( ALL + col2 - 15 ) AS col0 FROM tab1
----
12638
query I rowsort
SELECT ALL col2 * 23 FROM tab0
----
1081
2277
230
onlyif mysql # aggregate syntax:
query I rowsort label-754
SELECT SUM( DISTINCT 85 ) AS col0 FROM tab1
----
85
skipif mysql # not compatible
query I rowsort label-754
SELECT SUM ( DISTINCT 85 ) AS col0 FROM tab1
----
85
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col2 + col2 )
----
query I rowsort
SELECT DISTINCT + 49 * + col1 FROM tab2
----
2499
3283
3773
query I rowsort
SELECT 83 + col1 FROM tab1
----
130
88
97
onlyif mysql # aggregate syntax:
query I rowsort label-758
SELECT ALL SUM( ALL 89 ) FROM tab1 WHERE NOT col0 * col1 + col1 IS NULL
----
267
skipif mysql # not compatible
query I rowsort label-758
SELECT ALL SUM ( ALL 89 ) FROM tab1 WHERE NOT col0 * col1 + col1 IS NULL
----
267
query I rowsort
SELECT DISTINCT - 72 * col0 FROM tab1
----
-3672
-6120
-6552
query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE + col1 * + col2 IS NOT NULL
----
-51
-67
-77
query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-762
SELECT DISTINCT + COUNT( * ) * 31 AS col0 FROM tab0 AS cor0
----
93
skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + COUNT ( * ) * 31 AS col0 FROM tab0 AS cor0
----
93
query I rowsort
SELECT DISTINCT 15 * + 38 FROM tab2
----
570
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-764
SELECT DISTINCT CAST( - 61 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-61
skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT CAST ( - 61 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-61
query I rowsort
SELECT ALL ( + col1 ) * col0 AS col0 FROM tab2
----
2346
4928
5025
onlyif mysql # DIV for integer division:
query I rowsort label-766
SELECT ALL ( - 54 ) DIV - 59 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-766
SELECT ALL ( - 54 ) / - 59 AS col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-767
SELECT ALL MIN( ALL - 79 ) col0 FROM tab1 cor0 CROSS JOIN tab0
----
-79
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-767
SELECT ALL MIN ( ALL - 79 ) col0 FROM tab1 cor0 CROSS JOIN tab0
----
-79
query I rowsort
SELECT DISTINCT col1 * 58 FROM tab1
----
2726
290
812
query I rowsort
SELECT ALL + col2 * 18 AS col0 FROM tab2 AS cor0
----
1044
414
720
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-770
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * 32 + - col1 ) BETWEEN ( col1 ) AND ( + col0 + - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-770
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * 32 + - col1 ) BETWEEN ( col1 ) AND ( + col0 + - CAST ( NULL AS INTEGER ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-771
SELECT - COUNT( * ) * 52 FROM tab1 AS cor0
----
-156
skipif mysql # not compatible
query I rowsort label-771
SELECT - COUNT ( * ) * 52 FROM tab1 AS cor0
----
-156
onlyif mysql # aggregate syntax:
query I rowsort label-772
SELECT DISTINCT 9 * - COUNT( * ) FROM tab1 AS cor0
----
-27
skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT 9 * - COUNT ( * ) FROM tab1 AS cor0
----
-27
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 20 > + 95
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 64 < + col1 * + 48 + 58 * - col2
----
97
1
99
query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE 74 * + col1 NOT BETWEEN ( - 47 ) AND - 24
----
14
47
5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-776
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST( - col1 AS SIGNED ) )
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT DISTINCT - col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( CAST ( - col1 AS INTEGER ) )
----
query I rowsort
SELECT ALL + 23 * + 96 FROM tab0 cor0
----
2208
2208
2208
query I rowsort
SELECT ALL 38 FROM tab1 AS cor0 WHERE + 54 * - col1 < + 89
----
38
38
38
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > ( NULL )
----
query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > col1 * col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-782
SELECT - 76 * SUM( ALL col0 ) FROM tab1
----
-17252
skipif mysql # not compatible
query I rowsort label-782
SELECT - 76 * SUM ( ALL col0 ) FROM tab1
----
-17252
query I rowsort
SELECT DISTINCT + 82 + - col0 FROM tab2
----
18
36
7
query I rowsort
SELECT + col0 * + col1 * + col1 AS col0 FROM tab2
----
119646
336675
379456
query I rowsort
SELECT ALL + ( - - col2 ) AS col1 FROM tab0
----
10
47
99
query I rowsort
SELECT ALL - col1 * 67 FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND - 62
----
query I rowsort
SELECT DISTINCT + + 86 * - 72 + + col0 * col1 FROM tab0 AS cor0
----
-4365
-4977
-6095
onlyif mysql # aggregate syntax:
query I rowsort label-788
SELECT COUNT( * ) + - - SUM( DISTINCT - 32 ) AS col2 FROM tab2
----
-29
skipif mysql # not compatible
query I rowsort label-788
SELECT COUNT ( * ) + - - SUM ( DISTINCT - 32 ) AS col2 FROM tab2
----
-29
query I rowsort
SELECT 9 + - col1 AS col0 FROM tab0
----
-12
-72
8
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT col1 + + - col0 FROM tab2
----
-8
13
5
onlyif mysql # aggregate syntax:
query I rowsort label-792
SELECT ALL + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND 89
----
query I rowsort
SELECT + + ( + 69 ) AS col1 FROM tab1 cor0
----
69
69
69
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-795
SELECT ALL + MIN( DISTINCT + CAST( col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + MIN ( DISTINCT + CAST ( col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
46
query I rowsort
SELECT - - 88 * + col1 * + - ( - col2 ) + col2 FROM tab0 AS cor0
----
18490
335063
8811
onlyif mysql # aggregate syntax:
query I rowsort label-797
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 33 BETWEEN col0 AND - 12
----
0
skipif mysql # not compatible
query I rowsort label-797
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 33 BETWEEN col0 AND - 12
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - col0 BETWEEN ( - col1 ) AND ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-799
SELECT AVG ( + col1 ) + ( 70 ) FROM tab0 AS cor0 WHERE ( NULL ) = + CAST( NULL AS SIGNED )
----
NULL
skipif mysql # not compatible
query I rowsort label-799
SELECT AVG ( + col1 ) + ( 70 ) FROM tab0 AS cor0 WHERE ( NULL ) = + CAST ( NULL AS INTEGER )
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( col1 AS SIGNED ) ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-800
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( col1 AS INTEGER ) ) IS NOT NULL
----
query I rowsort
SELECT ALL 72 + col1 FROM tab0 AS cor0
----
153
73
93
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 44 ) + + col0 <= col1 + col2
----
87
21
10
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-803
SELECT - COUNT( * ) - SUM( ALL - 71 ) + 70 AS col0 FROM tab1
----
280
skipif mysql # not compatible
query I rowsort label-803
SELECT - COUNT ( * ) - SUM ( ALL - 71 ) + 70 AS col0 FROM tab1
----
280
query I rowsort
SELECT DISTINCT - 82 + + ( - col1 ) AS col1 FROM tab2
----
-133
-149
-159
onlyif mysql # aggregate syntax:
query I rowsort label-805
SELECT ALL COUNT( * ) + + 94 AS col0 FROM tab1
----
97
skipif mysql # not compatible
query I rowsort label-805
SELECT ALL COUNT ( * ) + + 94 AS col0 FROM tab1
----
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-806
SELECT + CAST( NULL AS SIGNED ) + + 11 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-806
SELECT + CAST ( NULL AS INTEGER ) + + 11 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-807
SELECT ( + 85 ) * - ( COUNT( * ) ) + MAX( DISTINCT + col2 ) FROM tab1
----
-159
skipif mysql # not compatible
query I rowsort label-807
SELECT ( + 85 ) * - ( COUNT ( * ) ) + MAX ( DISTINCT + col2 ) FROM tab1
----
-159
query I rowsort
SELECT ALL - ( + col0 ) + - + 54 FROM tab0
----
-141
-151
-69
query I rowsort
SELECT 44 + col1 * - - col2 * col2 FROM tab1
----
129068
17449
217372
query I rowsort
SELECT DISTINCT - col0 * 39 + - + col2 FROM tab0
----
-3403
-3882
-632
query II rowsort
SELECT DISTINCT col2 + 0 AS col2, col1 AS col2 FROM tab2
----
23
51
40
77
58
67
query I rowsort
SELECT + col0 AS col0 FROM tab2 cor0 WHERE ( NULL ) <> + 35 * col2
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= + col0
----
75
67
58
onlyif mysql # aggregate syntax:
query I rowsort label-814
SELECT ALL + COUNT( ALL + 94 ) AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + COUNT ( ALL + 94 ) AS col0 FROM tab0 cor0
----
3
query I rowsort
SELECT 76 * - col2 AS col0 FROM tab2 AS cor0
----
-1748
-3040
-4408
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col0 BETWEEN ( + col1 ) AND col1 + col0 * 92 )
----
87
21
10
97
1
99
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL >= ( - + 41 ) )
----
query I rowsort
SELECT + 32 * + col0 AS col0 FROM tab2 AS cor0
----
1472
2048
2400
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 NOT BETWEEN + col2 AND ( - col0 * - ( - col1 - - 25 ) + + col2 * col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + - 31 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-821
SELECT + ( + col0 ) DIV + + col1 + + 51 AS col2 FROM tab0
----
148
51
55
skipif mysql # not compatible
query I rowsort label-821
SELECT + ( + col0 ) / + + col1 + + 51 AS col2 FROM tab0
----
148
51
55
query I rowsort
SELECT DISTINCT - + col2 * 21 AS col2 FROM tab2 AS cor0 WHERE NOT ( 60 ) NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 41 - - col0 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-824
SELECT DISTINCT - + col1 * + col2 + - + col2 DIV + col1 - 45 * + 77 FROM tab1 AS cor0
----
-3771
-4815
-6662
skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT - + col1 * + col2 + - + col2 / + col1 - 45 * + 77 FROM tab1 AS cor0
----
-3771
-4815
-6662
query I rowsort
SELECT ALL - col0 * 10 + - 6 FROM tab1 cor0
----
-516
-856
-916
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 87 + - + col1 IS NULL
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - - col0 * + 6 FROM tab2 cor0
----
276
384
450
query I rowsort
SELECT DISTINCT col0 * + 82 AS col2 FROM tab2 AS cor0
----
3772
5248
6150
onlyif mysql # aggregate syntax:
query I rowsort label-830
SELECT MIN( ALL col0 ) * 32 FROM tab1
----
1632
skipif mysql # not compatible
query I rowsort label-830
SELECT MIN ( ALL col0 ) * 32 FROM tab1
----
1632
query I rowsort
SELECT 17 + + - col0 AS col2 FROM tab0
----
-70
-80
2
query I rowsort
SELECT DISTINCT col2 * 30 FROM tab1
----
1770
2040
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab2 cor0
----
-37
-37
-37
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 76 * - 96 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-835
SELECT - COUNT( * ) col1, 17 AS col1 FROM tab1 cor0
----
-3
17
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-835
SELECT - COUNT ( * ) col1, 17 AS col1 FROM tab1 cor0
----
-3
17
query I rowsort
SELECT DISTINCT - col1 + - ( 56 ) FROM tab0 AS cor0
----
-137
-57
-77
query II rowsort
SELECT ALL + 70 + - 52 AS col2, 1 AS col0 FROM tab1
----
18
1
18
1
18
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-838
SELECT DISTINCT + col2 + + - 51 * col1 + - col2 + + 27 * CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-1944
-24
-504
skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + col2 + + - 51 * col1 + - col2 + + 27 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-1944
-24
-504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - ( - col1 ) / - col1 col1 FROM tab0 AS cor0 WHERE col2 <= + - col1
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-840
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
query II rowsort
SELECT ALL + col1 - + col2 AS col2, col0 FROM tab1 AS cor0
----
-21
91
-54
85
-82
51
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 + + 77 IS NULL
----
query I rowsort
SELECT + 59 + - 53 FROM tab2 cor0
----
6
6
6
onlyif mysql # aggregate syntax:
query I rowsort label-844
SELECT DISTINCT COUNT( * ) * - 80 FROM tab0 AS cor0
----
-240
skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT COUNT ( * ) * - 80 FROM tab0 AS cor0
----
-240
query I rowsort
SELECT - - ( - + col0 ) + - - 26 FROM tab1 AS cor0
----
-25
-59
-65
onlyif mysql # aggregate syntax:
query I rowsort label-846
SELECT - COUNT( * ) AS col0 FROM tab2 cor0 WHERE + col2 <> - + col2 + - 47
----
-3
skipif mysql # not compatible
query I rowsort label-846
SELECT - COUNT ( * ) AS col0 FROM tab2 cor0 WHERE + col2 <> - + col2 + - 47
----
-3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( ( NOT NULL IS NULL ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-848
SELECT AVG ( + ( - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 87 * - col2 / + - col1 * + 98 IS NOT NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-848
SELECT AVG ( + ( - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT + 87 * - col2 / + - col1 * + 98 IS NOT NULL )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-849
SELECT + - COUNT( * ) * 48 + - 88 FROM tab1 AS cor0
----
-232
skipif mysql # not compatible
query I rowsort label-849
SELECT + - COUNT ( * ) * 48 + - 88 FROM tab1 AS cor0
----
-232
onlyif mysql # aggregate syntax:
query I rowsort label-850
SELECT ALL + COUNT( - - col1 ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + COUNT ( - - col1 ) AS col2 FROM tab1
----
3
query II rowsort
SELECT ALL 55, + col0 FROM tab0
----
55
15
55
87
55
97
onlyif mysql # aggregate syntax:
query I rowsort label-852
SELECT DISTINCT COUNT( * ) + - - 48 * - + COUNT( * ) AS col1 FROM tab2
----
-141
skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT COUNT ( * ) + - - 48 * - + COUNT ( * ) AS col1 FROM tab2
----
-141
query I rowsort
SELECT DISTINCT - col2 + - - 56 FROM tab2
----
-2
16
33
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-854
SELECT 65, col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query II rowsort label-854
SELECT 65, col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-855
SELECT ALL - 14 * COUNT( * ) FROM tab1
----
-42
skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - 14 * COUNT ( * ) FROM tab1
----
-42
query I rowsort
SELECT DISTINCT 44 * + col1 FROM tab0
----
3564
44
924
query I rowsort
SELECT - + col1 - + col2 - + col1 * - + col1 FROM tab0 WHERE NOT NULL < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-858
SELECT + + MAX( DISTINCT 0 ) col0 FROM tab0 WHERE NOT NULL > - 61
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-858
SELECT + + MAX ( DISTINCT 0 ) col0 FROM tab0 WHERE NOT NULL > - 61
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-860
SELECT * FROM tab0 AS cor0 WHERE NOT 10 <= - - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-860
SELECT * FROM tab0 AS cor0 WHERE NOT 10 <= - - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT - col1 * - 12 FROM tab1 cor0
----
168
564
60
query I rowsort
SELECT + col2 + - + col1 AS col2 FROM tab0 cor0 WHERE NOT 63 IS NULL
----
-11
-34
98
onlyif mysql # aggregate syntax:
query I rowsort label-863
SELECT ALL MIN( ALL 56 ) AS col0 FROM tab1
----
56
skipif mysql # not compatible
query I rowsort label-863
SELECT ALL MIN ( ALL 56 ) AS col0 FROM tab1
----
56
onlyif mysql # aggregate syntax:
query I rowsort label-864
SELECT ALL + MIN( DISTINCT + col0 ) AS col2 FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + MIN ( DISTINCT + col0 ) AS col2 FROM tab1
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-865
SELECT + MIN( + 89 ) FROM tab2 AS cor0
----
89
skipif mysql # not compatible
query I rowsort label-865
SELECT + MIN ( + 89 ) FROM tab2 AS cor0
----
89
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < - 76
----
query II rowsort
SELECT - col1 * + 44, - 77 + col1 AS col0 FROM tab0 AS cor0
----
-3564
4
-44
-76
-924
-56
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 71 IN ( 12 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col2 FROM tab2 WHERE - col1 = - col0
----
query I rowsort
SELECT DISTINCT 10 + + 71 * + 51 AS col1 FROM tab2
----
3631
onlyif mysql # aggregate syntax:
query I rowsort label-872
SELECT DISTINCT 77 + + + SUM( ALL col0 ) AS col0 FROM tab1
----
304
skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT 77 + + + SUM ( ALL col0 ) AS col0 FROM tab1
----
304
onlyif mysql # aggregate syntax:
query I rowsort label-873
SELECT 87 * COUNT( * ) AS col2 FROM tab1
----
261
skipif mysql # not compatible
query I rowsort label-873
SELECT 87 * COUNT ( * ) AS col2 FROM tab1
----
261
query I rowsort
SELECT DISTINCT + + 96 AS col2 FROM tab1 WHERE + + col2 / - 46 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-875
SELECT - MAX( DISTINCT 65 ) AS col1 FROM tab1
----
-65
skipif mysql # not compatible
query I rowsort label-875
SELECT - MAX ( DISTINCT 65 ) AS col1 FROM tab1
----
-65
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + col1 ) * 28 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 7 + col1 * + col2 IS NULL
----
query I rowsort
SELECT DISTINCT + col0 + - col1 + + - 19 FROM tab2
----
-11
-24
-32
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - - col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT 70 AS col2, + col1 AS col2 FROM tab0
----
70
1
70
21
70
81
query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # aggregate syntax:
query II rowsort label-882
SELECT + COUNT( * ), 2 AS col2 FROM tab1
----
3
2
skipif mysql # not compatible
query II rowsort label-882
SELECT + COUNT ( * ), 2 AS col2 FROM tab1
----
3
2
query I rowsort
SELECT ALL - col2 - + 23 FROM tab0
----
-122
-33
-70
query I rowsort
SELECT col1 * - - col1 * + - col0 FROM tab0 AS cor0
----
-38367
-97
-98415
query I rowsort
SELECT DISTINCT + ( - col2 ) + + + 2 FROM tab0 AS cor0
----
-45
-8
-97
onlyif mysql # aggregate syntax:
query I rowsort label-886
SELECT 88 * COUNT( * ) AS col0 FROM tab0 cor0 WHERE + 52 + - - col2 + col1 - - + 12 NOT IN ( - 17 * + col0 + 19 )
----
264
skipif mysql # not compatible
query I rowsort label-886
SELECT 88 * COUNT ( * ) AS col0 FROM tab0 cor0 WHERE + 52 + - - col2 + col1 - - + 12 NOT IN ( - 17 * + col0 + 19 )
----
264
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-887
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * - 88 IS NULL
----
1
21
81
skipif mysql # not compatible
query I rowsort label-887
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - 88 IS NULL
----
1
21
81
onlyif mysql # DIV for integer division:
query I rowsort label-888
SELECT ALL 42 - - + col0 DIV + col1 AS col0 FROM tab1 cor0
----
43
45
59
skipif mysql # not compatible
query I rowsort label-888
SELECT ALL 42 - - + col0 / + col1 AS col0 FROM tab1 cor0
----
43
45
59
onlyif mysql # DIV for integer division:
query I rowsort label-889
SELECT DISTINCT - + 93 DIV - 44 - - + col2 FROM tab0 AS cor0
----
101
12
49
skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT - + 93 / - 44 - - + col2 FROM tab0 AS cor0
----
101
12
49
query II rowsort
SELECT ALL - - col1, col0 AS col2 FROM tab2 AS cor0
----
51
46
67
75
77
64
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * - ( + col0 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * + col2 NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT col2 * - + 39 FROM tab2
----
-1560
-2262
-897
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-894
SELECT COUNT( * ) DIV + + 97 AS col0, 28 FROM tab0
----
0
28
skipif mysql # not compatible
query II rowsort label-894
SELECT COUNT ( * ) / + + 97 AS col0, 28 FROM tab0
----
0
28
query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( NULL NOT IN ( + col1 * ( + + col2 ), col0 ) )
----
query II rowsort
SELECT ( 62 ), col0 AS col1 FROM tab1 WHERE NOT 25 IS NOT NULL
----
query II rowsort
SELECT DISTINCT col2 * - col2 AS col1, 22 FROM tab0 AS cor0
----
-100
22
-2209
22
-9801
22
query I rowsort
SELECT - col1 * + + col1 + 93 AS col2 FROM tab2 AS cor0
----
-2508
-4396
-5836
query IIIIII rowsort
SELECT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * - - col0 col2 FROM tab2
----
3956
5504
6450
onlyif mysql # aggregate syntax:
query I rowsort label-901
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
-9
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND + col1
----
query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 50 * + 21 IS NULL
----
-23
-40
-58
query II rowsort
SELECT + col1, ( + 41 ) FROM tab2 cor0
----
51
41
67
41
77
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 * + 14 col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-906
SELECT ALL - CAST( NULL AS SIGNED ), ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-906
SELECT ALL - CAST ( NULL AS INTEGER ), ( + col2 ) col2 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99
query I rowsort
SELECT - col2 + + col2 * col1 * + 62 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-908
SELECT - COUNT( 85 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-908
SELECT - COUNT ( 85 ) FROM tab2 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 87 * + 2 NOT BETWEEN ( col1 ) AND col2 * + col1 - + col0 - + col0 * + 2 / + col2 + 73
----
onlyif mysql # aggregate syntax:
query I rowsort label-910
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-910
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
query I rowsort
SELECT DISTINCT - - 58 + + + 51 + - - col0 FROM tab1 AS cor0
----
160
194
200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + + - 78 col0 FROM tab1 AS cor0
----
-101
-104
-33
onlyif mysql # aggregate syntax:
query I rowsort label-913
SELECT + SUM( DISTINCT - + col1 ) + COUNT( * ) FROM tab1
----
-63
skipif mysql # not compatible
query I rowsort label-913
SELECT + SUM ( DISTINCT - + col1 ) + COUNT ( * ) FROM tab1
----
-63
query I rowsort
SELECT 76 + + 88 + - - col1 * + + col1 FROM tab2
----
2765
4653
6093
query I rowsort
SELECT ALL + 74 * + - col1 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 col0 FROM tab0 WHERE NULL >= NULL
----
query I rowsort
SELECT + col1 + + 65 FROM tab1
----
112
70
79
onlyif mysql # aggregate syntax:
query I rowsort label-918
SELECT DISTINCT - COUNT( * ) + + - 68 AS col1 FROM tab2
----
-71
skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT - COUNT ( * ) + + - 68 AS col1 FROM tab2
----
-71
onlyif mysql # DIV for integer division:
query II rowsort label-919
SELECT 35 + col2 AS col2, - col0 DIV col0 AS col2 FROM tab0
----
134
-1
45
-1
82
-1
skipif mysql # not compatible
query II rowsort label-919
SELECT 35 + col2 AS col2, - col0 / col0 AS col2 FROM tab0
----
134
-1
45
-1
82
-1
query I rowsort
SELECT + AVG ( col2 ) AS col0 FROM tab0 WHERE - 52 + - col2 * - 13 BETWEEN NULL AND NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-921
SELECT ALL - ( + - COUNT( ALL + - 12 ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-921
SELECT ALL - ( + - COUNT ( ALL + - 12 ) ) FROM tab2
----
3
onlyif mysql # DIV for integer division:
query II rowsort label-922
SELECT + col0 DIV + - col2 AS col0, + ( + col0 ) * - - col0 FROM tab0 AS cor0
----
-8
7569
0
225
0
9409
skipif mysql # not compatible
query II rowsort label-922
SELECT + col0 / + - col2 AS col0, + ( + col0 ) * - - col0 FROM tab0 AS cor0
----
-8
7569
0
225
0
9409
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 19 < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) NOT IN ( + col1, + 47, + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-925
SELECT 51 + - ( - - MAX( 69 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-925
SELECT 51 + - ( - - MAX ( 69 ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-18
query I rowsort
SELECT - 39 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - + 96 + col2 AS col1 FROM tab1 AS cor0
----
-28
-37
0
query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - + 30 IS NULL
----
10
47
99
query I rowsort
SELECT - - ( 94 ) AS col0 FROM tab0 AS cor0
----
94
94
94
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> ( 84 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-932
SELECT + + col0 AS col2, - 2 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
49
64
75
75
65
skipif mysql # not compatible
query II rowsort label-932
SELECT + + col0 AS col2, - 2 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
49
64
75
75
65
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 + col0 + + 51 <= + col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-934
SELECT DISTINCT 12 * MIN( - col0 ) AS col0 FROM tab2
----
-900
skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT 12 * MIN ( - col0 ) AS col0 FROM tab2
----
-900
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-935
SELECT - COUNT( * ) DIV - - MIN( ALL - + col0 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-935
SELECT - COUNT ( * ) / - - MIN ( ALL - + col0 ) FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 col2, col0 * + - col2 FROM tab2
----
74
-1058
74
-2560
74
-4350
onlyif mysql # aggregate syntax:
query II rowsort label-937
SELECT DISTINCT + 70 AS col0, ( + COUNT( * ) ) AS col2 FROM tab2
----
70
3
skipif mysql # not compatible
query II rowsort label-937
SELECT DISTINCT + 70 AS col0, ( + COUNT ( * ) ) AS col2 FROM tab2
----
70
3
query II rowsort
SELECT + + col2 AS col2, 15 AS col1 FROM tab1 AS cor0
----
59
15
68
15
96
15
query II rowsort
SELECT + - col2 AS col1, + 92 * - 69 AS col1 FROM tab0 cor0
----
-10
-6348
-47
-6348
-99
-6348
query II rowsort
SELECT DISTINCT + 10 AS col1, col1 + + col1 AS col2 FROM tab0 AS cor0
----
10
162
10
2
10
42
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-941
SELECT + MIN( - ( + - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-941
SELECT + MIN ( - ( + - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 21 + col1 col2 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-20
0
60
onlyif mysql # aggregate syntax:
query I rowsort label-943
SELECT ALL 85 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-943
SELECT ALL 85 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 39 + + 5 / - ( + col1 ) NOT IN ( + col0, - col0 / + 11 - - col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-945
SELECT - - 38 * COUNT( * ) FROM tab2 AS cor0
----
114
skipif mysql # not compatible
query I rowsort label-945
SELECT - - 38 * COUNT ( * ) FROM tab2 AS cor0
----
114
query I rowsort
SELECT + + col2 * ( - 5 ) AS col2 FROM tab0 AS cor0
----
-235
-495
-50
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-947
SELECT + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL <> 76 - - 39
----
skipif mysql # not compatible
query I rowsort label-947
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL <> 76 - - 39
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab0 AS cor0
----
-48
-48
-48
onlyif mysql # aggregate syntax:
query I rowsort label-949
SELECT DISTINCT 83 * - 87 * SUM( col1 ) AS col2 FROM tab0 AS cor0
----
-743763
skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT 83 * - 87 * SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
-743763
query II rowsort
SELECT - 70 AS col0, col2 AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-70
59
-70
68
-70
96
query I rowsort
SELECT - col0 FROM tab0 WHERE - col1 >= NULL
----
query II rowsort
SELECT col2, col2 AS col0 FROM tab0
----
10
10
47
47
99
99
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 BETWEEN col1 AND col2 * + col1 * - - col2 + - 36
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT 69 + col2 AS col2 FROM tab1
----
128
137
165
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 55 / + + 23 + + col2
----
query I rowsort
SELECT - col1 - - - 75 * col1 * + + col2 * col1 FROM tab1
----
-110630
-11265947
-1411214
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - col1 - - ( ( 27 ) ) * col0 * - + col0 )
----
query I rowsort
SELECT DISTINCT col1 * col2 / - col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN + col1 * - col1 AND + 16
----
onlyif mysql # aggregate syntax:
query II rowsort label-959
SELECT + ( - 68 ) + + COUNT( * ) AS col2, ( + 54 ) AS col1 FROM tab1 AS cor0
----
-65
54
skipif mysql # not compatible
query II rowsort label-959
SELECT + ( - 68 ) + + COUNT ( * ) AS col2, ( + 54 ) AS col1 FROM tab1 AS cor0
----
-65
54
query I rowsort
SELECT ALL 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # aggregate syntax:
query I rowsort label-961
SELECT ALL - SUM( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - SUM ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----
NULL
query I rowsort
SELECT ALL ( + 47 ) FROM tab2 AS cor0
----
47
47
47
query II rowsort
SELECT DISTINCT - col0, 36 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
36
-85
36
-91
36
onlyif mysql # aggregate syntax:
query I rowsort label-964
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col0 ) + col1
----
0
skipif mysql # not compatible
query I rowsort label-964
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= - ( + col0 ) + col1
----
0
query II rowsort
SELECT col2 AS col0, col2 * - 76 FROM tab2
----
23
-1748
40
-3040
58
-4408
onlyif mysql # aggregate syntax:
query I rowsort label-966
SELECT MAX( ALL - 50 ) * + - COUNT( * ) FROM tab0
----
150
skipif mysql # not compatible
query I rowsort label-966
SELECT MAX ( ALL - 50 ) * + - COUNT ( * ) FROM tab0
----
150
query I rowsort
SELECT + - col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + ( - 17 ) FROM tab2
----
-17
-17
-17
query I rowsort
SELECT 49 * + - col1 * col2 FROM tab0
----
-10290
-186543
-4851
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 29 / col1 <> - 55
----
query II rowsort
SELECT DISTINCT + 14, + col2 + + 67 AS col1 FROM tab0 AS cor0
----
14
114
14
166
14
77
onlyif mysql # aggregate syntax:
query I rowsort label-972
SELECT DISTINCT MIN( - ( + - col2 ) ) + + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-972
SELECT DISTINCT MIN ( - ( + - col2 ) ) + + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
13
query I rowsort
SELECT DISTINCT - col2 * + - 86 AS col0 FROM tab0 AS cor0
----
4042
8514
860
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-974
SELECT SUM( col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-974
SELECT SUM ( col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 + + col1 * - 3
----
query I rowsort
SELECT DISTINCT - 17 * col1 FROM tab0 AS cor0
----
-1377
-17
-357
query II rowsort
SELECT col2 AS col0, - 67 + col1 - + - col0 FROM tab1
----
59
23
68
71
96
-2
query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
8
query I rowsort
SELECT ALL - 44 - 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eb6bf5ade8a35ce86adf876ecc9d584e
onlyif mysql # aggregate syntax:
query II rowsort label-980
SELECT ALL - - 88, - 18 * - - COUNT( + 60 ) AS col2 FROM tab1 AS cor0
----
88
-54
skipif mysql # not compatible
query II rowsort label-980
SELECT ALL - - 88, - 18 * - - COUNT ( + 60 ) AS col2 FROM tab1 AS cor0
----
88
-54
onlyif mysql # aggregate syntax:
query I rowsort label-981
SELECT ALL + + SUM( DISTINCT + 1 ) AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + + SUM ( DISTINCT + 1 ) AS col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + col2 col2, - 35 AS col1 FROM tab1 cor0
----
21
-35
54
-35
82
-35
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 cor0 WHERE NULL BETWEEN NULL AND ( + 59 )
----
query I rowsort
SELECT - col2 + - 51 * + 12 AS col1 FROM tab0 AS cor0
----
-622
-659
-711
query I rowsort
SELECT DISTINCT 76 * - - col0 + + col2 + 97 FROM tab0
----
1284
6719
7568
query I rowsort
SELECT - col2 + + - col2 AS col2 FROM tab2
----
-116
-46
-80
query III rowsort
SELECT * FROM tab2 WHERE - - col2 NOT IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT 86 - - + col0 AS col2 FROM tab2
----
132
150
161
onlyif mysql # aggregate syntax:
query I rowsort label-989
SELECT ALL + COUNT( * ) - + - ( - MAX( + + 14 ) ) FROM tab1 AS cor0
----
-11
skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + COUNT ( * ) - + - ( - MAX ( + + 14 ) ) FROM tab1 AS cor0
----
-11
onlyif mysql # aggregate syntax:
query I rowsort label-990
SELECT ALL + - COUNT( 79 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-990
SELECT ALL + - COUNT ( 79 ) FROM tab1 AS cor0
----
-3
query II rowsort
SELECT + - 48 - + - col0, 57 AS col0 FROM tab1 AS cor0
----
3
57
37
57
43
57
query I rowsort
SELECT - + col2 - + 11 FROM tab1 AS cor0
----
-107
-70
-79
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR - 29 IS NULL
----
query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1
----
-45
onlyif mysql # aggregate syntax:
query I rowsort label-995
SELECT + MAX( DISTINCT + ( - - col0 ) ) FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-995
SELECT + MAX ( DISTINCT + ( - - col0 ) ) FROM tab0 AS cor0
----
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + ( col1 ) ) col2 FROM tab2 AS cor0
----
-51
-67
-77
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + - 40 > ( + col0 - - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT 30 AS col1, 19 AS col2 FROM tab1 AS cor0
----
30
19
30
19
30
19
query I rowsort
SELECT ALL - ( + 41 ) AS col0 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> - - 68 * - col2 * + - col1 * - col1
----
query I rowsort
SELECT DISTINCT 73 * - col0 * col1 FROM tab2
----
-171258
-359744
-366825
onlyif mysql # aggregate syntax:
query I rowsort label-1002
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - 43 > col0
----
-3
skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - 43 > col0
----
-3
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col2 / + + col0 <> NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1004
SELECT - ( + - col2 ) DIV + 50 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1004
SELECT - ( + - col2 ) / + 50 AS col2 FROM tab0
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-1005
SELECT - MIN( DISTINCT col0 ) + - 83 FROM tab1 AS cor0
----
-134
skipif mysql # not compatible
query I rowsort label-1005
SELECT - MIN ( DISTINCT col0 ) + - 83 FROM tab1 AS cor0
----
-134
onlyif mysql # DIV for integer division:
query I rowsort label-1006
SELECT - col1 DIV col1 * - 41 AS col1 FROM tab1 AS cor0
----
41
41
41
skipif mysql # not compatible
query I rowsort label-1006
SELECT - col1 / col1 * - 41 AS col1 FROM tab1 AS cor0
----
41
41
41
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - ( - - 26 )
----
query I rowsort
SELECT ALL + col0 * - + ( - - ( 51 ) ) - - col2 FROM tab1 AS cor0
----
-2505
-4276
-4573
onlyif mysql # aggregate syntax:
query I rowsort label-1009
SELECT DISTINCT - SUM( col2 ) * - 92 AS col1 FROM tab1 AS cor0
----
20516
skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - SUM ( col2 ) * - 92 AS col1 FROM tab1 AS cor0
----
20516
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 * - col2 col1 FROM tab0 AS cor0
----
-3149
-6633
-670
query I rowsort
SELECT DISTINCT 9 FROM tab1 cor0 WHERE NOT NULL < 89 + - 29 + 30 * + col1 + - 16
----
onlyif mysql # DIV for integer division:
query I rowsort label-1012
SELECT - + col2 DIV - col1 - + - 43 AS col2 FROM tab2 AS cor0
----
43
43
43
skipif mysql # not compatible
query I rowsort label-1012
SELECT - + col2 / - col1 - + - 43 AS col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT DISTINCT col2 * col1 * - + 74 + + + 89 - + - col0 AS col2 FROM tab0 cor0
----
-15364
-281614
-7140
onlyif mysql # DIV for integer division:
query I rowsort label-1014
SELECT ALL + ( + - col2 ) DIV col0 * - 96 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + ( + - col2 ) / col0 * - 96 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-1015
SELECT DISTINCT - 85 + - COUNT( * ) AS col1 FROM tab2 cor0
----
-88
skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - 85 + - COUNT ( * ) AS col1 FROM tab2 cor0
----
-88
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1016
SELECT ALL COUNT( * ) DIV - 79 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL COUNT ( * ) / - 79 FROM tab2 cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1017
SELECT - 49 - SUM( ALL + col2 ) FROM tab0
----
-205
skipif mysql # not compatible
query I rowsort label-1017
SELECT - 49 - SUM ( ALL + col2 ) FROM tab0
----
-205
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-1018
SELECT CAST( NULL AS DECIMAL ) + + - MIN( - - ( col2 ) ) * - COUNT( * ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1018
SELECT CAST ( NULL AS REAL ) + + - MIN ( - - ( col2 ) ) * - COUNT ( * ) FROM tab1
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1019
SELECT - 11 + ( col1 ) / - - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1019
SELECT - 11 + ( col1 ) / - - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1020
SELECT - 28 * - col2 + - ( CAST( + - 14 AS SIGNED ) ) AS col2 FROM tab2
----
1134
1638
658
skipif mysql # not compatible
query I rowsort label-1020
SELECT - 28 * - col2 + - ( CAST ( + - 14 AS INTEGER ) ) AS col2 FROM tab2
----
1134
1638
658
query I rowsort
SELECT - 87 * col2 * col1 + + 65 * + + col0 + - col2 AS col2 FROM tab0
----
-12625
-2407
-330281
onlyif mysql # aggregate syntax:
query I rowsort label-1022
SELECT MIN( - col2 ) + - 20 FROM tab1
----
-116
skipif mysql # not compatible
query I rowsort label-1022
SELECT MIN ( - col2 ) + - 20 FROM tab1
----
-116
onlyif mysql # DIV for integer division:
query I rowsort label-1023
SELECT DISTINCT + 21 DIV col0 + + + col0 FROM tab0 AS cor0
----
16
87
97
skipif mysql # not compatible
query I rowsort label-1023
SELECT DISTINCT + 21 / col0 + + + col0 FROM tab0 AS cor0
----
16
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-1024
SELECT - + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-1024
SELECT - + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
query II rowsort
SELECT + + col1 * + col2, + col0 FROM tab1 AS cor0
----
1344
51
295
85
3196
91
onlyif mysql # aggregate syntax:
query I rowsort label-1026
SELECT - MIN( - - col1 ) FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-1026
SELECT - MIN ( - - col1 ) FROM tab2 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query II rowsort label-1027
SELECT DISTINCT COUNT( - + 90 ) * - 81, - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-243
-3
skipif mysql # not compatible
query II rowsort label-1027
SELECT DISTINCT COUNT ( - + 90 ) * - 81, - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-243
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1028
SELECT ALL COUNT( ALL - col0 ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL COUNT ( ALL - col0 ) AS col0 FROM tab0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1029
SELECT - CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-1029
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
3
query I rowsort
SELECT + 22 * + - 27 AS col1 FROM tab2
----
-594
-594
-594
query II rowsort
SELECT + col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77
query II rowsort
SELECT 70 + + 94 + - + col1 AS col1, col1 FROM tab1
----
117
47
150
14
159
5
query II rowsort
SELECT ALL col1, col1 AS col0 FROM tab1
----
14
14
47
47
5
5
query II rowsort
SELECT DISTINCT + col0 AS col2, col1 + 63 FROM tab0
----
15
144
87
84
97
64
query I rowsort
SELECT col2 * - + 56 AS col2 FROM tab0 cor0
----
-2632
-5544
-560
query I rowsort
SELECT DISTINCT + 21 * col0 FROM tab1 cor0
----
1071
1785
1911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 48 col2, + 92 AS col2 FROM tab0 AS cor0
----
48
92
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1038
SELECT - + col1 AS col2, CAST( + - ( - + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-14
14
-47
47
-5
5
skipif mysql # not compatible
query II rowsort label-1038
SELECT - + col1 AS col2, CAST ( + - ( - + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-14
14
-47
47
-5
5
onlyif mysql # aggregate syntax:
query II rowsort label-1039
SELECT ALL COUNT( * ), 29 AS col1 FROM tab2 AS cor0
----
3
29
skipif mysql # not compatible
query II rowsort label-1039
SELECT ALL COUNT ( * ), 29 AS col1 FROM tab2 AS cor0
----
3
29
query I rowsort
SELECT ALL + - col1 * + col2 + - - col0 + - + col2 * + + col2 * + 74 FROM tab1 AS cor0
----
-257804
-345281
-683277
query I rowsort
SELECT ALL 67 * + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e6e8141e30ce2b02973f585ff7141e9a
query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 + col2 < - - 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col2 + - col1 - - col0 * - 9 * + - 58 AS col2 FROM tab1
----
26704
44424
47523
onlyif mysql # aggregate syntax:
query I rowsort label-1044
SELECT - 50 + - ( - + SUM( - 11 ) ) - + + 97 + + 39 + - MIN( ALL 77 ) AS col2 FROM tab1 AS cor0
----
-218
skipif mysql # not compatible
query I rowsort label-1044
SELECT - 50 + - ( - + SUM ( - 11 ) ) - + + 97 + + 39 + - MIN ( ALL 77 ) AS col2 FROM tab1 AS cor0
----
-218
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 71 ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1046
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - col1 * - 41 IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1046
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - col1 * - 41 IS NOT NULL
----
NULL
NULL
NULL
query I rowsort
SELECT - 9 + + - 68 AS col1 FROM tab1 cor0
----
-77
-77
-77
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 / - 68 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1049
SELECT - CAST( NULL AS SIGNED ) / - 59 + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1049
SELECT - CAST ( NULL AS INTEGER ) / - 59 + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-1051
SELECT + col0 DIV col2 * - + 32 * - + col1 FROM tab0 AS cor0
----
0
0
5376
skipif mysql # not compatible
query I rowsort label-1051
SELECT + col0 / col2 * - + 32 * - + col1 FROM tab0 AS cor0
----
0
0
5376
query I rowsort
SELECT 99 * 70 FROM tab2
----
6930
6930
6930
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1053
SELECT DISTINCT - CAST( - - 40 AS SIGNED ) col0 FROM tab2
----
-40
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1053
SELECT DISTINCT - CAST ( - - 40 AS INTEGER ) col0 FROM tab2
----
-40
query I rowsort
SELECT ALL + col0 - - col2 AS col2 FROM tab1
----
144
147
159
query II rowsort
SELECT + col2, - col2 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT ALL + - 64 AS col1 FROM tab2 AS cor0
----
-64
-64
-64
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + col0 IS NOT NULL OR NOT - 59 < - col2
----
97
1
99
query I rowsort
SELECT ALL col2 * + 58 AS col0 FROM tab2
----
1334
2320
3364
query I rowsort
SELECT - + 16 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT DISTINCT - 54 FROM tab0 WHERE + col0 * - col0 IS NULL
----
query I rowsort
SELECT ALL - 2 * + col2 * - + col2 FROM tab0 AS cor0
----
19602
200
4418
onlyif mysql # aggregate syntax:
query I rowsort label-1062
SELECT - - ( + SUM( DISTINCT - 69 ) ) FROM tab0 cor0
----
-69
skipif mysql # not compatible
query I rowsort label-1062
SELECT - - ( + SUM ( DISTINCT - 69 ) ) FROM tab0 cor0
----
-69
onlyif mysql # aggregate syntax:
query II rowsort label-1063
SELECT ALL - 3 AS col2, ( - 47 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
-50
skipif mysql # not compatible
query II rowsort label-1063
SELECT ALL - 3 AS col2, ( - 47 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
-50
query I rowsort
SELECT - + ( + 36 ) * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-1517
-2155
-879
query II rowsort
SELECT + col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91
query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-23
-40
-58
query II rowsort
SELECT - col1 AS col0, 78 FROM tab1 AS cor0
----
-14
78
-47
78
-5
78
onlyif mysql # aggregate syntax:
query I rowsort label-1068
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NULL = NULL
----
0
skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NULL = NULL
----
0
query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab1
----
-23
-26
45
onlyif mysql # aggregate syntax:
query I rowsort label-1070
SELECT - ( - - COUNT( * ) ) * - COUNT( ALL ( col2 ) ) - - SUM( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT NULL = + 91 * + - 31
----
NULL
skipif mysql # not compatible
query I rowsort label-1070
SELECT - ( - - COUNT ( * ) ) * - COUNT ( ALL ( col2 ) ) - - SUM ( DISTINCT + col1 ) AS col1 FROM tab2 WHERE NOT NULL = + 91 * + - 31
----
NULL
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN col2 AND - + col2
----
query I rowsort
SELECT ALL 11 + - ( + + col2 ) FROM tab0
----
-36
-88
1
query I rowsort
SELECT ALL + - 24 - - 7 AS col0 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1074
SELECT col1 DIV ( 65 ) AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1074
SELECT col1 / ( 65 ) AS col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE col0 * + 52 * - - col2 IS NULL
----
query I rowsort
SELECT DISTINCT ( - col2 ) + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL ) OR ( ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1078
SELECT - SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-1078
SELECT - SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
185
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + - col2 AND + col2
----
query I rowsort
SELECT - col2 + + - 19 * col0 AS col0 FROM tab0
----
-1663
-1942
-332
onlyif mysql # DIV for integer division:
query II rowsort label-1082
SELECT DISTINCT + + 99 AS col2, + 70 + col1 DIV - 88 * col1 * col1 + col2 FROM tab1 AS cor0
----
99
129
99
138
99
166
skipif mysql # not compatible
query II rowsort label-1082
SELECT DISTINCT + + 99 AS col2, + 70 + col1 / - 88 * col1 * col1 + col2 FROM tab1 AS cor0
----
99
129
99
138
99
166
onlyif mysql # aggregate syntax:
query I rowsort label-1083
SELECT ALL - - COUNT( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL - - COUNT ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 66 >= - col0
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1085
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 88 + + - COUNT( * ) + 13 FROM tab2
----
-254
skipif mysql # not compatible
query I rowsort label-1085
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 88 + + - COUNT ( * ) + 13 FROM tab2
----
-254
onlyif mysql # aggregate syntax:
query II rowsort label-1086
SELECT + SUM( col0 ), COUNT( * ) AS col0 FROM tab2
----
185
3
skipif mysql # not compatible
query II rowsort label-1086
SELECT + SUM ( col0 ), COUNT ( * ) AS col0 FROM tab2
----
185
3
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - 88 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 98 * + ( - col2 ) FROM tab1
----
5782
6664
9408
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1089
SELECT COUNT( * ) * + CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-1089
SELECT COUNT ( * ) * + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab2
----
9
query I rowsort
SELECT col0 * - ( - col1 ) FROM tab0
----
1215
1827
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab2
----
32
query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT col2 + 50 * - 50 AS col1 FROM tab0 AS cor0
----
-2401
-2453
-2490
query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
240
7656
9506
query I rowsort
SELECT ALL - 62 FROM tab2 AS cor0 WHERE NULL <= col2
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1096
SELECT ALL + COUNT( * ) + - 74 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1096
SELECT ALL + COUNT ( * ) + - 74 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1097
SELECT + ( + col1 ) DIV - col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1097
SELECT + ( + col1 ) / - col1 FROM tab1
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query I rowsort label-1098
SELECT DISTINCT MAX( - + 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND col1 * - col0 + + 4
----
NULL
skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT MAX ( - + 51 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND col1 * - col0 + + 4
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <= NULL
----
query I rowsort
SELECT + ( + - 45 ) FROM tab2 AS cor0
----
-45
-45
-45
onlyif mysql # aggregate syntax:
query I rowsort label-1101
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1102
SELECT + CAST( + + 95 AS SIGNED ) FROM tab1 AS cor0
----
95
95
95
skipif mysql # not compatible
query I rowsort label-1102
SELECT + CAST ( + + 95 AS INTEGER ) FROM tab1 AS cor0
----
95
95
95
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1104
SELECT - 87 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1104
SELECT - 87 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 14 <> - + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1106
SELECT DISTINCT + 87 + + + 97 - - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
187
skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT + 87 + + + 97 - - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
187
onlyif mysql # aggregate syntax:
query I rowsort label-1107
SELECT ALL - + COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL - + COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1108
SELECT ALL + 98 + + COUNT( - + col0 ) FROM tab1
----
101
skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL + 98 + + COUNT ( - + col0 ) FROM tab1
----
101
query III rowsort
SELECT * FROM tab2 WHERE + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 WHERE + + col2 <> NULL
----
query I rowsort
SELECT ALL + col2 - + - ( + col1 ) FROM tab2
----
117
125
74
query II rowsort
SELECT ALL + col2, ( - + 95 ) AS col0 FROM tab1
----
59
-95
68
-95
96
-95
onlyif mysql # DIV for integer division:
query I rowsort label-1113
SELECT DISTINCT - ( - - col0 ) - col1 DIV + col1 + col0 * - col2 * 31 FROM tab1
----
-151828
-155551
-191920
skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - ( - - col0 ) - col1 / + col1 + col0 * - col2 * 31 FROM tab1
----
-151828
-155551
-191920
query II rowsort
SELECT + 6 AS col2, 77 AS col2 FROM tab2
----
6
77
6
77
6
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1115
SELECT DISTINCT CAST( - - 57 AS SIGNED ) * 69 AS col2 FROM tab0 AS cor0
----
3933
skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT CAST ( - - 57 AS INTEGER ) * 69 AS col2 FROM tab0 AS cor0
----
3933
onlyif mysql # aggregate syntax:
query I rowsort label-1116
SELECT ALL - 96 * - MAX( DISTINCT 65 ) + COUNT( * ) * - + 95 FROM tab2 AS cor0
----
5955
skipif mysql # not compatible
query I rowsort label-1116
SELECT ALL - 96 * - MAX ( DISTINCT 65 ) + COUNT ( * ) * - + 95 FROM tab2 AS cor0
----
5955
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1117
SELECT - CAST( - - 33 AS SIGNED ) FROM tab0 AS cor0
----
-33
-33
-33
skipif mysql # not compatible
query I rowsort label-1117
SELECT - CAST ( - - 33 AS INTEGER ) FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT - + 92 AS col1 FROM tab2 AS cor0
----
-92
-92
-92
query II rowsort
SELECT - + 93 AS col1, - 81 FROM tab1 AS cor0
----
-93
-81
-93
-81
-93
-81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1120
SELECT DISTINCT - - 94 / + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - - 94 / + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 < col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + - col1 * - - 26 FROM tab1 cor0
----
-1222
-130
-364
onlyif mysql # DIV for integer division:
query I rowsort label-1123
SELECT DISTINCT - ( + - col0 ) DIV col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - ( + - col0 ) / col0 FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-1124
SELECT - ( - - MAX( - col1 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-153
skipif mysql # not compatible
query I rowsort label-1124
SELECT - ( - - MAX ( - col1 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-153
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1125
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) - 46 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1125
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) - 46 IS NOT NULL
----
query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1127
SELECT ALL ( + - CAST( - - 87 AS SIGNED ) ) FROM tab2 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL ( + - CAST ( - - 87 AS INTEGER ) ) FROM tab2 AS cor0
----
-87
-87
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col1 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # aggregate syntax:
query I rowsort label-1129
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-1130
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + + 45 )
----
0
skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( + + 45 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1131
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1131
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1132
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 1 >= col2
----
0
skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col2 * + 1 >= col2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab0
----
-2
-2
-2
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1134
SELECT + ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1134
SELECT + ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # aggregate syntax:
query I rowsort label-1135
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
9
query II rowsort
SELECT col1, + col0 * + - ( + - ( + col0 ) ) AS col1 FROM tab2
----
51
2116
67
5625
77
4096
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= 75 + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1138
SELECT + CAST( NULL AS SIGNED ) * + ( - - 31 ) col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1138
SELECT + CAST ( NULL AS INTEGER ) * + ( - - 31 ) col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1139
SELECT + + COUNT( * ) * - COUNT( * ) col0 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1139
SELECT + + COUNT ( * ) * - COUNT ( * ) col0 FROM tab1 AS cor0
----
-9
query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1141
SELECT DISTINCT - col2 * col1 + CAST( NULL AS SIGNED ), - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1141
SELECT DISTINCT - col2 * col1 + CAST ( NULL AS INTEGER ), - col1 col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77
onlyif mysql # aggregate syntax:
query I rowsort label-1142
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query II rowsort
SELECT - col0 + + - 57, 30 AS col0 FROM tab1
----
-108
30
-142
30
-148
30
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42
query I rowsort
SELECT 23 + - + col0 FROM tab0 AS cor0
----
-64
-74
8
query I rowsort
SELECT 58 + - - 28 AS col2 FROM tab0 AS cor0
----
86
86
86
onlyif mysql # aggregate syntax:
query I rowsort label-1147
SELECT + 42 / MAX( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 96 IN ( + 66 )
----
NULL
skipif mysql # not compatible
query I rowsort label-1147
SELECT + 42 / MAX ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE - 96 IN ( + 66 )
----
NULL
query I rowsort
SELECT ALL col2 + ( - - 2 ) AS col2 FROM tab2 cor0
----
25
42
60
onlyif mysql # aggregate syntax:
query I rowsort label-1149
SELECT + MIN( DISTINCT + col1 ) * SUM( col0 ) col0 FROM tab2 AS cor0
----
9435
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT + MIN ( DISTINCT + col1 ) * SUM ( col0 ) col0 FROM tab2 AS cor0
----
9435
query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE col1 IS NOT NULL
----
-59
-68
-96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL col1 + ( + - 55 ) AS col1 FROM tab0 AS cor0
----
-34
-54
26
query I rowsort
SELECT DISTINCT + 57 - - + 10 FROM tab2
----
67
query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + - - col0 IS NULL
----
query I rowsort
SELECT DISTINCT col2 + + ( + - col0 ) + + col0 FROM tab2
----
23
40
58
query I rowsort
SELECT DISTINCT 67 - - col1 FROM tab1
----
114
72
81
query I rowsort
SELECT + col1 - - + col0 AS col0 FROM tab1
----
138
65
90
query I rowsort
SELECT ALL - col2 - - col2 * - - 96 + + col2 + + 33 * - 72 FROM tab0
----
-1416
2136
7128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col1 col2 FROM tab2
----
4131
5427
6237
onlyif mysql # aggregate syntax:
query I rowsort label-1160
SELECT MAX( + + 89 ) AS col1 FROM tab1
----
89
skipif mysql # not compatible
query I rowsort label-1160
SELECT MAX ( + + 89 ) AS col1 FROM tab1
----
89
query I rowsort
SELECT ALL - 36 * + - 39 * - 33 * + col1 FROM tab2
----
-2362932
-3104244
-3567564
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1162
SELECT ALL - col2 * 22 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - col2 * 22 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT 74 AS col2, col0 * - ( 44 ) FROM tab0
----
74
-3828
74
-4268
74
-660
query I rowsort
SELECT ALL - 19 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL - 51 * - 52 * + + col1 FROM tab1
----
124644
13260
37128
query I rowsort
SELECT DISTINCT + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
12
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1167
SELECT DISTINCT col1 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT col1 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-10
-47
-99
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( col0 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-1170
SELECT DISTINCT COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-1170
SELECT DISTINCT COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3
query II rowsort
SELECT DISTINCT 85, + col2 AS col0 FROM tab0 AS cor0
----
85
10
85
47
85
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1172
SELECT ALL - - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL - - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - + 41 * - col2 FROM tab1 AS cor0
----
2419
2788
3936
query I rowsort
SELECT + 71 * 2 * - 42 FROM tab1 AS cor0
----
-5964
-5964
-5964
query I rowsort
SELECT - col0 * + ( - + 56 ) FROM tab1
----
2856
4760
5096
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col2 FROM tab1
----
-82
-82
-82
onlyif mysql # DIV for integer division:
query I rowsort label-1178
SELECT ( - col0 ) DIV + 90 + + + 84 AS col2 FROM tab0
----
83
84
84
skipif mysql # not compatible
query I rowsort label-1178
SELECT ( - col0 ) / + 90 + + + 84 AS col2 FROM tab0
----
83
84
84
query I rowsort
SELECT ALL col0 * + col2 * - + col0 AS col0 FROM tab0
----
-10575
-75690
-931491
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 67 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1181
SELECT - COUNT( * ) * 3 FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-1181
SELECT - COUNT ( * ) * 3 FROM tab0
----
-9
query I rowsort
SELECT - col1 + - - 92 FROM tab2
----
15
25
41
query I rowsort
SELECT + + col2 + - col2 * ( - - 56 ) AS col0 FROM tab0 AS cor0
----
-2585
-5445
-550
onlyif mysql # DIV for integer division:
query I rowsort label-1184
SELECT - col2 DIV + col1 + + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24
skipif mysql # not compatible
query I rowsort label-1184
SELECT - col2 / + col1 + + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
17
23
24
query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
110
115
64
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col0 FROM tab1 cor0
----
-144
-147
-159
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 86 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT + col2 - + col0 * col0 AS col2, col1 AS col2 FROM tab0 cor0
----
-178
81
-7559
21
-9310
1
query I rowsort
SELECT ALL + + col2 * + + 39 AS col1 FROM tab0 AS cor0
----
1833
3861
390
query I rowsort
SELECT DISTINCT 55 + + + ( col0 ) * col0 FROM tab2 AS cor0
----
2171
4151
5680
query I rowsort
SELECT - col2 * - + col1 * col2 - - - 99 - + col2 * + 42 AS col0 FROM tab0 AS cor0
----
1581
176856
5544
onlyif mysql # DIV for integer division:
query I rowsort label-1193
SELECT - - 31 * col0 DIV - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-16
-468
8
skipif mysql # not compatible
query I rowsort label-1193
SELECT - - 31 * col0 / - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-16
-468
8
query I rowsort
SELECT DISTINCT - ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT + 36 + + col1 AS col1 FROM tab1 cor0
----
41
50
83
onlyif mysql # aggregate syntax:
query I rowsort label-1196
SELECT + 41 + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
38
skipif mysql # not compatible
query I rowsort label-1196
SELECT + 41 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
38
query I rowsort
SELECT DISTINCT - - col1 + + 22 FROM tab1 AS cor0
----
27
36
69
onlyif mysql # aggregate syntax:
query I rowsort label-1198
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1200
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE 90 - 73 + 87 IN ( + - col2 + + + CAST( NULL AS SIGNED ) * + ( + col0 ) * + - ( - + 74 ) + + col0 * - 11 * - col2 )
----
skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE 90 - 73 + 87 IN ( + - col2 + + + CAST ( NULL AS INTEGER ) * + ( + col0 ) * + - ( - + 74 ) + + col0 * - 11 * - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 20 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 >= - col1 * col1
----
51
14
96
91
47
68
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 IS NULL
----
query I rowsort
SELECT ( - col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + 52 FROM tab0, tab2 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
onlyif mysql # aggregate syntax:
query I rowsort label-1206
SELECT MIN( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0
----
-1312
skipif mysql # not compatible
query I rowsort label-1206
SELECT MIN ( DISTINCT + 32 ) * - 41 AS col1 FROM tab2 AS cor0
----
-1312
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1207
SELECT MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-1207
SELECT MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3
onlyif mysql # aggregate syntax:
query I rowsort label-1208
SELECT DISTINCT MAX( - col0 ) * + COUNT( * ) - 83 AS col1 FROM tab1
----
-236
skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT MAX ( - col0 ) * + COUNT ( * ) - 83 AS col1 FROM tab1
----
-236
query I rowsort
SELECT 6 FROM tab0 WHERE NOT NULL > + col2 * + - ( col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1210
SELECT 38 * - col1 * + col1, CAST( - col1 AS SIGNED ) * - - col0 + - col0 AS col2 FROM tab0
----
-16758
-1914
-249318
-1230
-38
-194
skipif mysql # not compatible
query II rowsort label-1210
SELECT 38 * - col1 * + col1, CAST ( - col1 AS INTEGER ) * - - col0 + - col0 AS col2 FROM tab0
----
-16758
-1914
-249318
-1230
-38
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 WHERE NOT NULL BETWEEN 44 AND col2
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( - - col2 ) > - col2 * + - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab0 cor0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-1214
SELECT - 43 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-129
skipif mysql # not compatible
query I rowsort label-1214
SELECT - 43 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-129
onlyif mysql # aggregate syntax:
query I rowsort label-1215
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1215
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - col0 * + + ( col0 ) * 35 * - col1 + col1 + + + col0 FROM tab1 AS cor0
----
1264465
1274555
13622383
query I rowsort
SELECT - + 76 * - + col1 + + + col2 FROM tab2 AS cor0
----
3899
5150
5892
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1219
SELECT - + 16 / - col0 - - CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1219
SELECT - + 16 / - col0 - - CAST ( NULL AS REAL ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1220
SELECT + + 74 + + COUNT( * ) FROM tab1 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-1220
SELECT + + 74 + + COUNT ( * ) FROM tab1 AS cor0
----
77
onlyif mysql # DIV for integer division:
query I rowsort label-1221
SELECT ALL col1 DIV col0 + + col0 AS col2 FROM tab0
----
20
87
97
skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL col1 / col0 + + col0 AS col2 FROM tab0
----
20
87
97
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-1223
SELECT DISTINCT + 70 + - col0 DIV - - col1 + col1 - + col0 FROM tab2
----
61
75
83
skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + 70 + - col0 / - - col1 + col1 - + col0 FROM tab2
----
61
75
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 29, - col0 col2 FROM tab1
----
29
-51
29
-85
29
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT DISTINCT col2, + 13 FROM tab0
----
10
13
47
13
99
13
query II rowsort
SELECT DISTINCT col0 AS col0, 98 AS col2 FROM tab0
----
15
98
87
98
97
98
query II rowsort
SELECT - 74, 54 AS col0 FROM tab2
----
-74
54
-74
54
-74
54
onlyif mysql # DIV for integer division:
query I rowsort label-1229
SELECT - 2 DIV + 51 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1229
SELECT - 2 / + 51 FROM tab0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-1230
SELECT + 50 * + - MAX( + - col0 ) AS col0 FROM tab1
----
2550
skipif mysql # not compatible
query I rowsort label-1230
SELECT + 50 * + - MAX ( + - col0 ) AS col0 FROM tab1
----
2550
query I rowsort
SELECT ALL + 24 + - col2 + + + col2 FROM tab2 AS cor0
----
24
24
24
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + - 45 IS NOT NULL AND NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + + col2 * + 30 + - col2 FROM tab2 AS cor0
----
1160
1682
667
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1234
SELECT ALL * FROM tab0 WHERE ( NOT 85 NOT IN ( + ( + col2 ) + ( 15 ), - CAST( NULL AS SIGNED ) ) )
----
skipif mysql # not compatible
query III rowsort label-1234
SELECT ALL * FROM tab0 WHERE ( NOT 85 NOT IN ( + ( + col2 ) + ( 15 ), - CAST ( NULL AS INTEGER ) ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT 70 + + 24 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
onlyif mysql # aggregate syntax:
query I rowsort label-1237
SELECT ALL + 31 - + 26 + + MIN( DISTINCT + col0 ) FROM tab1
----
56
skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL + 31 - + 26 + + MIN ( DISTINCT + col0 ) FROM tab1
----
56
onlyif mysql # DIV for integer division:
query I rowsort label-1238
SELECT DISTINCT - col2 - + + col0 DIV + - col2 FROM tab0 AS cor0
----
-2
-47
-99
skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT - col2 - + + col0 / + - col2 FROM tab0 AS cor0
----
-2
-47
-99
onlyif mysql # aggregate syntax:
query II rowsort label-1239
SELECT DISTINCT COUNT( * ) * ( + - COUNT( * ) ) + - MIN( + + 27 ), - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - ( + col1 ) * - col2 + + col0 + + 76 / - 66
----
NULL
0
skipif mysql # not compatible
query II rowsort label-1239
SELECT DISTINCT COUNT ( * ) * ( + - COUNT ( * ) ) + - MIN ( + + 27 ), - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> - ( + col1 ) * - col2 + + col0 + + 76 / - 66
----
NULL
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1240
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) + + 14 col1 FROM tab0 AS cor0
----
11
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1240
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) + + 14 col1 FROM tab0 AS cor0
----
11
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * 76 = ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 49 col0 FROM tab2 AS cor0 WHERE + 12 - - 80 IS NULL
----
query II rowsort
SELECT DISTINCT col1, col2 AS col1 FROM tab1
----
14
96
47
68
5
59
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 57 * + 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT 58 AS col1, 46 FROM tab0
----
58
46
58
46
58
46
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1246
SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST( NULL AS SIGNED ) * - 59 col1 FROM tab0
----
100
NULL
2209
NULL
9801
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1246
SELECT DISTINCT ( col2 ) * + + col2 AS col1, CAST ( NULL AS INTEGER ) * - 59 col1 FROM tab0
----
100
NULL
2209
NULL
9801
NULL
query I rowsort
SELECT DISTINCT 22 * + + col2 FROM tab0
----
1034
2178
220
onlyif mysql # aggregate syntax:
query I rowsort label-1248
SELECT DISTINCT + COUNT( DISTINCT + col0 ) + + 17 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
20
skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) + + 17 AS col0 FROM tab2 WHERE + col0 IS NOT NULL
----
20
query I rowsort
SELECT DISTINCT - ( - 84 ) FROM tab2
----
84
onlyif mysql # aggregate syntax:
query I rowsort label-1250
SELECT ( COUNT( * ) ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1250
SELECT ( COUNT ( * ) ) AS col1 FROM tab0
----
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IS NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1254
SELECT DISTINCT + 31 * MIN( col1 ) AS col2 FROM tab0
----
31
skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + 31 * MIN ( col1 ) AS col2 FROM tab0
----
31
query II rowsort
SELECT col1 * + col1 AS col2, 83 FROM tab2
----
2601
83
4489
83
5929
83
onlyif mysql # DIV for integer division:
query II rowsort label-1256
SELECT ALL + col1 DIV + col1 AS col1, - 35 AS col2 FROM tab2
----
1
-35
1
-35
1
-35
skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL + col1 / + col1 AS col1, - 35 AS col2 FROM tab2
----
1
-35
1
-35
1
-35
query I rowsort
SELECT - + ( + 26 ) AS col2 FROM tab0 AS cor0
----
-26
-26
-26
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1258
SELECT ALL col0 + + - 98 FROM tab1 AS cor0 WHERE - col2 + + - col1 NOT BETWEEN CAST( + 0 AS SIGNED ) AND col2
----
-13
-47
-7
skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL col0 + + - 98 FROM tab1 AS cor0 WHERE - col2 + + - col1 NOT BETWEEN CAST ( + 0 AS INTEGER ) AND col2
----
-13
-47
-7
onlyif mysql # aggregate syntax:
query I rowsort label-1259
SELECT ALL + COUNT( * ) + - SUM( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
230
skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + COUNT ( * ) + - SUM ( ALL - + col0 ) AS col2 FROM tab1 AS cor0
----
230
onlyif mysql # aggregate syntax:
query I rowsort label-1260
SELECT - + MIN( col0 ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-1260
SELECT - + MIN ( col0 ) FROM tab0 AS cor0
----
-15
query I rowsort
SELECT DISTINCT + 16 + col1 AS col2 FROM tab0 AS cor0
----
17
37
97
query I rowsort
SELECT DISTINCT + 52 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL 29 + 39 FROM tab2 cor0
----
68
68
68
query II rowsort
SELECT DISTINCT + 87 + - col0, col0 + - col0 AS col1 FROM tab2 AS cor0
----
12
0
23
0
41
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - + + 20 >= - + col0
----
87
21
10
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-1266
SELECT DISTINCT COUNT( * ) * + 0 col2 FROM tab0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1266
SELECT DISTINCT COUNT ( * ) * + 0 col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 col2, - col2 * + col1 FROM tab1
----
38
-1344
38
-295
38
-3196
onlyif mysql # aggregate syntax:
query I rowsort label-1268
SELECT ALL - MIN( + - 48 ) + 61 FROM tab1
----
109
skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - MIN ( + - 48 ) + 61 FROM tab1
----
109
query I rowsort
SELECT ALL ( + - col2 ) + + 29 AS col0 FROM tab2
----
-11
-29
6
query II rowsort
SELECT ALL 87, 97 * + col1 AS col2 FROM tab1
----
87
1358
87
4559
87
485
query I rowsort
SELECT col1 * + + col2 + - col1 AS col2 FROM tab1
----
1330
290
3149
query III rowsort
SELECT * FROM tab1 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1273
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 15 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 15 AS col0 FROM tab1
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 37 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1275
SELECT + MAX( + col0 ) AS col1 FROM tab2 cor0
----
75
skipif mysql # not compatible
query I rowsort label-1275
SELECT + MAX ( + col0 ) AS col1 FROM tab2 cor0
----
75
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 col0, col0 AS col1 FROM tab2
----
46
46
46
64
46
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1278
SELECT DISTINCT + 65 DIV COUNT( * ) + + COUNT( * ) FROM tab1
----
24
skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT + 65 / COUNT ( * ) + + COUNT ( * ) FROM tab1
----
24
query II rowsort
SELECT DISTINCT - col2, + 33 AS col0 FROM tab1
----
-59
33
-68
33
-96
33
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1280
SELECT ALL + + 73 * + col0 + + CAST( NULL AS DECIMAL ) + - 86 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL + + 73 * + col0 + + CAST ( NULL AS REAL ) + - 86 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-1281
SELECT + 17 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-1281
SELECT + 17 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
3
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1283
SELECT COUNT( ALL - - CAST( - col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1283
SELECT COUNT ( ALL - - CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query II rowsort label-1284
SELECT DISTINCT + 77 AS col2, COUNT( * ) FROM tab1 AS cor0
----
77
3
skipif mysql # not compatible
query II rowsort label-1284
SELECT DISTINCT + 77 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
77
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1285
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - ( - col1 ) + - col1 >= NULL )
----
skipif mysql # not compatible
query I rowsort label-1285
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - ( - col1 ) + - col1 >= NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1286
SELECT ALL + MIN( - CAST( - 20 AS SIGNED ) ) AS col1 FROM tab0
----
20
skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL + MIN ( - CAST ( - 20 AS INTEGER ) ) AS col1 FROM tab0
----
20
query III rowsort
SELECT * FROM tab0 WHERE NOT + + 84 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col0 col2 FROM tab2
----
-1058
-2560
-4350
onlyif mysql # aggregate syntax:
query II rowsort label-1289
SELECT ALL - MAX( + + 20 ) AS col0, - COUNT( * ) FROM tab0
----
-20
-3
skipif mysql # not compatible
query II rowsort label-1289
SELECT ALL - MAX ( + + 20 ) AS col0, - COUNT ( * ) FROM tab0
----
-20
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1290
SELECT DISTINCT + COUNT( ALL + + col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT + COUNT ( ALL + + col0 ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL col1 * - + 3 FROM tab2
----
-153
-201
-231
onlyif mysql # aggregate syntax:
query I rowsort label-1292
SELECT - COUNT( * ) * + MAX( ALL - col1 ) FROM tab2
----
153
skipif mysql # not compatible
query I rowsort label-1292
SELECT - COUNT ( * ) * + MAX ( ALL - col1 ) FROM tab2
----
153
query I rowsort
SELECT + AVG ( + - col2 ) * + - 53 AS col0 FROM tab1 WHERE + col2 > NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1294
SELECT - MIN( ALL - + 43 ) + - 34 AS col2 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1294
SELECT - MIN ( ALL - + 43 ) + - 34 AS col2 FROM tab0 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-1295
SELECT + + 38 + + MIN( col0 ) + COUNT( * ) - - 36 AS col1 FROM tab1 AS cor0
----
128
skipif mysql # not compatible
query I rowsort label-1295
SELECT + + 38 + + MIN ( col0 ) + COUNT ( * ) - - 36 AS col1 FROM tab1 AS cor0
----
128
query I rowsort
SELECT - + 23 + + - col0 FROM tab2 AS cor0
----
-69
-87
-98
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1297
SELECT col2 + - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1297
SELECT col2 + - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1298
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
query I rowsort
SELECT DISTINCT - - col1 + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154
onlyif mysql # DIV for integer division:
query I rowsort label-1300
SELECT DISTINCT col2 DIV + col1 + + + col0 + - 91 FROM tab1
----
-34
1
5
skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT col2 / + col1 + + + col0 + - 91 FROM tab1
----
-34
1
5
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 91 - + + 29, - col0 col2 FROM tab2 WHERE NULL IS NULL
----
-120
-46
-120
-64
-120
-75
query I rowsort
SELECT - 4 AS col0 FROM tab2 WHERE NULL IS NULL
----
-4
-4
-4
query I rowsort
SELECT + 69 AS col0 FROM tab2
----
69
69
69
query I rowsort
SELECT 84 * 5 * - - 71 AS col0 FROM tab2
----
29820
29820
29820
query I rowsort
SELECT ALL col0 * - 23 AS col2 FROM tab1
----
-1173
-1955
-2093
query II rowsort
SELECT DISTINCT - ( col1 ) AS col2, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85
query I rowsort
SELECT DISTINCT - 39 * + 43 AS col1 FROM tab0 AS cor0
----
-1677
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1310
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE + 8 + + + col2 NOT IN ( + col1, - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + + col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-1310
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE + 8 + + + col2 NOT IN ( + col1, - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + + col1 )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1311
SELECT COUNT( * ) * - COUNT( * ) + - 37 FROM tab2
----
-46
skipif mysql # not compatible
query I rowsort label-1311
SELECT COUNT ( * ) * - COUNT ( * ) + - 37 FROM tab2
----
-46
query I rowsort
SELECT ALL 23 + col1 * + 20 FROM tab2
----
1043
1363
1563
onlyif mysql # aggregate syntax:
query I rowsort label-1313
SELECT - MAX( ALL + col1 ) FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-1313
SELECT - MAX ( ALL + col1 ) FROM tab2
----
-77
query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
40
query I rowsort
SELECT ALL - ( + 16 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT ALL + col1 * + col0 * + col1 FROM tab2 AS cor0
----
119646
336675
379456
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + + 98 * 23 AS col2 FROM tab1 AS cor0
----
2254
onlyif mysql # aggregate syntax:
query I rowsort label-1319
SELECT DISTINCT - SUM( - 40 ) FROM tab0 AS cor0
----
120
skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT - SUM ( - 40 ) FROM tab0 AS cor0
----
120
onlyif mysql # aggregate syntax:
query I rowsort label-1320
SELECT DISTINCT MAX( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
80
skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT MAX ( DISTINCT + 80 ) AS col1 FROM tab1 AS cor0
----
80
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1322
SELECT ALL - ( + COUNT( * ) ) DIV - COUNT( * ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - ( + COUNT ( * ) ) / - COUNT ( * ) FROM tab1
----
1
onlyif mysql # aggregate syntax:
query II rowsort label-1323
SELECT ALL - COUNT( * ) AS col0, 18 AS col0 FROM tab0
----
-3
18
skipif mysql # not compatible
query II rowsort label-1323
SELECT ALL - COUNT ( * ) AS col0, 18 AS col0 FROM tab0
----
-3
18
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1324
SELECT + COUNT( * ) DIV + MIN( + 7 ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1324
SELECT + COUNT ( * ) / + MIN ( + 7 ) AS col2 FROM tab0
----
0
query II rowsort
SELECT DISTINCT - 57, col2 * + 65 AS col0 FROM tab2
----
-57
1495
-57
2600
-57
3770
onlyif mysql # DIV for integer division:
query I rowsort label-1326
SELECT - 27 DIV + col1 FROM tab1
----
-1
-5
0
skipif mysql # not compatible
query I rowsort label-1326
SELECT - 27 / + col1 FROM tab1
----
-1
-5
0
onlyif mysql # aggregate syntax:
query I rowsort label-1327
SELECT DISTINCT + ( - COUNT( * ) ) col2 FROM tab1
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1327
SELECT DISTINCT + ( - COUNT ( * ) ) col2 FROM tab1
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-1328
SELECT - + 87 DIV col2 + + + col0 AS col0 FROM tab2 AS cor0
----
43
62
74
skipif mysql # not compatible
query I rowsort label-1328
SELECT - + 87 / col2 + + + col0 AS col0 FROM tab2 AS cor0
----
43
62
74
query I rowsort
SELECT ALL - AVG ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----
NULL
query I rowsort
SELECT ALL + + ( - 12 ) FROM tab2 AS cor0
----
-12
-12
-12
onlyif mysql # aggregate syntax:
query I rowsort label-1331
SELECT ALL + MIN( DISTINCT + 46 ) FROM tab0
----
46
skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL + MIN ( DISTINCT + 46 ) FROM tab0
----
46
query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1333
SELECT DISTINCT - + ( MAX( ALL - ( ( - - col0 ) ) ) ) FROM tab0 cor0
----
15
skipif mysql # not compatible
query I rowsort label-1333
SELECT DISTINCT - + ( MAX ( ALL - ( ( - - col0 ) ) ) ) FROM tab0 cor0
----
15
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + 62 + + 13 AS col1 FROM tab2 AS cor0
----
75
75
75
onlyif mysql # DIV for integer division:
query I rowsort label-1336
SELECT DISTINCT + 32 + - ( - col0 ) DIV 18 col1 FROM tab1 cor0
----
34
36
37
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1336
SELECT DISTINCT + 32 + - ( - col0 ) / 18 col1 FROM tab1 cor0
----
34
36
37
query I rowsort
SELECT col1 - - ( + col0 ) * + col1 + col1 FROM tab2 AS cor0
----
2448
5082
5159
onlyif mysql # aggregate syntax:
query I rowsort label-1338
SELECT DISTINCT + MAX( DISTINCT - - col0 ) + - 37 FROM tab1 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) + - 37 FROM tab1 AS cor0
----
54
onlyif mysql # DIV for integer division:
query I rowsort label-1339
SELECT col0 DIV + 15 + + 88 FROM tab1 cor0
----
91
93
94
skipif mysql # not compatible
query I rowsort label-1339
SELECT col0 / + 15 + + 88 FROM tab1 cor0
----
91
93
94
query II rowsort
SELECT ALL - 99 * - + 38 AS col1, col2 + - 61 + - col0 / col0 * - - col1 FROM tab2 WHERE NOT - 84 * + ( - col1 ) + + col2 = NULL
----
query I rowsort
SELECT DISTINCT + col1 - + + col0 FROM tab2
----
-8
13
5
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 67 * - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 WHERE NULL = col2
----
query I rowsort
SELECT + col1 + - + col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE col0 = - 30
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1346
SELECT MIN( DISTINCT - col1 ) - + CAST( + + 63 AS SIGNED ) * - 94 AS col0 FROM tab2 WHERE NOT + - ( - 63 ) * col1 <= col1
----
5845
skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( DISTINCT - col1 ) - + CAST ( + + 63 AS INTEGER ) * - 94 AS col0 FROM tab2 WHERE NOT + - ( - 63 ) * col1 <= col1
----
5845
query I rowsort
SELECT + 33 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
onlyif mysql # aggregate syntax:
query I rowsort label-1348
SELECT - - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1348
SELECT - - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-1349
SELECT COUNT( * ) * COUNT( * ) * 28 AS col2 FROM tab2 AS cor0
----
252
skipif mysql # not compatible
query I rowsort label-1349
SELECT COUNT ( * ) * COUNT ( * ) * 28 AS col2 FROM tab2 AS cor0
----
252
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1350
SELECT ALL + - COUNT( * ) DIV - - MIN( ALL 32 ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + - COUNT ( * ) / - - MIN ( ALL 32 ) AS col1 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1351
SELECT + COUNT( * ) DIV - SUM( ALL 63 ) + - + 62 - + 16 AS col0 FROM tab1 AS cor0
----
-78
skipif mysql # not compatible
query I rowsort label-1351
SELECT + COUNT ( * ) / - SUM ( ALL 63 ) + - + 62 - + 16 AS col0 FROM tab1 AS cor0
----
-78
query II rowsort
SELECT ALL + col0, + 91 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1353
SELECT + - COUNT( * ) AS col2 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1353
SELECT + - COUNT ( * ) AS col2 FROM tab2 cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1354
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 * - col2 + CAST( + 14 AS SIGNED ) * + col1 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1354
SELECT * FROM tab2 AS cor0 WHERE NOT + 11 * - col2 + CAST ( + 14 AS INTEGER ) * + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1355
SELECT + + 24 * - COUNT( * ) AS col2 FROM tab0 cor0
----
-72
skipif mysql # not compatible
query I rowsort label-1355
SELECT + + 24 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-72
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-1357
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab1
----
9
query I rowsort
SELECT DISTINCT col2 * + 82 AS col2 FROM tab1
----
4838
5576
7872
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1359
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 1 FROM tab0
----
NULL
query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 = + col0 AND NULL = 1
----
query I rowsort
SELECT ALL - 41 + - - col2 FROM tab0
----
-31
58
6
onlyif mysql # aggregate syntax:
query I rowsort label-1362
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1362
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT - + col2 + - - col2 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-1365
SELECT DISTINCT + col2 DIV - 97 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + col2 / - 97 FROM tab0 AS cor0
----
-1
0
onlyif mysql # aggregate syntax:
query I rowsort label-1366
SELECT DISTINCT + - SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + - SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT DISTINCT + - col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-1368
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-1368
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 84 * - col1 * col0 + - - ( col1 ) AS col0 FROM tab0 cor0
----
-101979
-153447
-8147
onlyif mysql # aggregate syntax:
query I rowsort label-1370
SELECT + COUNT( * ) + + ( 14 ) col0 FROM tab1 AS cor0
----
17
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1370
SELECT + COUNT ( * ) + + ( 14 ) col0 FROM tab1 AS cor0
----
17
onlyif mysql # aggregate syntax:
query I rowsort label-1371
SELECT - - 44 * COUNT( * ) + + + COUNT( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-1371
SELECT - - 44 * COUNT ( * ) + + + COUNT ( * ) FROM tab0 cor0 WHERE col2 IS NULL
----
0
query I rowsort
SELECT + 55 AS col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
55
55
55
query I rowsort
SELECT ALL + col1 * + - 97 AS col1 FROM tab1 AS cor0
----
-1358
-4559
-485
query I rowsort
SELECT DISTINCT - 95 + col1 AS col0 FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
-14
-74
-94
query I rowsort
SELECT ALL - col2 + 76 AS col2 FROM tab2 AS cor0
----
18
36
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 * + col1 col0 FROM tab0 WHERE + col0 IS NOT NULL
----
1
21
81
query I rowsort
SELECT + ( - + 62 ) AS col0 FROM tab1
----
-62
-62
-62
onlyif mysql # aggregate syntax:
query I rowsort label-1378
SELECT ALL COUNT( * ) * COUNT( * ) * 41 FROM tab1
----
369
skipif mysql # not compatible
query I rowsort label-1378
SELECT ALL COUNT ( * ) * COUNT ( * ) * 41 FROM tab1
----
369
onlyif mysql # aggregate syntax:
query I rowsort label-1379
SELECT DISTINCT MIN( 83 ) AS col1 FROM tab0
----
83
skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT MIN ( 83 ) AS col1 FROM tab0
----
83
query I rowsort
SELECT DISTINCT - 10 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1381
SELECT ( COUNT( * ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-1381
SELECT ( COUNT ( * ) ) AS col1 FROM tab1
----
3
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1383
SELECT DISTINCT - - 37 * + COUNT( * ) FROM tab1 cor0
----
111
skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - - 37 * + COUNT ( * ) FROM tab1 cor0
----
111
query I rowsort
SELECT DISTINCT + + col0 * + 35 AS col0 FROM tab0 cor0
----
3045
3395
525
query I rowsort
SELECT + col1 * 41 FROM tab1 AS cor0
----
1927
205
574
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 31 < - col2
----
15
81
47
97
1
99
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( NOT NULL = NULL ) )
----
query I rowsort
SELECT - ( + 31 ) * + col1 * - + col0 * 97 AS col1 FROM tab1
----
1277975
12860939
2146998
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN - 81 AND NULL
----
query I rowsort
SELECT ALL - col0 * + 70 AS col0 FROM tab2
----
-3220
-4480
-5250
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * - col1 col0 FROM tab0
----
-126
-486
-6
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1392
SELECT ALL 88 DIV - COUNT( * ) FROM tab1
----
-29
skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL 88 / - COUNT ( * ) FROM tab1
----
-29
query I rowsort
SELECT DISTINCT col1 * 91 FROM tab2
----
4641
6097
7007
onlyif mysql # aggregate syntax:
query I rowsort label-1394
SELECT ALL - COUNT( * ) * - COUNT( * ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL - COUNT ( * ) * - COUNT ( * ) FROM tab0
----
9
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 29 * - col0 * 25 AND NULL
----
query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( col0 ) + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1398
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1398
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + 86 + - col2
----
query I rowsort
SELECT - col0 + + col0 + - - 88 FROM tab0 AS cor0
----
88
88
88
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1401
SELECT CAST( + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1401
SELECT CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - ( - 64 ) * - 2 * + 51 AS col0 FROM tab1
----
-306816
-32640
-91392
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 72 / - 6 NOT BETWEEN + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - col2 * - 18 FROM tab1 AS cor0
----
1062
1224
1728
onlyif mysql # aggregate syntax:
query I rowsort label-1405
SELECT - 42 - - COUNT( * ) FROM tab2 AS cor0
----
-39
skipif mysql # not compatible
query I rowsort label-1405
SELECT - 42 - - COUNT ( * ) FROM tab2 AS cor0
----
-39
query I rowsort
SELECT - 46 - col1 FROM tab0 AS cor0
----
-127
-47
-67
query I rowsort
SELECT DISTINCT 13 + + col2 AS col1 FROM tab2 AS cor0
----
36
53
71
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1408
SELECT + + CAST( col0 AS SIGNED ) - + CAST( - ( - + 51 ) AS SIGNED ), col0 + CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
34
0
40
0
skipif mysql # not compatible
query II rowsort label-1408
SELECT + + CAST ( col0 AS INTEGER ) - + CAST ( - ( - + 51 ) AS INTEGER ), col0 + CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
34
0
40
0
onlyif mysql # aggregate syntax:
query I rowsort label-1409
SELECT ALL SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195
skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195
query I rowsort
SELECT - 98 + col0 FROM tab0 AS cor0
----
-1
-11
-83
query I rowsort
SELECT ALL - - ( col2 ) * 56 + + + 26 FROM tab0 AS cor0
----
2658
5570
586
query I rowsort
SELECT + col1 + 41 FROM tab0 AS cor0
----
122
42
62
onlyif mysql # aggregate syntax:
query I rowsort label-1413
SELECT + 7 + - COUNT( * ) col0 FROM tab1 AS cor0
----
4
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1413
SELECT + 7 + - COUNT ( * ) col0 FROM tab1 AS cor0
----
4
query I rowsort
SELECT - 40 + col0 FROM tab0
----
-25
47
57
onlyif mysql # aggregate syntax:
query I rowsort label-1415
SELECT - MAX( ALL + 30 ) FROM tab0
----
-30
skipif mysql # not compatible
query I rowsort label-1415
SELECT - MAX ( ALL + 30 ) FROM tab0
----
-30
onlyif mysql # aggregate syntax:
query II rowsort label-1416
SELECT DISTINCT COUNT( * ), COUNT( * ) - + + 45 AS col2 FROM tab2
----
3
-42
skipif mysql # not compatible
query II rowsort label-1416
SELECT DISTINCT COUNT ( * ), COUNT ( * ) - + + 45 AS col2 FROM tab2
----
3
-42
onlyif mysql # aggregate syntax:
query II rowsort label-1417
SELECT ALL + COUNT( + col0 ) col1, COUNT( * ) FROM tab0 AS cor0
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1417
SELECT ALL + COUNT ( + col0 ) col1, COUNT ( * ) FROM tab0 AS cor0
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-1418
SELECT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1418
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-1419
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-1420
SELECT DISTINCT - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1420
SELECT DISTINCT - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9
query I rowsort
SELECT + - ( - col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-1422
SELECT - SUM( ALL 96 ) + - 26 FROM tab1 AS cor0
----
-314
skipif mysql # not compatible
query I rowsort label-1422
SELECT - SUM ( ALL 96 ) + - 26 FROM tab1 AS cor0
----
-314
query I rowsort
SELECT + + 15 + 23 + + col1 FROM tab2 AS cor0
----
105
115
89
query I rowsort
SELECT ALL - - col1 + ( + 44 ) AS col1 FROM tab2 AS cor0
----
111
121
95
query I rowsort
SELECT ALL - 53 * col0 AS col2 FROM tab0
----
-4611
-5141
-795
query II rowsort
SELECT DISTINCT 39 AS col1, col2 FROM tab2
----
39
23
39
40
39
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 col1, col0 + - - col0 AS col2 FROM tab2
----
62
128
62
150
62
92
query III rowsort
SELECT * FROM tab1 WHERE - col2 + + 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col0 * 22 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1430
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 / 98 >= - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1433
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
9
query I rowsort
SELECT DISTINCT 60 FROM tab0 WHERE + col1 NOT IN ( - col1 )
----
60
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1435
SELECT - col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-1435
SELECT - col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 85 + + 24 FROM tab2
----
109
109
109
query I rowsort
SELECT + 30 * + col1 AS col0 FROM tab0
----
2430
30
630
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col2
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 55 ) + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col0 * 7 AS col0 FROM tab0
----
105
609
679
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 29 * + 32 BETWEEN + col1 AND 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1443
SELECT DISTINCT - 27 * - COUNT( DISTINCT + col0 ) FROM tab2
----
81
skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - 27 * - COUNT ( DISTINCT + col0 ) FROM tab2
----
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1444
SELECT CAST( NULL AS SIGNED ) * + 71 + + col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1444
SELECT CAST ( NULL AS INTEGER ) * + 71 + + col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1445
SELECT ALL - MIN( - col0 ) * - 3 FROM tab1
----
-273
skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - MIN ( - col0 ) * - 3 FROM tab1
----
-273
onlyif mysql # aggregate syntax:
query I rowsort label-1446
SELECT ALL + 15 * + MAX( ALL col1 * + 11 ) col0 FROM tab1
----
7755
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1446
SELECT ALL + 15 * + MAX ( ALL col1 * + 11 ) col0 FROM tab1
----
7755
query I rowsort
SELECT ALL ( + col0 ) + col0 FROM tab2
----
128
150
92
query I rowsort
SELECT DISTINCT 31 * - ( col1 ) + 64 AS col2 FROM tab1 WHERE NULL NOT IN ( - col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-1449
SELECT - col1 + - 19 DIV col0 FROM tab1
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-1449
SELECT - col1 + - 19 / col0 FROM tab1
----
-14
-47
-5
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( + 87 ) * - col0
----
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NULL <= ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE 81 NOT IN ( col1 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + 24 * col2 FROM tab2 WHERE ( col1 ) <= ( 83 )
----
1392
552
960
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> 20
----
query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT 93 * + 24 FROM tab0 AS cor0
----
2232
2232
2232
query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 )
----
5
5
5
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN 59 - - 39 AND col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-1460
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-1460
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 86 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) >= - col2
----
query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab1 AS cor0 WHERE ( + col2 + - col2 ) IN ( + col1 + + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1466
SELECT ALL + COUNT( ALL col2 ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1466
SELECT ALL + COUNT ( ALL col2 ) FROM tab2 cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1468
SELECT ALL - COUNT( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - COUNT ( * ) + + 94 AS col0 FROM tab1 AS cor0
----
91
query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab2 WHERE col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1470
SELECT DISTINCT COUNT( * ) + + + 69 AS col2 FROM tab2
----
72
skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT COUNT ( * ) + + + 69 AS col2 FROM tab2
----
72
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1471
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-1471
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( col0 ) IN ( 66 + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1473
SELECT - SUM( ALL - + col0 ) * + ( + COUNT( * ) ) AS col0 FROM tab0
----
597
skipif mysql # not compatible
query I rowsort label-1473
SELECT - SUM ( ALL - + col0 ) * + ( + COUNT ( * ) ) AS col0 FROM tab0
----
597
query I rowsort
SELECT col1 + + col2 + 45 FROM tab0
----
145
173
76
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 12 * col1 + col0 >= NULL
----
query I rowsort
SELECT ( - 62 ) * - 74 + - col0 * - col1 FROM tab2
----
6934
9516
9613
onlyif mysql # aggregate syntax:
query I rowsort label-1477
SELECT ALL - SUM( DISTINCT - + col2 ) AS col0 FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - SUM ( DISTINCT - + col2 ) AS col0 FROM tab2
----
121
onlyif mysql # aggregate syntax:
query I rowsort label-1478
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
9
query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND ( + 45 * + 46 + col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1480
SELECT DISTINCT - - CAST( + 23 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - - CAST ( + 23 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + col2 col0 FROM tab0 AS cor0
----
175
199
41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1482
SELECT ALL - + 7 + + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - + 7 + + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1483
SELECT ALL + COUNT( * ) + - MAX( ALL - 7 ) FROM tab2 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + COUNT ( * ) + - MAX ( ALL - 7 ) FROM tab2 AS cor0
----
10
onlyif mysql # aggregate syntax:
query I rowsort label-1484
SELECT ALL + - ( - COUNT( * ) ) - - COUNT( * ) FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + - ( - COUNT ( * ) ) - - COUNT ( * ) FROM tab0 AS cor0
----
6
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - - 10 / col0 AND 88 * - col1 - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-1486
SELECT ALL + 16 - COUNT( * ) AS col1 FROM tab2
----
13
skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + 16 - COUNT ( * ) AS col1 FROM tab2
----
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col0 + - - col1 col0 FROM tab2
----
2167
4173
5692
query I rowsort
SELECT ALL col1 * 79 FROM tab1 WHERE NOT NULL >= NULL
----
query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a
query I rowsort
SELECT - col0 - + + 18 FROM tab1
----
-103
-109
-69
onlyif mysql # aggregate syntax:
query I rowsort label-1491
SELECT DISTINCT - COUNT( * ) col1 FROM tab0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1491
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0
----
-3
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL ( - col2 ) FROM tab0 AS cor0 WHERE NULL < 57 * - + col0 - col0 * 1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col0 + - 25
----
query I rowsort
SELECT DISTINCT + col2 - + col1 AS col2 FROM tab2 cor0
----
-28
-37
-9
query I rowsort
SELECT DISTINCT + col0 * col2 * - + 28 FROM tab1 AS cor0
----
-137088
-140420
-173264
query I rowsort
SELECT - - ( + + col0 ) - + 72 - col2 FROM tab1 AS cor0
----
-117
-46
-49
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-1498
SELECT DISTINCT col1 * CAST( + col1 DIV - 17 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT ( col0 + col2 + col2 DIV 87 ) IS NULL
----
-94
0
skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT col1 * CAST ( + col1 / - 17 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT ( col0 + col2 + col2 / 87 ) IS NULL
----
-94
0
query I rowsort
SELECT ALL - - 4 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-204
-268
-308
onlyif mysql # DIV for integer division:
query I rowsort label-1500
SELECT ALL col1 DIV 88 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL col1 / 88 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-1501
SELECT DISTINCT - + ( col0 ) DIV - - 22 - col2 col0 FROM tab0 AS cor0
----
-103
-13
-47
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1501
SELECT DISTINCT - + ( col0 ) / - - 22 - col2 col0 FROM tab0 AS cor0
----
-103
-13
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 col0, - ( + 75 ) + 96 AS col2 FROM tab2 AS cor0
----
16
21
16
21
16
21
onlyif mysql # DIV for integer division:
query II rowsort label-1503
SELECT DISTINCT col1 AS col0, - col0 + - + col2 + col2 DIV + 79 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104
skipif mysql # not compatible
query II rowsort label-1503
SELECT DISTINCT col1 AS col0, - col0 + - + col2 + col2 / + 79 FROM tab2 AS cor0
----
51
-69
67
-133
77
-104
query II rowsort
SELECT - col2, col2 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
-59
64
-68
115
-96
110
query III rowsort
SELECT * FROM tab1 WHERE NOT + - 59 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1506
SELECT ALL - col1 AS col2 FROM tab1 WHERE col2 NOT IN ( + CAST( - col1 AS SIGNED ) )
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - col1 AS col2 FROM tab1 WHERE col2 NOT IN ( + CAST ( - col1 AS INTEGER ) )
----
-14
-47
-5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1507
SELECT ALL - 59 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - 59 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 75 FROM tab0 WHERE - 87 BETWEEN - col0 / 3 AND col1
----
query I rowsort
SELECT ALL col0 * - 6 AS col0 FROM tab2 WHERE NULL <= ( - 64 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1510
SELECT ALL - COUNT( * ) * + 1 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL - COUNT ( * ) * + 1 FROM tab2
----
-3
query I rowsort
SELECT DISTINCT - col1 * col0 * - - col1 FROM tab2
----
-119646
-336675
-379456
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col2 - col1 < + col2 + - ( col1 )
----
query I rowsort
SELECT DISTINCT - - col1 * + - col0 * - col1 * - - 83 FROM tab0 AS cor0
----
3184461
8051
8168445
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 = ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL col0 + - - 44 + + col0 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( 11 ) IS NULL
----
1148
2668
4469
onlyif mysql # DIV for integer division:
query I rowsort label-1516
SELECT ALL + 94 DIV - col1 AS col0 FROM tab1 AS cor0
----
-18
-2
-6
skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL + 94 / - col1 AS col0 FROM tab1 AS cor0
----
-18
-2
-6
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1517
SELECT DISTINCT + + 70 DIV - - COUNT( * ) AS col1 FROM tab2 cor0
----
23
skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT + + 70 / - - COUNT ( * ) AS col1 FROM tab2 cor0
----
23
query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 54 ) + - + col0 = 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE NOT ( 6 ) >= col0 + + + col0 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-1520
SELECT + + 98 + + COUNT( * ) FROM tab2 AS cor0
----
101
skipif mysql # not compatible
query I rowsort label-1520
SELECT + + 98 + + COUNT ( * ) FROM tab2 AS cor0
----
101
query I rowsort
SELECT ALL - col2 + - col1 * + 37 FROM tab0 AS cor0
----
-136
-3044
-787
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1522
SELECT - CAST( 22 AS SIGNED ) + - 71 + col2 AS col2 FROM tab1 AS cor0
----
-25
-34
3
skipif mysql # not compatible
query I rowsort label-1522
SELECT - CAST ( 22 AS INTEGER ) + - 71 + col2 AS col2 FROM tab1 AS cor0
----
-25
-34
3
query I rowsort
SELECT DISTINCT - + 44 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col2
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1524
SELECT 60 * - 69 + CAST( NULL AS SIGNED ) + - COUNT( * ) + - COUNT( * ) / - COUNT( * ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1524
SELECT 60 * - 69 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( col0 ) + + col0 AS col1 FROM tab1 cor0
----
102
170
182
query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + + 30 IS NOT NULL
----
query II rowsort
SELECT col2, 20 / + 12 AS col0 FROM tab1 WHERE - 22 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1528
SELECT MAX( - - col2 ) FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-1528
SELECT MAX ( - - col2 ) FROM tab0
----
99
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1529
SELECT ALL 78 + + ( - COUNT( * ) ) DIV + COUNT( * ) + - 52 FROM tab2
----
25
skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL 78 + + ( - COUNT ( * ) ) / + COUNT ( * ) + - 52 FROM tab2
----
25
onlyif mysql # aggregate syntax:
query I rowsort label-1530
SELECT + 71 * - - ( + MIN( + - col1 ) ) FROM tab0
----
-5751
skipif mysql # not compatible
query I rowsort label-1530
SELECT + 71 * - - ( + MIN ( + - col1 ) ) FROM tab0
----
-5751
query I rowsort
SELECT DISTINCT + + col0 * + + col1 + col0 FROM tab1 AS cor0
----
4368
510
765
query II rowsort
SELECT DISTINCT col2 AS col0, col0 + - - col0 + + - 52 FROM tab1 AS cor0
----
59
118
68
130
96
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 + col1 col0 FROM tab0
----
118
143
197
onlyif mysql # aggregate syntax:
query I rowsort label-1534
SELECT ALL COUNT( * ) - + 43 FROM tab0
----
-40
skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL COUNT ( * ) - + 43 FROM tab0
----
-40
query I rowsort
SELECT + + col1 * col1 + + col0 FROM tab2 AS cor0
----
2647
4564
5993
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1536
SELECT DISTINCT - MAX( - 86 ) * CAST( NULL AS SIGNED ) - + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT - MAX ( - 86 ) * CAST ( NULL AS INTEGER ) - + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * col1 + 18 + - col0 AS col2 FROM tab0 AS cor0
----
1218
1758
18
onlyif mysql # aggregate syntax:
query I rowsort label-1538
SELECT ALL - ( - SUM( 3 ) ) AS col1 FROM tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - ( - SUM ( 3 ) ) AS col1 FROM tab2 AS cor0
----
9
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1540
SELECT DISTINCT - SUM( DISTINCT + + 4 ) FROM tab2
----
-4
skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - SUM ( DISTINCT + + 4 ) FROM tab2
----
-4
query I rowsort
SELECT + 45 * + 60 FROM tab1
----
2700
2700
2700
query II rowsort
SELECT col0 AS col1, + col0 FROM tab2
----
46
46
64
64
75
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1543
SELECT COUNT( - col1 ) DIV + 73 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1543
SELECT COUNT ( - col1 ) / + 73 AS col2 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1544
SELECT MAX( - + col0 ) AS col2 FROM tab2
----
-46
skipif mysql # not compatible
query I rowsort label-1544
SELECT MAX ( - + col0 ) AS col2 FROM tab2
----
-46
query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + - ( - 51 ) ) IN ( - + col0 * + - col1 * - 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 AS cor0 WHERE NULL > NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 IN ( col0 * - col2 * - col0 - - 2 * + - 92 * + 74 ) )
----
query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
onlyif mysql # DIV for integer division:
query I rowsort label-1550
SELECT 57 DIV + 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-1550
SELECT 57 / + 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # aggregate syntax:
query I rowsort label-1551
SELECT + - ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1551
SELECT + - ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 71 col2 FROM tab0 cor0
----
71
71
71
query I rowsort
SELECT - 42 * - col0 AS col2 FROM tab1 AS cor0
----
2142
3570
3822
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1554
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) FROM tab1 AS cor0
----
1
query II rowsort
SELECT DISTINCT + - col1 + - - col0, col2 AS col0 FROM tab0 AS cor0
----
-66
47
66
10
96
99
query I rowsort
SELECT DISTINCT col1 * + col0 + + 62 FROM tab2 AS cor0
----
2408
4990
5087
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1557
SELECT + col1 * ( - col2 ) + col0 + - + col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1557
SELECT + col1 * ( - col2 ) + col0 + - + col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1558
SELECT COUNT( * ) + + 77 AS col1 FROM tab0
----
80
skipif mysql # not compatible
query I rowsort label-1558
SELECT COUNT ( * ) + + 77 AS col1 FROM tab0
----
80
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1559
SELECT ALL * FROM tab1 WHERE + col0 * - 7 BETWEEN NULL AND - 28 / CAST( + 53 AS SIGNED ) AND NOT ( NULL ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-1559
SELECT ALL * FROM tab1 WHERE + col0 * - 7 BETWEEN NULL AND - 28 / CAST ( + 53 AS INTEGER ) AND NOT ( NULL ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
92
NULL
skipif mysql # not compatible
query II rowsort label-1560
SELECT DISTINCT 92 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
92
NULL
query I rowsort
SELECT DISTINCT - 50 - + col1 - + 62 FROM tab0
----
-113
-133
-193
query II rowsort
SELECT DISTINCT col0 AS col0, - 5 + 68 AS col0 FROM tab2
----
46
63
64
63
75
63
query I rowsort
SELECT - 34 + + 90 AS col0 FROM tab2
----
56
56
56
onlyif mysql # aggregate syntax:
query I rowsort label-1564
SELECT DISTINCT COUNT( col0 ) * ( + ( - COUNT( * ) ) ) + - 14 + 78 AS col2 FROM tab2
----
55
skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT COUNT ( col0 ) * ( + ( - COUNT ( * ) ) ) + - 14 + 78 AS col2 FROM tab2
----
55
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-1565
SELECT DISTINCT + col0 DIV CAST( + col1 AS SIGNED ) FROM tab1
----
1
17
3
skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT + col0 / CAST ( + col1 AS INTEGER ) FROM tab1
----
1
17
3
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1567
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1567
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2
----
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1568
SELECT ALL CAST( - + col1 AS SIGNED ), - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
skipif mysql # not compatible
query II rowsort label-1568
SELECT ALL CAST ( - + col1 AS INTEGER ), - col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL 63 + + 21 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT 65 * 87 + + 43 AS col2 FROM tab0 AS cor0
----
5698
onlyif mysql # aggregate syntax:
query I rowsort label-1571
SELECT ( COUNT( + col2 ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-1571
SELECT ( COUNT ( + col2 ) ) FROM tab0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1572
SELECT ALL col0 AS col0, - CAST( - col0 AS SIGNED ) FROM tab0
----
15
15
87
87
97
97
skipif mysql # not compatible
query II rowsort label-1572
SELECT ALL col0 AS col0, - CAST ( - col0 AS INTEGER ) FROM tab0
----
15
15
87
87
97
97
query I rowsort
SELECT DISTINCT col2 * 10 FROM tab0
----
100
470
990
query I rowsort
SELECT - 22 * + - ( - - 88 ) FROM tab2 AS cor0
----
1936
1936
1936
query II rowsort
SELECT DISTINCT + 99 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
99
15
99
87
99
97
query I rowsort
SELECT - 28 * - col2 + + col1 AS col2 FROM tab2 AS cor0
----
1197
1691
695
onlyif mysql # aggregate syntax:
query I rowsort label-1577
SELECT - + SUM( + ( + + 72 ) ) FROM tab0 AS cor0
----
-216
skipif mysql # not compatible
query I rowsort label-1577
SELECT - + SUM ( + ( + + 72 ) ) FROM tab0 AS cor0
----
-216
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1578
SELECT - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort label-1578
SELECT - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT ALL - col1 * col0 * + - 92 AS col1 FROM tab0 AS cor0
----
111780
168084
8924
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + 28 * + col2 AS col1 FROM tab0
----
1316
2772
280
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1583
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 - - ( - 24 ) NOT IN ( - + col0, - col2, + col1 + + col2 )
----
NULL
skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 - - ( - 24 ) NOT IN ( - + col0, - col2, + col1 + + col2 )
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-1584
SELECT + + COUNT( - 87 ) AS col2, COUNT( 93 ) FROM tab0 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-1584
SELECT + + COUNT ( - 87 ) AS col2, COUNT ( 93 ) FROM tab0 AS cor0
----
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - + col1 * - 89 col1, - ( - 2 ) + + 8 AS col2, col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 89331a2d72dc034913a82af28dc5d4ba
onlyif mysql # aggregate syntax:
query I rowsort label-1586
SELECT DISTINCT - MAX( 65 ) * COUNT( * ) * 54 FROM tab2 AS cor0
----
-10530
skipif mysql # not compatible
query I rowsort label-1586
SELECT DISTINCT - MAX ( 65 ) * COUNT ( * ) * 54 FROM tab2 AS cor0
----
-10530
query I rowsort
SELECT ALL + 26 * + col1 * + + col2 FROM tab2 AS cor0
----
101036
30498
80080
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1 - col1
----
query II rowsort
SELECT col1 AS col1, col2 * col1 AS col0 FROM tab2
----
51
1173
67
3886
77
3080
query I rowsort
SELECT ALL + col1 * - + col0 AS col2 FROM tab0
----
-1215
-1827
-97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1592
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT col2 + 22 AS col2 FROM tab0
----
121
32
69
query I rowsort
SELECT + + 53 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
onlyif mysql # aggregate syntax:
query I rowsort label-1595
SELECT ALL - MIN( ALL + + col1 ) * - + SUM( DISTINCT + 42 ) + + SUM( + + 53 ) * + 46 * - + COUNT( * ) + + 50 * + - 37 FROM tab2 AS cor0
----
-21650
skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - MIN ( ALL + + col1 ) * - + SUM ( DISTINCT + 42 ) + + SUM ( + + 53 ) * + 46 * - + COUNT ( * ) + + 50 * + - 37 FROM tab2 AS cor0
----
-21650
onlyif mysql # DIV for integer division:
query I rowsort label-1596
SELECT + ( - col2 ) DIV + - 56 + col2 AS col1 FROM tab2 AS cor0
----
23
40
59
skipif mysql # not compatible
query I rowsort label-1596
SELECT + ( - col2 ) / + - 56 + col2 AS col1 FROM tab2 AS cor0
----
23
40
59
query I rowsort
SELECT + + col2 + - 46 AS col1 FROM tab1 AS cor0
----
13
22
50
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = - 37 + + + 57
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + col1 * col2 < 43 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1600
SELECT - ( - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1600
SELECT - ( - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1601
SELECT DISTINCT ( - COUNT( * ) ) col0 FROM tab0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1601
SELECT DISTINCT ( - COUNT ( * ) ) col0 FROM tab0
----
-3
query III rowsort
SELECT * FROM tab0 WHERE + + col1 / 62 * + col2 IS NULL
----
query I rowsort
SELECT col2 * - + col2 FROM tab1
----
-3481
-4624
-9216
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IS NULL
----
query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-1606
SELECT + MIN( DISTINCT + 59 ) FROM tab0 WHERE ( NULL ) NOT IN ( 32 )
----
NULL
skipif mysql # not compatible
query I rowsort label-1606
SELECT + MIN ( DISTINCT + 59 ) FROM tab0 WHERE ( NULL ) NOT IN ( 32 )
----
NULL
query I rowsort
SELECT ALL ( 90 ) AS col1 FROM tab2
----
90
90
90
query I rowsort
SELECT 67 - + + col1 AS col1 FROM tab1
----
20
53
62
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1609
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 93 AND + CAST( - col0 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-1609
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN 93 AND + CAST ( - col0 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-1610
SELECT + COUNT( * ) FROM tab2 WHERE NOT - col0 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-1610
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - col0 IS NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1611
SELECT ALL - COUNT( ALL - col0 ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - COUNT ( ALL - col0 ) FROM tab2
----
-3
query I rowsort
SELECT ALL + ( 84 ) AS col1 FROM tab0
----
84
84
84
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 28 + - col2 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query II rowsort label-1614
SELECT ALL - + MIN( - ( - col1 ) ) AS col2, 10 AS col1 FROM tab0 AS cor0
----
-1
10
skipif mysql # not compatible
query II rowsort label-1614
SELECT ALL - + MIN ( - ( - col1 ) ) AS col2, 10 AS col1 FROM tab0 AS cor0
----
-1
10
onlyif mysql # DIV for integer division:
query I rowsort label-1615
SELECT - - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1615
SELECT - - col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 77 * + col0 AS col0 FROM tab1 AS cor0
----
3927
6545
7007
query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab0 WHERE + - col1 >= - 83 * + col0
----
10
47
99
onlyif mysql # aggregate syntax:
query II rowsort label-1618
SELECT + COUNT( - 41 ), - 59 * + 57 AS col0 FROM tab2
----
3
-3363
skipif mysql # not compatible
query II rowsort label-1618
SELECT + COUNT ( - 41 ), - 59 * + 57 AS col0 FROM tab2
----
3
-3363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab2 WHERE NULL BETWEEN NULL AND - - col0 / - col1 + + col1
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) * + + col1 col1 FROM tab2
----
2346
4928
5025
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 > NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-1623
SELECT col2 + + + col1 DIV - - 14 AS col1 FROM tab2 AS cor0
----
26
45
62
skipif mysql # not compatible
query I rowsort label-1623
SELECT col2 + + + col1 / - - 14 AS col1 FROM tab2 AS cor0
----
26
45
62
query I rowsort
SELECT + - col2 * + 59 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-2773
-5841
-590
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1625
SELECT - COUNT( * ) + - COUNT( CAST( 12 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
-6
skipif mysql # not compatible
query I rowsort label-1625
SELECT - COUNT ( * ) + - COUNT ( CAST ( 12 AS INTEGER ) ) AS col1 FROM tab1 cor0
----
-6
query I rowsort
SELECT DISTINCT + 77 * - - col2 AS col1 FROM tab2
----
1771
3080
4466
query III rowsort
SELECT * FROM tab0 WHERE - + ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1628
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-1628
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 86 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 84 FROM tab1 cor0
----
-84
query I rowsort
SELECT 97 - - col1 + col2 * - 31 AS col1 FROM tab0 cor0
----
-1279
-192
-2971
onlyif mysql # aggregate syntax:
query I rowsort label-1632
SELECT - 88 - 11 * - + COUNT( * ) FROM tab1 cor0
----
-55
skipif mysql # not compatible
query I rowsort label-1632
SELECT - 88 - 11 * - + COUNT ( * ) FROM tab1 cor0
----
-55
onlyif mysql # aggregate syntax:
query II rowsort label-1633
SELECT ALL 3 * - 52 + - + 7, + 91 * + ( + 34 ) * + + COUNT( * ) col1 FROM tab2 AS cor0
----
-163
9282
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1633
SELECT ALL 3 * - 52 + - + 7, + 91 * + ( + 34 ) * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-163
9282
onlyif mysql # aggregate syntax:
query I rowsort label-1634
SELECT DISTINCT - COUNT( * ) + + SUM( + + col2 ) FROM tab2 AS cor0
----
118
skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT - COUNT ( * ) + + SUM ( + + col2 ) FROM tab2 AS cor0
----
118
onlyif mysql # aggregate syntax:
query I rowsort label-1635
SELECT DISTINCT + 59 + + MAX( - col2 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT + 59 + + MAX ( - col2 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - - col0 + 26 AS col1 FROM tab2 AS cor0
----
101
72
90
query I rowsort
SELECT + col2 + col1 + + + col2 + - 14 FROM tab1
----
109
169
192
query II rowsort
SELECT ALL - 54 + - - col2 + + col1 + - ( + + 21 ) * - col2 AS col2, col2 AS col1 FROM tab2
----
1289
58
503
23
903
40
query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col2 + col1 IS NULL
----
10
47
99
query II rowsort
SELECT - - col1 AS col0, - col1 + - col1 FROM tab0 AS cor0
----
1
-2
21
-42
81
-162
query II rowsort
SELECT - col1 AS col0, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77
onlyif mysql # DIV for integer division:
query I rowsort label-1642
SELECT 56 DIV col1 AS col2 FROM tab0 cor0
----
0
2
56
skipif mysql # not compatible
query I rowsort label-1642
SELECT 56 / col1 AS col2 FROM tab0 cor0
----
0
2
56
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * + ( ( - col1 ) ) AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - + 88 / + col2 IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT ( - - 9 ) + - + 58 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-49
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 5 AND NULL
----
query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab0 AS cor0
----
78
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 61 + + col2 < + 34 + + 92 + + 1
----
97
1
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1650
SELECT DISTINCT - COUNT( * ) FROM tab2 cor0 WHERE + 54 * + + CAST( 44 AS SIGNED ) IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - COUNT ( * ) FROM tab2 cor0 WHERE + 54 * + + CAST ( 44 AS INTEGER ) IS NOT NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1651
SELECT DISTINCT + 86 + - - MIN( + + 87 ) AS col2 FROM tab1 cor0
----
173
skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + 86 + - - MIN ( + + 87 ) AS col2 FROM tab1 cor0
----
173
query I rowsort
SELECT + col0 + - + col1 FROM tab1 AS cor0
----
37
44
80
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - col1 * + + 24 * - 12 FROM tab1 AS cor0
----
13536
1440
4032
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN NULL AND + col0
----
query I rowsort
SELECT DISTINCT + + ( + - 77 ) * 16 AS col1 FROM tab2 WHERE NOT - col2 >= NULL
----
query II rowsort
SELECT ALL 22 AS col1, col1 FROM tab2
----
22
51
22
67
22
77
query III rowsort
SELECT ALL * FROM tab1 WHERE + + 19 IS NULL
----
query I rowsort
SELECT DISTINCT - col1 * + 5 FROM tab0 WHERE NOT 49 > + - 17
----
onlyif mysql # aggregate syntax:
query I rowsort label-1660
SELECT ALL MIN( ALL - - 47 ) AS col2 FROM tab2
----
47
skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL MIN ( ALL - - 47 ) AS col2 FROM tab2
----
47
query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1662
SELECT - 69 + + col2 + + + 75 + - - CAST( NULL AS SIGNED ) * 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1662
SELECT - 69 + + col2 + + + 75 + - - CAST ( NULL AS INTEGER ) * 31 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 AS col0 FROM tab2 AS cor0 WHERE NULL = - 1
----
query I rowsort
SELECT + col0 * - 63 FROM tab0 AS cor0
----
-5481
-6111
-945
onlyif mysql # aggregate syntax:
query I rowsort label-1665
SELECT ALL COUNT( * ) + + + COUNT( * ) - + 55 AS col2 FROM tab1 cor0
----
-49
skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - + 55 AS col2 FROM tab1 cor0
----
-49
query I rowsort
SELECT DISTINCT col1 * col0 * - col2 FROM tab1 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT + - col1 * - col2 * - ( + 60 ) FROM tab0 AS cor0
----
-12600
-228420
-5940
query I rowsort
SELECT DISTINCT - - ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350
query I rowsort
SELECT ALL - - col0 + - 14 FROM tab1 AS cor0
----
37
71
77
query I rowsort
SELECT ALL - col0 + 99 * - - col2 FROM tab2 AS cor0
----
2231
3896
5667
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 88 IS NULL
----
query I rowsort
SELECT ALL - + col2 - - 39 + 23 FROM tab2 AS cor0
----
22
39
4
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NULL IN ( + col1 * - + col1 * ( - 36 ), col2 )
----
query I rowsort
SELECT + ( - - ( - col0 ) ) AS col1 FROM tab0
----
-15
-87
-97
query I rowsort
SELECT ALL - - 15 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 6 * 89 * - 26 * ( + col0 ) * - col0 FROM tab2
----
29378544
56868864
78097500
onlyif mysql # aggregate syntax:
query I rowsort label-1678
SELECT ALL - SUM( ALL + 57 ) FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - SUM ( ALL + 57 ) FROM tab2 AS cor0 WHERE NOT 80 IS NOT NULL
----
NULL
query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
12
onlyif mysql # aggregate syntax:
query I rowsort label-1680
SELECT ALL 77 * COUNT( * ) col2 FROM tab0
----
231
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1680
SELECT ALL 77 * COUNT ( * ) col2 FROM tab0
----
231
onlyif mysql # aggregate syntax:
query I rowsort label-1681
SELECT + 91 * + COUNT( * ) AS col1 FROM tab2
----
273
skipif mysql # not compatible
query I rowsort label-1681
SELECT + 91 * + COUNT ( * ) AS col1 FROM tab2
----
273
onlyif mysql # aggregate syntax:
query I rowsort label-1682
SELECT ( - + COUNT( * ) ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-1682
SELECT ( - + COUNT ( * ) ) FROM tab2
----
-3
query I rowsort
SELECT ALL - 83 * + + col2 FROM tab2
----
-1909
-3320
-4814
query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 + + 80 IN ( - 9, col1 * + col2, + + 46 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1685
SELECT ALL - CAST( - + CAST( + AVG ( DISTINCT + col1 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - CAST ( - + CAST ( + AVG ( DISTINCT + col1 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col0, 81 FROM tab2 cor0
----
51
81
67
81
77
81
query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1688
SELECT ALL MIN( + + col0 ) FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL MIN ( + + col0 ) FROM tab1 AS cor0
----
51
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + + + col2 + col2 <= NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-1690
SELECT + col1, col0 DIV + - col2 FROM tab0 AS cor0
----
1
0
21
-8
81
0
skipif mysql # not compatible
query II rowsort label-1690
SELECT + col1, col0 / + - col2 FROM tab0 AS cor0
----
1
0
21
-8
81
0
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 20 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 / + + col0 / - - 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT + col0, - 35 FROM tab1 AS cor0
----
51
-35
85
-35
91
-35
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1695
SELECT - col1 * + col1 / + ( - 46 ) * + + 57 + + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1695
SELECT - col1 * + col1 / + ( - 46 ) * + + 57 + + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + col1 + + col1 * + 63 AS col1 FROM tab0 AS cor0
----
1323
5103
63
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1697
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) + + col1 ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) + + col1 ) IS NULL
----
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col0 * 71 FROM tab1 AS cor0
----
-13260
-14742
-6222
onlyif mysql # aggregate syntax:
query I rowsort label-1699
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1700
SELECT DISTINCT - 59 + + + ( SUM( + 19 ) ) DIV + 29 FROM tab2 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - 59 + + + ( SUM ( + 19 ) ) / + 29 FROM tab2 AS cor0
----
-58
query I rowsort
SELECT DISTINCT + col0 * col0 + 13 FROM tab1 cor0
----
2614
7238
8294
onlyif mysql # aggregate syntax:
query I rowsort label-1702
SELECT COUNT( * ) + - 3 - + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-1702
SELECT COUNT ( * ) + - 3 - + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
156
onlyif mysql # aggregate syntax:
query I rowsort label-1703
SELECT ALL - - COUNT( * ) + + - COUNT( 97 ) - + 35 FROM tab1 AS cor0
----
-35
skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL - - COUNT ( * ) + + - COUNT ( 97 ) - + 35 FROM tab1 AS cor0
----
-35
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1705
SELECT + AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1705
SELECT + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1706
SELECT DISTINCT MIN( - 70 ) FROM tab0
----
-70
skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT MIN ( - 70 ) FROM tab0
----
-70
query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE 90 IS NOT NULL
----
-23
-40
-58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1708
SELECT DISTINCT - CAST( - col0 AS SIGNED ) col1 FROM tab2
----
46
64
75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1708
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) col1 FROM tab2
----
46
64
75
query II rowsort
SELECT + col1, - 6 * - ( + 42 ) FROM tab1
----
14
252
47
252
5
252
onlyif mysql # aggregate syntax:
query II rowsort label-1710
SELECT COUNT( * ), 15 AS col2 FROM tab0
----
3
15
skipif mysql # not compatible
query II rowsort label-1710
SELECT COUNT ( * ), 15 AS col2 FROM tab0
----
3
15
onlyif mysql # aggregate syntax:
query I rowsort label-1711
SELECT ALL - SUM( DISTINCT - + col2 ) FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL - SUM ( DISTINCT - + col2 ) FROM tab0
----
156
query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 <> NULL
----
query I rowsort
SELECT - + ( 9 ) FROM tab0 AS cor0
----
-9
-9
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1714
SELECT ALL + 0 / 87 + COUNT( * ) * + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL + 0 / 87 + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1715
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1715
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT - + 56 + + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) < + + col2
----
query I rowsort
SELECT ALL + 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # aggregate syntax:
query I rowsort label-1719
SELECT DISTINCT - 22 * + MAX( col2 ) FROM tab2
----
-1276
skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT - 22 * + MAX ( col2 ) FROM tab2
----
-1276
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / + 37 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1721
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1721
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 1 * + col0 + - + col2 * 95 + + - col1 + col2 FROM tab2 AS cor0
----
-2167
-3773
-5444
query I rowsort
SELECT ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1725
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > CAST( - + col1 AS SIGNED ) / + 35
----
skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE NULL > CAST ( - + col1 AS INTEGER ) / + 35
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1726
SELECT DISTINCT - + col1 * - 19 * + - col0 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT - + col1 * - 19 * + - col0 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-1727
SELECT - 4 + + COUNT( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0 cor0
----
-1
2112
skipif mysql # not compatible
query II rowsort label-1727
SELECT - 4 + + COUNT ( * ) AS col1, + 22 * - - 96 AS col2 FROM tab0 cor0
----
-1
2112
query II rowsort
SELECT 32, - col1 AS col1 FROM tab2
----
32
-51
32
-67
32
-77
onlyif mysql # aggregate syntax:
query I rowsort label-1729
SELECT DISTINCT MAX( ALL + 75 ) AS col0 FROM tab1
----
75
skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT MAX ( ALL + 75 ) AS col0 FROM tab1
----
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, + col1 col2 FROM tab0
----
10
21
47
81
99
1
onlyif mysql # aggregate syntax:
query I rowsort label-1731
SELECT DISTINCT + SUM( ALL + + col0 ) AS col0 FROM tab0 WHERE NOT + 36 = col2
----
199
skipif mysql # not compatible
query I rowsort label-1731
SELECT DISTINCT + SUM ( ALL + + col0 ) AS col0 FROM tab0 WHERE NOT + 36 = col2
----
199
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + + col2
----
query I rowsort
SELECT ALL 54 * + col1 FROM tab0
----
1134
4374
54
onlyif mysql # DIV for integer division:
query I rowsort label-1734
SELECT 39 DIV + - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1734
SELECT 39 / + - col2 FROM tab1
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-1735
SELECT ALL 39 DIV - - col1 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL 39 / - - col1 AS col2 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1736
SELECT 80 DIV + + COUNT( * ) AS col1 FROM tab1
----
26
skipif mysql # not compatible
query I rowsort label-1736
SELECT 80 / + + COUNT ( * ) AS col1 FROM tab1
----
26
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 27 * 9 > - col0
----
query II rowsort
SELECT ALL - 38 AS col2, + ( + - 25 ) FROM tab1 AS cor0
----
-38
-25
-38
-25
-38
-25
query I rowsort
SELECT DISTINCT 55 + + 91 FROM tab1 AS cor0
----
146
onlyif mysql # aggregate syntax:
query I rowsort label-1740
SELECT ALL - COUNT( * ) + 92 AS col1 FROM tab0 cor0
----
89
skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL - COUNT ( * ) + 92 AS col1 FROM tab0 cor0
----
89
query I rowsort
SELECT DISTINCT 11 + + 16 FROM tab2
----
27
query I rowsort
SELECT - 63 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1743
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - 55 * - + 59 + + col1 NOT IN ( - col1 / + 81 + col2 / + + col0, col0 )
----
NULL
skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 55 * - + 59 + + col1 NOT IN ( - col1 / + 81 + col2 / + + col0, col0 )
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col2 + - col2 col0 FROM tab2
----
1150
3040
3828
query I rowsort
SELECT DISTINCT + 45 FROM tab0 cor0
----
45
query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-1747
SELECT DISTINCT COUNT( * ) FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0
----
3
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 18
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1749
SELECT ALL + COUNT( * ) AS col1, 2 * CAST( 83 AS SIGNED ) * + 92 AS col1 FROM tab1
----
3
15272
skipif mysql # not compatible
query II rowsort label-1749
SELECT ALL + COUNT ( * ) AS col1, 2 * CAST ( 83 AS INTEGER ) * + 92 AS col1 FROM tab1
----
3
15272
onlyif mysql # aggregate syntax:
query I rowsort label-1750
SELECT ALL + COUNT( * ) * MAX( - col1 ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + COUNT ( * ) * MAX ( - col1 ) AS col1 FROM tab0
----
-3
query I rowsort
SELECT DISTINCT + 79 * + col2 FROM tab0
----
3713
7821
790
query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----
query I rowsort
SELECT ALL 54 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + 94
----
onlyif mysql # aggregate syntax:
query I rowsort label-1755
SELECT MIN( + - col1 ) AS col0 FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-1755
SELECT MIN ( + - col1 ) AS col0 FROM tab2
----
-77
query I rowsort
SELECT ALL col0 * + ( 99 ) * - 83 AS col2 FROM tab1
----
-419067
-698445
-747747
query II rowsort
SELECT ALL col0 AS col1, - col2 * + - col2 AS col1 FROM tab0
----
15
2209
87
100
97
9801
query I rowsort
SELECT DISTINCT + 54 FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81
query I rowsort
SELECT ALL + 3 FROM tab1 cor0
----
3
3
3
query I rowsort
SELECT col2 * - 71 FROM tab0 AS cor0
----
-3337
-7029
-710
query I rowsort
SELECT 17 * - col2 AS col2 FROM tab1
----
-1003
-1156
-1632
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1764
SELECT ALL + COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
3
query II rowsort
SELECT col0, + col2 AS col2 FROM tab2
----
46
23
64
40
75
58
onlyif mysql # aggregate syntax:
query I rowsort label-1766
SELECT DISTINCT - + COUNT( * ) col1 FROM tab2 WHERE NOT - col2 + - col1 IS NOT NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1766
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab2 WHERE NOT - col2 + - col1 IS NOT NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + - col1 BETWEEN + ( + - col2 ) AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1768
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 62 - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 62 - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1769
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 + - col2 * col2 IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 + - col2 * col2 IS NOT NULL
----
-3
query I rowsort
SELECT DISTINCT + ( + col2 ) * + 63 - - col0 - col1 + - - col2 + 14 FROM tab1 AS cor0
----
3870
4410
6195
onlyif mysql # aggregate syntax:
query I rowsort label-1771
SELECT + + ( + - ( + - COUNT( * ) ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1771
SELECT + + ( + - ( + - COUNT ( * ) ) ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1773
SELECT DISTINCT - 10 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-7
skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - 10 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-7
query I rowsort
SELECT - 17 + - + col0 * - + col2 + + + 35 * - col0 AS col0 FROM tab2
----
-569
1708
303
query III rowsort
SELECT * FROM tab2 WHERE 53 * - - col1 <> NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + + col1 IN ( col2 + col2 )
----
query I rowsort
SELECT + 83 + - - col1 FROM tab0
----
104
164
84
query I rowsort
SELECT - col0 + + 77 * + col2 * - - col0 AS col2 FROM tab2
----
197056
334875
81420
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 38 - - + col2 - - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1780
SELECT ALL + COUNT( * ) * + COUNT( * ) * - COUNT( ALL - col1 ) - - 67 AS col0 FROM tab1
----
40
skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * - COUNT ( ALL - col1 ) - - 67 AS col0 FROM tab1
----
40
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * + - 63 - - 75 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + ( col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1783
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-1783
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 22 col2, + 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to bc08b0220b0e32bfad0ac61652631546
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( 41 / - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - - ( 95 ) AS col2 FROM tab1 AS cor0
----
95
query II rowsort
SELECT ALL ( - ( + - 87 ) ), col2 FROM tab0 AS cor0
----
87
10
87
47
87
99
onlyif mysql # aggregate syntax:
query I rowsort label-1789
SELECT ALL + COUNT( * ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + COUNT ( * ) FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query II rowsort label-1790
SELECT DISTINCT 80 AS col1, + 85 * + 23 - MIN( DISTINCT - col2 ) FROM tab0 cor0
----
80
2054
skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT 80 AS col1, + 85 * + 23 - MIN ( DISTINCT - col2 ) FROM tab0 cor0
----
80
2054
query I rowsort
SELECT col2 * - - 34 FROM tab0 cor0
----
1598
3366
340
query I rowsort
SELECT - 77 * + - 34 AS col1 FROM tab0 AS cor0
----
2618
2618
2618
query I rowsort
SELECT + col1 + + col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - col1 * - col1 col0 FROM tab2
----
132651
300763
456533
query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab2 WHERE NOT ( + 97 ) + - - col2 >= + col0
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1796
SELECT - CAST( + COUNT( * ) AS SIGNED ), 22 + + + 53 AS col0 FROM tab0
----
-3
75
skipif mysql # not compatible
query II rowsort label-1796
SELECT - CAST ( + COUNT ( * ) AS INTEGER ), 22 + + + 53 AS col0 FROM tab0
----
-3
75
query I rowsort
SELECT ALL + ( + 30 ) AS col0 FROM tab2
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + ( - + 95 ) ) col0 FROM tab0
----
-95
-95
-95
query I rowsort
SELECT ALL - col1 + - ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT col0 * + col2 + - col1 FROM tab0 AS cor0 WHERE NOT ( + + 20 < - col0 )
----
624
849
9602
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 NOT BETWEEN NULL AND 16 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1802
SELECT - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1802
SELECT - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # aggregate syntax:
query I rowsort label-1803
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-1803
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6
query I rowsort
SELECT + col1 + + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 AS col2 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-1806
SELECT DISTINCT + MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col0 FROM tab2 cor0
----
28
37
9
query I rowsort
SELECT DISTINCT + 42 + - ( + 94 ) + - 1 + - + col1 FROM tab0 AS cor0
----
-134
-54
-74
onlyif mysql # aggregate syntax:
query I rowsort label-1809
SELECT + COUNT( * ) + + - COUNT( - col2 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1809
SELECT + COUNT ( * ) + + - COUNT ( - col2 ) FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-1810
SELECT ALL + COUNT( * ) + - 49 FROM tab2 cor0
----
-46
skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + COUNT ( * ) + - 49 FROM tab2 cor0
----
-46
query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
query II rowsort
SELECT ALL + col0 * + col0 - - 92 - - + 32, 4 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 - + col2 / - + col1 * + col2 * - col2 * + + 1 * col0 - - 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-1814
SELECT ALL COUNT( * ) + + - COUNT( * ) col0, - 33 FROM tab2
----
0
-33
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1814
SELECT ALL COUNT ( * ) + + - COUNT ( * ) col0, - 33 FROM tab2
----
0
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col1, - col0 + + col1 col0 FROM tab0 WHERE NOT + + col2 = + - 92 / - col0
----
15
66
87
-66
97
-96
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1816
SELECT ALL * FROM tab1 WHERE - 25 * - - CAST( - 31 AS SIGNED ) NOT BETWEEN NULL AND + 91 - col0 * 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-1816
SELECT ALL * FROM tab1 WHERE - 25 * - - CAST ( - 31 AS INTEGER ) NOT BETWEEN NULL AND + 91 - col0 * 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT + col1, + col0 + - 91 - + col1 * col2 * + col1 FROM tab0
----
1
-93
21
-4414
81
-308443
query I rowsort
SELECT DISTINCT + 83 FROM tab0 WHERE NOT NULL <= col1 * + - col0
----
query II rowsort
SELECT ALL + col2 AS col0, + 53 * - 57 * - + 66 AS col2 FROM tab2
----
23
199386
40
199386
58
199386
query II rowsort
SELECT DISTINCT + col1 - + col2 AS col1, col0 + - - col2 FROM tab0
----
-98
196
11
97
34
62
query I rowsort
SELECT 24 * - + 42 AS col0 FROM tab2
----
-1008
-1008
-1008
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 49 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1823
SELECT 32 - ( COUNT( * ) ) FROM tab0
----
29
skipif mysql # not compatible
query I rowsort label-1823
SELECT 32 - ( COUNT ( * ) ) FROM tab0
----
29
query I rowsort
SELECT ALL - + 55 * - - 42 + col0 AS col1 FROM tab2 AS cor0
----
-2235
-2246
-2264
query I rowsort
SELECT ALL col2 * + col1 * - col2 FROM tab1 AS cor0
----
-129024
-17405
-217328
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-1826
SELECT DISTINCT * FROM tab0 WHERE + - col2 + - col1 + + CAST( NULL AS SIGNED ) + col2 * - 4 / + + col1 * - col1 <= NULL
----
skipif mysql # not compatible
query III rowsort label-1826
SELECT DISTINCT * FROM tab0 WHERE + - col2 + - col1 + + CAST ( NULL AS INTEGER ) + col2 * - 4 / + + col1 * - col1 <= NULL
----
query I rowsort
SELECT DISTINCT - col0 * + 2 AS col0 FROM tab1
----
-102
-170
-182
query I rowsort
SELECT ALL - ( + col1 ) * - + 25 - + col0 * + col2 * col1 - col0 + + - col0 + - + col0 AS col0 FROM tab1 AS cor0
----
-25205
-289934
-68347
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1830
SELECT COUNT( * ) AS col0 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1830
SELECT COUNT ( * ) AS col0 FROM tab2 cor0
----
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 40 / - ( col1 ) IN ( - 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1832
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 cor0
----
3
query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97
query I rowsort
SELECT ALL - + 26 * + col0 * - + 10 FROM tab2 cor0
----
11960
16640
19500
onlyif mysql # DIV for integer division:
query I rowsort label-1835
SELECT ALL - - col0 DIV + - 6 AS col0 FROM tab2 AS cor0
----
-10
-12
-7
skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - - col0 / + - 6 AS col0 FROM tab2 AS cor0
----
-10
-12
-7
query II rowsort
SELECT + 7 AS col2, ( + - 81 ) - + - col2 AS col0 FROM tab2
----
7
-23
7
-41
7
-58
onlyif mysql # aggregate syntax:
query I rowsort label-1837
SELECT - COUNT( DISTINCT 61 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-1837
SELECT - COUNT ( DISTINCT 61 ) FROM tab0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-1838
SELECT - ( COUNT( * ) ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-1838
SELECT - ( COUNT ( * ) ) AS col2 FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1839
SELECT ALL MAX( - col1 ) AS col2 FROM tab2
----
-51
skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL MAX ( - col1 ) AS col2 FROM tab2
----
-51
query II rowsort
SELECT ALL + + 7, - col2 FROM tab1 WHERE NOT col2 NOT BETWEEN - col0 + + + col1 AND ( - 16 )
----
query II rowsort
SELECT DISTINCT + col0, + ( - 73 ) * - 10 * - + col0 + col2 + + 48 + + + col1 FROM tab0
----
15
-10774
87
-63431
97
-70662
query I rowsort
SELECT DISTINCT 92 * - col1 AS col2 FROM tab2
----
-4692
-6164
-7084
query I rowsort
SELECT + - 67 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <> 0
----
onlyif mysql # aggregate syntax:
query I rowsort label-1844
SELECT DISTINCT - + MAX( + col0 ) FROM tab2 cor0
----
-75
skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT - + MAX ( + col0 ) FROM tab2 cor0
----
-75
query I rowsort
SELECT ALL - 60 * - - col1 + + col1 * 22 * + - 22 FROM tab0 AS cor0
----
-11424
-44064
-544
query I rowsort
SELECT ALL + 4 + + col1 AS col0 FROM tab0 cor0
----
25
5
85
onlyif mysql # DIV for integer division:
query I rowsort label-1847
SELECT - 40 * col0 + - + 25 + + ( - col1 ) DIV - col1 col2 FROM tab1 AS cor0
----
-2064
-3424
-3664
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1847
SELECT - 40 * col0 + - + 25 + + ( - col1 ) / - col1 col2 FROM tab1 AS cor0
----
-2064
-3424
-3664
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1848
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-1848
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
1
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN - col0 + - ( + col2 ) AND NULL
----
query I rowsort
SELECT - 5 * + 32 * 62 AS col2 FROM tab1
----
-9920
-9920
-9920
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-1851
SELECT - MAX( col0 ) FROM tab1 AS cor0 WHERE - 48 BETWEEN CAST( NULL AS DECIMAL ) * - col0 + + col1 / col0 AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-1851
SELECT - MAX ( col0 ) FROM tab1 AS cor0 WHERE - 48 BETWEEN CAST ( NULL AS REAL ) * - col0 + + col1 / col0 AND NULL
----
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1852
SELECT ALL + + CAST( NULL AS DECIMAL ) * 13 * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + + CAST ( NULL AS REAL ) * 13 * 50 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-1853
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE 44 IS NOT NULL
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1854
SELECT + CAST( + 48 AS SIGNED ) + col0 FROM tab1 AS cor0
----
133
139
99
skipif mysql # not compatible
query I rowsort label-1854
SELECT + CAST ( + 48 AS INTEGER ) + col0 FROM tab1 AS cor0
----
133
139
99
query I rowsort
SELECT col1 FROM tab1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 12 * + col0 * + col2 + - + col0 + + 83 FROM tab2
----
-12659
-30701
-52192
query I rowsort
SELECT ALL col1 - - col1 AS col2 FROM tab1
----
10
28
94
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1858
SELECT ALL col2 + + - 72 * CAST( - col2 AS SIGNED ) FROM tab2
----
1679
2920
4234
skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL col2 + + - 72 * CAST ( - col2 AS INTEGER ) FROM tab2
----
1679
2920
4234
query I rowsort
SELECT DISTINCT 97 - col1 FROM tab1
----
50
83
92
query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + ( - + col2 ) AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NULL <> - ( 21 )
----
query II rowsort
SELECT col1 AS col2, - col1 * col2 AS col0 FROM tab1 AS cor0
----
14
-1344
47
-3196
5
-295
query I rowsort
SELECT col2 * - - col1 FROM tab0 cor0
----
210
3807
99
query I rowsort
SELECT ALL + col0 * + + col0 * + + col2 AS col1 FROM tab0 AS cor0
----
10575
75690
931491
query I rowsort
SELECT DISTINCT 7 * + col1 FROM tab0 AS cor0
----
147
567
7
query II rowsort
SELECT - 98, - col2 AS col2 FROM tab0
----
-98
-10
-98
-47
-98
-99
onlyif mysql # aggregate syntax:
query I rowsort label-1867
SELECT ALL MAX( ALL + 55 ) FROM tab0
----
55
skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL MAX ( ALL + 55 ) FROM tab0
----
55
onlyif mysql # aggregate syntax:
query I rowsort label-1868
SELECT MIN( + ( + 63 ) ) FROM tab1
----
63
skipif mysql # not compatible
query I rowsort label-1868
SELECT MIN ( + ( + 63 ) ) FROM tab1
----
63
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 <= NULL
----
query I rowsort
SELECT - + col0 * + 93 * col2 AS col1 FROM tab2 AS cor0
----
-238080
-404550
-98394
onlyif mysql # aggregate syntax:
query I rowsort label-1871
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL ( + 48 ) * col2 AS col0 FROM tab1 AS cor0
----
2832
3264
4608
query II rowsort
SELECT + col1 AS col0, 40 FROM tab0 AS cor0 WHERE NOT col0 * + col1 IS NULL
----
1
40
21
40
81
40
onlyif mysql # DIV for integer division:
query I rowsort label-1874
SELECT + 24 * col0 DIV + col0 FROM tab1 cor0
----
24
24
24
skipif mysql # not compatible
query I rowsort label-1874
SELECT + 24 * col0 / + col0 FROM tab1 cor0
----
24
24
24
onlyif mysql # DIV for integer division:
query I rowsort label-1875
SELECT DISTINCT - 46 DIV col1 DIV col0 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT - 46 / col1 / col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 29 * - ( + 70 ) FROM tab0 AS cor0
----
2030
2030
2030
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 > + 26 * + col2 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - 93 FROM tab2 cor0
----
-93
-93
-93
query II rowsort
SELECT ALL - 60, + col1 FROM tab2 AS cor0
----
-60
51
-60
67
-60
77
query II rowsort
SELECT ALL - + col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
onlyif mysql # aggregate syntax:
query II rowsort label-1881
SELECT COUNT( * ), + 33 AS col1 FROM tab0, tab1 AS cor0
----
9
33
skipif mysql # not compatible
query II rowsort label-1881
SELECT COUNT ( * ), + 33 AS col1 FROM tab0, tab1 AS cor0
----
9
33
query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-1883
SELECT ALL col0 * + CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91
skipif mysql # not compatible
query II rowsort label-1883
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 39
----
onlyif mysql # aggregate syntax:
query I rowsort label-1885
SELECT DISTINCT + - SUM( 67 ) FROM tab0 AS cor0
----
-201
skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - SUM ( 67 ) FROM tab0 AS cor0
----
-201
query I rowsort
SELECT DISTINCT + col2 + - - col0 AS col0 FROM tab1 AS cor0
----
144
147
159
onlyif mysql # aggregate syntax:
query I rowsort label-1887
SELECT - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
-6
skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
-6
query I rowsort
SELECT ALL - col2 + + - col2 FROM tab1 AS cor0
----
-118
-136
-192
query I rowsort
SELECT - + ( + - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
141
142
97
onlyif mysql # DIV for integer division:
query II rowsort label-1890
SELECT - + col0 AS col0, col1 DIV col2 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0
skipif mysql # not compatible
query II rowsort label-1890
SELECT - + col0 AS col0, col1 / col2 FROM tab0 AS cor0
----
-15
1
-87
2
-97
0
onlyif mysql # aggregate syntax:
query I rowsort label-1891
SELECT - MIN( - + 43 ) FROM tab1 AS cor0
----
43
skipif mysql # not compatible
query I rowsort label-1891
SELECT - MIN ( - + 43 ) FROM tab1 AS cor0
----
43
onlyif mysql # aggregate syntax:
query I rowsort label-1892
SELECT ALL - 2 + + COUNT( * ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL - 2 + + COUNT ( * ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - 73 + + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-4
31
60
query II rowsort
SELECT ALL - 33 + 11 + + + col2 * + ( + col1 ) + + col1 AS col1, col2 * col1 AS col1 FROM tab2 cor0
----
1202
1173
3135
3080
3931
3886
onlyif mysql # aggregate syntax:
query I rowsort label-1895
SELECT DISTINCT - 20 * + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0
----
-57
skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - 20 * + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0
----
-57
query I rowsort
SELECT col0 - - col2 - + col0 * col0 AS col1 FROM tab1
----
-2454
-7081
-8122
onlyif mysql # DIV for integer division:
query I rowsort label-1897
SELECT col1 DIV - - col1 - + col2 AS col2 FROM tab2
----
-22
-39
-57
skipif mysql # not compatible
query I rowsort label-1897
SELECT col1 / - - col1 - + col2 AS col2 FROM tab2
----
-22
-39
-57
query I rowsort
SELECT 90 - - 60 AS col1 FROM tab1
----
150
150
150
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 76 < NULL
----
query II rowsort
SELECT ALL col1 - - col2 AS col1, + col1 AS col2 FROM tab1
----
110
14
115
47
64
5
query I rowsort
SELECT ALL col0 * 59 FROM tab0
----
5133
5723
885
onlyif mysql # aggregate syntax:
query II rowsort label-1902
SELECT ALL - COUNT( * ), COUNT( ALL col0 ) * ( + 37 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0
0
skipif mysql # not compatible
query II rowsort label-1902
SELECT ALL - COUNT ( * ), COUNT ( ALL col0 ) * ( + 37 ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= NULL
----
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-1903
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-1904
SELECT 54 AS col0, + COUNT( DISTINCT + col2 ) FROM tab2
----
54
3
skipif mysql # not compatible
query II rowsort label-1904
SELECT 54 AS col0, + COUNT ( DISTINCT + col2 ) FROM tab2
----
54
3
onlyif mysql # aggregate syntax:
query I rowsort label-1905
SELECT ALL + COUNT( * ) * - SUM( DISTINCT - 93 ) AS col1 FROM tab2
----
279
skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT - 93 ) AS col1 FROM tab2
----
279
query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 * col1 / - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1908
SELECT DISTINCT - - ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1908
SELECT DISTINCT - - ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-1909
SELECT ALL + MAX( + - ( + col0 ) ) FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + MAX ( + - ( + col0 ) ) FROM tab1 AS cor0
----
-51
query I rowsort
SELECT 99 * col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col1 * + - col1 + 39 FROM tab2 AS cor0
----
2640
4528
5968
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-1913
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0, + 58 FROM tab2
----
NULL
58
skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0, + 58 FROM tab2
----
NULL
58
query I rowsort
SELECT + 31 * - 99 * - + col2 FROM tab1
----
181071
208692
294624
query I rowsort
SELECT DISTINCT col0 * + 73 FROM tab0
----
1095
6351
7081
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1916
SELECT DISTINCT 80 DIV COUNT( * ) AS col1 FROM tab1
----
26
skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 80 / COUNT ( * ) AS col1 FROM tab1
----
26
query II rowsort
SELECT ALL col2 AS col0, 85 + + 44 FROM tab2
----
23
129
40
129
58
129
onlyif mysql # aggregate syntax:
query I rowsort label-1918
SELECT DISTINCT - 98 / SUM( + - col2 ) AS col0 FROM tab2 WHERE NOT - + 2 + + col0 * - col0 NOT BETWEEN 44 + + 78 AND + - col1
----
NULL
skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT - 98 / SUM ( + - col2 ) AS col0 FROM tab2 WHERE NOT - + 2 + + col0 * - col0 NOT BETWEEN 44 + + 78 AND + - col1
----
NULL
query I rowsort
SELECT ALL col1 * 22 AS col0 FROM tab1
----
1034
110
308
onlyif mysql # aggregate syntax:
query I rowsort label-1920
SELECT 53 * + COUNT( * ) AS col2 FROM tab1
----
159
skipif mysql # not compatible
query I rowsort label-1920
SELECT 53 * + COUNT ( * ) AS col2 FROM tab1
----
159
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1921
SELECT ALL col1 * - - CAST( col2 AS SIGNED ) FROM tab0
----
210
3807
99
skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL col1 * - - CAST ( col2 AS INTEGER ) FROM tab0
----
210
3807
99
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1922
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2
----
-1
query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1924
SELECT ALL + 48 - + COUNT( * ) + + AVG ( + 37 ) col1 FROM tab2 WHERE NOT + 79 IS NOT NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1924
SELECT ALL + 48 - + COUNT ( * ) + + AVG ( + 37 ) col1 FROM tab2 WHERE NOT + 79 IS NOT NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab1 cor0
----
4
4
4
query II rowsort
SELECT DISTINCT + col0, + col0 * - 35 * - col0 AS col1 FROM tab1 AS cor0
----
51
91035
85
252875
91
289835
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 * + - ( - col0 ) col2 FROM tab2 AS cor0
----
2392
4992
5100
query I rowsort
SELECT + col1 + + - col0 * ( - col1 ) FROM tab1 AS cor0 WHERE NULL = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1929
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-1930
SELECT ALL - - col0 DIV + - 2 AS col2 FROM tab0 AS cor0
----
-43
-48
-7
skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL - - col0 / + - 2 AS col2 FROM tab0 AS cor0
----
-43
-48
-7
onlyif mysql # aggregate syntax:
query II rowsort label-1931
SELECT + + COUNT( * ) + 4 AS col2, COUNT( * ) * - MIN( DISTINCT + 65 ) AS col1 FROM tab1 cor0
----
7
-195
skipif mysql # not compatible
query II rowsort label-1931
SELECT + + COUNT ( * ) + 4 AS col2, COUNT ( * ) * - MIN ( DISTINCT + 65 ) AS col1 FROM tab1 cor0
----
7
-195
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + - 36 ) <> NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1933
SELECT ( + + COUNT( * ) ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1933
SELECT ( + + COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT 62 FROM tab2 cor0 WHERE - 0 IS NOT NULL AND NOT NULL IS NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1936
SELECT DISTINCT + - COUNT( * ) + - SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
-124
skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + - COUNT ( * ) + - SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
-124
query I rowsort
SELECT ALL col0 + - 75 + - 83 * - 78 AS col1 FROM tab2
----
6445
6463
6474
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-1938
SELECT CAST( NULL AS SIGNED ) + + 10 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1938
SELECT CAST ( NULL AS INTEGER ) + + 10 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-1939
SELECT 52 + + - COUNT( - 63 ), + 11 col0 FROM tab2
----
49
11
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1939
SELECT 52 + + - COUNT ( - 63 ), + 11 col0 FROM tab2
----
49
11
onlyif mysql # aggregate syntax:
query I rowsort label-1940
SELECT + COUNT( * ) + - - ( - 15 ) + ( COUNT( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( * ) + - - ( - 15 ) + ( COUNT ( * ) ) AS col1 FROM tab1, tab1 AS cor0
----
3
query II rowsort
SELECT 85 AS col0, 83 FROM tab1
----
85
83
85
83
85
83
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1943
SELECT - COUNT( * ) * ( - - MAX( - col2 ) ) AS col0 FROM tab1 AS cor0
----
177
skipif mysql # not compatible
query I rowsort label-1943
SELECT - COUNT ( * ) * ( - - MAX ( - col2 ) ) AS col0 FROM tab1 AS cor0
----
177
query II rowsort
SELECT - + col0 AS col2, + 47 AS col1 FROM tab0 AS cor0
----
-15
47
-87
47
-97
47
query II rowsort
SELECT DISTINCT - 49, 73 AS col2 FROM tab1 AS cor0
----
-49
73
query I rowsort
SELECT 95 + - 66 FROM tab0
----
29
29
29
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 39 > NULL
----
query I rowsort
SELECT col2 FROM tab1 WHERE - 49 NOT BETWEEN NULL AND + col1
----
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT col2 / - col0 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT 91 >= 41 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col0 + - 3 FROM tab1
----
-54
-88
-94
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1953
SELECT ALL - COUNT( * ) - 54 FROM tab2 WHERE + ( 47 ) * + col2 IS NOT NULL
----
-57
skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - COUNT ( * ) - 54 FROM tab2 WHERE + ( 47 ) * + col2 IS NOT NULL
----
-57
onlyif mysql # aggregate syntax:
query I rowsort label-1954
SELECT COUNT( * ) * 35 FROM tab0
----
105
skipif mysql # not compatible
query I rowsort label-1954
SELECT COUNT ( * ) * 35 FROM tab0
----
105
onlyif mysql # aggregate syntax:
query I rowsort label-1955
SELECT - 31 * - COUNT( * ) AS col0 FROM tab2
----
93
skipif mysql # not compatible
query I rowsort label-1955
SELECT - 31 * - COUNT ( * ) AS col0 FROM tab2
----
93
query I rowsort
SELECT ALL 10 * + col0 AS col0 FROM tab1
----
510
850
910
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-1957
SELECT ALL + 80 DIV + 44 + CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab2
----
-76
skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + 80 / + 44 + CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab2
----
-76
query III rowsort
SELECT * FROM tab2 WHERE + col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 0 + 5 FROM tab1
----
5
5
5
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-1961
SELECT - 8 DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1961
SELECT - 8 / - COUNT ( * ) col1 FROM tab1 AS cor0
----
2
query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 / 56 - + col0 <> col1
----
10
47
99
query I rowsort
SELECT DISTINCT - 47 + + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT DISTINCT - ( + 96 ) - + 54 AS col2 FROM tab1
----
-150
query I rowsort
SELECT col0 + col0 AS col0 FROM tab1 WHERE ( - 48 ) IS NOT NULL
----
102
170
182
query I rowsort
SELECT DISTINCT col2 - + 36 FROM tab2
----
-13
22
4
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= ( 65 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-1968
SELECT DISTINCT - col0 DIV + 19 AS col0 FROM tab0
----
-4
-5
0
skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - col0 / + 19 AS col0 FROM tab0
----
-4
-5
0
onlyif mysql # DIV for integer division:
query I rowsort label-1969
SELECT col0 DIV col2 * col1 FROM tab1
----
0
47
5
skipif mysql # not compatible
query I rowsort label-1969
SELECT col0 / col2 * col1 FROM tab1
----
0
47
5
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
2601
7225
8281
query I rowsort
SELECT + ( + 41 ) AS col0 FROM tab1
----
41
41
41
query I rowsort
SELECT ALL + ( + + col2 ) FROM tab1
----
59
68
96
query III rowsort
SELECT ALL * FROM tab1 WHERE 20 * + col2 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-1975
SELECT + ( COUNT( col1 ) ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-1975
SELECT + ( COUNT ( col1 ) ) AS col0 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-1976
SELECT + MIN( - + 27 ) FROM tab2
----
-27
skipif mysql # not compatible
query I rowsort label-1976
SELECT + MIN ( - + 27 ) FROM tab2
----
-27
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1978
SELECT - COUNT( col0 ) * - 13 col2 FROM tab2 AS cor0
----
39
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT - COUNT ( col0 ) * - 13 col2 FROM tab2 AS cor0
----
39
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1979
SELECT col0 + 34 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) <= NULL
----
skipif mysql # not compatible
query I rowsort label-1979
SELECT col0 + 34 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS REAL ) ) <= NULL
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 20, - 2 - - + col1 col0 FROM tab1
----
20
12
20
3
20
45
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * - col2 + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - + col0 + - 48 FROM tab2 AS cor0
----
-112
-123
-94
query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 <= + 79
----
query I rowsort
SELECT DISTINCT - 75 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-1986
SELECT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-1986
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT + - 20 + + col2 + ( + 83 ) FROM tab0 AS cor0
----
110
162
73
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-1988
SELECT ALL ( CAST( NULL AS DECIMAL ) ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL ( CAST ( NULL AS REAL ) ) + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - 75 + - - col0 * - 87 FROM tab0 AS cor0
----
-1365
-7557
-8417
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-1991
SELECT - + MIN( + col2 ) FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-1991
SELECT - + MIN ( + col2 ) FROM tab1 AS cor0
----
-59
query I rowsort
SELECT ALL - + col2 + + col2 + - 21 FROM tab2 AS cor0
----
-21
-21
-21
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 80 + + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-1995
SELECT + MIN( DISTINCT - col1 ) AS col2 FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-1995
SELECT + MIN ( DISTINCT - col1 ) AS col2 FROM tab0
----
-81
query I rowsort
SELECT - 33 + 24 + 30 AS col0 FROM tab1
----
21
21
21
query I rowsort
SELECT ALL col0 + - - col2 AS col2 FROM tab2
----
104
133
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + + - col1 col0 FROM tab1
----
37
4
46
onlyif mysql # aggregate syntax:
query I rowsort label-1999
SELECT ALL + COUNT( * ) col2 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1999
SELECT ALL + COUNT ( * ) col2 FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2000
SELECT DISTINCT + COUNT( ALL col2 ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT + COUNT ( ALL col2 ) AS col0 FROM tab2
----
3
query III rowsort
SELECT * FROM tab1 WHERE NULL > + + 3
----
query I rowsort
SELECT ALL - ( - + ( + col1 ) ) AS col0 FROM tab1
----
14
47
5
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 / + col2 ) BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2004
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-2004
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2005
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col0 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-2005
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col0 IS NOT NULL
----
query I rowsort
SELECT ALL - col1 - 91 - - - col2 + - + col1 AS col1 FROM tab2
----
-216
-283
-285
query I rowsort
SELECT 50 * + + 77 AS col2 FROM tab2
----
3850
3850
3850
query I rowsort
SELECT ALL + col1 * + 61 AS col0 FROM tab2 AS cor0
----
3111
4087
4697
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2009
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 IN ( - col1 * - col0 * + CAST( NULL AS SIGNED ) )
----
0
skipif mysql # not compatible
query I rowsort label-2009
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - 72 IN ( - col1 * - col0 * + CAST ( NULL AS INTEGER ) )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2010
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT 30 - col2 / 17 NOT BETWEEN ( - - col2 + col1 * - 90 ) AND CAST( + col0 AS SIGNED )
----
23
40
58
skipif mysql # not compatible
query I rowsort label-2010
SELECT + col2 AS col2 FROM tab2 cor0 WHERE NOT 30 - col2 / 17 NOT BETWEEN ( - - col2 + col1 * - 90 ) AND CAST ( + col0 AS INTEGER )
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-2011
SELECT COUNT( * ) AS col1 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-2011
SELECT COUNT ( * ) AS col1 FROM tab0 cor0
----
3
query II rowsort
SELECT - col0, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / + + col0 NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2014
SELECT DISTINCT 68 DIV SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 68 / SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT 59 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2016
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 * + - col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2018
SELECT - 43 DIV col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0
skipif mysql # not compatible
query I rowsort label-2018
SELECT - 43 / col1 AS col2 FROM tab0 AS cor0
----
-2
-43
0
query I rowsort
SELECT DISTINCT + - 61 FROM tab0, tab0 AS cor0 WHERE NOT - 25 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab0, tab2 AS cor0
----
-24
query I rowsort
SELECT ALL + + ( - col1 ) * - 45 AS col1 FROM tab2 WHERE ( + 69 ) = 78
----
onlyif mysql # aggregate syntax:
query I rowsort label-2022
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-2022
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----
0
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL < - 48
----
onlyif mysql # aggregate syntax:
query I rowsort label-2024
SELECT DISTINCT + COUNT( * ) * + - 81 FROM tab0
----
-243
skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + COUNT ( * ) * + - 81 FROM tab0
----
-243
query I rowsort
SELECT col0 * + 46 AS col0 FROM tab2
----
2116
2944
3450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, 97 FROM tab1 AS cor0
----
14
97
47
97
5
97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2027
SELECT ALL 99 DIV - - MIN( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL 99 / - - MIN ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
-1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2028
SELECT DISTINCT - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81
skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + - 9 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 - + col1 IS NULL
----
-9
-9
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2031
SELECT + MIN( - + CAST( - col1 AS SIGNED ) ) AS col0, 55 FROM tab2
----
51
55
skipif mysql # not compatible
query II rowsort label-2031
SELECT + MIN ( - + CAST ( - col1 AS INTEGER ) ) AS col0, 55 FROM tab2
----
51
55
onlyif mysql # aggregate syntax:
query I rowsort label-2032
SELECT + ( + - COUNT( * ) ) + + 41 AS col1 FROM tab2
----
38
skipif mysql # not compatible
query I rowsort label-2032
SELECT + ( + - COUNT ( * ) ) + + 41 AS col1 FROM tab2
----
38
onlyif mysql # DIV for integer division:
query I rowsort label-2033
SELECT + 40 + 64 - + - col0 DIV + col2 FROM tab2 AS cor0
----
105
105
106
skipif mysql # not compatible
query I rowsort label-2033
SELECT + 40 + 64 - + - col0 / + col2 FROM tab2 AS cor0
----
105
105
106
onlyif mysql # aggregate syntax:
query I rowsort label-2034
SELECT + + 7 + COUNT( * ) FROM tab2 cor0
----
10
skipif mysql # not compatible
query I rowsort label-2034
SELECT + + 7 + COUNT ( * ) FROM tab2 cor0
----
10
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + - 76 * + 22 ) > col1 * - - ( - 56 ) * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 <= ( - + col1 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( ( + col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + 93 + col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 34, ( - col1 ) )
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE + 32 + - col1 IS NULL
----
query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE - 15 - - + col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - 79 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - - 33 FROM tab0 WHERE NULL >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2043
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 * 57 + - - col0 < 11
----
-3
skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 * 57 + - - col0 < 11
----
-3
query I rowsort
SELECT - ( - col1 ) * - + 86 + - 43 AS col2 FROM tab1
----
-1247
-4085
-473
query I rowsort
SELECT + 36 * - 56 FROM tab0
----
-2016
-2016
-2016
query I rowsort
SELECT ALL ( 10 ) AS col2 FROM tab0
----
10
10
10
query II rowsort
SELECT + col1, col1 * 91 AS col0 FROM tab0
----
1
91
21
1911
81
7371
query I rowsort
SELECT ( - 55 ) FROM tab2
----
-55
-55
-55
query III rowsort
SELECT * FROM tab2 WHERE - col1 <> - 25 + + + 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 22 - - - 11 FROM tab2
----
11
11
11
onlyif mysql # aggregate syntax:
query I rowsort label-2051
SELECT + COUNT( * ) - - COUNT( * ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-2051
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab2
----
6
query I rowsort
SELECT + 71 + + + 48 AS col0 FROM tab1 AS cor0
----
119
119
119
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2053
SELECT + 61 * + CAST( - + 35 AS SIGNED ) * col0 + + + col2 + + 97 DIV 48 FROM tab2 AS cor0
----
-136598
-160065
-98185
skipif mysql # not compatible
query I rowsort label-2053
SELECT + 61 * + CAST ( - + 35 AS INTEGER ) * col0 + + + col2 + + 97 / 48 FROM tab2 AS cor0
----
-136598
-160065
-98185
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab0 WHERE - ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL col0 - + + col2 FROM tab2
----
17
23
24
onlyif mysql # aggregate syntax:
query I rowsort label-2058
SELECT DISTINCT 48 * + + COUNT( * ) AS col2 FROM tab0
----
144
skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT 48 * + + COUNT ( * ) AS col2 FROM tab0
----
144
onlyif mysql # DIV for integer division:
query I rowsort label-2059
SELECT ALL + 30 DIV - ( col2 ) FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL + 30 / - ( col2 ) FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT + col0 * + - 63 * + col0 AS col1 FROM tab2 cor0
----
-133308
-258048
-354375
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 26
----
query I rowsort
SELECT ALL 27 * + col0 FROM tab1 AS cor0
----
1377
2295
2457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 37 col1 FROM tab0 AS cor0
----
-37
-37
-37
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 56 < - 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT - col2, col0 AS col1 FROM tab0
----
-10
87
-47
15
-99
97
query II rowsort
SELECT 80 AS col2, col0 AS col1 FROM tab1
----
80
51
80
85
80
91
onlyif mysql # aggregate syntax:
query I rowsort label-2067
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-2068
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab0
----
1
query II rowsort
SELECT col0 AS col1, 70 - - - col0 FROM tab0
----
15
55
87
-17
97
-27
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL >= 16 + + 5 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2071
SELECT ALL + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-2072
SELECT ALL col2 DIV - + col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col2 / - + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 + col0 + col1 * - col1 FROM tab0 AS cor0
----
-1
-441
-6561
query I rowsort
SELECT ALL 55 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT + 28 - col0, - 64 + - col0 AS col2 FROM tab0 AS cor0
----
-59
-151
-69
-161
13
-79
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2076
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 + - + col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2077
SELECT 76 * + 3 + MIN( + + col1 ) FROM tab0 AS cor0
----
229
skipif mysql # not compatible
query I rowsort label-2077
SELECT 76 * + 3 + MIN ( + + col1 ) FROM tab0 AS cor0
----
229
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2078
SELECT DISTINCT + - col0 + + + 3 - + col0 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + - col0 + + + 3 - + col0 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2079
SELECT col0 * + CAST( - - col1 AS SIGNED ) + + + 42 AS col0 FROM tab1 AS cor0
----
4319
467
756
skipif mysql # not compatible
query I rowsort label-2079
SELECT col0 * + CAST ( - - col1 AS INTEGER ) + + + 42 AS col0 FROM tab1 AS cor0
----
4319
467
756
onlyif mysql # aggregate syntax:
query I rowsort label-2080
SELECT + + COUNT( * ) + - 59 FROM tab0 AS cor0
----
-56
skipif mysql # not compatible
query I rowsort label-2080
SELECT + + COUNT ( * ) + - 59 FROM tab0 AS cor0
----
-56
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2081
SELECT + COUNT( * ) + 40 + + ( - COUNT( * ) ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) <> + col2
----
40
skipif mysql # not compatible
query I rowsort label-2081
SELECT + COUNT ( * ) + 40 + + ( - COUNT ( * ) ) FROM tab0 WHERE + CAST ( NULL AS REAL ) <> + col2
----
40
onlyif mysql # aggregate syntax:
query I rowsort label-2082
SELECT ALL + COUNT( * ) + + MAX( DISTINCT - col1 ) FROM tab1
----
-2
skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL + COUNT ( * ) + + MAX ( DISTINCT - col1 ) FROM tab1
----
-2
query I rowsort
SELECT - col2 * - col0 + col1 + 10 FROM tab1
----
4920
5030
6245
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * + + ( + - col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE - 45 >= NULL
----
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 * + - 76 col0 FROM tab0 AS cor0
----
-5396
-5396
-5396
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2088
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * 38 * 34 > + - CAST( + col1 AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-2088
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * 38 * 34 > + - CAST ( + col1 AS REAL )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( - col0 ) * - - col0 ) NOT IN ( 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT ALL - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT - - ( 49 ) AS col2 FROM tab1 AS cor0
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 * + - 18 FROM tab0 AS cor0
----
-1
-1782
-21
-180
-81
-846
onlyif mysql # DIV for integer division:
query I rowsort label-2094
SELECT col2 DIV + + col0 * - + 48 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2094
SELECT col2 / + + col0 * - + 48 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab2 AS cor0
----
-64
-64
-64
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2096
SELECT DISTINCT col1 AS col2, 12 * CAST( NULL AS SIGNED ) - - 90 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT col1 AS col2, 12 * CAST ( NULL AS INTEGER ) - - 90 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
query I rowsort
SELECT - + 2 * - - 70 FROM tab0 AS cor0
----
-140
-140
-140
query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab2 AS cor0 WHERE + col1 + - col1 IN ( + - col2, + col0 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-2099
SELECT - 76 AS col1, COUNT( * ) + + 48 AS col0 FROM tab2 AS cor0
----
-76
51
skipif mysql # not compatible
query II rowsort label-2099
SELECT - 76 AS col1, COUNT ( * ) + + 48 AS col0 FROM tab2 AS cor0
----
-76
51
onlyif mysql # aggregate syntax:
query II rowsort label-2100
SELECT DISTINCT + + 90 * + MAX( + col2 ) AS col1, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
8910
-3
skipif mysql # not compatible
query II rowsort label-2100
SELECT DISTINCT + + 90 * + MAX ( + col2 ) AS col1, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
8910
-3
onlyif mysql # aggregate syntax:
query I rowsort label-2101
SELECT + + SUM( + 48 ) AS col2 FROM tab0 AS cor0
----
144
skipif mysql # not compatible
query I rowsort label-2101
SELECT + + SUM ( + 48 ) AS col2 FROM tab0 AS cor0
----
144
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 95 + + 27 + - + ( col1 )
----
query I rowsort
SELECT ALL col0 * - 73 * - + col2 FROM tab1
----
357408
366095
451724
query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + - 8 - col2 >= + ( + col1 ) * + - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2105
SELECT + - 92 FROM tab0 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
-92
-92
-92
skipif mysql # not compatible
query I rowsort label-2105
SELECT + - 92 FROM tab0 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-92
-92
-92
onlyif mysql # aggregate syntax:
query I rowsort label-2106
SELECT COUNT( * ) * MAX( + + 65 ) FROM tab0
----
195
skipif mysql # not compatible
query I rowsort label-2106
SELECT COUNT ( * ) * MAX ( + + 65 ) FROM tab0
----
195
query I rowsort
SELECT ALL col0 + + col0 * - col2 FROM tab2
----
-1012
-2496
-4275
query II rowsort
SELECT ALL + col2 AS col0, 40 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND + 90
----
onlyif mysql # DIV for integer division:
query I rowsort label-2109
SELECT DISTINCT col0 + - 53 DIV + - col1 AS col0 FROM tab1 AS cor0
----
54
92
95
skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT col0 + - 53 / + - col1 AS col0 FROM tab1 AS cor0
----
54
92
95
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 63 * col1 * 87 / - + 39 * - + col0 IS NOT NULL
----
query I rowsort
SELECT 19 + - - col0 FROM tab2 AS cor0
----
65
83
94
query I rowsort
SELECT ALL - - col1 + - + 41 * - col0 AS col2 FROM tab2 AS cor0
----
1937
2701
3142
query I rowsort
SELECT + 77 + - col2 FROM tab1 AS cor0
----
-19
18
9
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query II rowsort label-2114
SELECT - 80 + + MAX( DISTINCT col0 ) AS col0, COUNT( * ) + + + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
17
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2114
SELECT - 80 + + MAX ( DISTINCT col0 ) AS col0, COUNT ( * ) + + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
17
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2115
SELECT - COUNT( * ) + 65 FROM tab1 AS cor0
----
62
skipif mysql # not compatible
query I rowsort label-2115
SELECT - COUNT ( * ) + 65 FROM tab1 AS cor0
----
62
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2116
SELECT + 85 + + COUNT( * ) DIV + ( - 73 ) AS col0 FROM tab2 AS cor0
----
85
skipif mysql # not compatible
query I rowsort label-2116
SELECT + 85 + + COUNT ( * ) / + ( - 73 ) AS col0 FROM tab2 AS cor0
----
85
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * - 6 * - col1 <> NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND + 1
----
query I rowsort
SELECT ALL 71 + - col0 AS col0 FROM tab0 cor0
----
-16
-26
56
query I rowsort
SELECT DISTINCT - ( - - 42 ) + 43 - - col0 * + + col0 FROM tab0
----
226
7570
9410
query I rowsort
SELECT ALL + 45 * + col1 + col1 FROM tab2
----
2346
3082
3542
query I rowsort
SELECT ALL col0 - + 84 * col0 FROM tab1
----
-4233
-7055
-7553
query III rowsort
SELECT * FROM tab2 WHERE + - ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2124
SELECT - CAST( NULL AS SIGNED ) - - 16 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2124
SELECT - CAST ( NULL AS INTEGER ) - - 16 AS col2 FROM tab0
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT col0 - + - 98, col1 AS col0 FROM tab0
----
113
81
185
21
195
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 60 AS col0 FROM tab2
----
46
-60
64
-60
75
-60
query III rowsort
SELECT * FROM tab1 WHERE - 12 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2128
SELECT SUM( ALL + col2 ) - + - COUNT( * ) FROM tab0
----
159
skipif mysql # not compatible
query I rowsort label-2128
SELECT SUM ( ALL + col2 ) - + - COUNT ( * ) FROM tab0
----
159
onlyif mysql # aggregate syntax:
query I rowsort label-2129
SELECT DISTINCT MIN( 72 ) AS col0 FROM tab1 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT MIN ( 72 ) AS col0 FROM tab1 AS cor0
----
72
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 >= 58 * - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE + - col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2133
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
-97
query I rowsort
SELECT DISTINCT + 95 * - 46 - + col0 AS col0 FROM tab2 AS cor0
----
-4416
-4434
-4445
query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE NOT 7 + + 74 <= - 78 * + - 68 + - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 col0 FROM tab2 cor0
----
71
onlyif mysql # aggregate syntax:
query I rowsort label-2137
SELECT MAX( + + col0 ) AS col0 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-2137
SELECT MAX ( + + col0 ) AS col0 FROM tab0 AS cor0
----
97
onlyif mysql # aggregate syntax:
query I rowsort label-2138
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 90
----
0
skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 90
----
0
query I rowsort
SELECT 9 AS col2 FROM tab2 cor0
----
9
9
9
onlyif mysql # aggregate syntax:
query I rowsort label-2140
SELECT DISTINCT + SUM( - + col0 ) col0 FROM tab1
----
-227
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2140
SELECT DISTINCT + SUM ( - + col0 ) col0 FROM tab1
----
-227
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2141
SELECT - - ( + + 54 ) FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-2141
SELECT - - ( + + 54 ) FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2142
SELECT DISTINCT MIN( - col0 ) FROM tab1
----
-91
skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT MIN ( - col0 ) FROM tab1
----
-91
query II rowsort
SELECT DISTINCT col0 AS col2, - col0 + + col2 FROM tab0
----
15
32
87
-77
97
2
query I rowsort
SELECT - col0 * + + col1 * - col2 * + col0 AS col1 FROM tab0
----
1589490
856575
931491
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2145
SELECT DISTINCT 80 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT 80 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab1
----
21
query I rowsort
SELECT + col2 * 31 AS col2 FROM tab0
----
1457
3069
310
onlyif mysql # aggregate syntax:
query I rowsort label-2148
SELECT DISTINCT + ( - MAX( + col1 ) ) FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + ( - MAX ( + col1 ) ) FROM tab1
----
-47
query I rowsort
SELECT DISTINCT ( - col0 ) + - - 65 FROM tab0
----
-22
-32
50
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2150
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 + - col1 col0 FROM tab1 AS cor0
----
-41
-50
-83
onlyif mysql # aggregate syntax:
query I rowsort label-2152
SELECT DISTINCT - 31 + - COUNT( - - 70 ) FROM tab0 AS cor0
----
-34
skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - 31 + - COUNT ( - - 70 ) FROM tab0 AS cor0
----
-34
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2153
SELECT CAST( 75 AS SIGNED ) FROM tab0 AS cor0
----
75
75
75
skipif mysql # not compatible
query I rowsort label-2153
SELECT CAST ( 75 AS INTEGER ) FROM tab0 AS cor0
----
75
75
75
onlyif mysql # aggregate syntax:
query I rowsort label-2154
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
query III rowsort
SELECT * FROM tab0 WHERE - col2 + + + col2 IS NULL
----
query I rowsort
SELECT DISTINCT + col0 * + 53 FROM tab1 AS cor0
----
2703
4505
4823
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab0 AS cor0 WHERE - col2 BETWEEN col2 + + - 80 + + col2 AND + - 3 / + 67
----
-72
onlyif mysql # aggregate syntax:
query I rowsort label-2158
SELECT DISTINCT + MAX( DISTINCT - 93 ) FROM tab0 cor0
----
-93
skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + MAX ( DISTINCT - 93 ) FROM tab0 cor0
----
-93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2159
SELECT DISTINCT + + CAST( col2 AS SIGNED ) + - + col0 FROM tab2 AS cor0
----
-17
-23
-24
skipif mysql # not compatible
query I rowsort label-2159
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) + - + col0 FROM tab2 AS cor0
----
-17
-23
-24
query I rowsort
SELECT + col1 + - 31 + - col2 + + col0 * + 6 FROM tab2 AS cor0
----
273
390
428
query I rowsort
SELECT + col2 + - + 76 FROM tab0 AS cor0
----
-29
-66
23
query I rowsort
SELECT ALL - col2 + + 4 AS col0 FROM tab1 AS cor0
----
-55
-64
-92
onlyif mysql # aggregate syntax:
query I rowsort label-2163
SELECT DISTINCT + - COUNT( * ) - - 12 AS col1 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + - COUNT ( * ) - - 12 AS col1 FROM tab0 AS cor0
----
9
query I rowsort
SELECT ALL col0 + + + col0 AS col1 FROM tab1
----
102
170
182
query I rowsort
SELECT + 65 + - col0 FROM tab0
----
-22
-32
50
query I rowsort
SELECT DISTINCT + 12 + - col1 * - col2 AS col0 FROM tab0
----
111
222
3819
onlyif mysql # aggregate syntax:
query I rowsort label-2167
SELECT DISTINCT COUNT( * ) col0 FROM tab1
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2167
SELECT DISTINCT COUNT ( * ) col0 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2168
SELECT ALL + COUNT( * ) * - 57 FROM tab2 AS cor0
----
-171
skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + COUNT ( * ) * - 57 FROM tab2 AS cor0
----
-171
query I rowsort
SELECT DISTINCT + col2 * - 33 FROM tab1 AS cor0
----
-1947
-2244
-3168
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2170
SELECT + col0 * - CAST( + CAST( 9 AS SIGNED ) AS SIGNED ) * + + col1 AS col2 FROM tab2 AS cor0
----
-21114
-44352
-45225
skipif mysql # not compatible
query I rowsort label-2170
SELECT + col0 * - CAST ( + CAST ( 9 AS INTEGER ) AS INTEGER ) * + + col1 AS col2 FROM tab2 AS cor0
----
-21114
-44352
-45225
query I rowsort
SELECT DISTINCT 5 * 69 FROM tab1 AS cor0
----
345
onlyif mysql # aggregate syntax:
query II rowsort label-2172
SELECT ALL - + MIN( ( - 68 ) ), 97 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
68
-291
skipif mysql # not compatible
query II rowsort label-2172
SELECT ALL - + MIN ( ( - 68 ) ), 97 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
68
-291
onlyif mysql # aggregate syntax:
query II rowsort label-2173
SELECT - ( - SUM( + col2 ) ) AS col1, - 48 col0 FROM tab1 AS cor0
----
223
-48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2173
SELECT - ( - SUM ( + col2 ) ) AS col1, - 48 col0 FROM tab1 AS cor0
----
223
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 * + + 98 * + 48 col2 FROM tab1 AS cor0
----
418656
418656
418656
query II rowsort
SELECT - col2 AS col1, 24 FROM tab1
----
-59
24
-68
24
-96
24
query II rowsort
SELECT ALL col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81
query II rowsort
SELECT - col1, ( col2 ) AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81
onlyif mysql # aggregate syntax:
query I rowsort label-2179
SELECT DISTINCT + 44 * COUNT( * ) * + 67 + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
70
skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + 44 * COUNT ( * ) * + 67 + 70 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
70
onlyif mysql # aggregate syntax:
query II rowsort label-2180
SELECT ALL - ( - 28 ) AS col0, MIN( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
28
51
skipif mysql # not compatible
query II rowsort label-2180
SELECT ALL - ( - 28 ) AS col0, MIN ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
28
51
query I rowsort
SELECT + 35 + + 49 AS col0 FROM tab1 AS cor0
----
84
84
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 27 * col2 FROM tab2 AS cor0
----
46
-621
64
-1080
75
-1566
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2183
SELECT ALL - CAST( + 39 AS SIGNED ) col1 FROM tab2 cor0
----
-39
-39
-39
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT ALL - CAST ( + 39 AS INTEGER ) col1 FROM tab2 cor0
----
-39
-39
-39
query II rowsort
SELECT + col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77
onlyif mysql # aggregate syntax:
query I rowsort label-2185
SELECT DISTINCT - MIN( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - MIN ( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0
----
45
onlyif mysql # aggregate syntax:
query I rowsort label-2186
SELECT DISTINCT COUNT( DISTINCT - + 86 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT COUNT ( DISTINCT - + 86 ) FROM tab1
----
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2187
SELECT ALL CAST( + 11 AS SIGNED ) AS col1 FROM tab2
----
11
11
11
skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL CAST ( + 11 AS INTEGER ) AS col1 FROM tab2
----
11
11
11
onlyif mysql # DIV for integer division:
query II rowsort label-2188
SELECT DISTINCT + col1 AS col0, ( - col2 ) DIV + col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-1
47
0
5
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2188
SELECT DISTINCT + col1 AS col0, ( - col2 ) / + col0 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-1
47
0
5
0
query I rowsort
SELECT - col0 * - + col2 * + ( ( - - 20 ) ) AS col0 FROM tab1
----
100300
123760
97920
query I rowsort
SELECT + 44 * + 83 FROM tab1
----
3652
3652
3652
onlyif mysql # aggregate syntax:
query I rowsort label-2191
SELECT DISTINCT - ( + MIN( + col1 ) ) FROM tab1 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - ( + MIN ( + col1 ) ) FROM tab1 AS cor0
----
-5
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IS NULL
----
query I rowsort
SELECT ( col0 ) FROM tab1 cor0 WHERE col0 * + + 27 / 56 * - + 15 * - col1 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2194
SELECT ALL + 9 * - MAX( - + col2 ) FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) + - col1 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 9 * - MAX ( - + col2 ) FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
NULL
query I rowsort
SELECT col1 + + + 46 AS col1 FROM tab2
----
113
123
97
query II rowsort
SELECT ALL - col0, 49 AS col2 FROM tab0
----
-15
49
-87
49
-97
49
query I rowsort
SELECT - col2 * + + col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196
onlyif mysql # aggregate syntax:
query I rowsort label-2198
SELECT ALL COUNT( * ) + COUNT( col2 ) AS col1 FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL COUNT ( * ) + COUNT ( col2 ) AS col1 FROM tab1 AS cor0
----
6
query I rowsort
SELECT ALL + col2 * - + 63 AS col2 FROM tab2 AS cor0
----
-1449
-2520
-3654
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2201
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - ( - col2 ) + + 66, col0, - col1 )
----
query I rowsort
SELECT DISTINCT + 0 + + col2 FROM tab2 AS cor0
----
23
40
58
query I rowsort
SELECT ALL - col0 * - 50 FROM tab2
----
2300
3200
3750
query I rowsort
SELECT 55 * - + ( + + 42 ) AS col2 FROM tab2
----
-2310
-2310
-2310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col2 FROM tab0
----
85
85
85
onlyif mysql # aggregate syntax:
query I rowsort label-2207
SELECT DISTINCT COUNT( - 0 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT COUNT ( - 0 ) AS col0 FROM tab1
----
3
query I rowsort
SELECT DISTINCT col0 * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 * + 80 + col2 * - - col2 BETWEEN + 53 AND + 14
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab0 cor0
----
-35
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-2212
SELECT - COUNT( DISTINCT + - 6 ) AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-2212
SELECT - COUNT ( DISTINCT + - 6 ) AS col0 FROM tab0
----
-1
query I rowsort
SELECT 41 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
onlyif mysql # aggregate syntax:
query I rowsort label-2214
SELECT ALL - COUNT( col2 ) col2 FROM tab0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2214
SELECT ALL - COUNT ( col2 ) col2 FROM tab0
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2215
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-2215
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-2216
SELECT ALL + 92 DIV 47 + col1 * 59 * + col0 AS col1 FROM tab0 AS cor0
----
107794
5724
71686
skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL + 92 / 47 + col1 * 59 * + col0 AS col1 FROM tab0 AS cor0
----
107794
5724
71686
query I rowsort
SELECT DISTINCT + 75 FROM tab2 cor0
----
75
onlyif mysql # DIV for integer division:
query I rowsort label-2218
SELECT ALL - - 4 DIV - + ( - col2 ) * - 95 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - - 4 / - + ( - col2 ) * - 95 AS col2 FROM tab0 cor0
----
0
0
0
query II rowsort
SELECT - 24, + 84 AS col1 FROM tab0 AS cor0
----
-24
84
-24
84
-24
84
onlyif mysql # aggregate syntax:
query I rowsort label-2220
SELECT + MAX( - + col1 ) AS col2 FROM tab2 cor0
----
-51
skipif mysql # not compatible
query I rowsort label-2220
SELECT + MAX ( - + col1 ) AS col2 FROM tab2 cor0
----
-51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2221
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0 WHERE NOT 67 * - - CAST( col2 AS SIGNED ) * + + col2 + col2 > ( + 42 )
----
skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 18 AS col1 FROM tab0 AS cor0 WHERE NOT 67 * - - CAST ( col2 AS INTEGER ) * + + col2 + col2 > ( + 42 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 col2 FROM tab0
----
-23
-23
-23
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 89 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0
----
-21
query II rowsort
SELECT DISTINCT 33 * - + 26, col1 * - col1 AS col1 FROM tab1
----
-858
-196
-858
-2209
-858
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, + col0 col2 FROM tab2
----
51
46
67
75
77
64
query I rowsort
SELECT - 35 + col2 * col2 AS col1 FROM tab2
----
1565
3329
494
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 14
----
query I rowsort
SELECT DISTINCT - col1 + + + 37 AS col0 FROM tab0 AS cor0
----
-44
16
36
query II rowsort
SELECT - + col1, - col2 AS col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL <> 51
----
query II rowsort
SELECT ALL - - col2 * - + col1 + - + 55 + + col0, + col2 AS col0 FROM tab2 AS cor0
----
-1182
23
-3071
40
-3866
58
onlyif mysql # aggregate syntax:
query I rowsort label-2233
SELECT DISTINCT - 40 + 53 - + + COUNT( DISTINCT col0 ) FROM tab2
----
10
skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - 40 + 53 - + + COUNT ( DISTINCT col0 ) FROM tab2
----
10
query I rowsort
SELECT - col0 * - 91 FROM tab1
----
4641
7735
8281
query I rowsort
SELECT DISTINCT ( + + 94 ) FROM tab0 AS cor0 WHERE NOT + col0 < ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2236
SELECT 86 * col0 + + 36 - + + ( - 9 ) + - CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2236
SELECT 86 * col0 + + 36 - + + ( - 9 ) + - CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 82 + - 43 FROM tab1 AS cor0
----
39
39
39
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 58 ) IS NULL
----
query II rowsort
SELECT + + col2 * - + 10, + col2 * 45 AS col1 FROM tab0 cor0
----
-100
450
-470
2115
-990
4455
onlyif mysql # aggregate syntax:
query I rowsort label-2240
SELECT ALL - 13 * + MAX( - col2 ) FROM tab2 AS cor0
----
299
skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - 13 * + MAX ( - col2 ) FROM tab2 AS cor0
----
299
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) * 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2242
SELECT DISTINCT CAST( + 4 AS SIGNED ) FROM tab2
----
4
skipif mysql # not compatible
query I rowsort label-2242
SELECT DISTINCT CAST ( + 4 AS INTEGER ) FROM tab2
----
4
query III rowsort
SELECT * FROM tab0 WHERE NOT + 10 * - + col2 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - - 45 = - 69 * col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2245
SELECT DISTINCT * FROM tab2 WHERE + + CAST( col0 AS SIGNED ) * + 72 IS NULL
----
skipif mysql # not compatible
query III rowsort label-2245
SELECT DISTINCT * FROM tab2 WHERE + + CAST ( col0 AS INTEGER ) * + 72 IS NULL
----
query II rowsort
SELECT - col0 AS col1, + 74 FROM tab2
----
-46
74
-64
74
-75
74
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> NULL
----
query I rowsort
SELECT DISTINCT col1 + + 21 FROM tab2 WHERE + col0 * - col0 IS NOT NULL
----
72
88
98
query I rowsort
SELECT ALL col0 * + ( - 76 ) AS col0 FROM tab1
----
-3876
-6460
-6916
onlyif mysql # aggregate syntax:
query I rowsort label-2250
SELECT DISTINCT - MIN( DISTINCT - 37 ) FROM tab1 AS cor0
----
37
skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - MIN ( DISTINCT - 37 ) FROM tab1 AS cor0
----
37
query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2253
SELECT DISTINCT - ( col0 ) DIV + + col2 AS col1 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT - ( col0 ) / + + col2 AS col1 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + - col0 * 58 - col1 FROM tab1 AS cor0
----
-2972
-4935
-5325
query I rowsort
SELECT DISTINCT - - col0 * - + 49 AS col1 FROM tab0 AS cor0
----
-4263
-4753
-735
query I rowsort
SELECT col1 * - col1 + - + 89 FROM tab0 AS cor0
----
-530
-6650
-90
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 45 AND - ( col1 )
----
query I rowsort
SELECT ALL - 98 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT DISTINCT col1 + + col1 + 8 FROM tab2 cor0
----
110
142
162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + + col0 + + col0 col1 FROM tab0 AS cor0
----
1230
1914
194
query I rowsort
SELECT + ( - - col2 ) + - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94
onlyif mysql # DIV for integer division:
query I rowsort label-2262
SELECT ALL + 8 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + 8 / col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 29 + + col0 FROM tab0 AS cor0
----
-14
58
68
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2264
SELECT col1 + col0 * + CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2264
SELECT col1 + col0 * + CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 + + col2 * + 51 + + col2 + + - col1 + - 71 * + 88 + col0 col2 FROM tab1 AS cor0
----
-1187
-2636
-3068
query I rowsort
SELECT ALL - 49 AS col0 FROM tab1
----
-49
-49
-49
query I rowsort
SELECT ALL - col2 * col1 * col2 + + + col0 + - col2 FROM tab1
----
-129069
-17379
-217305
query I rowsort
SELECT ALL - 51 + - 28 FROM tab1, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
onlyif mysql # DIV for integer division:
query I rowsort label-2269
SELECT DISTINCT + 1 DIV - - col2 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + 1 / - - col2 AS col1 FROM tab0
----
0
query III rowsort
SELECT * FROM tab2 WHERE - 63 * col1 = + + col1 - - 96 + 63
----
query I rowsort
SELECT col2 * 58 FROM tab0
----
2726
5742
580
query I rowsort
SELECT ( + 72 ) * col0 FROM tab1
----
3672
6120
6552
onlyif mysql # aggregate syntax:
query I rowsort label-2273
SELECT COUNT( * ) * + + 36 FROM tab0
----
108
skipif mysql # not compatible
query I rowsort label-2273
SELECT COUNT ( * ) * + + 36 FROM tab0
----
108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab1
----
-39
onlyif mysql # aggregate syntax:
query I rowsort label-2275
SELECT ALL + 86 - + ( + MIN( ALL + col2 ) ) FROM tab2 AS cor0
----
63
skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + 86 - + ( + MIN ( ALL + col2 ) ) FROM tab2 AS cor0
----
63
onlyif mysql # DIV for integer division:
query I rowsort label-2276
SELECT - col0 DIV 11 + col0 AS col2 FROM tab0
----
14
80
89
skipif mysql # not compatible
query I rowsort label-2276
SELECT - col0 / 11 + col0 AS col2 FROM tab0
----
14
80
89
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 36 )
----
query I rowsort
SELECT DISTINCT + 64 * + col2 * - col0 AS col0 FROM tab0
----
-45120
-55680
-614592
query I rowsort
SELECT col1 + + + col1 * - + ( - + 33 ) FROM tab0 WHERE - col1 BETWEEN - col2 AND - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1, - col1 * - 38 + + col1 col1 FROM tab1 AS cor0
----
14
546
47
1833
5
195
onlyif mysql # aggregate syntax:
query I rowsort label-2281
SELECT DISTINCT COUNT( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT COUNT ( + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col2 FROM tab1 cor0
----
49
49
49
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 64 + + + 51 >= - col0 + + - col2 + col0 * col1 - - + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT - col2, col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14
onlyif mysql # aggregate syntax:
query I rowsort label-2285
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2285
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2286
SELECT ALL SUM( - CAST( 49 AS SIGNED ) ) FROM tab1
----
-147
skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL SUM ( - CAST ( 49 AS INTEGER ) ) FROM tab1
----
-147
onlyif mysql # aggregate syntax:
query I rowsort label-2287
SELECT COUNT( ALL + col1 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-2287
SELECT COUNT ( ALL + col1 ) FROM tab2
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 * - 13 * ( - - 69 ) col1 FROM tab2
----
-60996
-60996
-60996
query I rowsort
SELECT DISTINCT - col1 * - 95 AS col2 FROM tab1
----
1330
4465
475
query I rowsort
SELECT ALL 21 * + col0 FROM tab1
----
1071
1785
1911
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2291
SELECT DISTINCT + MIN( DISTINCT - CAST( + ( + - col1 ) AS SIGNED ) ) * - 20 AS col1, + ( + COUNT( * ) ) AS col2 FROM tab1
----
-100
3
skipif mysql # not compatible
query II rowsort label-2291
SELECT DISTINCT + MIN ( DISTINCT - CAST ( + ( + - col1 ) AS INTEGER ) ) * - 20 AS col1, + ( + COUNT ( * ) ) AS col2 FROM tab1
----
-100
3
onlyif mysql # aggregate syntax:
query I rowsort label-2292
SELECT - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-2292
SELECT - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query I rowsort
SELECT + ( - 85 ) FROM tab0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT - col2 + + col1 AS col2 FROM tab2 cor0
----
28
37
9
query II rowsort
SELECT ALL col0 AS col1, + 81 FROM tab2 cor0
----
46
81
64
81
75
81
onlyif mysql # aggregate syntax:
query I rowsort label-2296
SELECT ALL MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL > 34
----
query I rowsort
SELECT DISTINCT + + col0 + - + col2 FROM tab0 AS cor0
----
-2
-32
77
onlyif mysql # aggregate syntax:
query I rowsort label-2299
SELECT + 78 + + + COUNT( * ) FROM tab2 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-2299
SELECT + 78 + + + COUNT ( * ) FROM tab2 AS cor0
----
81
query I rowsort
SELECT + col1 + + - col1 AS col0 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-2301
SELECT DISTINCT + MIN( DISTINCT + 74 ) + - 3 FROM tab0
----
71
skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + MIN ( DISTINCT + 74 ) + - 3 FROM tab0
----
71
onlyif mysql # aggregate syntax:
query I rowsort label-2302
SELECT + MIN( ALL - 0 ) col2 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT NULL IS NOT NULL )
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2302
SELECT + MIN ( ALL - 0 ) col2 FROM tab1 WHERE NULL IS NOT NULL AND NOT ( NOT NULL IS NOT NULL )
----
NULL
query I rowsort
SELECT col1 + - + 30 + + + col1 * + col1 AS col1 FROM tab2
----
2622
4526
5976
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2304
SELECT - COUNT( * ) * + ( SUM( DISTINCT + 89 ) ) + COUNT( * ) + + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) * + ( SUM ( DISTINCT + 89 ) ) + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT 18 + + col0 * - col1 FROM tab2
----
-2328
-4910
-5007
query I rowsort
SELECT ALL col0 * - col1 - + + 24 AS col0 FROM tab0
----
-121
-1239
-1851
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2307
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-2307
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3
query I rowsort
SELECT ALL 85 AS col0 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT 13 * + 94 FROM tab2 AS cor0
----
1222
1222
1222
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2311
SELECT ALL + ( + COUNT( * ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + + col2 + 20 > NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col0 * 45 + + + 36 / - col1 IS NOT NULL
----
query I rowsort
SELECT 30 * - 20 FROM tab0 AS cor0
----
-600
-600
-600
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-2315
SELECT - - ( 13 ) / + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) / - + CAST( - col2 AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2315
SELECT - - ( 13 ) / + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - + CAST ( - col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - 93 + - - 12 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 WHERE + col1 <= - 78 - + + 4
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - - 48 FROM tab2 WHERE - col2 <> NULL
----
query II rowsort
SELECT ALL - 99 AS col1, - 7 FROM tab2
----
-99
-7
-99
-7
-99
-7
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE ( - col1 ) IS NULL
----
query II rowsort
SELECT - 6 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
-6
46
-6
64
-6
75
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 84
----
onlyif mysql # aggregate syntax:
query I rowsort label-2324
SELECT DISTINCT SUM( - col2 ) * - COUNT( * ) FROM tab1
----
669
skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT SUM ( - col2 ) * - COUNT ( * ) FROM tab1
----
669
query I rowsort
SELECT + 39 + + + 62 FROM tab1
----
101
101
101
query I rowsort
SELECT + + 4 + + col2 - - 79 AS col2 FROM tab2 AS cor0
----
106
123
141
query I rowsort
SELECT DISTINCT - 90 * AVG ( ALL + + 15 ) FROM tab1 AS cor0 WHERE 28 - + + 55 >= NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2328
SELECT ALL + col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-8
13
5
skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-8
13
5
query I rowsort
SELECT ALL + + col1 * - + 19 FROM tab1 AS cor0 WHERE - col2 + - col2 >= - col2
----
query II rowsort
SELECT ALL - col2 * + + col2 + col1 AS col2, + ( 83 ) * + 32 FROM tab1
----
-3476
2656
-4577
2656
-9202
2656
onlyif mysql # aggregate syntax:
query I rowsort label-2331
SELECT DISTINCT - MAX( + - col1 ) - + - 6 - + + COUNT( * ) + - 57 col1 FROM tab0
----
-53
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2331
SELECT DISTINCT - MAX ( + - col1 ) - + - 6 - + + COUNT ( * ) + - 57 col1 FROM tab0
----
-53
query II rowsort
SELECT ALL - col0 AS col2, 14 AS col2 FROM tab2
----
-46
14
-64
14
-75
14
onlyif mysql # aggregate syntax:
query I rowsort label-2333
SELECT + + COUNT( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-2333
SELECT + + COUNT ( * ) FROM tab2 WHERE + col2 IS NOT NULL
----
3
query II rowsort
SELECT DISTINCT - 77 + - 39 AS col1, col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-116
51
-116
67
-116
77
onlyif mysql # DIV for integer division:
query I rowsort label-2335
SELECT + col2 DIV col1 - - - col2 DIV - col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2335
SELECT + col2 / col1 - - - col2 / - col2 FROM tab2
----
1
1
1
query I rowsort
SELECT - col0 - 35 AS col2 FROM tab0
----
-122
-132
-50
query I rowsort
SELECT + 89 - + + col0 FROM tab1
----
-2
38
4
query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col1 BETWEEN NULL AND ( ( - col0 ) ) + - col0 * - 33
----
query I rowsort
SELECT DISTINCT - col1 - - + col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + + 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # aggregate syntax:
query I rowsort label-2341
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IS NOT NULL
----
query I rowsort
SELECT 84 * - 74 FROM tab0
----
-6216
-6216
-6216
query I rowsort
SELECT - 32 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT DISTINCT + - 72 FROM tab1 AS cor0
----
-72
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN - col2 AND NULL
----
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= 73
----
query I rowsort
SELECT - - 34 FROM tab0 cor0
----
34
34
34
query I rowsort
SELECT ALL + + col2 * + 4 FROM tab0 AS cor0
----
188
396
40
onlyif mysql # DIV for integer division:
query I rowsort label-2350
SELECT 17 * + col1 + - - col2 DIV + col0 FROM tab0 AS cor0
----
1380
18
357
skipif mysql # not compatible
query I rowsort label-2350
SELECT 17 * + col1 + - - col2 / + col0 FROM tab0 AS cor0
----
1380
18
357
query I rowsort
SELECT + + 56 FROM tab2 AS cor0 WHERE NOT col1 * col0 IS NULL
----
56
56
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 * + 79, col2 col2 FROM tab1 AS cor0
----
4187
59
4187
68
4187
96
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2353
SELECT DISTINCT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT + 81 - + - 1 * + col0 + col0 * - col1 * - col2 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT + 81 - + - 1 * + col0 + col0 * - col1 * - col2 IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2354
SELECT * FROM tab2 WHERE NOT + 53 * - CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-2354
SELECT * FROM tab2 WHERE NOT + 53 * - CAST ( NULL AS INTEGER ) IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab1
----
55
query I rowsort
SELECT col0 * - + 96 FROM tab1
----
-4896
-8160
-8736
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col2 FROM tab1 WHERE NOT + ( 37 ) IS NULL
----
59
59
68
68
96
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2358
SELECT - col0 / + + CAST( NULL AS SIGNED ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2358
SELECT - col0 / + + CAST ( NULL AS INTEGER ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL
query II rowsort
SELECT col1, col2 - - col1 FROM tab0
----
1
100
21
31
81
128
onlyif mysql # aggregate syntax:
query I rowsort label-2360
SELECT - ( - COUNT( * ) ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-2360
SELECT - ( - COUNT ( * ) ) AS col2 FROM tab1
----
3
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col1 <= - 38
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab2
----
4
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 IS NULL
----
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2365
SELECT + 79 + + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
76
skipif mysql # not compatible
query I rowsort label-2365
SELECT + 79 + + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
76
query I rowsort
SELECT DISTINCT + 77 + - col2 FROM tab2 AS cor0
----
19
37
54
query II rowsort
SELECT + col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1
onlyif mysql # aggregate syntax:
query I rowsort label-2368
SELECT DISTINCT MAX( 25 ) AS col1 FROM tab1
----
25
skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT MAX ( 25 ) AS col1 FROM tab1
----
25
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-2369
SELECT DISTINCT + col1 AS col0, CAST( NULL AS DECIMAL ) / + + 30 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-2369
SELECT DISTINCT + col1 AS col0, CAST ( NULL AS REAL ) / + + 30 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
query I rowsort
SELECT DISTINCT + ( 13 ) FROM tab2 AS cor0
----
13
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2371
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2372
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2373
SELECT DISTINCT + - COUNT( DISTINCT - + ( + col0 ) ) + + 94 FROM tab0 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + - COUNT ( DISTINCT - + ( + col0 ) ) + + 94 FROM tab0 AS cor0
----
91
onlyif mysql # DIV for integer division:
query I rowsort label-2374
SELECT DISTINCT - col0 DIV - + col0 + + 62 - - col2 + + 2 * - - col2 * + col1 + - - ( 51 ) * col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
11502681
1378361
6289463
skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - col0 / - + col0 + + 62 - - col2 + + 2 * - - col2 * + col1 + - - ( 51 ) * col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
11502681
1378361
6289463
query I rowsort
SELECT 69 + + col2 * 59 FROM tab2
----
1426
2429
3491
query I rowsort
SELECT + 72 FROM tab2 WHERE NULL IS NULL
----
72
72
72
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 72 > - col1
----
onlyif mysql # aggregate syntax:
query III rowsort label-2378
SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT( * ) col1, + SUM( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1
----
360
21
12
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2378
SELECT - ( - 4 ) * + 90 AS col0, 7 * COUNT ( * ) col1, + SUM ( DISTINCT - ( + - 12 ) ) AS col1 FROM tab1
----
360
21
12
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2379
SELECT MIN( - - ( + + 76 ) ), + CAST( - MAX( DISTINCT col1 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
76
-81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2379
SELECT MIN ( - - ( + + 76 ) ), + CAST ( - MAX ( DISTINCT col1 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
76
-81
query I rowsort
SELECT DISTINCT - 69 * - + col1 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----
query I rowsort
SELECT + 51 * - col2 FROM tab0 AS cor0
----
-2397
-5049
-510
query I rowsort
SELECT DISTINCT + + 31 * - ( col1 ) * - ( + + col2 ) * - col0 + - - 19 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - col2 IS NULL
----
-2124845
-777306
-9015897
onlyif mysql # aggregate syntax:
query I rowsort label-2383
SELECT + ( + 65 ) * COUNT( * ) * + 66 FROM tab0 AS cor0
----
12870
skipif mysql # not compatible
query I rowsort label-2383
SELECT + ( + 65 ) * COUNT ( * ) * + 66 FROM tab0 AS cor0
----
12870
query II rowsort
SELECT + col2, + col1 - - - 93 FROM tab2
----
23
-42
40
-16
58
-26
query II rowsort
SELECT ALL + 14 AS col1, + 29 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to d767d90baa25712fcddd67a25198d5e4
onlyif mysql # aggregate syntax:
query II rowsort label-2386
SELECT 45 AS col1, MIN( - 40 ) AS col1 FROM tab1 AS cor0
----
45
-40
skipif mysql # not compatible
query II rowsort label-2386
SELECT 45 AS col1, MIN ( - 40 ) AS col1 FROM tab1 AS cor0
----
45
-40
query I rowsort
SELECT ALL 44 * - + col1 FROM tab2 AS cor0
----
-2244
-2948
-3388
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + ( 35 )
----
query I rowsort
SELECT col0 * - - col2 AS col1 FROM tab1 AS cor0
----
4896
5015
6188
onlyif mysql # DIV for integer division:
query I rowsort label-2390
SELECT ALL + col1 DIV col0 * - col1 FROM tab0 AS cor0
----
-405
0
0
skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + col1 / col0 * - col1 FROM tab0 AS cor0
----
-405
0
0
query I rowsort
SELECT + col1 * - 34 + col1 FROM tab0 AS cor0
----
-2673
-33
-693
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2392
SELECT ( + col0 ) * + - col2 * + + CAST( NULL AS SIGNED ) + - + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2392
SELECT ( + col0 ) * + - col2 * + + CAST ( NULL AS INTEGER ) + - + 14 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - + 61 AS col1 FROM tab1
----
-2867
-305
-854
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2394
SELECT * FROM tab2 WHERE NOT + 91 * - col2 * - - col1 <= + CAST( NULL AS SIGNED ) * - + col2
----
skipif mysql # not compatible
query III rowsort label-2394
SELECT * FROM tab2 WHERE NOT + 91 * - col2 * - - col1 <= + CAST ( NULL AS INTEGER ) * - + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab0
----
21
21
21
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2397
SELECT MIN( ALL col2 ) AS col2 FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-2397
SELECT MIN ( ALL col2 ) AS col2 FROM tab1
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-2398
SELECT ALL COUNT( * ) col0 FROM tab1
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT ALL COUNT ( * ) col0 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2399
SELECT MAX( - ( + col1 ) ) FROM tab1
----
-5
skipif mysql # not compatible
query I rowsort label-2399
SELECT MAX ( - ( + col1 ) ) FROM tab1
----
-5
onlyif mysql # DIV for integer division:
query I rowsort label-2400
SELECT col1 DIV + - 63 * - - ( col1 ) * + col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196
skipif mysql # not compatible
query I rowsort label-2400
SELECT col1 / + - 63 * - - ( col1 ) * + col2 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196
query I rowsort
SELECT ALL 75 + + col0 FROM tab1 AS cor0
----
126
160
166
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col1 FROM tab2 cor0
----
-30
onlyif mysql # aggregate syntax:
query I rowsort label-2404
SELECT - COUNT( * ) + - + 86 AS col1 FROM tab2
----
-89
skipif mysql # not compatible
query I rowsort label-2404
SELECT - COUNT ( * ) + - + 86 AS col1 FROM tab2
----
-89
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2405
SELECT + + CAST( + - 78 AS SIGNED ) FROM tab0 AS cor0
----
-78
-78
-78
skipif mysql # not compatible
query I rowsort label-2405
SELECT + + CAST ( + - 78 AS INTEGER ) FROM tab0 AS cor0
----
-78
-78
-78
query I rowsort
SELECT ALL + col0 + + col1 * 42 AS col2 FROM tab0 AS cor0
----
139
3417
969
onlyif mysql # aggregate syntax:
query I rowsort label-2407
SELECT - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2407
SELECT - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-2409
SELECT - ( col0 ) DIV - ( + + col1 ) FROM tab1 AS cor0
----
1
17
3
skipif mysql # not compatible
query I rowsort label-2409
SELECT - ( col0 ) / - ( + + col1 ) FROM tab1 AS cor0
----
1
17
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = NULL OR NOT NULL NOT BETWEEN col0 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2411
SELECT - + ( + CAST( MIN( DISTINCT - - col1 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2411
SELECT - + ( + CAST ( MIN ( DISTINCT - - col1 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-2412
SELECT DISTINCT + COUNT( * ) - 58 FROM tab1
----
-55
skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + COUNT ( * ) - 58 FROM tab1
----
-55
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-2413
SELECT + 18 - - col2 + + col1 * CAST( NULL AS DECIMAL ) / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2413
SELECT + 18 - - col2 + + col1 * CAST ( NULL AS REAL ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 - col1 AS col0 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-2415
SELECT DISTINCT COUNT( * ) * + - 97 col2 FROM tab0
----
-291
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2415
SELECT DISTINCT COUNT ( * ) * + - 97 col2 FROM tab0
----
-291
query I rowsort
SELECT - col2 - + 64 AS col0 FROM tab1
----
-123
-132
-160
query I rowsort
SELECT - 98 * + col1 FROM tab2
----
-4998
-6566
-7546
query II rowsort
SELECT col1 AS col0, 62 FROM tab1
----
14
62
47
62
5
62
query I rowsort
SELECT col1 * + col1 * 12 * - - col1 FROM tab1
----
1245876
1500
32928
query I rowsort
SELECT col2 * - - 38 * - + col1 + + ( col1 ) FROM tab1 AS cor0
----
-11205
-121401
-51058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 * + 38 col0 FROM tab2 AS cor0
----
2850
onlyif mysql # aggregate syntax:
query I rowsort label-2422
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab1 AS cor0
----
53
query I rowsort
SELECT DISTINCT + 74 * - col0 AS col0 FROM tab1
----
-3774
-6290
-6734
onlyif mysql # aggregate syntax:
query I rowsort label-2426
SELECT DISTINCT + - COUNT( ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT + - COUNT ( ( + - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL + - col0 * + + 62 AS col1 FROM tab0 AS cor0
----
-5394
-6014
-930
query I rowsort
SELECT ALL - + col1 * + - col2 FROM tab0 AS cor0
----
210
3807
99
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1 * + 79
----
query I rowsort
SELECT - col2 * + 47 FROM tab0
----
-2209
-4653
-470
onlyif mysql # aggregate syntax:
query I rowsort label-2431
SELECT DISTINCT + COUNT( * ) * COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2432
SELECT - COUNT( * ) * + 41 * + ( + + 54 ) FROM tab1
----
-6642
skipif mysql # not compatible
query I rowsort label-2432
SELECT - COUNT ( * ) * + 41 * + ( + + 54 ) FROM tab1
----
-6642
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2433
SELECT CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
46
64
75
skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax:
query II rowsort label-2434
SELECT SUM( col0 ) + 68, SUM( - col1 ) col2 FROM tab1
----
295
-66
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2434
SELECT SUM ( col0 ) + 68, SUM ( - col1 ) col2 FROM tab1
----
295
-66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2435
SELECT - col0 + + col0 * CAST( NULL AS SIGNED ) * - + col1 + - 19 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2435
SELECT - col0 + + col0 * CAST ( NULL AS INTEGER ) * - + col1 + - 19 AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-2436
SELECT + col2 * 50 + + 26 DIV + col1 FROM tab1
----
2955
3400
4801
skipif mysql # not compatible
query I rowsort label-2436
SELECT + col2 * 50 + + 26 / + col1 FROM tab1
----
2955
3400
4801
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 14 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( 63 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2439
SELECT ALL CAST( - col2 AS SIGNED ) * - 26 AS col2 FROM tab0
----
1222
2574
260
skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL CAST ( - col2 AS INTEGER ) * - 26 AS col2 FROM tab0
----
1222
2574
260
query I rowsort
SELECT - col1 * col0 + + 0 AS col2 FROM tab2
----
-2346
-4928
-5025
query I rowsort
SELECT ALL - 57 * col2 FROM tab2
----
-1311
-2280
-3306
onlyif mysql # DIV for integer division:
query I rowsort label-2442
SELECT ALL + col0 DIV 79 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + col0 / 79 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 + 79 FROM tab0
----
166
176
94
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - col1 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1 * + col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-2446
SELECT - ( col1 ) DIV - 9 AS col0 FROM tab1
----
0
1
5
skipif mysql # not compatible
query I rowsort label-2446
SELECT - ( col1 ) / - 9 AS col0 FROM tab1
----
0
1
5
query I rowsort
SELECT DISTINCT - col1 * - col0 - 38 AS col2 FROM tab0
----
1177
1789
59
onlyif mysql # DIV for integer division:
query I rowsort label-2448
SELECT - 4 DIV + col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2448
SELECT - 4 / + col1 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-2449
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
75
skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2450
SELECT + MAX( DISTINCT + col0 ) DIV 90 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-2450
SELECT + MAX ( DISTINCT + col0 ) / 90 FROM tab0
----
1
onlyif mysql # DIV for integer division:
query I rowsort label-2451
SELECT - ( - col2 ) DIV + col0 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2451
SELECT - ( - col2 ) / + col0 FROM tab1
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-2452
SELECT COUNT( * ) * COUNT( * ) col1 FROM tab2
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * - col0 + col1 * - ( col0 ) col1 FROM tab2
----
-5290
-9024
-9825
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2454
SELECT * FROM tab1 WHERE - col0 >= col2 + CAST( NULL AS SIGNED ) / ( col0 )
----
skipif mysql # not compatible
query III rowsort label-2454
SELECT * FROM tab1 WHERE - col0 >= col2 + CAST ( NULL AS INTEGER ) / ( col0 )
----
query I rowsort
SELECT DISTINCT - 13 * ( col1 ) FROM tab0
----
-1053
-13
-273
onlyif mysql # aggregate syntax:
query I rowsort label-2456
SELECT ALL 73 + MAX( DISTINCT 58 ) AS col1 FROM tab0
----
131
skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL 73 + MAX ( DISTINCT 58 ) AS col1 FROM tab0
----
131
query I rowsort
SELECT - 1 * + col1 FROM tab2
----
-51
-67
-77
onlyif mysql # aggregate syntax:
query I rowsort label-2458
SELECT - MAX( DISTINCT - col1 ) * 30 col0 FROM tab1
----
150
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2458
SELECT - MAX ( DISTINCT - col1 ) * 30 col0 FROM tab1
----
150
query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col1 ) ) + + col0 BETWEEN col2 * + col1 AND + col0 * - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-2461
SELECT + col0 + col1 DIV ( - ( + ( - 13 ) ) ) AS col0 FROM tab0
----
21
88
97
skipif mysql # not compatible
query I rowsort label-2461
SELECT + col0 + col1 / ( - ( + ( - 13 ) ) ) AS col0 FROM tab0
----
21
88
97
query I rowsort
SELECT DISTINCT + col0 * + 7 AS col1 FROM tab2
----
322
448
525
onlyif mysql # aggregate syntax:
query I rowsort label-2463
SELECT DISTINCT - SUM( - col1 ) * - 85 FROM tab1
----
-5610
skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - SUM ( - col1 ) * - 85 FROM tab1
----
-5610
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= + 97 / col0 + col2
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col1 < col1
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2466
SELECT * FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) * + ( col1 * col1 ) )
----
skipif mysql # not compatible
query III rowsort label-2466
SELECT * FROM tab1 WHERE - col0 BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) * + ( col1 * col1 ) )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----
query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE - col2 NOT BETWEEN NULL AND ( - col1 - - 86 )
----
query I rowsort
SELECT col2 * - 91 + col1 FROM tab0
----
-4196
-889
-9008
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - 3 )
----
query I rowsort
SELECT ALL - 30 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL >= col0 * - col1 + col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-2474
SELECT - col0 DIV 94 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2474
SELECT - col0 / 94 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 / 34 + col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2476
SELECT DISTINCT 27 * COUNT( * ) FROM tab2 AS cor0
----
81
skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT 27 * COUNT ( * ) FROM tab2 AS cor0
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-2477
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NULL IN ( 28 * - col0 )
----
0
skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NULL IN ( 28 * - col0 )
----
0
query I rowsort
SELECT - 85 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT - 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
onlyif mysql # aggregate syntax:
query I rowsort label-2481
SELECT + COUNT( col2 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-2481
SELECT + COUNT ( col2 ) AS col1 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2482
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
9
skipif mysql # not compatible
query I rowsort label-2482
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2483
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9
skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
9
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2484
SELECT 31 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-3
skipif mysql # not compatible
query I rowsort label-2484
SELECT 31 / - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
-3
query I rowsort
SELECT ALL 48 * + 26 AS col0 FROM tab1 cor0 WHERE ( col0 * ( 73 ) - - col1 ) NOT BETWEEN ( - ( col0 ) + col1 ) AND ( + 43 )
----
1248
1248
1248
query I rowsort
SELECT + col1 * + 64 + + 12 AS col0 FROM tab2 AS cor0
----
3276
4300
4940
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2487
SELECT ALL + 31 * + 31 + MIN( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0
----
864
skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 31 * + 31 + MIN ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0
----
864
query I rowsort
SELECT 62 + - 39 AS col0 FROM tab0 AS cor0
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * - 49 col0 FROM tab2 AS cor0
----
-2499
-3283
-3773
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2490
SELECT ALL 2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < col1 * CAST( 4 * + col1 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-2490
SELECT ALL 2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) < col1 * CAST ( 4 * + col1 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2491
SELECT ALL - COUNT( * ) + + 6 AS col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - COUNT ( * ) + + 6 AS col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL + col0 * col2 + + 83 FROM tab0 AS cor0
----
788
953
9686
query I rowsort
SELECT ALL + col1 * 19 FROM tab2
----
1273
1463
969
query I rowsort
SELECT ALL col0 * col1 * col1 FROM tab2
----
119646
336675
379456
query I rowsort
SELECT 76 FROM tab2 WHERE 44 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2496
SELECT + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-199
skipif mysql # not compatible
query I rowsort label-2496
SELECT + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-199
onlyif mysql # aggregate syntax:
query I rowsort label-2497
SELECT - COUNT( * ) * - + COUNT( * ) * COUNT( * ) FROM tab0
----
27
skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) * - + COUNT ( * ) * COUNT ( * ) FROM tab0
----
27
query I rowsort
SELECT DISTINCT 11 * + 51 + - col0 + ( - 45 ) FROM tab1 AS cor0
----
425
431
465
query I rowsort
SELECT + ( + + 59 ) AS col2 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT - 20 + col1 AS col1 FROM tab1 cor0
----
-15
-6
27
query I rowsort
SELECT 74 + + - col1 FROM tab1 AS cor0
----
27
60
69
query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE - col1 <> ( col0 )
----
51
67
77
query I rowsort
SELECT ALL - col0 + + - 93 AS col2 FROM tab0 AS cor0
----
-108
-180
-190
query I rowsort
SELECT ALL - ( - 0 ) - + col1 + col0 FROM tab1
----
37
44
80
query I rowsort
SELECT + col1 + - + 23 FROM tab2
----
28
44
54
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2506
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( ( col0 ) AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-2506
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( ( col0 ) AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 / + col1 BETWEEN + col2 AND col1 + ( ( 75 ) ) * col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-2508
SELECT ALL ( ( - + COUNT( * ) ) ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL ( ( - + COUNT ( * ) ) ) AS col1 FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-2509
SELECT DISTINCT - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-2510
SELECT MAX( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-2510
SELECT MAX ( DISTINCT + + col0 ) AS col2 FROM tab2 AS cor0
----
75
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 = ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2512
SELECT ALL - MAX( + - col0 ) + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - MAX ( + - col0 ) + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2513
SELECT ( - COUNT( * ) ) FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2513
SELECT ( - COUNT ( * ) ) FROM tab0 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-2514
SELECT ALL + ( + MIN( DISTINCT + + 12 ) ) * 59 AS col1 FROM tab1 cor0
----
708
skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + ( + MIN ( DISTINCT + + 12 ) ) * 59 AS col1 FROM tab1 cor0
----
708
query I rowsort
SELECT DISTINCT + col2 * - 65 * + col0 * + 25 AS col1 FROM tab0 AS cor0
----
-1145625
-1413750
-15604875
onlyif mysql # DIV for integer division:
query II rowsort label-2516
SELECT ALL - col1, 9 DIV col2 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2516
SELECT ALL - col1, 9 / col2 col1 FROM tab0 cor0
----
-1
0
-21
0
-81
0
query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 BETWEEN NULL AND ( NULL )
----
query II rowsort
SELECT - col0 * + col2, - 27 AS col2 FROM tab0
----
-705
-27
-870
-27
-9603
-27
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + + col2 * + col0 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 94 AND - - col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 < NULL
----
query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab1 AS cor0 WHERE NOT 69 <> NULL
----
query I rowsort
SELECT ALL 88 * + 9 FROM tab1 AS cor0
----
792
792
792
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT - 15 IS NOT NULL
----
query II rowsort
SELECT - col1 AS col1, col1 AS col1 FROM tab2
----
-51
51
-67
67
-77
77
onlyif mysql # aggregate syntax:
query I rowsort label-2527
SELECT ALL MAX( DISTINCT + ( col0 ) ) FROM tab1
----
91
skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL MAX ( DISTINCT + ( col0 ) ) FROM tab1
----
91
onlyif mysql # aggregate syntax:
query II rowsort label-2528
SELECT DISTINCT 42 AS col2, COUNT( * ) AS col1 FROM tab0
----
42
3
skipif mysql # not compatible
query II rowsort label-2528
SELECT DISTINCT 42 AS col2, COUNT ( * ) AS col1 FROM tab0
----
42
3
onlyif mysql # aggregate syntax:
query I rowsort label-2529
SELECT COUNT( * ) * - 88 + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) * - col0 * - 59 <= + 44
----
0
skipif mysql # not compatible
query I rowsort label-2529
SELECT COUNT ( * ) * - 88 + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - ( col2 ) * - col0 * - 59 <= + 44
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2531
SELECT - + col0 FROM tab0 AS cor0 WHERE + 19 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-2531
SELECT - + col0 FROM tab0 AS cor0 WHERE + 19 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT 57 + + + col0 + + - 88 * - col1 FROM tab1 AS cor0
----
1340
4284
582
onlyif mysql # aggregate syntax:
query I rowsort label-2533
SELECT ALL - MIN( + col0 ) + ( - SUM( + - 94 ) ) FROM tab0 cor0
----
267
skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - MIN ( + col0 ) + ( - SUM ( + - 94 ) ) FROM tab0 cor0
----
267
query I rowsort
SELECT + - 91 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 39, + col0 * - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2535
SELECT DISTINCT + - COUNT( * ) + - - COUNT( * ) - 78 FROM tab2 AS cor0
----
-78
skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + - COUNT ( * ) + - - COUNT ( * ) - 78 FROM tab2 AS cor0
----
-78
onlyif mysql # aggregate syntax:
query I rowsort label-2536
SELECT DISTINCT 10 + - COUNT( * ) * - 9 FROM tab2 AS cor0
----
37
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT 10 + - COUNT ( * ) * - 9 FROM tab2 AS cor0
----
37
onlyif mysql # aggregate syntax:
query I rowsort label-2537
SELECT ( + COUNT( * ) ) + 40 col1 FROM tab2
----
43
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2537
SELECT ( + COUNT ( * ) ) + 40 col1 FROM tab2
----
43
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 >= NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-2539
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL
skipif mysql # not compatible
query II rowsort label-2539
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2541
SELECT DISTINCT SUM( + 77 ) AS col0 FROM tab2, tab0 AS cor0
----
693
skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT SUM ( + 77 ) AS col0 FROM tab2, tab0 AS cor0
----
693
onlyif mysql # aggregate syntax:
query I rowsort label-2542
SELECT + 2 * + COUNT( * ) + - 85 * - + 90 AS col0 FROM tab0
----
7656
skipif mysql # not compatible
query I rowsort label-2542
SELECT + 2 * + COUNT ( * ) + - 85 * - + 90 AS col0 FROM tab0
----
7656
query II rowsort
SELECT ALL col2, col0 - + 52 FROM tab0
----
10
35
47
-37
99
45
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2545
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( + - col1 ) * + 63 + - - 56 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( + - col1 ) * + 63 + - - 56 AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, 11 col0 FROM tab0 AS cor0
----
15
11
87
11
97
11
query I rowsort
SELECT DISTINCT - + 41 * col1 FROM tab2 AS cor0
----
-2091
-2747
-3157
query II rowsort
SELECT col1 AS col0, 44 FROM tab2 cor0
----
51
44
67
44
77
44
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2549
SELECT CAST( - 5 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-2549
SELECT CAST ( - 5 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT ALL + + 89 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
-4590
-7650
-8190
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2551
SELECT - CAST( - COUNT( DISTINCT col1 ) AS SIGNED ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2551
SELECT - CAST ( - COUNT ( DISTINCT col1 ) AS INTEGER ) AS col2 FROM tab0
----
3
query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 WHERE ( + + col0 * col1 * + col2 - + 59 ) IS NOT NULL
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2553
SELECT ALL col0 - - col2 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL col0 - - col2 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT - 41 * + 25 * + + col2 FROM tab2 AS cor0
----
-23575
-41000
-59450
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 33 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 91 ) <> ( - 77 + - col2 * - + col0 * + 85 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-2559
SELECT COUNT( * ) DIV + - COUNT( * ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
-1
3
skipif mysql # not compatible
query II rowsort label-2559
SELECT COUNT ( * ) / + - COUNT ( * ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
-1
3
query I rowsort
SELECT ALL - ( - 10 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND 10 * - col1
----
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2562
SELECT + COUNT( * ) DIV - ( COUNT( * ) ) FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2562
SELECT + COUNT ( * ) / - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL + - 38 AS col0 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + 68 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
68
68
68
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2565
SELECT CAST( NULL AS SIGNED ) * col0 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2565
SELECT CAST ( NULL AS INTEGER ) * col0 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
query II rowsort
SELECT col1, 73 AS col0 FROM tab1
----
14
73
47
73
5
73
onlyif mysql # aggregate syntax:
query I rowsort label-2567
SELECT ALL - MIN( col2 ) AS col2 FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - MIN ( col2 ) AS col2 FROM tab2
----
-23
query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab2
----
92
query I rowsort
SELECT + col0 * + col0 + col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2571
SELECT + COUNT( - 95 ) AS col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2571
SELECT + COUNT ( - 95 ) AS col1 FROM tab0 AS cor0
----
3
query II rowsort
SELECT DISTINCT col1, - col1 AS col2 FROM tab2 cor0
----
51
-51
67
-67
77
-77
query II rowsort
SELECT + 38 AS col1, col2 + - col2 - 16 * col2 FROM tab0 AS cor0
----
38
-1584
38
-160
38
-752
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2574
SELECT ( - CAST( NULL AS SIGNED ) ) * - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2574
SELECT ( - CAST ( NULL AS INTEGER ) ) * - + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 * + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + 80 * 26 + col0 FROM tab2 AS cor0
----
2126
2144
2155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 60 col1 FROM tab2 AS cor0
----
-60
onlyif mysql # aggregate syntax:
query I rowsort label-2578
SELECT DISTINCT COUNT( ALL - + col2 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT COUNT ( ALL - + col2 ) AS col0 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2579
SELECT ALL - - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2579
SELECT ALL - - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2580
SELECT DISTINCT + 7 / 37 / 3 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( + + col0 AS SIGNED ) - - + col0 * - + 7 AND + - 33
----
skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT + 7 / 37 / 3 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( + + col0 AS INTEGER ) - - + col0 * - + 7 AND + - 33
----
query I rowsort
SELECT 43 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # aggregate syntax:
query I rowsort label-2582
SELECT MIN( 67 ) FROM tab2, tab2 AS cor0
----
67
skipif mysql # not compatible
query I rowsort label-2582
SELECT MIN ( 67 ) FROM tab2, tab2 AS cor0
----
67
query II rowsort
SELECT + 40 + - + col1, col2 AS col2 FROM tab1 cor0
----
-7
68
26
96
35
59
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-2584
SELECT + + col2 + col1 + - col2 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2584
SELECT + + col2 + col1 + - col2 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-2585
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) + - 41 + - COUNT( * ) col0, 76 * 74 FROM tab0 AS cor0
----
-43
5624
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2585
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) + - 41 + - COUNT ( * ) col0, 76 * 74 FROM tab0 AS cor0
----
-43
5624
query I rowsort
SELECT - col2 * + + 96 AS col1 FROM tab1 AS cor0 WHERE ( - 76 * col0 * + 45 ) IS NOT NULL
----
-5664
-6528
-9216
onlyif mysql # aggregate syntax:
query I rowsort label-2587
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2588
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) * CAST( + + col2 AS SIGNED ) + col2 - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) * CAST ( + + col2 AS INTEGER ) + col2 - col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2589
SELECT ALL + COUNT( - col0 ) * + 44 * + CAST( - ( - COUNT( * ) ) AS SIGNED ) + + 8 - + 20 AS col1 FROM tab1 AS cor0
----
384
skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL + COUNT ( - col0 ) * + 44 * + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) + + 8 - + 20 AS col1 FROM tab1 AS cor0
----
384
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2590
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab1 WHERE + col0 IS NULL
----
query I rowsort
SELECT ALL 72 AS col0 FROM tab1
----
72
72
72
query III rowsort
SELECT * FROM tab2 WHERE col2 <> + col2 * - 72
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 / - col0 / + + col2 col1 FROM tab1 WHERE NULL BETWEEN + - col0 * - 57 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2595
SELECT + SUM( CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2595
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2596
SELECT - - ( CAST( NULL AS DECIMAL ) ) + - ( - COUNT( * ) ) * - - ( 42 ) + - ( - 38 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2596
SELECT - - ( CAST ( NULL AS REAL ) ) + - ( - COUNT ( * ) ) * - - ( 42 ) + - ( - 38 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL
query I rowsort
SELECT ( col0 ) - + 39 FROM tab1 cor0
----
12
46
52
query II rowsort
SELECT + + col1 + ( - col1 ) AS col2, - 70 + - - 19 AS col0 FROM tab0 AS cor0
----
0
-51
0
-51
0
-51
onlyif mysql # aggregate syntax:
query I rowsort label-2599
SELECT DISTINCT - COUNT( * ) + 63 col1 FROM tab2 AS cor0
----
60
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT DISTINCT - COUNT ( * ) + 63 col1 FROM tab2 AS cor0
----
60
query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2601
SELECT ALL 61 + - MAX( - ( + col1 ) ) FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL 61 + - MAX ( - ( + col1 ) ) FROM tab1 AS cor0
----
66
query I rowsort
SELECT col2 FROM tab1 WHERE col2 <> col0
----
59
68
96
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-2603
SELECT DISTINCT COUNT( * ) DIV - 68, 53 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0
53
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2603
SELECT DISTINCT COUNT ( * ) / - 68, 53 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
0
53
query I rowsort
SELECT + ( + + 55 ) * - col2 FROM tab2
----
-1265
-2200
-3190
query I rowsort
SELECT ALL col2 * ( - + col2 ) FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2606
SELECT COUNT( * ) * 38 AS col0 FROM tab1 AS cor0
----
114
skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( * ) * 38 AS col0 FROM tab1 AS cor0
----
114
query I rowsort
SELECT ALL + 1 * col2 * 35 * col1 AS col1 FROM tab2 cor0
----
107800
136010
41055
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2608
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / - 99 * + + 58 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2608
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / - 99 * + + 58 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 - - + 29 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND col1
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2610
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-2610
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-2611
SELECT ALL - 83 DIV col0 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL - 83 / col0 FROM tab0 AS cor0
----
-5
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2612
SELECT COUNT( * ) DIV - - 98 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2612
SELECT COUNT ( * ) / - - 98 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) BETWEEN ( NULL ) AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2614
SELECT + + col1 AS col0, - CAST( NULL AS SIGNED ) - col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
skipif mysql # not compatible
query II rowsort label-2614
SELECT + + col1 AS col0, - CAST ( NULL AS INTEGER ) - col1 AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL
query I rowsort
SELECT - - 87 * + 15 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
query I rowsort
SELECT + 88 FROM tab1 WHERE NOT + ( - - ( + 65 ) ) <> NULL
----
query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 AS col0 FROM tab2
----
197120
291450
53958
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2618
SELECT DISTINCT - 59 DIV - - SUM( + 98 ) col1 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT DISTINCT - 59 / - - SUM ( + 98 ) col1 FROM tab1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-2619
SELECT + ( - COUNT( * ) ) * - 64 FROM tab2
----
192
skipif mysql # not compatible
query I rowsort label-2619
SELECT + ( - COUNT ( * ) ) * - 64 FROM tab2
----
192
onlyif mysql # aggregate syntax:
query I rowsort label-2620
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-2620
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col2 <> NULL
----
0
query I rowsort
SELECT + col1 / col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + ( col1 )
----
query I rowsort
SELECT ( + - 87 ) FROM tab2
----
-87
-87
-87
query I rowsort
SELECT ALL + 25 AS col0 FROM tab1
----
25
25
25
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a
onlyif mysql # aggregate syntax:
query I rowsort label-2625
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT + 60 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT + 60 IS NOT NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( - - col2, col2 * + col2 + - col0, 45 * + col0 - + col0 * col2 * col1 * - col1 )
----
query I rowsort
SELECT DISTINCT + col0 + - col1 + + 62 AS col1 FROM tab1 AS cor0
----
106
142
99
query II rowsort
SELECT DISTINCT + 12, col0 AS col2 FROM tab1 cor0
----
12
51
12
85
12
91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2629
SELECT - 90 + - col0 / - col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2629
SELECT - 90 + - col0 / - col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2630
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-2630
SELECT * FROM tab1 AS cor0 WHERE 4 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2631
SELECT + ( + - col0 ) + - col1 AS col1, CAST( - ( col0 ) AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-142
-142
-97
-97
skipif mysql # not compatible
query II rowsort label-2631
SELECT + ( + - col0 ) + - col1 AS col1, CAST ( - ( col0 ) AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-142
-142
-97
-97
onlyif mysql # aggregate syntax:
query I rowsort label-2632
SELECT DISTINCT + SUM( DISTINCT - ( - + 58 ) ) FROM tab1 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT + SUM ( DISTINCT - ( - + 58 ) ) FROM tab1 AS cor0
----
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2633
SELECT + COUNT( * ) * CAST( + 36 AS SIGNED ) + CAST( NULL AS SIGNED ) * - + COUNT( * ) col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2633
SELECT + COUNT ( * ) * CAST ( + 36 AS INTEGER ) + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-2634
SELECT col0 + - col0 + - 9 DIV - - 13 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2634
SELECT col0 + - col0 + - 9 / - - 13 FROM tab2
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2635
SELECT - 84 * - col2 * - + col0 + - col1 + col1 * + + ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2635
SELECT - 84 * - col2 * - + col0 + - col1 + col1 * + + ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2636
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( + 36 ) col1 FROM tab1
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2636
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( + 36 ) col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE NOT + 7 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2638
SELECT col0 DIV col1 + ( - ( + - col0 ) ) + - - 81 FROM tab2
----
127
145
157
skipif mysql # not compatible
query I rowsort label-2638
SELECT col0 / col1 + ( - ( + - col0 ) ) + - - 81 FROM tab2
----
127
145
157
onlyif mysql # aggregate syntax:
query I rowsort label-2639
SELECT - 17 + COUNT( * ) FROM tab2
----
-14
skipif mysql # not compatible
query I rowsort label-2639
SELECT - 17 + COUNT ( * ) FROM tab2
----
-14
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2640
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 50 col1 FROM tab0 AS cor0
----
50
50
50
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2643
SELECT + 50 * 66 / COUNT( * ) - + CAST( NULL AS SIGNED ) + + + 25 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2643
SELECT + 50 * 66 / COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + + 25 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2644
SELECT COUNT( * ) FROM tab0, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2644
SELECT COUNT ( * ) FROM tab0, tab2 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2645
SELECT DISTINCT SUM( + + col2 ) FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT SUM ( + + col2 ) FROM tab1
----
223
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN + 85 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-2647
SELECT + + ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2647
SELECT + + ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT 54 * + col2 + - 75 * + 55 FROM tab2 AS cor0
----
-1965
-2883
-993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 9 + 43 col1 FROM tab2 AS cor0
----
-371
-533
-632
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 66 col2 FROM tab1 AS cor0
----
-66
query I rowsort
SELECT + + ( - - col2 ) AS col2 FROM tab0 cor0
----
10
47
99
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 77 col1 FROM tab2
----
46
77
64
77
75
77
onlyif mysql # aggregate syntax:
query I rowsort label-2654
SELECT + MAX( ALL - 11 ) FROM tab2
----
-11
skipif mysql # not compatible
query I rowsort label-2654
SELECT + MAX ( ALL - 11 ) FROM tab2
----
-11
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 98 BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2656
SELECT DISTINCT - 4 DIV + col0 col2 FROM tab0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2656
SELECT DISTINCT - 4 / + col0 col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, + col1 FROM tab1
----
-14
14
-47
47
-5
5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2658
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) + 12 AS col0 FROM tab1 AS cor0
----
-2
-35
7
skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) + 12 AS col0 FROM tab1 AS cor0
----
-2
-35
7
query II rowsort
SELECT - + 9 AS col1, col1 FROM tab0 AS cor0
----
-9
1
-9
21
-9
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2660
SELECT + AVG ( + CAST( - - col0 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2660
SELECT + AVG ( + CAST ( - - col0 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query I rowsort
SELECT DISTINCT + col0 + + - col2 FROM tab2 cor0
----
17
23
24
query I rowsort
SELECT DISTINCT - col0 * - 24 FROM tab2
----
1104
1536
1800
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - - 65 BETWEEN NULL AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-2664
SELECT - COUNT( * ) + - + SUM( - 17 ) AS col1 FROM tab1 AS cor0
----
48
skipif mysql # not compatible
query I rowsort label-2664
SELECT - COUNT ( * ) + - + SUM ( - 17 ) AS col1 FROM tab1 AS cor0
----
48
onlyif mysql # aggregate syntax:
query II rowsort label-2665
SELECT + ( + 38 ) * - MAX( ALL + - col1 ) AS col0, 83 AS col2 FROM tab2 AS cor0 WHERE col0 + col0 * - 19 / + col2 + + col1 IS NOT NULL
----
1938
83
skipif mysql # not compatible
query II rowsort label-2665
SELECT + ( + 38 ) * - MAX ( ALL + - col1 ) AS col0, 83 AS col2 FROM tab2 AS cor0 WHERE col0 + col0 * - 19 / + col2 + + col1 IS NOT NULL
----
1938
83
onlyif mysql # aggregate syntax:
query II rowsort label-2666
SELECT ALL ( - 88 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
-88
3
skipif mysql # not compatible
query II rowsort label-2666
SELECT ALL ( - 88 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-88
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + + 72 col1 FROM tab1 AS cor0
----
154
query I rowsort
SELECT - - ( + 56 ) * + - col0 FROM tab1 AS cor0
----
-2856
-4760
-5096
query I rowsort
SELECT col0 * - col1 + - 83 FROM tab0 AS cor0
----
-1298
-180
-1910
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 62 < NULL
----
query I rowsort
SELECT ALL - 51 + 92 FROM tab0 AS cor0
----
41
41
41
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= col1 + - + col1 - + 17
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 7 AND col2
----
85
5
59
91
47
68
query I rowsort
SELECT DISTINCT - 4 + - 86 + - col0 FROM tab1
----
-141
-175
-181
query I rowsort
SELECT DISTINCT - 98 - - col2 * + 80 + - - ( col1 ) + + 90 FROM tab0
----
3833
7913
813
onlyif mysql # aggregate syntax:
query I rowsort label-2676
SELECT COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2677
SELECT 65 - - SUM( - 49 ) FROM tab1
----
-82
skipif mysql # not compatible
query I rowsort label-2677
SELECT 65 - - SUM ( - 49 ) FROM tab1
----
-82
query III rowsort
SELECT * FROM tab0 WHERE ( col0 + - + col1 IN ( + - col1 + - 17, col1, - + col0 ) )
----
query II rowsort
SELECT DISTINCT + col2, + col2 + + col2 FROM tab2
----
23
46
40
80
58
116
query II rowsort
SELECT + - col0 * + 64 + + col1 AS col1, col2 FROM tab0 cor0
----
-5547
10
-6207
99
-879
47
query II rowsort
SELECT 55 + + col2 + col1 AS col2, col0 AS col1 FROM tab2 cor0
----
129
46
172
64
180
75
query II rowsort
SELECT ALL col2, col0 * - col1 AS col2 FROM tab0 AS cor0
----
10
-1827
47
-1215
99
-97
onlyif mysql # aggregate syntax:
query II rowsort label-2683
SELECT - COUNT( * ), - 40 AS col2 FROM tab2 AS cor0
----
-3
-40
skipif mysql # not compatible
query II rowsort label-2683
SELECT - COUNT ( * ), - 40 AS col2 FROM tab2 AS cor0
----
-3
-40
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2684
SELECT ALL - + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 99 DIV col1 * + 37 >= + col0
----
-9
skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 99 / col1 * + 37 >= + col0
----
-9
query I rowsort
SELECT ALL - + ( - 76 ) AS col1 FROM tab2 cor0
----
76
76
76
query I rowsort
SELECT col1 * + - col0 * - col1 FROM tab2
----
119646
336675
379456
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-2687
SELECT col1 * ( - + CAST( + col2 AS SIGNED ) ) DIV 75 AS col1 FROM tab2
----
-15
-41
-51
skipif mysql # not compatible
query I rowsort label-2687
SELECT col1 * ( - + CAST ( + col2 AS INTEGER ) ) / 75 AS col1 FROM tab2
----
-15
-41
-51
onlyif mysql # DIV for integer division:
query I rowsort label-2688
SELECT - - 88 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2688
SELECT - - 88 / - col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query I rowsort label-2689
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
-9
skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
-9
query I rowsort
SELECT DISTINCT + ( ( col2 ) ) FROM tab1 AS cor0
----
59
68
96
query I rowsort
SELECT DISTINCT - 70 * + col0 FROM tab0
----
-1050
-6090
-6790
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2692
SELECT - + COUNT( * ) + - - MIN( - col2 ) + 63 + 95 + + + CAST( NULL AS SIGNED ) / - - 52 FROM tab2 WHERE NOT - 95 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2692
SELECT - + COUNT ( * ) + - - MIN ( - col2 ) + 63 + 95 + + + CAST ( NULL AS INTEGER ) / - - 52 FROM tab2 WHERE NOT - 95 IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2693
SELECT MIN( DISTINCT col1 ) FROM tab2
----
51
skipif mysql # not compatible
query I rowsort label-2693
SELECT MIN ( DISTINCT col1 ) FROM tab2
----
51
onlyif mysql # DIV for integer division:
query I rowsort label-2694
SELECT DISTINCT col2 DIV col1 * + 54 col1 FROM tab1
----
324
54
594
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2694
SELECT DISTINCT col2 / col1 * + 54 col1 FROM tab1
----
324
54
594
query I rowsort
SELECT - col1 * col0 + col1 AS col0 FROM tab2
----
-2295
-4851
-4958
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-2697
SELECT DISTINCT - col0 DIV col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92
skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - col0 / col2 + - col0 AS col1 FROM tab1 AS cor0
----
-51
-86
-92
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2698
SELECT ALL + 74 / + COUNT( * ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + 74 / + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 3 * + + col1 FROM tab1
----
141
15
42
query I rowsort
SELECT DISTINCT - col1 + ( - 14 ) * + 16 FROM tab2
----
-275
-291
-301
query I rowsort
SELECT 40 * - - col2 FROM tab1
----
2360
2720
3840
onlyif mysql # aggregate syntax:
query I rowsort label-2702
SELECT DISTINCT + COUNT( DISTINCT col0 ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + COUNT ( DISTINCT col0 ) AS col2 FROM tab0
----
3
query I rowsort
SELECT ALL - 85 FROM tab2, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a
query I rowsort
SELECT ALL + ( - + 22 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query II rowsort
SELECT DISTINCT - col1 AS col1, 69 AS col2 FROM tab1 AS cor0
----
-14
69
-47
69
-5
69
query I rowsort
SELECT + + 89 FROM tab2 AS cor0 WHERE NULL >= + col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * - 78 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-2708
SELECT DISTINCT - col2 + + col0 DIV col0 FROM tab1 AS cor0
----
-58
-67
-95
skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT - col2 + + col0 / col0 FROM tab1 AS cor0
----
-58
-67
-95
query I rowsort
SELECT ALL + col1 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
1296
1848
98
onlyif mysql # aggregate syntax:
query I rowsort label-2710
SELECT - ( + - 74 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-2710
SELECT - ( + - 74 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
77
query I rowsort
SELECT DISTINCT - col2 * col0 + - 15 FROM tab0 AS cor0
----
-720
-885
-9618
query I rowsort
SELECT + ( - + 15 ) * - col2 + col0 + + col2 FROM tab2
----
1003
414
704
query I rowsort
SELECT DISTINCT col1 - - 47 AS col1 FROM tab2
----
114
124
98
query I rowsort
SELECT DISTINCT - 44 + + col2 * - - 44 AS col0 FROM tab2
----
1716
2508
968
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 64 BETWEEN - col1 - + col0 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-2716
SELECT ALL SUM( - 39 ) FROM tab0
----
-117
skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL SUM ( - 39 ) FROM tab0
----
-117
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT IN ( 1, 41 - - col0, + - col2, col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-2718
SELECT MIN( - col1 ) FROM tab1 AS cor0 WHERE NOT ( ( + ( + col2 ) * + col0 IS NULL ) )
----
-47
skipif mysql # not compatible
query I rowsort label-2718
SELECT MIN ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( ( + ( + col2 ) * + col0 IS NULL ) )
----
-47
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL >= col1 * - + col1
----
query I rowsort
SELECT ALL - 59 AS col0 FROM tab1 AS cor0
----
-59
-59
-59
onlyif mysql # DIV for integer division:
query II rowsort label-2721
SELECT DISTINCT col0 DIV + 57, col0 AS col2 FROM tab1 AS cor0
----
0
51
1
85
1
91
skipif mysql # not compatible
query II rowsort label-2721
SELECT DISTINCT col0 / + 57, col0 AS col2 FROM tab1 AS cor0
----
0
51
1
85
1
91
query I rowsort
SELECT + - col0 * + 0 + - + 7 FROM tab2 WHERE NOT - col2 - - 69 IS NULL
----
-7
-7
-7
query I rowsort
SELECT - + 94 * 85 AS col0 FROM tab0 AS cor0
----
-7990
-7990
-7990
query I rowsort
SELECT - ( 34 ) FROM tab2 AS cor0
----
-34
-34
-34
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( + + col0, + 67 + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + col2 * + - ( 74 ) + 86 + - 57 AS col1 FROM tab0 AS cor0
----
-3449
-711
-7297
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2727
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-2727
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE + + 47 IS NULL AND NOT col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2729
SELECT - MIN( + ( col2 ) ) + + - COUNT( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-13
skipif mysql # not compatible
query I rowsort label-2729
SELECT - MIN ( + ( col2 ) ) + + - COUNT ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + + 21 col1 FROM tab1 AS cor0
----
123
191
203
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2731
SELECT ALL + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99
skipif mysql # not compatible
query I rowsort label-2731
SELECT ALL + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99
query II rowsort
SELECT ALL + col2 AS col1, - col0 AS col1 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75
onlyif mysql # aggregate syntax:
query I rowsort label-2733
SELECT MAX( + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-2733
SELECT MAX ( + ( ( + col0 ) ) ) FROM tab1 AS cor0
----
91
query II rowsort
SELECT DISTINCT - col2, + 54 AS col1 FROM tab2 AS cor0
----
-23
54
-40
54
-58
54
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - col0 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 NOT BETWEEN NULL AND NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2737
SELECT CAST( NULL AS SIGNED ) * - col2 AS col1, col1 + - ( + CAST( NULL AS SIGNED ) ) + col0 * + + ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2737
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col1, col1 + - ( + CAST ( NULL AS INTEGER ) ) + col0 * + + ( + col1 ) col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-2738
SELECT CAST( NULL AS SIGNED ), col2 * - col0 FROM tab0 WHERE ( NOT col2 / + CAST( NULL AS DECIMAL ) * - 30 > NULL )
----
skipif mysql # not compatible
query II rowsort label-2738
SELECT CAST ( NULL AS INTEGER ), col2 * - col0 FROM tab0 WHERE ( NOT col2 / + CAST ( NULL AS REAL ) * - 30 > NULL )
----
query I rowsort
SELECT col0 * - 21 FROM tab0
----
-1827
-2037
-315
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2740
SELECT COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-2740
SELECT COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-9
query I rowsort
SELECT DISTINCT ( + col2 ) + - - 17 FROM tab2 AS cor0
----
40
57
75
query I rowsort
SELECT ALL - col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
2295
4851
4958
query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col2 * + + col0 * + 25 FROM tab0
----
17625
21750
240075
onlyif mysql # aggregate syntax:
query I rowsort label-2745
SELECT DISTINCT + MAX( + col1 ) FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + MAX ( + col1 ) FROM tab0
----
81
onlyif mysql # aggregate syntax:
query I rowsort label-2746
SELECT ( - COUNT( * ) ) * + 26 FROM tab1
----
-78
skipif mysql # not compatible
query I rowsort label-2746
SELECT ( - COUNT ( * ) ) * + 26 FROM tab1
----
-78
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 36 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT ( 78 ) + + 33 FROM tab2 cor0
----
111
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 62 * + + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + 9 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9
9
9
query II rowsort
SELECT ALL + col2 AS col2, + 65 + 20 FROM tab0
----
10
85
47
85
99
85
query II rowsort
SELECT + col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51
onlyif mysql # aggregate syntax:
query I rowsort label-2754
SELECT ALL - MAX( - 77 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL - MAX ( - 77 ) FROM tab2
----
77
query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL IS NULL
----
query II rowsort
SELECT ALL col2, - col0 FROM tab2
----
23
-46
40
-64
58
-75
query II rowsort
SELECT + 34 AS col1, 78 - + col1 * + col2 FROM tab2
----
34
-1095
34
-3002
34
-3808
onlyif mysql # aggregate syntax:
query I rowsort label-2758
SELECT COUNT( + col1 ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-2758
SELECT COUNT ( + col1 ) AS col2 FROM tab1
----
3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2759
SELECT DISTINCT + COUNT( * ) DIV MIN( + + col0 ) AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT + COUNT ( * ) / MIN ( + + col0 ) AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 AS col2 FROM tab0 AS cor0 WHERE ( col1 + + - 45 ) <= ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2761
SELECT - col0 * - CAST( + 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1196
1664
1950
skipif mysql # not compatible
query I rowsort label-2761
SELECT - col0 * - CAST ( + 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1196
1664
1950
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2762
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + CAST( - ( - + col0 ) AS SIGNED ) IS NULL
----
1
21
81
skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT + CAST ( - ( - + col0 ) AS INTEGER ) IS NULL
----
1
21
81
onlyif mysql # aggregate syntax:
query II rowsort label-2763
SELECT DISTINCT + 68 col1, COUNT( * ) FROM tab2 AS cor0
----
68
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2763
SELECT DISTINCT + 68 col1, COUNT ( * ) FROM tab2 AS cor0
----
68
3
onlyif mysql # aggregate syntax:
query I rowsort label-2764
SELECT DISTINCT COUNT( + col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT COUNT ( + col1 ) FROM tab0
----
3
query III rowsort
SELECT ALL * FROM tab2 WHERE + - 48 < + + col1 * + col1 + - - 84 + - ( - ( 79 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32
query II rowsort
SELECT DISTINCT - - col2 + - - col2, 90 AS col0 FROM tab0 cor0
----
198
90
20
90
94
90
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2768
SELECT - COUNT( DISTINCT + 85 ) + - MIN( - 19 ) FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) + + + col1 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2768
SELECT - COUNT ( DISTINCT + 85 ) + - MIN ( - 19 ) FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) + + + col1 IS NULL
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2769
SELECT DISTINCT 81 DIV - 14 + + COUNT( 31 ) AS col1 FROM tab1 cor0
----
-2
skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT 81 / - 14 + + COUNT ( 31 ) AS col1 FROM tab1 cor0
----
-2
query I rowsort
SELECT ALL - - 85 + + - 45 AS col1 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT - - ( - 17 ) AS col2 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ( + + 2 ) * + col2 + - col2 + + col1 * 73 * + - col1 FROM tab2 AS cor0
----
-189850
-327639
-432777
query I rowsort
SELECT + 59 + + + col0 FROM tab0
----
146
156
74
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2774
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2774
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT + + col1 FROM tab1 WHERE NULL BETWEEN + 21 AND - + 77 * col1
----
query III rowsort
SELECT * FROM tab2 WHERE col1 + - 39 * + + col1 BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2777
SELECT ALL - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2778
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col0 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col0 FROM tab2
----
-3
query II rowsort
SELECT ALL col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + - col2 IS NULL
----
query I rowsort
SELECT DISTINCT - - 99 * 59 + 18 + col0 + + 51 AS col1 FROM tab2 AS cor0
----
5956
5974
5985
onlyif mysql # aggregate syntax:
query I rowsort label-2782
SELECT ALL + - COUNT( * ) + 12 AS col1 FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL + - COUNT ( * ) + 12 AS col1 FROM tab1 AS cor0
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-2783
SELECT + col0 + + + col1 DIV - 43 FROM tab2 AS cor0
----
45
63
74
skipif mysql # not compatible
query I rowsort label-2783
SELECT + col0 + + + col1 / - 43 FROM tab2 AS cor0
----
45
63
74
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-2785
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 DIV + - ( col1 ) - + col2 * - col2 DIV + - 25 AS col1, + 14 * - 16 + + 3 DIV + 77 FROM tab2 AS cor0
----
NULL
-224
NULL
-224
NULL
-224
skipif mysql # not compatible
query II rowsort label-2785
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 / + - ( col1 ) - + col2 * - col2 / + - 25 AS col1, + 14 * - 16 + + 3 / + 77 FROM tab2 AS cor0
----
NULL
-224
NULL
-224
NULL
-224
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - - ( + + col1 ) IS NOT NULL AND NOT col1 = NULL
----
query II rowsort
SELECT 44 + col1, col0 AS col2 FROM tab0 AS cor0
----
125
15
45
97
65
87
query I rowsort
SELECT ALL - 44 * + col0 AS col1 FROM tab2 AS cor0
----
-2024
-2816
-3300
query I rowsort
SELECT DISTINCT - - ( + - 28 ) + - col1 - - 14 FROM tab1 AS cor0
----
-19
-28
-61
query I rowsort
SELECT + 5 * - col0 AS col0 FROM tab1 AS cor0
----
-255
-425
-455
onlyif mysql # aggregate syntax:
query I rowsort label-2791
SELECT DISTINCT + MIN( ALL + col1 ) FROM tab2 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT + MIN ( ALL + col1 ) FROM tab2 AS cor0
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-2792
SELECT DISTINCT + MIN( 97 ) AS col2 FROM tab2 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + MIN ( 97 ) AS col2 FROM tab2 AS cor0
----
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2793
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col2 FROM tab2
----
-23
-40
-58
skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col2 FROM tab2
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query II rowsort label-2794
SELECT ALL COUNT( * ), - SUM( col0 ) AS col2 FROM tab1
----
3
-227
skipif mysql # not compatible
query II rowsort label-2794
SELECT ALL COUNT ( * ), - SUM ( col0 ) AS col2 FROM tab1
----
3
-227
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-2795
SELECT ALL - MAX( col0 ) DIV - + COUNT( * ) col1, COUNT( * ) AS col0 FROM tab1
----
30
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2795
SELECT ALL - MAX ( col0 ) / - + COUNT ( * ) col1, COUNT ( * ) AS col0 FROM tab1
----
30
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2796
SELECT ALL + - CAST( - 50 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + - CAST ( - 50 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # aggregate syntax:
query I rowsort label-2797
SELECT DISTINCT COUNT( * ) * 18 * 41 FROM tab0 AS cor0
----
2214
skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT COUNT ( * ) * 18 * 41 FROM tab0 AS cor0
----
2214
onlyif mysql # aggregate syntax:
query I rowsort label-2798
SELECT ALL SUM( - 95 ) FROM tab2 AS cor0
----
-285
skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL SUM ( - 95 ) FROM tab2 AS cor0
----
-285
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-2799
SELECT - - COUNT( * ) DIV - 76 + 7 AS col0 FROM tab0 AS cor0
----
7
skipif mysql # not compatible
query I rowsort label-2799
SELECT - - COUNT ( * ) / - 76 + 7 AS col0 FROM tab0 AS cor0
----
7
query II rowsort
SELECT DISTINCT 17 * + col0 AS col2, + col0 AS col2 FROM tab0
----
1479
87
1649
97
255
15
query I rowsort
SELECT ALL + 37 * - col0 AS col1 FROM tab1
----
-1887
-3145
-3367
onlyif mysql # aggregate syntax:
query I rowsort label-2802
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2802
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT 20 + col1 FROM tab0
----
101
21
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * 72 * + + col2 + + ( + - col2 ) * - - col1 col2 FROM tab0
----
-135783
-278091
-28290
onlyif mysql # DIV for integer division:
query I rowsort label-2805
SELECT ALL - col1 DIV - 61 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - col1 / - 61 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT ( col2 ) + 36 AS col2 FROM tab1 AS cor0
----
104
132
95
query I rowsort
SELECT - 7 + - col0 + - ( + col2 ) FROM tab2 AS cor0
----
-111
-140
-76
query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99
query I rowsort
SELECT col2 + + + ( + col0 ) FROM tab1 AS cor0
----
144
147
159
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 0, 29, + - col0 + + - col1 )
----
query I rowsort
SELECT ALL + - 81 FROM tab2 cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT col1 + col0 * 70 FROM tab1 AS cor0
----
3584
5955
6417
query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-2814
SELECT - MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-2814
SELECT - MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-47
query I rowsort
SELECT ALL ( - col2 ) + + - col2 + ( + col1 ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 12 IS NULL
----
query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NULL < NULL
----
query II rowsort
SELECT + 75 * - col2 AS col2, 48 AS col1 FROM tab2
----
-1725
48
-3000
48
-4350
48
query I rowsort
SELECT ( + + 66 ) FROM tab0
----
66
66
66
onlyif mysql # aggregate syntax:
query I rowsort label-2820
SELECT COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-2820
SELECT COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
3
query I rowsort
SELECT DISTINCT 94 * - + col1 AS col1 FROM tab0
----
-1974
-7614
-94
query I rowsort
SELECT + ( + + col0 ) - - col2 FROM tab0 AS cor0
----
196
62
97
query I rowsort
SELECT ( - col1 ) + col0 AS col0 FROM tab0
----
-66
66
96
query I rowsort
SELECT ALL col0 - + - 7 AS col1 FROM tab1
----
58
92
98
query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col1 ) BETWEEN + - 38 AND NULL
----
query I rowsort
SELECT + col2 * 15 FROM tab2
----
345
600
870
query I rowsort
SELECT ( + 86 ) AS col0 FROM tab2
----
86
86
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
onlyif mysql # aggregate syntax:
query I rowsort label-2829
SELECT 69 + - COUNT( * ) AS col2 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
66
skipif mysql # not compatible
query I rowsort label-2829
SELECT 69 + - COUNT ( * ) AS col2 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
66
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 * + col1 + - 69 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2831
SELECT DISTINCT + 67 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-201
skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + 67 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-201
onlyif mysql # aggregate syntax:
query I rowsort label-2832
SELECT ALL - MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT 0 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2834
SELECT ALL * FROM tab1 AS cor0 WHERE + 75 * - 70 * - CAST( NULL AS DECIMAL ) + - col0 + - - ( - ( + 61 ) ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-2834
SELECT ALL * FROM tab1 AS cor0 WHERE + 75 * - 70 * - CAST ( NULL AS REAL ) + - col0 + - - ( - ( + 61 ) ) IS NOT NULL
----
query II rowsort
SELECT - col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1
onlyif mysql # aggregate syntax:
query I rowsort label-2836
SELECT - MIN( DISTINCT ( 85 ) ) * - ( + + 72 ) col0 FROM tab0
----
6120
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2836
SELECT - MIN ( DISTINCT ( 85 ) ) * - ( + + 72 ) col0 FROM tab0
----
6120
onlyif mysql # aggregate syntax:
query I rowsort label-2837
SELECT ALL + 93 * + COUNT( * ) FROM tab1
----
279
skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL + 93 * + COUNT ( * ) FROM tab1
----
279
query I rowsort
SELECT DISTINCT 13 * - + 83 * ( col2 ) AS col2 FROM tab2
----
-24817
-43160
-62582
query I rowsort
SELECT 95 * + 15 AS col1 FROM tab0
----
1425
1425
1425
onlyif mysql # aggregate syntax:
query I rowsort label-2840
SELECT - MAX( ALL - 16 ) AS col0 FROM tab2
----
16
skipif mysql # not compatible
query I rowsort label-2840
SELECT - MAX ( ALL - 16 ) AS col0 FROM tab2
----
16
query III rowsort
SELECT * FROM tab0 WHERE NOT 56 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT ( - - 99 ) FROM tab0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - col2 col0, 82 * - col1 AS col0 FROM tab0
----
-705
-6642
-870
-1722
-9603
-82
query I rowsort
SELECT + 95 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
95
95
95
onlyif mysql # aggregate syntax:
query I rowsort label-2846
SELECT 26 * - COUNT( * ) FROM tab2 AS cor0
----
-78
skipif mysql # not compatible
query I rowsort label-2846
SELECT 26 * - COUNT ( * ) FROM tab2 AS cor0
----
-78
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 14 <> 24
----
onlyif mysql # DIV for integer division:
query I rowsort label-2848
SELECT - col2 DIV + + 22 + + 63 AS col0 FROM tab0 AS cor0
----
59
61
63
skipif mysql # not compatible
query I rowsort label-2848
SELECT - col2 / + + 22 + + 63 AS col0 FROM tab0 AS cor0
----
59
61
63
query I rowsort
SELECT 90 * + - 26 + + 29 * + ( - + 14 ) FROM tab0 AS cor0
----
-2746
-2746
-2746
query I rowsort
SELECT ALL + col0 * - col0 + 86 * 5 * 61 AS col2 FROM tab0 AS cor0
----
16821
18661
26005
query II rowsort
SELECT DISTINCT + col1 * + col0 * 85, - 24 AS col2 FROM tab2 AS cor0
----
199410
-24
418880
-24
427125
-24
query II rowsort
SELECT col2 + - col2, + col1 FROM tab0
----
0
1
0
21
0
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + - 71 + col0 col0 FROM tab2
----
-1587
-2776
-4043
onlyif mysql # aggregate syntax:
query I rowsort label-2854
SELECT - COUNT( * ) + - - 31 FROM tab0
----
28
skipif mysql # not compatible
query I rowsort label-2854
SELECT - COUNT ( * ) + - - 31 FROM tab0
----
28
onlyif mysql # aggregate syntax:
query I rowsort label-2855
SELECT ALL + SUM( ALL + + col0 ) - - 54 FROM tab1
----
281
skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + SUM ( ALL + + col0 ) - - 54 FROM tab1
----
281
query II rowsort
SELECT ALL col0, col2 FROM tab2
----
46
23
64
40
75
58
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-2857
SELECT - col0 + + - CAST( NULL AS SIGNED ), - 29 AS col1 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29
skipif mysql # not compatible
query II rowsort label-2857
SELECT - col0 + + - CAST ( NULL AS INTEGER ), - 29 AS col1 FROM tab1
----
NULL
-29
NULL
-29
NULL
-29
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-2858
SELECT col2 / + CAST( NULL AS DECIMAL ) - CAST( NULL AS SIGNED ) + - 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2858
SELECT col2 / + CAST ( NULL AS REAL ) - CAST ( NULL AS INTEGER ) + - 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 31 - + col2 FROM tab0 AS cor0
----
-130
-41
-78
onlyif mysql # aggregate syntax:
query I rowsort label-2860
SELECT DISTINCT ( + - SUM( - col0 ) ) FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT ( + - SUM ( - col0 ) ) FROM tab0
----
199
query I rowsort
SELECT + col1 * + + 26 AS col0 FROM tab1 cor0
----
1222
130
364
query I rowsort
SELECT - ( + col1 ) * - ( col0 ) FROM tab2 AS cor0
----
2346
4928
5025
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col1 FROM tab0 AS cor0
----
75
75
75
onlyif mysql # aggregate syntax:
query I rowsort label-2865
SELECT ALL - + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL - + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT 77 * col1 AS col1 FROM tab1
----
1078
3619
385
onlyif mysql # aggregate syntax:
query I rowsort label-2867
SELECT + 56 * COUNT( * ) FROM tab2
----
168
skipif mysql # not compatible
query I rowsort label-2867
SELECT + 56 * COUNT ( * ) FROM tab2
----
168
onlyif mysql # aggregate syntax:
query II rowsort label-2868
SELECT DISTINCT + COUNT( * ), - MIN( + 6 ) - - - ( + SUM( 15 ) ) * + 64 AS col0 FROM tab0
----
3
-2886
skipif mysql # not compatible
query II rowsort label-2868
SELECT DISTINCT + COUNT ( * ), - MIN ( + 6 ) - - - ( + SUM ( 15 ) ) * + 64 AS col0 FROM tab0
----
3
-2886
onlyif mysql # aggregate syntax:
query I rowsort label-2869
SELECT MAX( - + col0 ) FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-2869
SELECT MAX ( - + col0 ) FROM tab1
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-2870
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab0
----
3
query III rowsort
SELECT ALL * FROM tab0 WHERE + 57 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL 5 + + 76 + - 6 * - 53 AS col1 FROM tab1 AS cor0
----
399
399
399
onlyif mysql # DIV for integer division:
query II rowsort label-2873
SELECT + col2, + 31 DIV + + col0 FROM tab2 AS cor0
----
23
0
40
0
58
0
skipif mysql # not compatible
query II rowsort label-2873
SELECT + col2, + 31 / + + col0 FROM tab2 AS cor0
----
23
0
40
0
58
0
onlyif mysql # aggregate syntax:
query I rowsort label-2874
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-2874
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2875
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-2876
SELECT COUNT( * ) + + 35 FROM tab1 cor0
----
38
skipif mysql # not compatible
query I rowsort label-2876
SELECT COUNT ( * ) + + 35 FROM tab1 cor0
----
38
onlyif mysql # aggregate syntax:
query I rowsort label-2877
SELECT - 85 * + COUNT( * ) + COUNT( * ) * 40 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0
skipif mysql # not compatible
query I rowsort label-2877
SELECT - 85 * + COUNT ( * ) + COUNT ( * ) * 40 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----
0
query I rowsort
SELECT ALL - ( - ( - col2 ) ) * + col0 + ( - 64 ) AS col1 FROM tab0
----
-769
-934
-9667
query I rowsort
SELECT DISTINCT - + 82 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-82
query I rowsort
SELECT + col0 FROM tab1 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE - - col2 IS NULL
----
query I rowsort
SELECT - 83 - + 3 AS col0 FROM tab0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab1
----
78
78
78
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2884
SELECT ALL 30 + - - COUNT( ALL - + CAST( NULL AS DECIMAL ) ) col0 FROM tab2
----
30
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT ALL 30 + - - COUNT ( ALL - + CAST ( NULL AS REAL ) ) col0 FROM tab2
----
30
query I rowsort
SELECT + 55 * + 84 + + col1 * col2 + + + ( + col1 ) AS col0 FROM tab1
----
4920
5978
7863
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < NULL AND NOT NULL IS NULL
----
query I rowsort
SELECT col0 + 29 AS col2 FROM tab0
----
116
126
44
onlyif mysql # DIV for integer division:
query I rowsort label-2888
SELECT ALL - col2 DIV + + col0 * col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - col2 / + + col0 * col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-2889
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-2890
SELECT - MIN( ALL + col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-2890
SELECT - MIN ( ALL + col2 ) FROM tab2
----
-23
onlyif mysql # aggregate syntax:
query I rowsort label-2891
SELECT ALL MAX( 75 ) * + + 12 * - 78 AS col0 FROM tab0
----
-70200
skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL MAX ( 75 ) * + + 12 * - 78 AS col0 FROM tab0
----
-70200
query II rowsort
SELECT ALL col1 AS col1, ( 86 ) AS col2 FROM tab0 AS cor0
----
1
86
21
86
81
86
onlyif mysql # aggregate syntax:
query II rowsort label-2893
SELECT ALL COUNT( * ) * + 95 AS col0, 15 + 72 col2 FROM tab2
----
285
87
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2893
SELECT ALL COUNT ( * ) * + 95 AS col0, 15 + 72 col2 FROM tab2
----
285
87
onlyif mysql # aggregate syntax:
query I rowsort label-2894
SELECT + COUNT( ALL + - ( + + col0 ) ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-2894
SELECT + COUNT ( ALL + - ( + + col0 ) ) AS col2 FROM tab0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - col1, + 25 col1 FROM tab1
----
-425
25
-4277
25
-714
25
onlyif mysql # DIV for integer division:
query II rowsort label-2896
SELECT 47 DIV 76 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77
skipif mysql # not compatible
query II rowsort label-2896
SELECT 47 / 76 AS col0, col1 AS col1 FROM tab2
----
0
51
0
67
0
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col0 FROM tab0
----
15
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-2898
SELECT + MAX( ALL col1 ) FROM tab1
----
47
skipif mysql # not compatible
query I rowsort label-2898
SELECT + MAX ( ALL col1 ) FROM tab1
----
47
query I rowsort
SELECT 77 + + col0 + + - col1 FROM tab0
----
11
143
173
query I rowsort
SELECT DISTINCT - 0 * - + col1 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - 54 * col2 + + 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + col1 + + - col2 AS col0 FROM tab0 AS cor0
----
-98
11
34
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + col1 NOT BETWEEN - col1 + - - ( + - col1 ) AND - + col1 + + col1
----
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2906
SELECT DISTINCT - MIN( ALL + col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-2906
SELECT DISTINCT - MIN ( ALL + col0 ) AS col1 FROM tab1 WHERE NOT NULL < NULL
----
NULL
query I rowsort
SELECT DISTINCT + col2 * + + 82 + + col1 + 24 * + 54 * - - col0 AS col0 FROM tab2 cor0
----
102023
61553
86301
query II rowsort
SELECT DISTINCT col2, + 85 AS col0 FROM tab2 AS cor0 WHERE NOT col1 <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2909
SELECT - 90 FROM tab1 AS cor0 WHERE - 80 * - 80 BETWEEN col0 - + 98 + + - CAST( NULL AS SIGNED ) + col1 * - 5 AND col2
----
skipif mysql # not compatible
query I rowsort label-2909
SELECT - 90 FROM tab1 AS cor0 WHERE - 80 * - 80 BETWEEN col0 - + 98 + + - CAST ( NULL AS INTEGER ) + col1 * - 5 AND col2
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN + + col0 * - col0 AND NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 + col2 col2 FROM tab2 cor0 WHERE 71 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2912
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2913
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-2914
SELECT DISTINCT MAX( - + 63 ) - - 8 * - 0, + COUNT( * ) AS col1 FROM tab2 cor0
----
-63
3
skipif mysql # not compatible
query II rowsort label-2914
SELECT DISTINCT MAX ( - + 63 ) - - 8 * - 0, + COUNT ( * ) AS col1 FROM tab2 cor0
----
-63
3
query I rowsort
SELECT + col2 + + 47 AS col0 FROM tab1 AS cor0
----
106
115
143
query I rowsort
SELECT + col1 + - 30 FROM tab2 AS cor0
----
21
37
47
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2917
SELECT col2 + + - col2 + + col0 - - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2917
SELECT col2 + + - col2 + + col0 - - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2918
SELECT ALL - 3 + MIN( - col1 ) + + MIN( DISTINCT - col0 ) + - - MAX( col0 ) AS col0 FROM tab1
----
-50
skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL - 3 + MIN ( - col1 ) + + MIN ( DISTINCT - col0 ) + - - MAX ( col0 ) AS col0 FROM tab1
----
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + 28 col2 FROM tab1
----
-2573
-7197
-8253
query I rowsort
SELECT DISTINCT + col0 - + + col0 FROM tab0
----
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-2921
SELECT MIN( ALL + col1 ) * + CAST( - - 64 AS SIGNED ) FROM tab2
----
3264
skipif mysql # not compatible
query I rowsort label-2921
SELECT MIN ( ALL + col1 ) * + CAST ( - - 64 AS INTEGER ) FROM tab2
----
3264
query I rowsort
SELECT ALL col2 * + + col0 AS col2 FROM tab2 AS cor0
----
1058
2560
4350
onlyif mysql # DIV for integer division:
query I rowsort label-2923
SELECT + col1 DIV col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5
skipif mysql # not compatible
query I rowsort label-2923
SELECT + col1 / col2 + + - col1 FROM tab1 AS cor0
----
-14
-47
-5
onlyif mysql # DIV for integer division:
query I rowsort label-2924
SELECT ALL + col0 DIV - 32 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + col0 / - 32 FROM tab0
----
-2
-3
0
onlyif mysql # aggregate syntax:
query I rowsort label-2925
SELECT DISTINCT - 48 * + - COUNT( * ) * + COUNT( * ) * + - 44 FROM tab2, tab2 cor0
----
-171072
skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - 48 * + - COUNT ( * ) * + COUNT ( * ) * + - 44 FROM tab2, tab2 cor0
----
-171072
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 / + - col1 + - 42 * + - 90 BETWEEN NULL AND - 90
----
onlyif mysql # DIV for integer division:
query I rowsort label-2927
SELECT ALL - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, 25 AS col0 FROM tab0 AS cor0
----
1
25
21
25
81
25
query I rowsort
SELECT - + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
46
64
75
query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + + 64 / col1 + - - 46 IS NULL
----
-59
-68
-96
query I rowsort
SELECT ( + col0 ) * + 98 FROM tab1 AS cor0
----
4998
8330
8918
query I rowsort
SELECT 43 AS col0 FROM tab2 cor0 WHERE NOT col1 + - ( - - col1 ) IS NOT NULL
----
query I rowsort
SELECT ALL - 49 AS col0 FROM tab0
----
-49
-49
-49
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= col2 + + - col2
----
query II rowsort
SELECT col2, + col2 FROM tab2
----
23
23
40
40
58
58
query I rowsort
SELECT DISTINCT + 39 FROM tab2 WHERE NOT NULL IS NOT NULL
----
39
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < - col0 * col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-2938
SELECT ALL MIN( DISTINCT + col2 ) AS col2 FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-2938
SELECT ALL MIN ( DISTINCT + col2 ) AS col2 FROM tab1
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-2939
SELECT DISTINCT - + MIN( ALL - - col1 ) + + 41 * + 75 FROM tab0 WHERE + + 33 <= + - col2
----
NULL
skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - + MIN ( ALL - - col1 ) + + 41 * + 75 FROM tab0 WHERE + + 33 <= + - col2
----
NULL
query II rowsort
SELECT col0, + 55 FROM tab0 AS cor0
----
15
55
87
55
97
55
query I rowsort
SELECT ALL + + 34 * - + 64 AS col0 FROM tab2 AS cor0
----
-2176
-2176
-2176
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-2942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - CAST( NULL AS SIGNED ) / col1 * + col2 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-2942
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - CAST ( NULL AS INTEGER ) / col1 * + col2 IS NOT NULL
----
query I rowsort
SELECT ALL + col2 + + + col2 * 78 FROM tab0 AS cor0
----
3713
7821
790
onlyif mysql # aggregate syntax:
query I rowsort label-2944
SELECT + ( + COUNT( * ) ) col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2944
SELECT + ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col0, ( 75 ) + - - 8 + + ( + - col2 ) - + + col0 * col1 col1 FROM tab1 AS cor0
----
59
-401
68
-4262
96
-727
query II rowsort
SELECT DISTINCT - col2 - + col1 + + col2, col2 AS col1 FROM tab0 AS cor0 WHERE col2 = + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-2947
SELECT DISTINCT + + COUNT( * ) + - MAX( DISTINCT - + col0 ) col0 FROM tab2 AS cor0
----
49
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2947
SELECT DISTINCT + + COUNT ( * ) + - MAX ( DISTINCT - + col0 ) col0 FROM tab2 AS cor0
----
49
query I rowsort
SELECT - col0 + 99 AS col1 FROM tab1
----
14
48
8
onlyif mysql # aggregate syntax:
query I rowsort label-2949
SELECT - MIN( col0 ) + + 84 AS col0 FROM tab2
----
38
skipif mysql # not compatible
query I rowsort label-2949
SELECT - MIN ( col0 ) + + 84 AS col0 FROM tab2
----
38
onlyif mysql # aggregate syntax:
query I rowsort label-2950
SELECT ALL + MIN( DISTINCT col2 ) AS col0 FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL + MIN ( DISTINCT col2 ) AS col0 FROM tab1
----
59
query II rowsort
SELECT - + 27 * + 35, - col2 AS col0 FROM tab2 AS cor0
----
-945
-23
-945
-40
-945
-58
onlyif mysql # aggregate syntax:
query I rowsort label-2952
SELECT - MIN( - col1 ) FROM tab1 AS cor0
----
47
skipif mysql # not compatible
query I rowsort label-2952
SELECT - MIN ( - col1 ) FROM tab1 AS cor0
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col2 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT 50 * + ( 21 ) + + col2 * - - col0 * - 38 + col0 AS col1 FROM tab1 cor0
----
-184947
-189435
-234003
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2955
SELECT ALL + 3 / + CAST( NULL AS SIGNED ) + - 43 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + 3 / + CAST ( NULL AS INTEGER ) + - 43 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 54 - - col1 + - + col2 * col1 * + 0 * + - col0 FROM tab0 AS cor0
----
135
55
75
query I rowsort
SELECT ALL - - col0 + 91 + col1 + col2 FROM tab0 cor0
----
209
234
288
query I rowsort
SELECT ALL - col0 + - - 81 * + col1 FROM tab2
----
4085
5352
6173
query I rowsort
SELECT 89 - col0 AS col1 FROM tab2
----
14
25
43
query III rowsort
SELECT ALL * FROM tab2 WHERE + 61 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2961
SELECT ALL - SUM( - - 35 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 + col1 AND + 77
----
NULL
skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - SUM ( - - 35 ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN - col0 + col1 AND + 77
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2962
SELECT MIN( + 44 ) - + COUNT( * ) AS col0 FROM tab2
----
41
skipif mysql # not compatible
query I rowsort label-2962
SELECT MIN ( + 44 ) - + COUNT ( * ) AS col0 FROM tab2
----
41
query II rowsort
SELECT - 21 * + col1 * 58 AS col2, + col2 AS col2 FROM tab2
----
-62118
23
-81606
58
-93786
40
onlyif mysql # aggregate syntax:
query II rowsort label-2964
SELECT DISTINCT 0 AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0
----
0
3
skipif mysql # not compatible
query II rowsort label-2964
SELECT DISTINCT 0 AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0
3
query II rowsort
SELECT + col0 AS col1, + col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IN ( + col1 )
----
46
23
64
40
75
58
onlyif mysql # aggregate syntax:
query I rowsort label-2966
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-2967
SELECT ALL COUNT( * ) AS col0 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) AS col0 FROM tab2 cor0
----
3
query I rowsort
SELECT ALL + 53 AS col0 FROM tab2 cor0
----
53
53
53
onlyif mysql # aggregate syntax:
query I rowsort label-2969
SELECT DISTINCT MIN( ALL - ( 93 ) ) AS col0 FROM tab2
----
-93
skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT MIN ( ALL - ( 93 ) ) AS col0 FROM tab2
----
-93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-2970
SELECT ALL col0 - CAST( NULL AS SIGNED ) / 56 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL col0 - CAST ( NULL AS INTEGER ) / 56 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-2971
SELECT MIN( col0 ) + + MIN( - col1 + + col1 * col2 ) AS col2 FROM tab2
----
1168
skipif mysql # not compatible
query I rowsort label-2971
SELECT MIN ( col0 ) + + MIN ( - col1 + + col1 * col2 ) AS col2 FROM tab2
----
1168
onlyif mysql # aggregate syntax:
query I rowsort label-2972
SELECT ALL SUM( DISTINCT col0 ) AS col2 FROM tab1
----
227
skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-2973
SELECT COUNT( * ) + - ( - MIN( + col1 ) + 2 * COUNT( * ) ) col2 FROM tab2
----
48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2973
SELECT COUNT ( * ) + - ( - MIN ( + col1 ) + 2 * COUNT ( * ) ) col2 FROM tab2
----
48
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-2974
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND CAST( col0 AS DECIMAL )
----
skipif mysql # not compatible
query I rowsort label-2974
SELECT col1 FROM tab1 WHERE NULL BETWEEN NULL AND CAST ( col0 AS REAL )
----
query I rowsort
SELECT col2 + col1 FROM tab2 WHERE NOT 98 BETWEEN 50 AND col1
----
117
125
74
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-2976
SELECT * FROM tab0 WHERE NOT col1 / CAST( NULL AS DECIMAL ) NOT BETWEEN ( NULL ) AND NULL
----
skipif mysql # not compatible
query III rowsort label-2976
SELECT * FROM tab0 WHERE NOT col1 / CAST ( NULL AS REAL ) NOT BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 47 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2978
SELECT + COUNT( * ) + 35 FROM tab1
----
38
skipif mysql # not compatible
query I rowsort label-2978
SELECT + COUNT ( * ) + 35 FROM tab1
----
38
query I rowsort
SELECT + ( - col1 ) + + col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 + + ( col0 ) FROM tab0
----
108
96
98
onlyif mysql # aggregate syntax:
query I rowsort label-2981
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab1
----
47
skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab1
----
47
onlyif mysql # aggregate syntax:
query I rowsort label-2982
SELECT ALL + SUM( DISTINCT 25 ) FROM tab1
----
25
skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + SUM ( DISTINCT 25 ) FROM tab1
----
25
query III rowsort
SELECT * FROM tab0 WHERE + col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-2984
SELECT - MAX( + col2 ) AS col1 FROM tab2
----
-58
skipif mysql # not compatible
query I rowsort label-2984
SELECT - MAX ( + col2 ) AS col1 FROM tab2
----
-58
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / col2 + 83 NOT IN ( 37 * col1 )
----
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - 54
----
23
40
58
query I rowsort
SELECT DISTINCT - 88 * - col2 AS col0 FROM tab2
----
2024
3520
5104
query I rowsort
SELECT - 39 + - col0 FROM tab2
----
-103
-114
-85
query I rowsort
SELECT DISTINCT 28 * - col2 + + col1 * col1 FROM tab1
----
-1627
-2492
305
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-2990
SELECT COUNT( * ) - - 77 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2990
SELECT COUNT ( * ) - - 77 * CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * 6 col2 FROM tab2
----
36
36
36
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( NULL ) IS NULL
----
-10
-47
-99
query I rowsort
SELECT col0 * - col2 - ( col0 ) AS col2 FROM tab1
----
-4947
-5100
-6279
query I rowsort
SELECT col1 * ( col2 * - ( 98 ) ) FROM tab1
----
-131712
-28910
-313208
query I rowsort
SELECT 18 * 12 FROM tab2
----
216
216
216
query I rowsort
SELECT DISTINCT col1 + + 66 FROM tab1 cor0
----
113
71
80
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 < 76 / col2
----
query I rowsort
SELECT ALL col0 + 31 AS col2 FROM tab0 cor0
----
118
128
46
query I rowsort
SELECT DISTINCT 67 + 91 AS col1 FROM tab1 AS cor0
----
158
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3000
SELECT 30 / CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL >= col2 / col1
----
skipif mysql # not compatible
query I rowsort label-3000
SELECT 30 / CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL >= col2 / col1
----
query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 WHERE ( ( 74 ) ) IS NULL
----
query I rowsort
SELECT ALL - 36 * + col1 + + 25 AS col2 FROM tab0 AS cor0
----
-11
-2891
-731
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 34 * col2 col1 FROM tab0 AS cor0
----
1679
3367
361
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= NULL
----
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99
query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT ( + col0 ) <> - col1 * + col2
----
query I rowsort
SELECT ( - - col0 ) AS col1 FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-3010
SELECT SUM( - ( + 83 ) ) FROM tab2
----
-249
skipif mysql # not compatible
query I rowsort label-3010
SELECT SUM ( - ( + 83 ) ) FROM tab2
----
-249
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - 68 )
----
query I rowsort
SELECT DISTINCT + col0 * + + col1 * - col2 FROM tab2
----
-197120
-291450
-53958
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) < 45
----
query I rowsort
SELECT DISTINCT - col2 + 16 * col0 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3015
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3016
SELECT ALL + 34 * - COUNT( DISTINCT + col0 ) FROM tab1
----
-102
skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + 34 * - COUNT ( DISTINCT + col0 ) FROM tab1
----
-102
query I rowsort
SELECT 8 + ( 48 + - 45 ) FROM tab1 WHERE NOT col1 IN ( + col0 * ( - col0 ) )
----
11
11
11
query I rowsort
SELECT - col2 * - + col0 FROM tab2
----
1058
2560
4350
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3019
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - 18 * col1 + - col1 * + col2 )
----
skipif mysql # not compatible
query III rowsort label-3019
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - 18 * col1 + - col1 * + col2 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <> 2
----
onlyif mysql # aggregate syntax:
query I rowsort label-3021
SELECT ALL + SUM( ALL + col2 ) FROM tab2 AS cor0
----
121
skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
121
query I rowsort
SELECT - - 91 * - - col1 * - 19 FROM tab0 AS cor0
----
-140049
-1729
-36309
onlyif mysql # aggregate syntax:
query I rowsort label-3023
SELECT - ( + MAX( DISTINCT - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-3023
SELECT - ( + MAX ( DISTINCT - col2 ) ) AS col2 FROM tab2 AS cor0
----
23
query I rowsort
SELECT - - col0 * - 97 FROM tab0 AS cor0
----
-1455
-8439
-9409
onlyif mysql # aggregate syntax:
query I rowsort label-3025
SELECT MAX( col2 ) AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) > 80 * + 76
----
58
skipif mysql # not compatible
query I rowsort label-3025
SELECT MAX ( col2 ) AS col1 FROM tab2 cor0 WHERE NOT ( col0 ) > 80 * + 76
----
58
query I rowsort
SELECT ALL - ( + 34 ) AS col1 FROM tab0 AS cor0
----
-34
-34
-34
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = 66
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3028
SELECT DISTINCT COUNT( * ) DIV ( 58 ) AS col2 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT COUNT ( * ) / ( 58 ) AS col2 FROM tab2 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 77 <= NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 42 ) >= ( col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3031
SELECT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3031
SELECT - + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3032
SELECT - 72 DIV - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
skipif mysql # not compatible
query I rowsort label-3032
SELECT - 72 / - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query III rowsort
SELECT * FROM tab2 WHERE NOT + 92 NOT IN ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3034
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
query I rowsort
SELECT ALL - - 43 AS col0 FROM tab1 AS cor0
----
43
43
43
onlyif mysql # aggregate syntax:
query I rowsort label-3036
SELECT ALL ( + - 31 ) + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-25
skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL ( + - 31 ) + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + - 31 col1 FROM tab0 AS cor0
----
-130
-41
-78
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <> NULL
----
skipif mysql # not compatible
query III rowsort label-3039
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col2 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * + 40 FROM tab0 AS cor0
----
3480
3880
600
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col2 ) BETWEEN col0 + 42 * - col1 AND 19 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 WHERE ( - 2 * - col0 + col2 ) >= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE - col0 > ( NULL )
----
onlyif mysql # DIV for integer division:
query II rowsort label-3045
SELECT ALL 10 DIV - col2 AS col2, + col1 + + - col0 * - col2 AS col0 FROM tab2
----
0
1109
0
2637
0
4417
skipif mysql # not compatible
query II rowsort label-3045
SELECT ALL 10 / - col2 AS col2, + col1 + + - col0 * - col2 AS col0 FROM tab2
----
0
1109
0
2637
0
4417
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3046
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3047
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) NOT IN ( 16 )
----
0
skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) NOT IN ( 16 )
----
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3048
SELECT ALL SUM( + - col1 ) DIV - COUNT( * ) AS col0 FROM tab2
----
65
skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL SUM ( + - col1 ) / - COUNT ( * ) AS col0 FROM tab2
----
65
query III rowsort
SELECT * FROM tab0 WHERE 93 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3050
SELECT DISTINCT col2 DIV - 87 col0 FROM tab1
----
-1
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3050
SELECT DISTINCT col2 / - 87 col0 FROM tab1
----
-1
0
query I rowsort
SELECT + col2 FROM tab2 WHERE + col1 IS NOT NULL
----
23
40
58
query I rowsort
SELECT col2 * - ( col1 ) AS col1 FROM tab2
----
-1173
-3080
-3886
onlyif mysql # DIV for integer division:
query I rowsort label-3053
SELECT ALL col2 DIV + - col1 FROM tab0
----
-99
0
0
skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL col2 / + - col1 FROM tab0
----
-99
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-3054
SELECT DISTINCT - ( + ( - COUNT( * ) ) ) + COUNT( * ) FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - ( + ( - COUNT ( * ) ) ) + COUNT ( * ) FROM tab1
----
6
onlyif mysql # DIV for integer division:
query I rowsort label-3055
SELECT col0 - + col2 DIV - + 69 * + + 15 FROM tab2 AS cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-3055
SELECT col0 - + col2 / - + 69 * + + 15 FROM tab2 AS cor0
----
46
64
75
query I rowsort
SELECT DISTINCT col0 + + + col0 + - col0 AS col0 FROM tab1 AS cor0
----
51
85
91
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 93 * col1 IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 92 * col1 AS col0 FROM tab2 AS cor0 WHERE 70 IN ( + - 41 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 + - - col0 ) >= ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) = ( + col2 * col0 + 76 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3061
SELECT - 0 + col1 FROM tab0 AS cor0 WHERE + col1 * + 23 + + CAST( 14 AS SIGNED ) >= - col1 * - ( col1 )
----
1
21
skipif mysql # not compatible
query I rowsort label-3061
SELECT - 0 + col1 FROM tab0 AS cor0 WHERE + col1 * + 23 + + CAST ( 14 AS INTEGER ) >= - col1 * - ( col1 )
----
1
21
onlyif mysql # aggregate syntax:
query I rowsort label-3062
SELECT DISTINCT + COUNT( DISTINCT - + 22 ) * + + 21 - - COUNT( * ) FROM tab1 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT + COUNT ( DISTINCT - + 22 ) * + + 21 - - COUNT ( * ) FROM tab1 AS cor0
----
24
query I rowsort
SELECT 3 * - - 20 AS col2 FROM tab1 AS cor0
----
60
60
60
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( 79 * col1 - + col0 ) AND ( 55 + - ( col1 + 23 ) * col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3065
SELECT ALL + MIN( - 13 ) AS col2 FROM tab2 AS cor0
----
-13
skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL + MIN ( - 13 ) AS col2 FROM tab2 AS cor0
----
-13
query I rowsort
SELECT DISTINCT - 68 + col0 FROM tab1 AS cor0
----
-17
17
23
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3067
SELECT - col2 DIV - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3067
SELECT - col2 / - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3068
SELECT DISTINCT + 18 * + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT + 18 * + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
54
query I rowsort
SELECT ALL - col0 - + 39 FROM tab0 AS cor0 WHERE NOT col1 * + ( - col0 ) * - col1 + 68 NOT BETWEEN - col1 AND ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( - col0 * col0 )
----
query I rowsort
SELECT DISTINCT + col0 - - col0 * - 47 AS col2 FROM tab1 WHERE ( NOT col1 / col1 - 48 IN ( - col2 * + col2 ) )
----
-2346
-3910
-4186
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL >= col0 * - + ( + 99 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3073
SELECT - MIN( - + 37 ) AS col2 FROM tab2, tab0 AS cor0
----
37
skipif mysql # not compatible
query I rowsort label-3073
SELECT - MIN ( - + 37 ) AS col2 FROM tab2, tab0 AS cor0
----
37
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * col1 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3075
SELECT ALL 29 DIV - col1 col1 FROM tab1
----
-2
-5
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3075
SELECT ALL 29 / - col1 col1 FROM tab1
----
-2
-5
0
onlyif mysql # aggregate syntax:
query I rowsort label-3076
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab0
----
3
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) <= ( col1 + + col0 * col0 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3078
SELECT + MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-3078
SELECT + MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-3079
SELECT ALL + SUM( ALL - + 27 ) AS col1 FROM tab2
----
-81
skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + SUM ( ALL - + 27 ) AS col1 FROM tab2
----
-81
query II rowsort
SELECT 75, 72 + + 51 AS col0 FROM tab0
----
75
123
75
123
75
123
query III rowsort
SELECT ALL * FROM tab2 WHERE - 58 * - + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3082
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST( - - 43 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3082
SELECT DISTINCT * FROM tab1 WHERE NULL >= CAST ( - - 43 AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3083
SELECT - CAST( + - 33 AS SIGNED ) AS col1 FROM tab1
----
33
33
33
skipif mysql # not compatible
query I rowsort label-3083
SELECT - CAST ( + - 33 AS INTEGER ) AS col1 FROM tab1
----
33
33
33
query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + ( - ( + col1 ) ) ) + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT - - col0 AS col0, col1 + - - col2 * - - 17 AS col2 FROM tab0 AS cor0
----
15
880
87
191
97
1684
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * 45 + + col0 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 23 - + + 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query II rowsort label-3088
SELECT 81 + - + ( + 26 ) AS col2, - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3088
SELECT 81 + - + ( + 26 ) AS col2, - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
55
-9
onlyif mysql # aggregate syntax:
query I rowsort label-3089
SELECT + MIN( ALL - 89 ) * + MIN( + col2 ) AS col0 FROM tab0
----
-890
skipif mysql # not compatible
query I rowsort label-3089
SELECT + MIN ( ALL - 89 ) * + MIN ( + col2 ) AS col0 FROM tab0
----
-890
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-3090
SELECT COUNT( * ) DIV + CAST( + - SUM( DISTINCT + 46 ) AS SIGNED ) AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3090
SELECT COUNT ( * ) / + CAST ( + - SUM ( DISTINCT + 46 ) AS INTEGER ) AS col1 FROM tab1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3091
SELECT - COUNT( * ) * 17 col2 FROM tab1
----
-51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3091
SELECT - COUNT ( * ) * 17 col2 FROM tab1
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-3092
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-138
skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT 26 IS NULL
----
-138
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col1 FROM tab0 cor0
----
-178
-7559
-9310
onlyif mysql # aggregate syntax:
query I rowsort label-3094
SELECT ALL - 5 + - COUNT( DISTINCT - 73 ) FROM tab0 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - 5 + - COUNT ( DISTINCT - 73 ) FROM tab0 AS cor0
----
-6
onlyif mysql # aggregate syntax:
query I rowsort label-3095
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 * + + col0 * - col2 * - - col1 BETWEEN NULL AND 11
----
0
skipif mysql # not compatible
query I rowsort label-3095
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 * + + col0 * - col2 * - - col1 BETWEEN NULL AND 11
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3096
SELECT DISTINCT - 46 + + - COUNT( 91 ) AS col0 FROM tab1 AS cor0
----
-49
skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - 46 + + - COUNT ( 91 ) AS col0 FROM tab1 AS cor0
----
-49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-3097
SELECT - ( COUNT( DISTINCT col0 ) ) + + 93 + + 87 + + 88 DIV CAST( 88 AS SIGNED ) DIV + COUNT( * ) FROM tab0 AS cor0
----
177
skipif mysql # not compatible
query I rowsort label-3097
SELECT - ( COUNT ( DISTINCT col0 ) ) + + 93 + + 87 + + 88 / CAST ( 88 AS INTEGER ) / + COUNT ( * ) FROM tab0 AS cor0
----
177
query I rowsort
SELECT + col2 + + 71 FROM tab0
----
118
170
81
onlyif mysql # aggregate syntax:
query I rowsort label-3099
SELECT COUNT( * ) * + + SUM( DISTINCT + ( - 70 ) ) + + MIN( - - col2 ) AS col0 FROM tab1
----
-151
skipif mysql # not compatible
query I rowsort label-3099
SELECT COUNT ( * ) * + + SUM ( DISTINCT + ( - 70 ) ) + + MIN ( - - col2 ) AS col0 FROM tab1
----
-151
query I rowsort
SELECT + ( - 21 ) + - col2 FROM tab2
----
-44
-61
-79
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3101
SELECT + COUNT( * ) AS col2, + COUNT( * ) FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
3
3
skipif mysql # not compatible
query II rowsort label-3101
SELECT + COUNT ( * ) AS col2, + COUNT ( * ) FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
3
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3102
SELECT ALL - COUNT( * ) * - 27 + - CAST( NULL AS SIGNED ) + + ( - - COUNT( * ) ) * - SUM( 75 ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - COUNT ( * ) * - 27 + - CAST ( NULL AS INTEGER ) + + ( - - COUNT ( * ) ) * - SUM ( 75 ) FROM tab0
----
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-3103
SELECT DISTINCT col2, col1 * - 1 DIV + - ( + 79 ) AS col2 FROM tab1
----
59
0
68
0
96
0
skipif mysql # not compatible
query II rowsort label-3103
SELECT DISTINCT col2, col1 * - 1 / + - ( + 79 ) AS col2 FROM tab1
----
59
0
68
0
96
0
query I rowsort
SELECT + col2 + + - col1 * - col0 AS col0 FROM tab0
----
1262
1837
196
onlyif mysql # aggregate syntax:
query I rowsort label-3105
SELECT ALL - MIN( + 30 ) AS col0 FROM tab1
----
-30
skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL - MIN ( + 30 ) AS col0 FROM tab1
----
-30
onlyif mysql # aggregate syntax:
query I rowsort label-3106
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab0
----
3
query I rowsort
SELECT DISTINCT 1 + + col2 AS col0 FROM tab0
----
100
11
48
query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col1 FROM tab1 WHERE NOT + + 69 + col1 * - 8 IS NULL
----
-59
-68
-96
query I rowsort
SELECT DISTINCT col0 + + 17 + - col0 FROM tab1 cor0
----
17
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( + CAST( - col2 AS SIGNED ) / - 64 )
----
skipif mysql # not compatible
query III rowsort label-3110
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( + CAST ( - col2 AS INTEGER ) / - 64 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3111
SELECT DISTINCT + SUM( + 97 ) + + 33 col0 FROM tab1 AS cor0
----
324
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT DISTINCT + SUM ( + 97 ) + + 33 col0 FROM tab1 AS cor0
----
324
query II rowsort
SELECT + col2 - + - col2, 14 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
198
14
20
14
94
14
query I rowsort
SELECT + - col1 - + - 5 AS col2 FROM tab0 AS cor0
----
-16
-76
4
query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3115
SELECT col2 * + CAST( NULL AS DECIMAL ) - - 38 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3115
SELECT col2 * + CAST ( NULL AS REAL ) - - 38 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 col0 FROM tab0 WHERE NOT ( NOT - col0 IS NULL )
----
query I rowsort
SELECT ALL + - ( 29 ) FROM tab1 cor0
----
-29
-29
-29
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3118
SELECT SUM( ALL col1 ) / + MIN( col1 / - 74 ) + 87 AS col1 FROM tab0 AS cor0 WHERE NOT + 97 + - + 14 + - CAST( - col0 AS DECIMAL ) + col1 > ( + ( + col0 ) + - col2 )
----
NULL
skipif mysql # not compatible
query I rowsort label-3118
SELECT SUM ( ALL col1 ) / + MIN ( col1 / - 74 ) + 87 AS col1 FROM tab0 AS cor0 WHERE NOT + 97 + - + 14 + - CAST ( - col0 AS REAL ) + col1 > ( + ( + col0 ) + - col2 )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3119
SELECT DISTINCT - - 68 * MIN( 80 ) FROM tab0 AS cor0
----
5440
skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - - 68 * MIN ( 80 ) FROM tab0 AS cor0
----
5440
query I rowsort
SELECT ALL - - 71 * - col1 AS col2 FROM tab2 AS cor0
----
-3621
-4757
-5467
onlyif mysql # aggregate syntax:
query I rowsort label-3121
SELECT + MIN( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-3121
SELECT + MIN ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-47
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3122
SELECT - 10 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3122
SELECT - 10 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT + col2, - col0 + col2 AS col2, col2 FROM tab2
----
9 values hashing to c6b369564649f9e1af73d83ae9d5439b
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / + col0 = - + 87 + col2
----
query I rowsort
SELECT col0 * - 87 AS col0 FROM tab0 cor0
----
-1305
-7569
-8439
query I rowsort
SELECT ALL - + 76 AS col1 FROM tab2 AS cor0
----
-76
-76
-76
onlyif mysql # aggregate syntax:
query I rowsort label-3127
SELECT - 52 * + - MIN( - - 95 ) - - 92 FROM tab0 AS cor0
----
5032
skipif mysql # not compatible
query I rowsort label-3127
SELECT - 52 * + - MIN ( - - 95 ) - - 92 FROM tab0 AS cor0
----
5032
onlyif mysql # aggregate syntax:
query I rowsort label-3128
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query I rowsort label-3130
SELECT ALL + COUNT( - - col2 ) AS col2 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL + COUNT ( - - col2 ) AS col2 FROM tab0
----
3
query I rowsort
SELECT + col1 + + + col0 FROM tab1
----
138
65
90
query I rowsort
SELECT - col0 + - col0 + - col1 * + - col1 FROM tab1
----
-145
2027
94
query II rowsort
SELECT ALL + col1 * col1 + - ( 29 ) AS col0, 32 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
2572
-1472
4460
-2400
5900
-2048
onlyif mysql # aggregate syntax:
query II rowsort label-3134
SELECT 0, - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 <= NULL
----
0
0
skipif mysql # not compatible
query II rowsort label-3134
SELECT 0, - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 * - col1 <= NULL
----
0
0
query II rowsort
SELECT DISTINCT 50 AS col0, + 54 AS col0 FROM tab0 AS cor0
----
50
54
query I rowsort
SELECT - ( + + col0 ) * - 17 AS col1 FROM tab0 AS cor0
----
1479
1649
255
query I rowsort
SELECT DISTINCT - - col0 + - - col2 FROM tab1 AS cor0
----
144
147
159
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3138
SELECT 47 AS col0, COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
47
NULL
skipif mysql # not compatible
query II rowsort label-3138
SELECT 47 AS col0, COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
47
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 63 + + - 21 + + 47 + + - col2 * - col2 * + col2 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3140
SELECT + MIN( ALL + - 16 ) AS col1 FROM tab1 cor0
----
-16
skipif mysql # not compatible
query I rowsort label-3140
SELECT + MIN ( ALL + - 16 ) AS col1 FROM tab1 cor0
----
-16
onlyif mysql # aggregate syntax:
query I rowsort label-3141
SELECT DISTINCT + ( + COUNT( * ) ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + 45 ) / + + col1 / col2 - - 92 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT + ( + COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + ( + 45 ) / + + col1 / col2 - - 92 IS NULL
----
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 27 + + + col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3143
SELECT DISTINCT + COUNT( * ) * + 48 - - + 23 + - + 71 AS col2 FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + COUNT ( * ) * + 48 - - + 23 + - + 71 AS col2 FROM tab1
----
96
query I rowsort
SELECT 17 * col1 FROM tab0 WHERE ( - col1 * + - col2 ) IS NOT NULL
----
1377
17
357
onlyif mysql # aggregate syntax:
query I rowsort label-3145
SELECT DISTINCT + SUM( ALL + ( col0 ) ) / + - 11 / - - 68 FROM tab1 WHERE NULL NOT IN ( col2 / - col1, col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT + SUM ( ALL + ( col0 ) ) / + - 11 / - - 68 FROM tab1 WHERE NULL NOT IN ( col2 / - col1, col1 )
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3146
SELECT DISTINCT 73 DIV - + col2 col1 FROM tab0 WHERE NOT col0 + col0 * + col0 - - col2 - col2 * 11 IN ( + col1 )
----
-1
-7
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3146
SELECT DISTINCT 73 / - + col2 col1 FROM tab0 WHERE NOT col0 + col0 * + col0 - - col2 - col2 * 11 IN ( + col1 )
----
-1
-7
0
query II rowsort
SELECT ALL + 55 * col2 - col1 AS col0, col0 * - col1 FROM tab1
----
3240
-425
3693
-4277
5266
-714
query I rowsort
SELECT DISTINCT + col0 * + + col2 FROM tab2
----
1058
2560
4350
onlyif mysql # DIV for integer division:
query II rowsort label-3149
SELECT 90 - + 36 AS col0, - col1 DIV - 53 AS col0 FROM tab0
----
54
0
54
0
54
1
skipif mysql # not compatible
query II rowsort label-3149
SELECT 90 - + 36 AS col0, - col1 / - 53 AS col0 FROM tab0
----
54
0
54
0
54
1
query III rowsort
SELECT * FROM tab1 WHERE 16 NOT BETWEEN 10 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3151
SELECT DISTINCT CAST( NULL AS SIGNED ) * 46 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 46 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3152
SELECT ALL - COUNT( - col2 ) AS col0 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - COUNT ( - col2 ) AS col0 FROM tab2
----
-3
onlyif mysql # DIV for integer division:
query II rowsort label-3153
SELECT ALL + 23 * col1, col0 + 99 DIV + - 87 - 83 AS col1 FROM tab1
----
1081
7
115
1
322
-33
skipif mysql # not compatible
query II rowsort label-3153
SELECT ALL + 23 * col1, col0 + 99 / + - 87 - 83 AS col1 FROM tab1
----
1081
7
115
1
322
-33
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3154
SELECT ALL * FROM tab2 WHERE NOT + - CAST( col1 AS SIGNED ) > ( NULL )
----
skipif mysql # not compatible
query III rowsort label-3154
SELECT ALL * FROM tab2 WHERE NOT + - CAST ( col1 AS INTEGER ) > ( NULL )
----
query I rowsort
SELECT DISTINCT + col1 * + ( + 58 ) AS col0 FROM tab1 AS cor0
----
2726
290
812
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col2, + col0 col0 FROM tab1 AS cor0
----
-118
85
-136
91
-192
51
query I rowsort
SELECT ALL 63 * col1 FROM tab1 AS cor0
----
2961
315
882
onlyif mysql # DIV for integer division:
query I rowsort label-3158
SELECT ALL col2 + col2 DIV - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 = + col1
----
10
46
97
skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL col2 + col2 / - 46 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 = + col1
----
10
46
97
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 - - ( + + 58 ) IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3161
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3161
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-1534
-1564
4320
query I rowsort
SELECT DISTINCT ( 20 ) * col0 + + col0 - col2 AS col1 FROM tab2 AS cor0
----
1304
1517
943
query II rowsort
SELECT ALL + - col2 AS col1, col1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1
query II rowsort
SELECT ALL - - col1, 75 AS col1 FROM tab2 cor0
----
51
75
67
75
77
75
query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - 17 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3168
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
NULL
query II rowsort
SELECT col1 * - col2, col2 FROM tab0
----
-210
10
-3807
47
-99
99
query I rowsort
SELECT ( - - 69 ) FROM tab1
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col2 AS col1 FROM tab0 WHERE NOT col2 / + - col0 = NULL
----
query I rowsort
SELECT ALL + col2 + col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3173
SELECT ALL + 69 + - COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-3173
SELECT ALL + 69 + - COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
69
query I rowsort
SELECT DISTINCT - 5 * col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-306
-402
-462
query I rowsort
SELECT ALL 85 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col0
----
query I rowsort
SELECT DISTINCT ( + 26 ) + + 59 FROM tab1 cor0
----
85
onlyif mysql # aggregate syntax:
query I rowsort label-3178
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3
query II rowsort
SELECT DISTINCT 30 + - ( - - col1 ) * + col1, - 70 AS col1 FROM tab0 AS cor0
----
-411
-70
-6531
-70
29
-70
query I rowsort
SELECT DISTINCT 76 * + + 74 * + col0 AS col2 FROM tab0
----
489288
545528
84360
onlyif mysql # aggregate syntax:
query I rowsort label-3181
SELECT DISTINCT MAX( - col0 ) AS col1 FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT MAX ( - col0 ) AS col1 FROM tab0
----
-15
query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + 47 * 97 AS col0 FROM tab0 AS cor0 WHERE 50 + + ( + col1 ) NOT IN ( - + col1 )
----
4559
query I rowsort
SELECT ALL 61 + col1 - - ( + + col2 ) FROM tab2 cor0
----
135
178
186
query I rowsort
SELECT - col0 * 3 + + col2 AS col0 FROM tab1 AS cor0
----
-196
-205
-57
query I rowsort
SELECT - 42 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT - - col2 * + - col2 + - - col1 + - + col0 FROM tab1 AS cor0
----
-3561
-4668
-9253
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - col1 + + + 48 FROM tab1 AS cor0
----
1
34
43
query I rowsort
SELECT ALL col0 + + ( + 73 ) FROM tab0
----
160
170
88
query II rowsort
SELECT DISTINCT - 44 AS col0, + 79 FROM tab2
----
-44
79
query I rowsort
SELECT ALL - 22 - + col2 FROM tab2
----
-45
-62
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3193
SELECT - col0 + - + col2 + col0 + CAST( 54 AS SIGNED ) FROM tab1
----
-14
-42
-5
skipif mysql # not compatible
query I rowsort label-3193
SELECT - col0 + - + col2 + col0 + CAST ( 54 AS INTEGER ) FROM tab1
----
-14
-42
-5
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE NOT - col1 * + col0 <= - col1 + col0
----
query I rowsort
SELECT DISTINCT col0 - - - 35 AS col2 FROM tab2
----
11
29
40
query I rowsort
SELECT DISTINCT col2 * 1 FROM tab0
----
10
47
99
query I rowsort
SELECT ALL - col0 * + col2 - - col0 AS col1 FROM tab1
----
-4845
-4930
-6097
query I rowsort
SELECT ALL + col2 * + 46 FROM tab0
----
2162
4554
460
query I rowsort
SELECT ALL col0 * + 87 FROM tab2
----
4002
5568
6525
query III rowsort
SELECT * FROM tab0 WHERE NULL <= col1 * col2
----
query I rowsort
SELECT DISTINCT + + 36 AS col2 FROM tab1 AS cor0
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-3202
SELECT + 16 * COUNT( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
48
skipif mysql # not compatible
query I rowsort label-3202
SELECT + 16 * COUNT ( ALL + 95 ) AS col1 FROM tab1 AS cor0
----
48
query I rowsort
SELECT + + 64 AS col0 FROM tab0 AS cor0
----
64
64
64
query II rowsort
SELECT - col1, - col1 * + 12 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1188
-21
-2520
-81
-45684
onlyif mysql # aggregate syntax:
query I rowsort label-3205
SELECT + COUNT( * ) * + COUNT( ALL col0 ) AS col1 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-3205
SELECT + COUNT ( * ) * + COUNT ( ALL col0 ) AS col1 FROM tab2
----
9
query I rowsort
SELECT - - col0 * 88 AS col0 FROM tab2 AS cor0
----
4048
5632
6600
query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab1 AS cor0
----
82
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab0 AS cor0
----
79
79
79
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3210
SELECT 52 DIV + CAST( + col0 AS SIGNED ), col1 col1 FROM tab0 cor0
----
0
1
0
21
3
81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3210
SELECT 52 / + CAST ( + col0 AS INTEGER ), col1 col1 FROM tab0 cor0
----
0
1
0
21
3
81
query I rowsort
SELECT - + 33 AS col0 FROM tab0 AS cor0
----
-33
-33
-33
query I rowsort
SELECT DISTINCT - + 70 FROM tab1 AS cor0
----
-70
onlyif mysql # aggregate syntax:
query I rowsort label-3213
SELECT DISTINCT - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT DISTINCT col0 * + + col2 AS col1 FROM tab1
----
4896
5015
6188
onlyif mysql # DIV for integer division:
query I rowsort label-3215
SELECT ALL + 62 DIV 13 AS col2 FROM tab0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + 62 / 13 AS col2 FROM tab0
----
4
4
4
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / col2 <> - - 16
----
query I rowsort
SELECT DISTINCT col1 * + col2 * - - col1 AS col0 FROM tab2
----
237160
260362
59823
onlyif mysql # DIV for integer division:
query I rowsort label-3218
SELECT DISTINCT col0 + + + 20 DIV + - 7 AS col2 FROM tab0
----
13
85
95
skipif mysql # not compatible
query I rowsort label-3218
SELECT DISTINCT col0 + + + 20 / + - 7 AS col2 FROM tab0
----
13
85
95
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3219
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( CAST( NULL AS SIGNED ) * + col1 )
----
skipif mysql # not compatible
query III rowsort label-3219
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( CAST ( NULL AS INTEGER ) * + col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3220
SELECT - col1 * + + CAST( col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828
skipif mysql # not compatible
query I rowsort label-3220
SELECT - col1 * + + CAST ( col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-1150
-3040
-3828
query I rowsort
SELECT - - ( + 1 ) * 30 + - + 91 FROM tab0 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT col0 * - - col1 AS col1 FROM tab2
----
2346
4928
5025
query I rowsort
SELECT ALL - + 5 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-5
-5
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3224
SELECT DISTINCT - COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9
query I rowsort
SELECT + 57 + + + col1 AS col0 FROM tab2
----
108
124
134
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 BETWEEN - col2 * + - col2 AND + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3227
SELECT + SUM( ALL - col0 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - 12 IS NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-3227
SELECT + SUM ( ALL - col0 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + - 12 IS NULL )
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 > NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3229
SELECT ALL - - ( 51 ) + - COUNT( * ) FROM tab1 AS cor0
----
48
skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - - ( 51 ) + - COUNT ( * ) FROM tab1 AS cor0
----
48
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 4 >= col1
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-3231
SELECT DISTINCT 91 - - ( + 4 ), - 15 DIV + + COUNT( * ) col1 FROM tab0
----
95
-5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3231
SELECT DISTINCT 91 - - ( + 4 ), - 15 / + + COUNT ( * ) col1 FROM tab0
----
95
-5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3232
SELECT + 57 - - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3232
SELECT + 57 - - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + 94 - + col2 FROM tab1
----
1220
411
4350
query I rowsort
SELECT - 3 + + col1 AS col2 FROM tab1
----
11
2
44
onlyif mysql # aggregate syntax:
query I rowsort label-3235
SELECT - COUNT( ALL col2 ) AS col2 FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-3235
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab2
----
-3
query II rowsort
SELECT DISTINCT col0, - col2 AS col1 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99
query I rowsort
SELECT - + col2 AS col1 FROM tab0 cor0 WHERE NOT col2 <= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT ALL - 25 FROM tab0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT col1, - 92 FROM tab1
----
14
-92
47
-92
5
-92
onlyif mysql # aggregate syntax:
query I rowsort label-3241
SELECT COUNT( * ) * - 21 FROM tab1
----
-63
skipif mysql # not compatible
query I rowsort label-3241
SELECT COUNT ( * ) * - 21 FROM tab1
----
-63
onlyif mysql # aggregate syntax:
query I rowsort label-3242
SELECT ALL ( + + COUNT( * ) ) FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL ( + + COUNT ( * ) ) FROM tab0 cor0
----
3
onlyif mysql # aggregate syntax:
query II rowsort label-3243
SELECT COUNT( * ) AS col2, + COUNT( * ) * - MIN( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL
skipif mysql # not compatible
query II rowsort label-3243
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * - MIN ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 * + 45 col2 FROM tab0
----
4275
4275
4275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 * col2 col2 FROM tab2
----
197120
291450
53958
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3246
SELECT ALL COUNT( * ) - + + 17 FROM tab0 WHERE NOT CAST( - 59 AS DECIMAL ) * - + col0 <> - - col1
----
-17
skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) - + + 17 FROM tab0 WHERE NOT CAST ( - 59 AS REAL ) * - + col0 <> - - col1
----
-17
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3247
SELECT DISTINCT 9 DIV - 56 AS col2, CAST( NULL AS SIGNED ) - - col2 FROM tab2
----
0
NULL
skipif mysql # not compatible
query II rowsort label-3247
SELECT DISTINCT 9 / - 56 AS col2, CAST ( NULL AS INTEGER ) - - col2 FROM tab2
----
0
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3248
SELECT + col2 DIV 20 AS col0 FROM tab2
----
1
2
2
skipif mysql # not compatible
query I rowsort label-3248
SELECT + col2 / 20 AS col0 FROM tab2
----
1
2
2
query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - col1 + + col0 + - - col0 * - col2 * + + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 10 + 64 FROM tab0
----
54
54
54
query I rowsort
SELECT + col1 + - col2 * - 62 FROM tab1
----
3663
4263
5966
query I rowsort
SELECT DISTINCT + col0 * + ( - + 6 ) AS col2 FROM tab0
----
-522
-582
-90
query I rowsort
SELECT ALL - 53 * col0 * - - 58 + col2 AS col2 FROM tab2
----
-141381
-196696
-230492
query I rowsort
SELECT - col2 + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5
onlyif mysql # DIV for integer division:
query I rowsort label-3255
SELECT ALL col2 DIV + + col1 AS col2 FROM tab0
----
0
0
99
skipif mysql # not compatible
query I rowsort label-3255
SELECT ALL col2 / + + col1 AS col2 FROM tab0
----
0
0
99
query I rowsort
SELECT ALL - ( + ( - + col2 ) ) FROM tab1 AS cor0
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-3257
SELECT ALL + COUNT( * ) + + 3 AS col2 FROM tab2 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + COUNT ( * ) + + 3 AS col2 FROM tab2 AS cor0
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-3258
SELECT + COUNT( * ) + + 62 FROM tab2 AS cor0
----
65
skipif mysql # not compatible
query I rowsort label-3258
SELECT + COUNT ( * ) + + 62 FROM tab2 AS cor0
----
65
query I rowsort
SELECT DISTINCT - 11 + + + col2 + - 97 AS col0 FROM tab2 AS cor0
----
-50
-68
-85
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3260
SELECT ALL + + SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + + SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE - col1 <> + + col1
----
51
67
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3262
SELECT DISTINCT col2 + - CAST( col2 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
51
85
91
skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT col2 + - CAST ( col2 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
51
85
91
query I rowsort
SELECT DISTINCT ( - + col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL < + col0
----
query I rowsort
SELECT + - 92 + - - col2 FROM tab2 AS cor0
----
-34
-52
-69
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 39 ) AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3267
SELECT + CAST( NULL AS SIGNED ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3267
SELECT + CAST ( NULL AS INTEGER ) + + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - - 48 - + col0 AS col0 FROM tab1
----
2397
3995
4277
query I rowsort
SELECT + ( - col1 ) * + 98 AS col0 FROM tab2
----
-4998
-6566
-7546
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3270
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0
query I rowsort
SELECT col1 * - col0 + - 3 FROM tab2 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT + 29 / + 75 FROM tab2 WHERE col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3273
SELECT DISTINCT MIN( + col0 ) FROM tab0 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT MIN ( + col0 ) FROM tab0 AS cor0
----
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - 5 ) col1 FROM tab0 AS cor0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-3275
SELECT + MAX( col1 ) * 42 AS col1 FROM tab0 AS cor0
----
3402
skipif mysql # not compatible
query I rowsort label-3275
SELECT + MAX ( col1 ) * 42 AS col1 FROM tab0 AS cor0
----
3402
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + 90 ) col2 FROM tab2 cor0
----
-90
-90
-90
query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3278
SELECT ALL COUNT( * ) col2 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3278
SELECT ALL COUNT ( * ) col2 FROM tab2
----
3
query I rowsort
SELECT + + 48 + + col2 AS col2 FROM tab2 WHERE NOT col2 + + col0 IS NULL
----
106
71
88
query II rowsort
SELECT - col0, + 22 AS col2 FROM tab2 cor0
----
-46
22
-64
22
-75
22
query I rowsort
SELECT ALL col1 + + - col2 FROM tab0 AS cor0
----
-98
11
34
query II rowsort
SELECT - - col2 AS col0, col0 AS col0 FROM tab0 cor0 WHERE NOT col1 - + col1 > - 32
----
query I rowsort
SELECT DISTINCT - 69 * 66 FROM tab2 AS cor0
----
-4554
query I rowsort
SELECT ( - 32 ) FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT 8 + col0 FROM tab0 AS cor0
----
105
23
95
onlyif mysql # DIV for integer division:
query II rowsort label-3286
SELECT 68, 18 DIV + ( - - col1 ) col2 FROM tab0
----
68
0
68
0
68
18
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3286
SELECT 68, 18 / + ( - - col1 ) col2 FROM tab0
----
68
0
68
0
68
18
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 54
----
query I rowsort
SELECT ALL + ( 98 ) AS col0 FROM tab0
----
98
98
98
query I rowsort
SELECT + ( + 11 ) AS col2 FROM tab0
----
11
11
11
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 IS NOT NULL
----
query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - col2 * 49 * col2 >= - - col2
----
query I rowsort
SELECT DISTINCT col0 * 72 * - - 44 * + col1 + + col1 FROM tab1 AS cor0
----
1346405
13549583
2261966
query II rowsort
SELECT - 72 + - - ( - 67 ) + + col1, 89 AS col2 FROM tab0 AS cor0
----
-118
89
-138
89
-58
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 + + col2 col2 FROM tab1 AS cor0
----
123
183
206
query I rowsort
SELECT - col0 + - 10 AS col0 FROM tab2 AS cor0
----
-56
-74
-85
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 39 + - 32 * - col1 * + col0 * - 38 + - 64 = + + col2
----
query I rowsort
SELECT DISTINCT + 49 * + 19 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
931
query I rowsort
SELECT DISTINCT - - 9 FROM tab2 AS cor0
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-3299
SELECT col0 DIV - + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3299
SELECT col0 / - + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-3301
SELECT ALL + 55 + - + col1 + + 56 DIV col2 DIV col1 FROM tab1 AS cor0
----
41
50
8
skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + 55 + - + col1 + + 56 / col2 / col1 FROM tab1 AS cor0
----
41
50
8
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3302
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * + 40 FROM tab0
----
3240
40
840
query I rowsort
SELECT col1 FROM tab0 WHERE NOT + 95 IS NOT NULL
----
query I rowsort
SELECT ALL + 78 * - 15 * + 6 AS col2 FROM tab1
----
-7020
-7020
-7020
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3306
SELECT - CAST( NULL AS SIGNED ) col1, COUNT( * ) * COUNT( * ) + + + 48 AS col0 FROM tab0
----
NULL
57
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3306
SELECT - CAST ( NULL AS INTEGER ) col1, COUNT ( * ) * COUNT ( * ) + + + 48 AS col0 FROM tab0
----
NULL
57
query II rowsort
SELECT - col1 AS col1, col1 * - 98 AS col2 FROM tab2
----
-51
-4998
-67
-6566
-77
-7546
onlyif mysql # aggregate syntax:
query II rowsort label-3308
SELECT COUNT( * ) AS col0, + COUNT( * ) + - 63 FROM tab1
----
3
-60
skipif mysql # not compatible
query II rowsort label-3308
SELECT COUNT ( * ) AS col0, + COUNT ( * ) + - 63 FROM tab1
----
3
-60
query II rowsort
SELECT + col2, + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3310
SELECT DISTINCT MIN( col0 ) + - - COUNT( + 57 ) + 10 * - + ( + ( SUM( ALL + 8 ) ) ) FROM tab0 AS cor0
----
-222
skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT MIN ( col0 ) + - - COUNT ( + 57 ) + 10 * - + ( + ( SUM ( ALL + 8 ) ) ) FROM tab0 AS cor0
----
-222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col1 col0 FROM tab1 cor0
----
0
query I rowsort
SELECT + - col0 + - 34 FROM tab1 cor0
----
-119
-125
-85
onlyif mysql # aggregate syntax:
query I rowsort label-3313
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + col2 * + - 34 + ( - - col1 ) FROM tab0
----
-1517
-319
-3365
query I rowsort
SELECT col0 + col0 + + 3 AS col0 FROM tab2
----
131
153
95
onlyif mysql # DIV for integer division:
query I rowsort label-3316
SELECT col2 DIV col1 + + - 55 AS col1 FROM tab0
----
-55
-55
44
skipif mysql # not compatible
query I rowsort label-3316
SELECT col2 / col1 + + - 55 AS col1 FROM tab0
----
-55
-55
44
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3317
SELECT + col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-3317
SELECT + col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
query I rowsort
SELECT col0 + - - col0 AS col2 FROM tab0
----
174
194
30
onlyif mysql # aggregate syntax:
query I rowsort label-3319
SELECT + 36 + + COUNT( * ) FROM tab1
----
39
skipif mysql # not compatible
query I rowsort label-3319
SELECT + 36 + + COUNT ( * ) FROM tab1
----
39
query III rowsort
SELECT * FROM tab2 WHERE NULL > + 5
----
query I rowsort
SELECT ALL + 16 AS col2 FROM tab0
----
16
16
16
onlyif mysql # aggregate syntax:
query I rowsort label-3322
SELECT DISTINCT - COUNT( * ) + + 72 FROM tab2
----
69
skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - COUNT ( * ) + + 72 FROM tab2
----
69
onlyif mysql # aggregate syntax:
query II rowsort label-3323
SELECT ALL + 78, MIN( ALL 27 ) AS col1 FROM tab2
----
78
27
skipif mysql # not compatible
query II rowsort label-3323
SELECT ALL + 78, MIN ( ALL 27 ) AS col1 FROM tab2
----
78
27
onlyif mysql # aggregate syntax:
query II rowsort label-3324
SELECT COUNT( ALL - - 4 ) + + + 19 AS col2, + 12 * ( - COUNT( * ) ) FROM tab1
----
22
-36
skipif mysql # not compatible
query II rowsort label-3324
SELECT COUNT ( ALL - - 4 ) + + + 19 AS col2, + 12 * ( - COUNT ( * ) ) FROM tab1
----
22
-36
onlyif mysql # aggregate syntax:
query I rowsort label-3325
SELECT DISTINCT 22 * - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
4290
skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT 22 * - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
4290
query II rowsort
SELECT ALL + 87, + col2 AS col0 FROM tab1 cor0
----
87
59
87
68
87
96
query I rowsort
SELECT ALL + col2 + + + 84 * + col1 FROM tab2 AS cor0
----
4307
5686
6508
query I rowsort
SELECT ALL + col1 * col0 + + - col0 - col2 FROM tab0 AS cor0
----
-99
1153
1730
query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - col0 / - + col1 IS NOT NULL
----
14
47
5
onlyif mysql # DIV for integer division:
query I rowsort label-3330
SELECT - col0 DIV + + 11 - - - 10 FROM tab2
----
-14
-15
-16
skipif mysql # not compatible
query I rowsort label-3330
SELECT - col0 / + + 11 - - - 10 FROM tab2
----
-14
-15
-16
query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a
query I rowsort
SELECT 8 FROM tab0 WHERE + 27 >= NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 48 ) BETWEEN 53 AND col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3334
SELECT + + col0 + - + ( + CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3334
SELECT + + col0 + - + ( + CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3335
SELECT ALL + COUNT( * ) * + 2 + - 28 col1 FROM tab2 AS cor0
----
-22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3335
SELECT ALL + COUNT ( * ) * + 2 + - 28 col1 FROM tab2 AS cor0
----
-22
onlyif mysql # aggregate syntax:
query I rowsort label-3336
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-3337
SELECT + col0 DIV - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-3337
SELECT + col0 / - 41 AS col0 FROM tab1 AS cor0
----
-1
-2
-2
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + + 66 NOT BETWEEN NULL AND + 87 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - 60 NOT BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3340
SELECT DISTINCT col2 DIV 14 FROM tab1 AS cor0
----
4
6
skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT col2 / 14 FROM tab1 AS cor0
----
4
6
onlyif mysql # DIV for integer division:
query II rowsort label-3341
SELECT - + col1, - col2 DIV col1 AS col1 FROM tab0 cor0
----
-1
-99
-21
0
-81
0
skipif mysql # not compatible
query II rowsort label-3341
SELECT - + col1, - col2 / col1 AS col1 FROM tab0 cor0
----
-1
-99
-21
0
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - + col1 col1 FROM tab1 AS cor0
----
-425
-4277
-714
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col0 * - col0 - - - col0 * - col2 - col2 - - - col1 * - + col2 * - col0 * col0 AND + + col0
----
46
51
23
64
77
40
query I rowsort
SELECT + 72 * + col2 FROM tab0 AS cor0
----
3384
7128
720
query II rowsort
SELECT DISTINCT - col0 * + - 44 AS col2, 60 AS col0 FROM tab0 AS cor0
----
3828
60
4268
60
660
60
query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / col2 <= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT col2 * - - col2 AS col0 FROM tab2
----
1600
3364
529
query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3350
SELECT - MIN( DISTINCT + 20 ) FROM tab1 AS cor0
----
-20
skipif mysql # not compatible
query I rowsort label-3350
SELECT - MIN ( DISTINCT + 20 ) FROM tab1 AS cor0
----
-20
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 39 AND NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 / - col1 + - col0 * + 5 / - col1 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 38 / + ( - col1 ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - col0 * - 39 FROM tab1
----
1989
3315
3549
query I rowsort
SELECT DISTINCT - - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
90
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3357
SELECT ALL 66 * - MIN( + 7 ) FROM tab0
----
-462
skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL 66 * - MIN ( + 7 ) FROM tab0
----
-462
query I rowsort
SELECT - + 79 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
onlyif mysql # aggregate syntax:
query I rowsort label-3359
SELECT - - COUNT( * ) * 39 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
351
skipif mysql # not compatible
query I rowsort label-3359
SELECT - - COUNT ( * ) * 39 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
351
query I rowsort
SELECT ALL col0 + + + col0 FROM tab1
----
102
170
182
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3361
SELECT - COUNT( - 44 ) * - 46 * CAST( NULL AS SIGNED ) / 13 + - 10 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( - 44 ) * - 46 * CAST ( NULL AS INTEGER ) / 13 + - 10 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col0 + - - 96 AS col1 FROM tab2 AS cor0
----
21
32
50
query I rowsort
SELECT col1 + - 41 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT ALL + 39 AS col0, col0 AS col2 FROM tab0 AS cor0
----
39
15
39
87
39
97
onlyif mysql # DIV for integer division:
query I rowsort label-3365
SELECT DISTINCT col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3365
SELECT DISTINCT col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT col0 + + + col0 AS col1 FROM tab1 AS cor0
----
102
170
182
onlyif mysql # aggregate syntax:
query I rowsort label-3367
SELECT + SUM( - + col0 ) + + 68 - - 95 + + COUNT( * ) + - 25 AS col0 FROM tab2 AS cor0 WHERE - col0 + + 80 IS NOT NULL
----
-44
skipif mysql # not compatible
query I rowsort label-3367
SELECT + SUM ( - + col0 ) + + 68 - - 95 + + COUNT ( * ) + - 25 AS col0 FROM tab2 AS cor0 WHERE - col0 + + 80 IS NOT NULL
----
-44
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3369
SELECT DISTINCT COUNT( + col0 ) + - - COUNT( + - 62 ) * 86 col2 FROM tab1
----
261
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3369
SELECT DISTINCT COUNT ( + col0 ) + - - COUNT ( + - 62 ) * 86 col2 FROM tab1
----
261
onlyif mysql # DIV for integer division:
query I rowsort label-3370
SELECT 55 DIV - + ( + - 42 ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3370
SELECT 55 / - + ( + - 42 ) FROM tab2
----
1
1
1
query II rowsort
SELECT ALL col0 * - col0, - col2 AS col0 FROM tab1
----
-2601
-96
-7225
-59
-8281
-68
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3372
SELECT DISTINCT - CAST( 40 AS SIGNED ) FROM tab0
----
-40
skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - CAST ( 40 AS INTEGER ) FROM tab0
----
-40
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * - ( + col1 ) AND NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 8 + + ( col2 ) FROM tab2 cor0
----
15
32
50
query I rowsort
SELECT - 12 + col1 FROM tab1 AS cor0
----
-7
2
35
query I rowsort
SELECT ALL + + col1 * - - 65 + 53 * + 34 AS col1 FROM tab0 AS cor0
----
1867
3167
7067
query I rowsort
SELECT DISTINCT - 61 + - col2 FROM tab2 AS cor0
----
-101
-119
-84
onlyif mysql # aggregate syntax:
query I rowsort label-3379
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3379
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query II rowsort
SELECT - 46 AS col2, + 0 AS col2 FROM tab2 cor0
----
-46
0
-46
0
-46
0
onlyif mysql # aggregate syntax:
query I rowsort label-3381
SELECT - - COUNT( * ) * + 57 + - 99 FROM tab1 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-3381
SELECT - - COUNT ( * ) * + 57 + - 99 FROM tab1 AS cor0
----
72
onlyif mysql # aggregate syntax:
query I rowsort label-3382
SELECT DISTINCT + + ( - - ( - COUNT( * ) ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + + ( - - ( - COUNT ( * ) ) ) FROM tab0 AS cor0
----
-3
query I rowsort
SELECT 29 * + col0 * + col2 * + 58 AS col2 FROM tab2 AS cor0
----
1779556
4305920
7316700
onlyif mysql # aggregate syntax:
query I rowsort label-3384
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-3384
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3385
SELECT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-3385
SELECT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9
query I rowsort
SELECT - + col2 * ( - + col0 ) FROM tab2 AS cor0
----
1058
2560
4350
query I rowsort
SELECT ( - + 31 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT 47 * ( col1 ) FROM tab1 AS cor0
----
2209
235
658
query I rowsort
SELECT DISTINCT - + ( + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77
onlyif mysql # aggregate syntax:
query I rowsort label-3390
SELECT ALL + MIN( col0 ) * + 73 FROM tab2
----
3358
skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + MIN ( col0 ) * + 73 FROM tab2
----
3358
query I rowsort
SELECT ALL col2 * 40 * + + col0 FROM tab1
----
195840
200600
247520
onlyif mysql # DIV for integer division:
query I rowsort label-3392
SELECT ALL + ( - col0 ) DIV + - col2 AS col0 FROM tab0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + ( - col0 ) / + - col2 AS col0 FROM tab0
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + col1 col2 FROM tab0
----
-1
-441
-6561
query II rowsort
SELECT col2, col0 AS col2 FROM tab0
----
10
87
47
15
99
97
onlyif mysql # aggregate syntax:
query I rowsort label-3395
SELECT + MIN( DISTINCT + col0 ) FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-3395
SELECT + MIN ( DISTINCT + col0 ) FROM tab2
----
46
query II rowsort
SELECT - 46, + col0 AS col2 FROM tab1
----
-46
51
-46
85
-46
91
query I rowsort
SELECT DISTINCT + 56 * - col0 * col1 FROM tab2
----
-131376
-275968
-281400
query I rowsort
SELECT DISTINCT + 75 * + - 49 FROM tab2 AS cor0
----
-3675
query I rowsort
SELECT ALL - + 99 AS col1 FROM tab0 AS cor0
----
-99
-99
-99
onlyif mysql # DIV for integer division:
query II rowsort label-3400
SELECT ALL - col0 + col0, + col2 + + col2 + 34 DIV - - ( + - 56 ) col1 FROM tab0 cor0
----
0
198
0
20
0
94
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3400
SELECT ALL - col0 + col0, + col2 + + col2 + 34 / - - ( + - 56 ) col1 FROM tab0 cor0
----
0
198
0
20
0
94
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 + col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3402
SELECT DISTINCT + COUNT( + col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + COUNT ( + col2 ) FROM tab1 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col1 FROM tab1
----
-58
-58
-58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3404
SELECT DISTINCT + ( + CAST( col2 AS SIGNED ) ) + - + col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350
skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT + ( + CAST ( col2 AS INTEGER ) ) + - + col2 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350
query I rowsort
SELECT ALL - 30 * + - col1 FROM tab1 AS cor0 WHERE 66 IS NOT NULL
----
1410
150
420
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + col1 * + col2 )
----
query I rowsort
SELECT DISTINCT + col2 + col0 + - col2 * + ( + col0 ) * - + col0 FROM tab0 AS cor0
----
10637
75787
931687
query I rowsort
SELECT ALL 36 - + - col0 FROM tab2 AS cor0
----
100
111
82
query I rowsort
SELECT - col1 * 20 + + 51 AS col0 FROM tab1 cor0
----
-229
-49
-889
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3410
SELECT col1 + - CAST( + + col1 AS SIGNED ), + 95 AS col2 FROM tab0
----
0
95
0
95
0
95
skipif mysql # not compatible
query II rowsort label-3410
SELECT col1 + - CAST ( + + col1 AS INTEGER ), + 95 AS col2 FROM tab0
----
0
95
0
95
0
95
query I rowsort
SELECT DISTINCT col2 - + + 84 + + 94 FROM tab1
----
106
69
78
query I rowsort
SELECT 86 + - - col0 AS col1 FROM tab0
----
101
173
183
onlyif mysql # DIV for integer division:
query I rowsort label-3413
SELECT DISTINCT col0 DIV - 10 FROM tab2
----
-4
-6
-7
skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT col0 / - 10 FROM tab2
----
-4
-6
-7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3414
SELECT DISTINCT SUM( - CAST( + - 53 AS SIGNED ) ) AS col2 FROM tab1
----
159
skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT SUM ( - CAST ( + - 53 AS INTEGER ) ) AS col2 FROM tab1
----
159
onlyif mysql # aggregate syntax:
query I rowsort label-3415
SELECT ALL + COUNT( * ) + + + COUNT( * ) FROM tab1
----
6
skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9 col2, 38 FROM tab1
----
9
38
9
38
9
38
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3417
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col1 * + + ( + col2 ) - - 33 - + CAST( + - col2 AS SIGNED ) IN ( + - col1 - + col2, 72 * + + col0 * - + CAST( + col2 AS SIGNED ) + - 99 )
----
3
skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col1 * + + ( + col2 ) - - 33 - + CAST ( + - col2 AS INTEGER ) IN ( + - col1 - + col2, 72 * + + col0 * - + CAST ( + col2 AS INTEGER ) + - 99 )
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 + 71 IS NULL AND ( NULL ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query III rowsort label-3419
SELECT DISTINCT - col1 - + col2 DIV ( col0 ) col1, 37 + - 9 - - + 36 AS col1, - 1 FROM tab2
----
9 values hashing to 1fce30417cb36f922191749ea6ce2f1f
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3419
SELECT DISTINCT - col1 - + col2 / ( col0 ) col1, 37 + - 9 - - + 36 AS col1, - 1 FROM tab2
----
9 values hashing to 1fce30417cb36f922191749ea6ce2f1f
onlyif mysql # aggregate syntax:
query I rowsort label-3420
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-3420
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 > NULL
----
query II rowsort
SELECT ( - col2 ) AS col0, + col2 FROM tab0
----
-10
10
-47
47
-99
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3423
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) FROM tab1
----
51
85
91
skipif mysql # not compatible
query I rowsort label-3423
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) FROM tab1
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-3424
SELECT - COUNT( * ) col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3424
SELECT - COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT DISTINCT - - 27 AS col2 FROM tab0 AS cor0
----
27
onlyif mysql # aggregate syntax:
query I rowsort label-3426
SELECT ALL + - MAX( 21 ) FROM tab2 AS cor0
----
-21
skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + - MAX ( 21 ) FROM tab2 AS cor0
----
-21
onlyif mysql # aggregate syntax:
query I rowsort label-3427
SELECT ALL COUNT( - col0 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL COUNT ( - col0 ) FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3428
SELECT col1 * - + ( + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97
skipif mysql # not compatible
query I rowsort label-3428
SELECT col1 * - + ( + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97
query I rowsort
SELECT + ( + 65 ) AS col2 FROM tab0 cor0
----
65
65
65
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3430
SELECT - 12 * - - CAST( NULL AS SIGNED ) * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3430
SELECT - 12 * - - CAST ( NULL AS INTEGER ) * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3431
SELECT ALL - COUNT( * ) * + - 15 AS col1 FROM tab0
----
45
skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - COUNT ( * ) * + - 15 AS col1 FROM tab0
----
45
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) <> 89
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - + col1 * + col2 IN ( 27 * - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 col2 FROM tab2
----
89
onlyif mysql # aggregate syntax:
query I rowsort label-3436
SELECT DISTINCT + MIN( + col0 ) col1 FROM tab2
----
46
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3436
SELECT DISTINCT + MIN ( + col0 ) col1 FROM tab2
----
46
query I rowsort
SELECT DISTINCT col1 + - 40 FROM tab1 WHERE col2 IS NULL
----
query I rowsort
SELECT ALL col2 * - - col0 FROM tab1
----
4896
5015
6188
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3439
SELECT DISTINCT - col1 * 49 / - + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT - col1 * 49 / - + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
query I rowsort
SELECT ALL - + col2 - + col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-198
-20
-94
onlyif mysql # aggregate syntax:
query I rowsort label-3441
SELECT - COUNT( - 21 ) col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3441
SELECT - COUNT ( - 21 ) col2 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab0 AS cor0
----
14
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT 33 * - - col1 FROM tab2
----
1683
2211
2541
query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1 WHERE + col0 * + - col2 IS NULL
----
query I rowsort
SELECT - col2 * - 21 + + + col0 - + col1 FROM tab0
----
2175
276
921
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3447
SELECT ( - COUNT( * ) ) AS col1 FROM tab0 WHERE + col2 * + + col2 + - - 32 * - CAST( ( 8 ) AS SIGNED ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3447
SELECT ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE + col2 * + + col2 + - - 32 * - CAST ( ( 8 ) AS INTEGER ) IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3448
SELECT 64 * COUNT( * ) + SUM( col2 ) AS col2 FROM tab2
----
313
skipif mysql # not compatible
query I rowsort label-3448
SELECT 64 * COUNT ( * ) + SUM ( col2 ) AS col2 FROM tab2
----
313
onlyif mysql # aggregate syntax:
query I rowsort label-3449
SELECT DISTINCT - 43 + - 40 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-163
skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - 43 + - 40 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-163
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3450
SELECT - CAST( - - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-3450
SELECT - CAST ( - - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3451
SELECT + ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3451
SELECT + ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-3452
SELECT - - 31 AS col2, ( - COUNT( ALL - ( - + 67 ) ) ) FROM tab2 AS cor0
----
31
-3
skipif mysql # not compatible
query II rowsort label-3452
SELECT - - 31 AS col2, ( - COUNT ( ALL - ( - + 67 ) ) ) FROM tab2 AS cor0
----
31
-3
onlyif mysql # DIV for integer division:
query I rowsort label-3453
SELECT 33 DIV + 87 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3453
SELECT 33 / + 87 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col1 col0 FROM tab1 AS cor0
----
37
44
80
query I rowsort
SELECT ALL + - col2 - - - ( - - col1 ) FROM tab0 AS cor0
----
-100
-128
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 * + col1 / - + ( - 37 ) + - 15 col0 FROM tab0 AS cor0 WHERE NOT ( + col1 ) = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3457
SELECT ALL ( - col0 ) + + col1 * - col1 + + col1 + + CAST( - - ( - ( + col2 ) ) AS SIGNED ) * col0 FROM tab0
----
-1377
-7200
-9700
skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL ( - col0 ) + + col1 * - col1 + + col1 + + CAST ( - - ( - ( + col2 ) ) AS INTEGER ) * col0 FROM tab0
----
-1377
-7200
-9700
query I rowsort
SELECT DISTINCT - col1 * + col2 + 73 AS col0 FROM tab2
----
-1100
-3007
-3813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 col0 FROM tab1
----
-4
query I rowsort
SELECT - col2 * - ( 45 ) + + 3 FROM tab1 WHERE ( col1 IS NOT NULL )
----
2658
3063
4323
query I rowsort
SELECT - col2 * + col1 + - - col2 * + 62 FROM tab1
----
1020
3363
4608
query III rowsort
SELECT * FROM tab2 WHERE + 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3463
SELECT col1 DIV CAST( + + col0 AS SIGNED ) + + col1 col1 FROM tab1
----
14
47
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3463
SELECT col1 / CAST ( + + col0 AS INTEGER ) + + col1 col1 FROM tab1
----
14
47
5
query I rowsort
SELECT ALL - col0 + - col0 * + - col0 AS col0 FROM tab1 AS cor0
----
2550
7140
8190
onlyif mysql # aggregate syntax:
query I rowsort label-3465
SELECT + COUNT( * ) AS col2 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3465
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0
----
3
query I rowsort
SELECT DISTINCT col0 - + col0 * - - 0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75
query III rowsort
SELECT * FROM tab2 WHERE NOT - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - ( - 74 ) FROM tab0
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab2
----
78
78
78
onlyif mysql # aggregate syntax:
query I rowsort label-3470
SELECT ALL + ( + COUNT( * ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL + ( + COUNT ( * ) ) FROM tab2
----
3
query II rowsort
SELECT - col1 AS col1, col0 FROM tab1
----
-14
51
-47
91
-5
85
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75
query II rowsort
SELECT ALL + 90 AS col2, + 34 FROM tab1 cor0
----
90
34
90
34
90
34
query I rowsort
SELECT - col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3475
SELECT DISTINCT + + SUM( col1 ) FROM tab2 AS cor0
----
195
skipif mysql # not compatible
query I rowsort label-3475
SELECT DISTINCT + + SUM ( col1 ) FROM tab2 AS cor0
----
195
onlyif mysql # aggregate syntax:
query I rowsort label-3476
SELECT ALL COUNT( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT ALL COUNT ( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 95 NOT IN ( + CAST( NULL AS SIGNED ) * - col0, - col1 )
----
skipif mysql # not compatible
query III rowsort label-3477
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * 95 NOT IN ( + CAST ( NULL AS INTEGER ) * - col0, - col1 )
----
query II rowsort
SELECT - + col2, + col2 * - + 53 AS col2 FROM tab2 AS cor0
----
-23
-1219
-40
-2120
-58
-3074
query I rowsort
SELECT + col2 + 92 FROM tab1
----
151
160
188
onlyif mysql # aggregate syntax:
query I rowsort label-3480
SELECT ( 89 ) + + COUNT( * ) AS col2 FROM tab2
----
92
skipif mysql # not compatible
query I rowsort label-3480
SELECT ( 89 ) + + COUNT ( * ) AS col2 FROM tab2
----
92
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3481
SELECT ALL * FROM tab0 WHERE NOT NULL = - CAST( + + 44 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3481
SELECT ALL * FROM tab0 WHERE NOT NULL = - CAST ( + + 44 AS INTEGER )
----
query I rowsort
SELECT ALL ( + - col1 ) + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 83 AS col1 FROM tab0 cor0
----
83
83
83
query I rowsort
SELECT ALL ( - + col2 ) AS col0 FROM tab1
----
-59
-68
-96
onlyif mysql # aggregate syntax:
query I rowsort label-3485
SELECT + SUM( col1 ) FROM tab2
----
195
skipif mysql # not compatible
query I rowsort label-3485
SELECT + SUM ( col1 ) FROM tab2
----
195
onlyif mysql # aggregate syntax:
query I rowsort label-3486
SELECT ALL COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9
query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
42
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3489
SELECT * FROM tab1 AS cor0 WHERE + 36 / - + col0 BETWEEN - - col0 * - col2 AND - col2 * CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3489
SELECT * FROM tab1 AS cor0 WHERE + 36 / - + col0 BETWEEN - - col0 * - col2 AND - col2 * CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3490
SELECT ALL + - col2 + - CAST( NULL AS SIGNED ) * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3490
SELECT ALL + - col2 + - CAST ( NULL AS INTEGER ) * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - - col0 + + col0 col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + + col2 * - + col1 * - - col1 FROM tab1 AS cor0
----
-1475
-150212
-18816
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3494
SELECT * FROM tab1 AS cor0 WHERE + 66 * col0 - col2 / - + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + 1
----
skipif mysql # not compatible
query III rowsort label-3494
SELECT * FROM tab1 AS cor0 WHERE + 66 * col0 - col2 / - + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + 1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 83 / + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-68
-96
onlyif mysql # DIV for integer division:
query I rowsort label-3497
SELECT DISTINCT - col2 * + col0 * - - col0 + 51 + - 32 DIV col2 AS col0 FROM tab0 AS cor0
----
-10524
-75642
-931440
skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - col2 * + col0 * - - col0 + 51 + - 32 / col2 AS col0 FROM tab0 AS cor0
----
-10524
-75642
-931440
query I rowsort
SELECT DISTINCT 76 - + col0 FROM tab1 AS cor0
----
-15
-9
25
query I rowsort
SELECT - 53 * - + col1 + - + col1 FROM tab0 AS cor0
----
1092
4212
52
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3500
SELECT ALL + - col1 + + CAST( - 47 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-114
-124
-98
skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL + - col1 + + CAST ( - 47 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-114
-124
-98
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 <= - + 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - - col0 * col0 FROM tab2 AS cor0 WHERE - col2 + - 77 * + + 83 + - 46 NOT BETWEEN - col1 AND - + col0
----
2116
4096
5625
query I rowsort
SELECT - + 44 + + col1 FROM tab2 AS cor0
----
23
33
7
query I rowsort
SELECT - - col2 AS col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3505
SELECT ALL CAST( - col1 AS SIGNED ) DIV col2 - - col0 FROM tab0
----
14
85
97
skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL CAST ( - col1 AS INTEGER ) / col2 - - col0 FROM tab0
----
14
85
97
onlyif mysql # aggregate syntax:
query I rowsort label-3506
SELECT SUM( DISTINCT + - col0 ) FROM tab0
----
-199
skipif mysql # not compatible
query I rowsort label-3506
SELECT SUM ( DISTINCT + - col0 ) FROM tab0
----
-199
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 - + - col2 col1 FROM tab0
----
115
26
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 83 col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3509
SELECT COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3510
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL - col1 * - - col0 FROM tab2
----
-2346
-4928
-5025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col1 FROM tab1 AS cor0
----
-36
-36
-36
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3514
SELECT - 96 * - + col0 + 71 * - ( - + col1 ) - - CAST( + ( col1 ) AS SIGNED ) * 31 + + - 21 AS col2 FROM tab0 AS cor0
----
10473
9393
9681
skipif mysql # not compatible
query I rowsort label-3514
SELECT - 96 * - + col0 + 71 * - ( - + col1 ) - - CAST ( + ( col1 ) AS INTEGER ) * 31 + + - 21 AS col2 FROM tab0 AS cor0
----
10473
9393
9681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col1 FROM tab0 AS cor0
----
70
70
70
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3516
SELECT ALL + - COUNT( * ) DIV COUNT( DISTINCT + 29 ) col1 FROM tab1 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT ALL + - COUNT ( * ) / COUNT ( DISTINCT + 29 ) col1 FROM tab1 cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 25 * col2 IS NOT NULL
----
query III rowsort
SELECT DISTINCT - col1, + 47 * - 1 + - + col1 AS col0, - 86 * - col2 * - col1 + - col2 + + + 79 * - col1 + - - col1 AS col1 FROM tab1
----
9 values hashing to ecc46b3d7ff51a77cfec9327e1c10c2e
query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 WHERE NOT + col1 + + + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3520
SELECT DISTINCT + MAX( ALL - + col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT + MAX ( ALL - + col2 ) FROM tab2
----
-23
query I rowsort
SELECT ALL + - col2 + + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192
onlyif mysql # aggregate syntax:
query I rowsort label-3522
SELECT + SUM( DISTINCT - 2 ) FROM tab2 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-3522
SELECT + SUM ( DISTINCT - 2 ) FROM tab2 AS cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab0 AS cor0 WHERE col1 <> NULL
----
query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT ALL - - 17 AS col0, + 18 AS col0 FROM tab2 AS cor0
----
17
18
17
18
17
18
query I rowsort
SELECT - col0 * 66 + + col2 AS col0 FROM tab1 AS cor0
----
-3270
-5551
-5938
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < col2 * - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-3528
SELECT DISTINCT - + COUNT( col0 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT - + COUNT ( col0 ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT ALL 64 * col0 AS col1 FROM tab1
----
3264
5440
5824
onlyif mysql # aggregate syntax:
query I rowsort label-3530
SELECT ALL COUNT( * ) * COUNT( ALL + 96 ) FROM tab0 WHERE + 82 + - 13 * col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL COUNT ( * ) * COUNT ( ALL + 96 ) FROM tab0 WHERE + 82 + - 13 * col1 IS NULL
----
0
query I rowsort
SELECT ALL + col1 * 80 FROM tab1
----
1120
3760
400
onlyif mysql # aggregate syntax:
query I rowsort label-3532
SELECT ALL - 15 + + COUNT( DISTINCT + ( + 82 ) ) FROM tab0 WHERE ( col1 ) <= + col1 + col1
----
-14
skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - 15 + + COUNT ( DISTINCT + ( + 82 ) ) FROM tab0 WHERE ( col1 ) <= + col1 + col1
----
-14
query I rowsort
SELECT ALL - 8 + col2 FROM tab0 WHERE col2 * - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3534
SELECT - COUNT( * ) * 63 FROM tab2
----
-189
skipif mysql # not compatible
query I rowsort label-3534
SELECT - COUNT ( * ) * 63 FROM tab2
----
-189
query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( col2 / + col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3536
SELECT CAST( - 46 AS SIGNED ) * + 80 + - col1 AS col1 FROM tab2
----
-3731
-3747
-3757
skipif mysql # not compatible
query I rowsort label-3536
SELECT CAST ( - 46 AS INTEGER ) * + 80 + - col1 AS col1 FROM tab2
----
-3731
-3747
-3757
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3537
SELECT ( CAST( NULL AS SIGNED ) ) * - col2 + + 36 col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT ( CAST ( NULL AS INTEGER ) ) * - col2 + + 36 col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 74 FROM tab1 WHERE NOT ( + col2 - col0 ) IN ( col0 )
----
74
74
74
query I rowsort
SELECT ALL + 35 * 21 FROM tab0
----
735
735
735
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3540
SELECT 43 FROM tab0 WHERE ( - col2 + ( 68 ) * CAST( NULL AS DECIMAL ) ) IS NULL
----
43
43
43
skipif mysql # not compatible
query I rowsort label-3540
SELECT 43 FROM tab0 WHERE ( - col2 + ( 68 ) * CAST ( NULL AS REAL ) ) IS NULL
----
43
43
43
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3541
SELECT ( CAST( NULL AS SIGNED ) ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3541
SELECT ( CAST ( NULL AS INTEGER ) ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 12 + 89 FROM tab1
----
101
101
101
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * - col0 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab2
----
70
70
70
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <= col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3546
SELECT DISTINCT MIN( ALL - col1 ) + - 53 AS col1 FROM tab0
----
-134
skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT MIN ( ALL - col1 ) + - 53 AS col1 FROM tab0
----
-134
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3547
SELECT + SUM( 43 ) DIV 13 + - 19 AS col0 FROM tab1
----
-10
skipif mysql # not compatible
query I rowsort label-3547
SELECT + SUM ( 43 ) / 13 + - 19 AS col0 FROM tab1
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-3548
SELECT ALL 47 * + SUM( - 36 ) FROM tab2
----
-5076
skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL 47 * + SUM ( - 36 ) FROM tab2
----
-5076
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> col1 + col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-3550
SELECT + 26 DIV - col1 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3550
SELECT + 26 / - col1 AS col2 FROM tab2
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 32 <= ( NULL )
----
query I rowsort
SELECT - col2 + 88 FROM tab1
----
-8
20
29
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3553
SELECT - 26 DIV + COUNT( * ) AS col2 FROM tab0
----
-8
skipif mysql # not compatible
query I rowsort label-3553
SELECT - 26 / + COUNT ( * ) AS col2 FROM tab0
----
-8
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE - 62 * + 47 + + 12 IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col2 < + 26 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( 91 ) col2 FROM tab0
----
-10
-70
-90
onlyif mysql # aggregate syntax:
query I rowsort label-3557
SELECT SUM( - col2 ) AS col1 FROM tab2
----
-121
skipif mysql # not compatible
query I rowsort label-3557
SELECT SUM ( - col2 ) AS col1 FROM tab2
----
-121
query I rowsort
SELECT ALL 55 + - col2 AS col0 FROM tab0
----
-44
45
8
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND ( + 65 + + 95 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE col0 BETWEEN NULL AND col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3561
SELECT col2 - + CAST( CAST( + 97 AS SIGNED ) AS SIGNED ) col0 FROM tab0
----
-50
-87
2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT col2 - + CAST ( CAST ( + 97 AS INTEGER ) AS INTEGER ) col0 FROM tab0
----
-50
-87
2
query I rowsort
SELECT ALL + col1 * 16 + - 27 * 0 FROM tab1
----
224
752
80
onlyif mysql # aggregate syntax:
query I rowsort label-3563
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab1
----
60
60
60
query I rowsort
SELECT ALL + 59 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( col0 ) ) NOT IN ( col2 - col2 * + 70 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col1 FROM tab2 cor0
----
79
79
79
onlyif mysql # aggregate syntax:
query I rowsort label-3567
SELECT ALL - COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT ALL - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0
----
-9
query I rowsort
SELECT 95 * col2 AS col2 FROM tab1 AS cor0
----
5605
6460
9120
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3569
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) + - 67 BETWEEN ( col1 * - col0 + col2 ) AND - 91
----
skipif mysql # not compatible
query III rowsort label-3569
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) + - 67 BETWEEN ( col1 * - col0 + col2 ) AND - 91
----
onlyif mysql # aggregate syntax:
query I rowsort label-3570
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-3571
SELECT MAX( + 30 ) col1 FROM tab1
----
30
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3571
SELECT MAX ( + 30 ) col1 FROM tab1
----
30
onlyif mysql # aggregate syntax:
query I rowsort label-3572
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9
skipif mysql # not compatible
query I rowsort label-3572
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9
query I rowsort
SELECT DISTINCT - 21 * col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
query I rowsort
SELECT ( + 39 ) FROM tab0
----
39
39
39
query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3576
SELECT DISTINCT + 66 * + CAST( - col1 / col0 - - 36 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2046
2376
skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + 66 * + CAST ( - col1 / col0 - - 36 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2046
2376
query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 98 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-3578
SELECT ALL - 21 * + COUNT( * ) FROM tab2 AS cor0 WHERE - 9 < NULL
----
0
skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - 21 * + COUNT ( * ) FROM tab2 AS cor0 WHERE - 9 < NULL
----
0
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 9 / - 50 IS NOT NULL
----
query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT ( NULL ) IN ( 19 * 73 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 87 / 8 - col1 ) IN ( - col1 )
----
query I rowsort
SELECT ALL + col0 * + col1 + 41 FROM tab0 AS cor0
----
1256
138
1868
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3584
SELECT ALL - 99 AS col2 FROM tab0 AS cor0 WHERE col1 + + col0 * - CAST( col2 AS SIGNED ) < + col2 + - 56 * col0
----
-99
skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL - 99 AS col2 FROM tab0 AS cor0 WHERE col1 + + col0 * - CAST ( col2 AS INTEGER ) < + col2 + - 56 * col0
----
-99
query I rowsort
SELECT + - 63 * col1 FROM tab0 AS cor0
----
-1323
-5103
-63
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 + + col2 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col1 + + - ( col1 ) AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 WHERE NOT ( + 84 ) IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3589
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3589
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab0
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 89 col0 FROM tab0
----
-42
-79
10
onlyif mysql # aggregate syntax:
query I rowsort label-3592
SELECT COUNT( * ) + - - 2 FROM tab0
----
5
skipif mysql # not compatible
query I rowsort label-3592
SELECT COUNT ( * ) + - - 2 FROM tab0
----
5
query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col0 * - col0 * - col2 + + col0 FROM tab1
----
249747
426360
563199
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * - col0 col0 FROM tab2
----
-2323
-4888
-4967
onlyif mysql # aggregate syntax:
query I rowsort label-3596
SELECT ALL + COUNT( * ) * COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + COUNT ( * ) * COUNT ( * ) FROM tab1
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab1 WHERE NOT col1 IS NULL
----
72
72
72
query I rowsort
SELECT col2 * - col0 * col2 + col1 FROM tab0
----
-33054
-8679
-950696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col0 col0 FROM tab1
----
102
170
182
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( 71 )
----
query I rowsort
SELECT - + 22 FROM tab0 cor0
----
-22
-22
-22
onlyif mysql # aggregate syntax:
query I rowsort label-3602
SELECT DISTINCT MAX( + 61 ) - 41 FROM tab0 cor0
----
20
skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT MAX ( + 61 ) - 41 FROM tab0 cor0
----
20
onlyif mysql # aggregate syntax:
query I rowsort label-3603
SELECT + - ( - COUNT( * ) ) * 24 FROM tab0 AS cor0
----
72
skipif mysql # not compatible
query I rowsort label-3603
SELECT + - ( - COUNT ( * ) ) * 24 FROM tab0 AS cor0
----
72
onlyif mysql # aggregate syntax:
query I rowsort label-3604
SELECT MIN( DISTINCT 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 <> 23
----
NULL
skipif mysql # not compatible
query I rowsort label-3604
SELECT MIN ( DISTINCT 61 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 79 <> 23
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-3605
SELECT - 18 - 15 DIV col2 FROM tab0
----
-18
-18
-19
skipif mysql # not compatible
query I rowsort label-3605
SELECT - 18 - 15 / col2 FROM tab0
----
-18
-18
-19
onlyif mysql # aggregate syntax:
query I rowsort label-3606
SELECT - COUNT( * ) + - MAX( - col2 ) col1 FROM tab2
----
20
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT - COUNT ( * ) + - MAX ( - col2 ) col1 FROM tab2
----
20
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3607
SELECT ALL - CAST( col1 AS SIGNED ) + - col2 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - CAST ( col1 AS INTEGER ) + - col2 AS col0 FROM tab2 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3608
SELECT ALL + COUNT( * ) * + 69 AS col1 FROM tab1 AS cor0
----
207
skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL + COUNT ( * ) * + 69 AS col1 FROM tab1 AS cor0
----
207
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-3609
SELECT + + CAST( NULL AS DECIMAL ) + COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT + + CAST ( NULL AS REAL ) + COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
query II rowsort
SELECT DISTINCT - + col2 AS col1, col0 * - 25 AS col1 FROM tab0 AS cor0
----
-10
-2175
-47
-375
-99
-2425
onlyif mysql # aggregate syntax:
query I rowsort label-3611
SELECT DISTINCT + COUNT( * ) + - COUNT( 54 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT + COUNT ( * ) + - COUNT ( 54 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT 58 * + - 51 + + col1 AS col1 FROM tab0 AS cor0
----
-2877
-2937
-2957
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3613
SELECT DISTINCT + + col2 + + CAST( 1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
144
147
159
skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + + col2 + + CAST ( 1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
144
147
159
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3614
SELECT col1 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3614
SELECT col1 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 76 * - - col1 > col2
----
query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab1
----
-59
-68
-96
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-3617
SELECT ALL + 86 * CAST( NULL AS SIGNED ) col0, + col0 DIV + col0 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3617
SELECT ALL + 86 * CAST ( NULL AS INTEGER ) col0, + col0 / + col0 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( ( - + col1 ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3619
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
skipif mysql # not compatible
query II rowsort label-3619
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col0 AS col1, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
onlyif mysql # aggregate syntax:
query I rowsort label-3620
SELECT ALL MAX( + col0 ) * + + COUNT( * ) FROM tab2
----
225
skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL MAX ( + col0 ) * + + COUNT ( * ) FROM tab2
----
225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + 88 col1 FROM tab1 WHERE + col1 IS NULL
----
query I rowsort
SELECT - - ( + 76 ) FROM tab2 WHERE NOT col0 IS NULL
----
76
76
76
onlyif mysql # aggregate syntax:
query I rowsort label-3623
SELECT MAX( DISTINCT col0 ) * + COUNT( * ) + - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( + col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-3623
SELECT MAX ( DISTINCT col0 ) * + COUNT ( * ) + - 71 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( + col1 )
----
NULL
query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT NULL >= NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + ( col0 ) ) <> ( - col0 )
----
query I rowsort
SELECT + ( + ( + 4 ) ) FROM tab2 cor0
----
4
4
4
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 90 IS NOT NULL
----
query I rowsort
SELECT 2 + + col0 + - col0 * - col2 FROM tab1
----
4949
5102
6281
query I rowsort
SELECT + 43 + + col1 + + col2 + col0 + - col2 - - ( 87 ) AS col0 FROM tab1 AS cor0
----
195
220
268
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 * 1 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3631
SELECT + CAST( NULL AS SIGNED ), - SUM( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
-227
skipif mysql # not compatible
query II rowsort label-3631
SELECT + CAST ( NULL AS INTEGER ), - SUM ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
NULL
-227
onlyif mysql # DIV for integer division:
query I rowsort label-3632
SELECT DISTINCT 55 DIV + col2 + 81 + col0 FROM tab1 AS cor0
----
132
166
172
skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT 55 / + col2 + 81 + col0 FROM tab1 AS cor0
----
132
166
172
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3633
SELECT ALL + + col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + + col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 4 * + + col0 FROM tab2 AS cor0
----
-184
-256
-300
query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE col0 + + + col1 <= ( - ( col0 ) / col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3636
SELECT ALL + 38 FROM tab0 cor0 WHERE NOT 65 / - 32 + + col1 = + CAST( col2 AS SIGNED )
----
38
38
38
skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL + 38 FROM tab0 cor0 WHERE NOT 65 / - 32 + + col1 = + CAST ( col2 AS INTEGER )
----
38
38
38
query I rowsort
SELECT DISTINCT - 26 + col0 AS col0 FROM tab0 AS cor0
----
-11
61
71
query II rowsort
SELECT 63 AS col2, - ( + col2 ) FROM tab1
----
63
-59
63
-68
63
-96
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3640
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query III rowsort label-3640
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE 18 IN ( col2, - 27 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE col0 * 75 / ( - 9 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - - 30 AS col1 FROM tab2 WHERE NOT + + col2 = + col2
----
query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-3646
SELECT - 97 DIV - 37 + col0 AS col0 FROM tab1 WHERE ( - 41 IS NOT NULL )
----
53
87
93
skipif mysql # not compatible
query I rowsort label-3646
SELECT - 97 / - 37 + col0 AS col0 FROM tab1 WHERE ( - 41 IS NOT NULL )
----
53
87
93
query I rowsort
SELECT - col2 + 57 AS col0 FROM tab0
----
-42
10
47
query II rowsort
SELECT ALL + - col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NULL ) <= ( - 43 )
----
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL NOT IN ( + ( + 56 ) + + - 15 * - + 63 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 * - 10 * + col1 + - 34 * + - 57 col1 FROM tab1 AS cor0
----
-1288302
-172112
-2171342
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3653
SELECT + + CAST( NULL AS DECIMAL ) * + + col1 col1, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3653
SELECT + + CAST ( NULL AS REAL ) * + + col1 col1, - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 < - + col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-3655
SELECT DISTINCT - + COUNT( * ) AS col2, 74 DIV + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL
----
0
305
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3655
SELECT DISTINCT - + COUNT ( * ) AS col2, 74 / + 74 + + 38 * + 8 col2 FROM tab1 AS cor0 WHERE NOT col1 + 1 * - col1 IS NOT NULL
----
0
305
onlyif mysql # aggregate syntax:
query I rowsort label-3656
SELECT + + COUNT( + col1 ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3656
SELECT + + COUNT ( + col1 ) AS col0 FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT - - 25 AS col0 FROM tab0 cor0
----
25
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + - 2 )
----
query I rowsort
SELECT + 29 FROM tab1 AS cor0 WHERE NOT - col2 * + col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - + col0 * col2 AS col1 FROM tab1 WHERE - - 49 * - col2 <= - col2 + - + 92
----
-4896
-5015
-6188
query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 > NULL
----
query II rowsort
SELECT DISTINCT + col1, + 24 AS col0 FROM tab1
----
14
24
47
24
5
24
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3663
SELECT DISTINCT - col0 col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3663
SELECT DISTINCT - col0 col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 NOT BETWEEN - + 50 AND col1 * ( + ( + + col1 ) )
----
query I rowsort
SELECT - 85 - col0 AS col2 FROM tab1 WHERE ( 81 * + + col2 ) IS NOT NULL OR + 72 + + 2 <> col0 - 88
----
-136
-170
-176
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 82 * + col0 - - - col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3667
SELECT + COUNT( * ) * + - MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
-243
skipif mysql # not compatible
query I rowsort label-3667
SELECT + COUNT ( * ) * + - MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
-243
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + col1 * - ( + col1 ) NOT BETWEEN + col2 AND - + col1
----
query III rowsort
SELECT ALL * FROM tab0 WHERE 97 <> NULL
----
query I rowsort
SELECT + col1 * - 40 FROM tab0 AS cor0
----
-3240
-40
-840
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + ( + + col1 ) )
----
query I rowsort
SELECT - col1 + - 14 * + col1 AS col2 FROM tab1 AS cor0 WHERE - 41 <= + - 40
----
-210
-705
-75
onlyif mysql # DIV for integer division:
query I rowsort label-3673
SELECT DISTINCT col0 + - - col0 DIV - - col2 FROM tab0 AS cor0
----
15
95
97
skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT col0 + - - col0 / - - col2 FROM tab0 AS cor0
----
15
95
97
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3674
SELECT ALL - 78 + - 99 AS col0, CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-177
23
-177
40
-177
58
skipif mysql # not compatible
query II rowsort label-3674
SELECT ALL - 78 + - 99 AS col0, CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-177
23
-177
40
-177
58
query I rowsort
SELECT - col0 + + + 91 * - col2 * - col1 FROM tab1 AS cor0
----
122253
26760
290745
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3676
SELECT DISTINCT CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77
skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77
query I rowsort
SELECT ALL ( 47 ) FROM tab0 WHERE - + 91 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3678
SELECT + MAX( DISTINCT + 79 ) + - COUNT( * ) AS col1 FROM tab0
----
76
skipif mysql # not compatible
query I rowsort label-3678
SELECT + MAX ( DISTINCT + 79 ) + - COUNT ( * ) AS col1 FROM tab0
----
76
onlyif mysql # DIV for integer division:
query I rowsort label-3679
SELECT - 4 DIV + + 4 + - 71 FROM tab0
----
-72
-72
-72
skipif mysql # not compatible
query I rowsort label-3679
SELECT - 4 / + + 4 + - 71 FROM tab0
----
-72
-72
-72
onlyif mysql # aggregate syntax:
query I rowsort label-3680
SELECT DISTINCT + SUM( + - 79 ) AS col0 FROM tab1
----
-237
skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + SUM ( + - 79 ) AS col0 FROM tab1
----
-237
onlyif mysql # aggregate syntax:
query I rowsort label-3681
SELECT DISTINCT MAX( 31 ) * 46 FROM tab1 WHERE NOT ( + ( - col1 ) + + 85 ) >= ( + col1 ) * - col0 * col2 * + + col0
----
NULL
skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT MAX ( 31 ) * 46 FROM tab1 WHERE NOT ( + ( - col1 ) + + 85 ) >= ( + col1 ) * - col0 * col2 * + + col0
----
NULL
query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + 3 IS NULL
----
23
40
58
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 4 col1 FROM tab2 AS cor0
----
-160
-232
-92
query I rowsort
SELECT DISTINCT - col1 + - - 53 - - col0 AS col2 FROM tab0 AS cor0
----
-13
119
149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 - ( + col0 ) col2, - col0 FROM tab2 AS cor0
----
-104
-64
-133
-75
-69
-46
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= ( NULL )
----
query I rowsort
SELECT + 63 - + 77 FROM tab0
----
-14
-14
-14
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3689
SELECT col1 * + col0 + - 57 + + + CAST( NULL AS SIGNED ) AS col1, - ( 25 ) FROM tab1
----
NULL
-25
NULL
-25
NULL
-25
skipif mysql # not compatible
query II rowsort label-3689
SELECT col1 * + col0 + - 57 + + + CAST ( NULL AS INTEGER ) AS col1, - ( 25 ) FROM tab1
----
NULL
-25
NULL
-25
NULL
-25
onlyif mysql # aggregate syntax:
query I rowsort label-3690
SELECT DISTINCT + COUNT( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT + COUNT ( ALL - col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN ( col1 / col2 ) AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3692
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - col1 >= - - col1
----
skipif mysql # not compatible
query III rowsort label-3692
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - col1 >= - - col1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 71 * + - 52 + ( - + col0 ) + col2 BETWEEN - - col1 AND ( NULL )
----
query I rowsort
SELECT + ( - 72 ) AS col1 FROM tab0 AS cor0
----
-72
-72
-72
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3695
SELECT - MAX( ALL - col0 ) DIV - 83 AS col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3695
SELECT - MAX ( ALL - col0 ) / - 83 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + 99 * + col1 + 63 - + ( + - col0 ) + col2 AS col1 FROM tab1 AS cor0
----
1596
4875
702
query II rowsort
SELECT DISTINCT + + col0 AS col2, - col1 * - - col0 * + col0 FROM tab2 AS cor0
----
46
-107916
64
-315392
75
-376875
onlyif mysql # DIV for integer division:
query I rowsort label-3698
SELECT + col0 DIV - - 4 + - 7 * + col2 AS col2 FROM tab2 cor0
----
-150
-264
-388
skipif mysql # not compatible
query I rowsort label-3698
SELECT + col0 / - - 4 + - 7 * + col2 AS col2 FROM tab2 cor0
----
-150
-264
-388
onlyif mysql # aggregate syntax:
query I rowsort label-3699
SELECT - MAX( DISTINCT - 48 ) FROM tab1 AS cor0
----
48
skipif mysql # not compatible
query I rowsort label-3699
SELECT - MAX ( DISTINCT - 48 ) FROM tab1 AS cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col1 + - - 75 - - 75 / - col0 col0 FROM tab1 WHERE NOT col1 NOT IN ( + col2 / - + col0 + - - 25 + + - 4 + - col2 + 80 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3701
SELECT DISTINCT col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
NULL
64
NULL
75
NULL
skipif mysql # not compatible
query II rowsort label-3701
SELECT DISTINCT col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
NULL
64
NULL
75
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3702
SELECT DISTINCT MIN( - + col1 ) AS col1 FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT MIN ( - + col1 ) AS col1 FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-3703
SELECT DISTINCT - MAX( + - 4 ) FROM tab1 AS cor0
----
4
skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT - MAX ( + - 4 ) FROM tab1 AS cor0
----
4
query I rowsort
SELECT DISTINCT + ( - 4 ) * - + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + - col0 * - col2 FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab1
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 17 * - + col0 + - + 7 col0 FROM tab2 AS cor0
----
51
-789
67
-1282
77
-1095
onlyif mysql # aggregate syntax:
query I rowsort label-3708
SELECT - SUM( + + col1 ) col0 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT - SUM ( + + col1 ) col0 FROM tab2 AS cor0
----
-195
query II rowsort
SELECT col1, + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> 66
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 + - col0 NOT IN ( 39, - col1 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - ( + col2 ) - + 0 AS col2 FROM tab0
----
-10
-47
-99
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3714
SELECT + COUNT( * ) FROM tab0 WHERE NULL > + col2 * + col1
----
0
skipif mysql # not compatible
query I rowsort label-3714
SELECT + COUNT ( * ) FROM tab0 WHERE NULL > + col2 * + col1
----
0
query I rowsort
SELECT DISTINCT - 81 * - ( + col2 ) AS col2 FROM tab1
----
4779
5508
7776
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + 23 * + ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 > - col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-3718
SELECT 50 + + 86 * col0 DIV col0 * + + col1 * col0 col0 FROM tab1 AS cor0
----
36600
367872
61454
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3718
SELECT 50 + + 86 * col0 / col0 * + + col1 * col0 col0 FROM tab1 AS cor0
----
36600
367872
61454
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3719
SELECT - ( + ( col0 ) ) * col1 + - - ( - col0 ) + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 75 ) * 55 + CAST( - col1 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-3719
SELECT - ( + ( col0 ) ) * col1 + - - ( - col0 ) + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - 75 ) * 55 + CAST ( - col1 AS INTEGER )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * col0 * - col0 col2 FROM tab0
----
-317898
-395178
-9450
query III rowsort
SELECT * FROM tab0 WHERE NOT 94 BETWEEN NULL AND + - 92 - - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-3722
SELECT ALL + + col1 DIV + 3 FROM tab1 AS cor0
----
1
15
4
skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + + col1 / + 3 FROM tab1 AS cor0
----
1
15
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col0 FROM tab1 AS cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----
query I rowsort
SELECT ALL col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 82 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3727
SELECT COUNT( + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-3727
SELECT COUNT ( + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3729
SELECT DISTINCT - col2 DIV col0 + col1 * + col1 FROM tab1 cor0
----
195
2209
25
skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - col2 / col0 + col1 * + col1 FROM tab1 cor0
----
195
2209
25
onlyif mysql # DIV for integer division:
query I rowsort label-3730
SELECT + - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3730
SELECT + - col1 / - col1 AS col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + - 9 * 58 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + col2 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3732
SELECT col1 DIV - 32 AS col2 FROM tab2
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-3732
SELECT col1 / - 32 AS col2 FROM tab2
----
-1
-2
-2
query III rowsort
SELECT * FROM tab1 WHERE NOT + 34 IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-3734
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + + 37 + - + 87 FROM tab2
----
3
NULL
skipif mysql # not compatible
query II rowsort label-3734
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + + 37 + - + 87 FROM tab2
----
3
NULL
query I rowsort
SELECT + ( - col2 ) * col0 AS col1 FROM tab1
----
-4896
-5015
-6188
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3736
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3736
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
query I rowsort
SELECT - col1 * - col1 * col2 + + col1 AS col0 FROM tab0
----
100
308448
4431
query II rowsort
SELECT - col0, col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 + - + col0 AND - col1
----
query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab1 cor0
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-3740
SELECT + COUNT( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-3740
SELECT + COUNT ( - 99 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1, col2 * + col1 col2 FROM tab1 cor0
----
10
295
28
1344
94
3196
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3742
SELECT DISTINCT - CAST( + + 62 AS SIGNED ) + col1 + + + 86 * - - col1 FROM tab0 AS cor0
----
1765
25
6985
skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - CAST ( + + 62 AS INTEGER ) + col1 + + + 86 * - - col1 FROM tab0 AS cor0
----
1765
25
6985
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 5 + 8 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 3 - + col1 + - - col0 IN ( - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 62 - 32 AS col0 FROM tab1 WHERE + - col1 > - - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3746
SELECT ALL + - MIN( - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51
skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + - MIN ( - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
51
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - 28 + - col1 )
----
query I rowsort
SELECT col1 + - 4 * 98 FROM tab1
----
-345
-378
-387
onlyif mysql # aggregate syntax:
query II rowsort label-3749
SELECT - 36 AS col1, COUNT( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-36
0
skipif mysql # not compatible
query II rowsort label-3749
SELECT - 36 AS col1, COUNT ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-36
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3750
SELECT ALL - col0 / 7 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL - col0 / 7 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3751
SELECT 85 + - - CAST( + 23 AS SIGNED ) + - + COUNT( * ) + - ( - 2 ) AS col1 FROM tab2 AS cor0
----
107
skipif mysql # not compatible
query I rowsort label-3751
SELECT 85 + - - CAST ( + 23 AS INTEGER ) + - + COUNT ( * ) + - ( - 2 ) AS col1 FROM tab2 AS cor0
----
107
query I rowsort
SELECT - + col2 + + col1 * + - ( - 63 ) AS col0 FROM tab0 AS cor0
----
-36
1313
5056
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-3753
SELECT 17 + - - 61 / + CAST( NULL AS DECIMAL ) col0, 74 AS col2 FROM tab2
----
NULL
74
NULL
74
NULL
74
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3753
SELECT 17 + - - 61 / + CAST ( NULL AS REAL ) col0, 74 AS col2 FROM tab2
----
NULL
74
NULL
74
NULL
74
query I rowsort
SELECT DISTINCT - + col1 * + 59 + 19 FROM tab2 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL col2 + + col1 * - 17 - col0 FROM tab1 WHERE NOT + ( 42 ) IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3757
SELECT ALL COUNT( ALL + + 24 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL COUNT ( ALL + + 24 ) AS col1 FROM tab0
----
3
query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IS NULL )
----
query I rowsort
SELECT DISTINCT + col2 + 80 FROM tab1 WHERE NOT - col1 + + 86 <= - 13 * col1 + - + 69 * + col2
----
139
148
176
onlyif mysql # aggregate syntax:
query I rowsort label-3760
SELECT DISTINCT + COUNT( * ) * + 41 FROM tab1 AS cor0
----
123
skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + COUNT ( * ) * + 41 FROM tab1 AS cor0
----
123
query I rowsort
SELECT DISTINCT 6 + 54 AS col1 FROM tab0 AS cor0
----
60
query II rowsort
SELECT ALL + col2, 98 FROM tab2 AS cor0
----
23
98
40
98
58
98
onlyif mysql # aggregate syntax:
query I rowsort label-3763
SELECT - MAX( ALL + col1 ) * + COUNT( * ) + - - MAX( ALL 61 ) AS col0 FROM tab2 AS cor0
----
-170
skipif mysql # not compatible
query I rowsort label-3763
SELECT - MAX ( ALL + col1 ) * + COUNT ( * ) + - - MAX ( ALL 61 ) AS col0 FROM tab2 AS cor0
----
-170
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3764
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 col0 FROM tab0 cor0
----
78
78
78
onlyif mysql # aggregate syntax:
query I rowsort label-3766
SELECT + MIN( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-3766
SELECT + MIN ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-96
query I rowsort
SELECT DISTINCT + 42 * - col2 FROM tab1
----
-2478
-2856
-4032
onlyif mysql # aggregate syntax:
query I rowsort label-3768
SELECT COUNT( * ) * 76 AS col2 FROM tab1 AS cor0
----
228
skipif mysql # not compatible
query I rowsort label-3768
SELECT COUNT ( * ) * 76 AS col2 FROM tab1 AS cor0
----
228
onlyif mysql # aggregate syntax:
query I rowsort label-3769
SELECT - MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-3769
SELECT - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97
onlyif mysql # DIV for integer division:
query I rowsort label-3770
SELECT + + col1 DIV + - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3770
SELECT + + col1 / + - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - 33 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 2 col1, + col0 AS col1 FROM tab2
----
2
46
2
64
2
75
onlyif mysql # aggregate syntax:
query II rowsort label-3773
SELECT ALL COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3
skipif mysql # not compatible
query II rowsort label-3773
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3
query II rowsort
SELECT ALL col0 * + - col0 * + col1, 13 AS col2 FROM tab0
----
-158949
13
-18225
13
-9409
13
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3775
SELECT ALL 77 * + MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2
----
1771
skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 77 * + MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2
----
1771
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= - col1 * - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT ALL * FROM tab1 WHERE 28 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3778
SELECT DISTINCT COUNT( * ) DIV - 96 + 10 * - + 59 AS col1 FROM tab1
----
-590
skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT COUNT ( * ) / - 96 + 10 * - + 59 AS col1 FROM tab1
----
-590
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3779
SELECT DISTINCT - - COUNT( * ) DIV + 60 + - 8 + + MIN( - col0 ) DIV - COUNT( * ) FROM tab0 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-3779
SELECT DISTINCT - - COUNT ( * ) / + 60 + - 8 + + MIN ( - col0 ) / - COUNT ( * ) FROM tab0 AS cor0
----
24
onlyif mysql # DIV for integer division:
query II rowsort label-3780
SELECT + 0 DIV + + 38 + - col0 + - + 74 * col0, col0 FROM tab2 cor0
----
-3450
46
-4800
64
-5625
75
skipif mysql # not compatible
query II rowsort label-3780
SELECT + 0 / + + 38 + - col0 + - + 74 * col0, col0 FROM tab2 cor0
----
-3450
46
-4800
64
-5625
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3781
SELECT + CAST( NULL AS SIGNED ) * + + 13 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3781
SELECT + CAST ( NULL AS INTEGER ) * + + 13 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * + + 77 + + + 79 AS col1 FROM tab0 AS cor0
----
3698
7702
849
query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 + - 63 * + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-3784
SELECT ALL SUM( ALL - - 44 ) FROM tab1 AS cor0
----
132
skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL SUM ( ALL - - 44 ) FROM tab1 AS cor0
----
132
query II rowsort
SELECT col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40
onlyif mysql # aggregate syntax:
query I rowsort label-3786
SELECT - - COUNT( * ) * + + MAX( + 13 ) FROM tab1 AS cor0
----
39
skipif mysql # not compatible
query I rowsort label-3786
SELECT - - COUNT ( * ) * + + MAX ( + 13 ) FROM tab1 AS cor0
----
39
onlyif mysql # DIV for integer division:
query II rowsort label-3787
SELECT - + 92 AS col0, ( - - col0 ) DIV 57 AS col0 FROM tab2 AS cor0
----
-92
0
-92
1
-92
1
skipif mysql # not compatible
query II rowsort label-3787
SELECT - + 92 AS col0, ( - - col0 ) / 57 AS col0 FROM tab2 AS cor0
----
-92
0
-92
1
-92
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, 82 col0 FROM tab0 AS cor0
----
15
82
87
82
97
82
query I rowsort
SELECT ALL + - col0 + - col0 + + + 58 * 49 FROM tab2 AS cor0
----
2692
2714
2750
onlyif mysql # aggregate syntax:
query I rowsort label-3790
SELECT DISTINCT - 82 + - + COUNT( * ) AS col1 FROM tab1 cor0
----
-85
skipif mysql # not compatible
query I rowsort label-3790
SELECT DISTINCT - 82 + - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-85
query I rowsort
SELECT ALL + col0 + + + col0 * + + col2 * + + col1 AS col2 FROM tab0
----
18357
57120
9700
onlyif mysql # DIV for integer division:
query I rowsort label-3792
SELECT ALL + 13 - ( - col2 ) - + col1 + + col0 DIV + col2 - - ( 68 ) * + 82 + + col1 FROM tab2
----
5614
5630
5648
skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL + 13 - ( - col2 ) - + col1 + + col0 / + col2 - - ( 68 ) * + 82 + + col1 FROM tab2
----
5614
5630
5648
query I rowsort
SELECT DISTINCT - ( + - col2 ) - + + col0 FROM tab2
----
-17
-23
-24
query I rowsort
SELECT DISTINCT ( + + 61 ) FROM tab1
----
61
query III rowsort
SELECT * FROM tab1 WHERE - + col0 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 92 ) + 35 - 52 * + - col1 col1 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3797
SELECT ALL - SUM( - col1 ) FROM tab2
----
195
skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL - SUM ( - col1 ) FROM tab2
----
195
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3798
SELECT - ( - CAST( - col1 AS SIGNED ) ) - + col2 FROM tab2 WHERE NOT NULL IS NULL
----
skipif mysql # not compatible
query I rowsort label-3798
SELECT - ( - CAST ( - col1 AS INTEGER ) ) - + col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3799
SELECT DISTINCT ( SUM( ALL + col2 ) ) AS col1 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT ( SUM ( ALL + col2 ) ) AS col1 FROM tab0 AS cor0
----
156
query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58
query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + ( - 37 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-3802
SELECT COUNT( * ) AS col1, - CAST( COUNT( * ) AS SIGNED ) DIV - 9 FROM tab2
----
3
0
skipif mysql # not compatible
query II rowsort label-3802
SELECT COUNT ( * ) AS col1, - CAST ( COUNT ( * ) AS INTEGER ) / - 9 FROM tab2
----
3
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-3803
SELECT + CAST( ( + - 88 ) AS SIGNED ), - col2 AS col1 FROM tab0
----
-88
-10
-88
-47
-88
-99
skipif mysql # not compatible
query II rowsort label-3803
SELECT + CAST ( ( + - 88 ) AS INTEGER ), - col2 AS col1 FROM tab0
----
-88
-10
-88
-47
-88
-99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3804
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3804
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3805
SELECT - - COUNT( - col1 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3805
SELECT - - COUNT ( - col1 ) FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3806
SELECT DISTINCT - MIN( + 20 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL
skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - MIN ( + 20 ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + - 2 * 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL ( - 69 ) FROM tab1 AS cor0
----
-69
-69
-69
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 70 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + 79 * - - col2 AS col2 FROM tab1
----
4661
5372
7584
query I rowsort
SELECT col1 * + col0 + + col2 + col0 * + - col2 AS col0 FROM tab1
----
-1843
-4086
-4531
query I rowsort
SELECT DISTINCT - ( col2 ) * + - ( - + col2 ) * + - 47 AS col1 FROM tab2
----
158108
24863
75200
query I rowsort
SELECT col2 + col1 + col1 AS col2 FROM tab2
----
125
192
194
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3814
SELECT + CAST( + col0 AS SIGNED ) + 58 + CAST( NULL AS SIGNED ) * - + col0 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3814
SELECT + CAST ( + col0 AS INTEGER ) + 58 + CAST ( NULL AS INTEGER ) * - + col0 / col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 58 * col1 FROM tab1
----
-2726
-290
-812
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3817
SELECT CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3817
SELECT CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3818
SELECT DISTINCT COUNT( * ) + COUNT( * ) + + 54 FROM tab1 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) + + 54 FROM tab1 AS cor0
----
60
onlyif mysql # aggregate syntax:
query I rowsort label-3819
SELECT MIN( ALL col2 ) AS col1 FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-3819
SELECT MIN ( ALL col2 ) AS col1 FROM tab2
----
23
query I rowsort
SELECT ALL col1 + + - 30 FROM tab1 AS cor0
----
-16
-25
17
query I rowsort
SELECT DISTINCT + col1 + - + 74 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
-72
388
6568
onlyif mysql # aggregate syntax:
query I rowsort label-3822
SELECT - SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-3822
SELECT - SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3823
SELECT 58 DIV - CAST( ( - 91 ) AS SIGNED ) AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3823
SELECT 58 / - CAST ( ( - 91 ) AS INTEGER ) AS col0 FROM tab2
----
0
0
0
query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 NOT BETWEEN - - 35 AND col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-3825
SELECT DISTINCT + 2 DIV 85 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + 2 / 85 AS col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col2 FROM tab0
----
30
30
30
onlyif mysql # aggregate syntax:
query I rowsort label-3827
SELECT ALL + MAX( DISTINCT 65 ) AS col0 FROM tab0
----
65
skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + MAX ( DISTINCT 65 ) AS col0 FROM tab0
----
65
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3828
SELECT DISTINCT + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 5 * + CAST( 49 AS SIGNED ) + - col2
----
0
skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 5 * + CAST ( 49 AS INTEGER ) + - col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3829
SELECT ALL ( - - MAX( - + 4 ) ) FROM tab0 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-3829
SELECT ALL ( - - MAX ( - + 4 ) ) FROM tab0 AS cor0
----
-4
query I rowsort
SELECT + + 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
onlyif mysql # aggregate syntax:
query I rowsort label-3831
SELECT + MAX( DISTINCT + col0 ) AS col2 FROM tab2
----
75
skipif mysql # not compatible
query I rowsort label-3831
SELECT + MAX ( DISTINCT + col0 ) AS col2 FROM tab2
----
75
query I rowsort
SELECT DISTINCT 87 FROM tab1, tab1 AS cor0
----
87
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 91 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3836
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col0 IS NULL
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col0 IS NULL
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-3837
SELECT + + COUNT( * ) AS col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-3837
SELECT + + COUNT ( * ) AS col0 FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-3838
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col1 FROM tab1 AS cor0
----
19
19
19
onlyif mysql # aggregate syntax:
query I rowsort label-3840
SELECT MIN( ALL col2 ) FROM tab1 AS cor0
----
59
skipif mysql # not compatible
query I rowsort label-3840
SELECT MIN ( ALL col2 ) FROM tab1 AS cor0
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-3841
SELECT ALL COUNT( * ) col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3841
SELECT ALL COUNT ( * ) col1 FROM tab1 cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3842
SELECT - SUM( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE col0 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3842
SELECT - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE col0 IS NULL
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE col2 * 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3844
SELECT 98 * SUM( + 75 ) AS col0 FROM tab2
----
22050
skipif mysql # not compatible
query I rowsort label-3844
SELECT 98 * SUM ( + 75 ) AS col0 FROM tab2
----
22050
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3845
SELECT MIN( + 6 ) DIV - 96 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-3845
SELECT MIN ( + 6 ) / - 96 FROM tab1
----
0
query I rowsort
SELECT - 63 + - col0 AS col0 FROM tab1 AS cor0
----
-114
-148
-154
query II rowsort
SELECT DISTINCT + - 53, - 80 AS col1 FROM tab1 cor0 WHERE ( NOT ( ( NOT - + col1 * + - 38 NOT BETWEEN NULL AND + col0 + col2 + col2 * + col2 ) ) )
----
onlyif mysql # DIV for integer division:
query I rowsort label-3848
SELECT + col2 + - col0 DIV + 64 FROM tab1 AS cor0
----
58
67
96
skipif mysql # not compatible
query I rowsort label-3848
SELECT + col2 + - col0 / + 64 FROM tab1 AS cor0
----
58
67
96
query I rowsort
SELECT + col2 + + 86 AS col2 FROM tab0 AS cor0
----
133
185
96
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + - 57 ) = ( NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3851
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) + - 86 + - 20 AS col2 FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) + - 86 + - 20 AS col2 FROM tab0 AS cor0
----
-103
query I rowsort
SELECT DISTINCT - 38 - + col2 FROM tab2 cor0
----
-61
-78
-96
query I rowsort
SELECT DISTINCT - 63 * + col1 * 59 - 35 + - - 97 + - - 35 * - - col2 AS col1 FROM tab1
----
-16458
-172257
-48616
query I rowsort
SELECT DISTINCT 55 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( ( - ( 74 ) ) ) * 82 col2 FROM tab0 AS cor0
----
6068
query I rowsort
SELECT - col1 * 62 * - col2 FROM tab0 AS cor0
----
13020
236034
6138
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3857
SELECT DISTINCT - 42 DIV - - COUNT( * ) FROM tab0
----
-14
skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT - 42 / - - COUNT ( * ) FROM tab0
----
-14
onlyif mysql # aggregate syntax:
query I rowsort label-3858
SELECT ALL + MIN( + ( - 30 ) ) AS col0 FROM tab2
----
-30
skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + MIN ( + ( - 30 ) ) AS col0 FROM tab2
----
-30
query II rowsort
SELECT 71 * col0 * + 31, + 19 AS col2 FROM tab1
----
112251
19
187085
19
200291
19
onlyif mysql # aggregate syntax:
query II rowsort label-3860
SELECT ALL 11 AS col1, - COUNT( ALL - col0 ) col2 FROM tab0
----
11
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3860
SELECT ALL 11 AS col1, - COUNT ( ALL - col0 ) col2 FROM tab0
----
11
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3861
SELECT - MIN( + 49 ) AS col0 FROM tab0
----
-49
skipif mysql # not compatible
query I rowsort label-3861
SELECT - MIN ( + 49 ) AS col0 FROM tab0
----
-49
onlyif mysql # aggregate syntax:
query I rowsort label-3862
SELECT + ( COUNT( * ) ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-3862
SELECT + ( COUNT ( * ) ) AS col0 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-3863
SELECT - MAX( - 72 ) AS col0 FROM tab2
----
72
skipif mysql # not compatible
query I rowsort label-3863
SELECT - MAX ( - 72 ) AS col0 FROM tab2
----
72
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + col2 >= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3865
SELECT CAST( - - ( - + ( + col1 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-3865
SELECT CAST ( - - ( - + ( + col1 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81
query I rowsort
SELECT ALL 5 AS col0 FROM tab2 cor0
----
5
5
5
onlyif mysql # aggregate syntax:
query I rowsort label-3867
SELECT DISTINCT + - MIN( + col1 ) FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + - MIN ( + col1 ) FROM tab2 AS cor0
----
-51
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 8 * - 9 * - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3869
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * + col2 * + 6 + - ( + 27 ) * 16 IS NULL
----
skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * + col2 * + 6 + - ( + 27 ) * 16 IS NULL
----
query I rowsort
SELECT - col0 / - - ( - 99 ) FROM tab0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL + 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query II rowsort
SELECT DISTINCT col0, col2 * + 7 * + + col0 AS col2 FROM tab0
----
15
4935
87
6090
97
67221
query I rowsort
SELECT ALL + - col0 + + col0 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
2070
4032
5550
query I rowsort
SELECT ALL - 27 AS col2 FROM tab0 cor0
----
-27
-27
-27
query I rowsort
SELECT ALL 85 + col1 AS col2 FROM tab2 AS cor0
----
136
152
162
query I rowsort
SELECT + - col1 * - col1 AS col2 FROM tab0 AS cor0 WHERE 17 IS NOT NULL
----
1
441
6561
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-3877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST( + col2 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-3877
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( CAST ( + col2 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 76 + + 32 AS col2 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT - col0 + + col0 + - - col1 * + col2 FROM tab2 AS cor0
----
1173
3080
3886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab1
----
5
query I rowsort
SELECT ALL 73 * 24 + + col1 * - + col0 AS col1 FROM tab2
----
-3176
-3273
-594
onlyif mysql # aggregate syntax:
query I rowsort label-3882
SELECT - - COUNT( * ) * + COUNT( * ) * - ( + 73 ) FROM tab1 WHERE NULL <= col0
----
0
skipif mysql # not compatible
query I rowsort label-3882
SELECT - - COUNT ( * ) * + COUNT ( * ) * - ( + 73 ) FROM tab1 WHERE NULL <= col0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3883
SELECT * FROM tab1 WHERE - col1 / 73 * + - col2 >= col1 / + col1 * 49 * - col1 + - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-3883
SELECT * FROM tab1 WHERE - col1 / 73 * + - col2 >= col1 / + col1 * 49 * - col1 + - CAST ( NULL AS INTEGER )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + 90 = 94
----
onlyif mysql # aggregate syntax:
query I rowsort label-3885
SELECT DISTINCT - SUM( - col1 ) FROM tab1 cor0
----
66
skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - SUM ( - col1 ) FROM tab1 cor0
----
66
query I rowsort
SELECT ALL col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3887
SELECT DISTINCT - MIN( 0 ) DIV + COUNT( * ) + + 36 AS col0 FROM tab2 AS cor0
----
36
skipif mysql # not compatible
query I rowsort label-3887
SELECT DISTINCT - MIN ( 0 ) / + COUNT ( * ) + + 36 AS col0 FROM tab2 AS cor0
----
36
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3888
SELECT + MAX( ALL - + 94 ) DIV 85 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-3888
SELECT + MAX ( ALL - + 94 ) / 85 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4
onlyif mysql # aggregate syntax:
query I rowsort label-3889
SELECT DISTINCT + - 9 * + - SUM( ALL ( - + ( + + 92 ) ) ) + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-7412
skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT + - 9 * + - SUM ( ALL ( - + ( + + 92 ) ) ) + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-7412
query I rowsort
SELECT ALL 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL 11 * - - col2 FROM tab0
----
1089
110
517
query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3893
SELECT ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-3893
SELECT ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
query I rowsort
SELECT - col2 * - col0 * 92 AS col2 FROM tab1 AS cor0
----
450432
461380
569296
onlyif mysql # aggregate syntax:
query I rowsort label-3895
SELECT - COUNT( * ) * MAX( ALL - 71 ) AS col1 FROM tab2 cor0
----
213
skipif mysql # not compatible
query I rowsort label-3895
SELECT - COUNT ( * ) * MAX ( ALL - 71 ) AS col1 FROM tab2 cor0
----
213
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-3896
SELECT DISTINCT - COUNT( * ) * - 2 + + 96 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3896
SELECT DISTINCT - COUNT ( * ) * - 2 + + 96 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-3897
SELECT ALL - COUNT( * ) AS col0 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 cor0
----
-3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3899
SELECT ALL COUNT( + 43 ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL COUNT ( + 43 ) AS col2 FROM tab2 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 AS col2, col0 + + col0 col1 FROM tab2 AS cor0 WHERE NOT - col0 / - col2 IS NULL
----
-63
128
-63
150
-63
92
onlyif mysql # aggregate syntax:
query I rowsort label-3901
SELECT + MIN( + + col2 ) FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-3901
SELECT + MIN ( + + col2 ) FROM tab2
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * col1 col0, col2 * + 70 FROM tab0
----
1215
3290
1827
700
97
6930
onlyif mysql # aggregate syntax:
query I rowsort label-3903
SELECT ALL - ( - - COUNT( DISTINCT + - 8 ) ) AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - ( - - COUNT ( DISTINCT + - 8 ) ) AS col1 FROM tab2
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-3904
SELECT ALL 18 * 51 DIV + - col0 FROM tab1
----
-10
-10
-18
skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 18 * 51 / + - col0 FROM tab1
----
-10
-10
-18
query I rowsort
SELECT ( - ( - col2 ) ) AS col0 FROM tab2
----
23
40
58
query I rowsort
SELECT - col1 * - - col2 + - - 86 FROM tab0 AS cor0
----
-124
-13
-3721
onlyif mysql # aggregate syntax:
query I rowsort label-3907
SELECT + 22 + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 / + - col1 - - col1 AND NULL
----
22
skipif mysql # not compatible
query I rowsort label-3907
SELECT + 22 + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 / + - col1 - - col1 AND NULL
----
22
query I rowsort
SELECT ALL + + 27 * + col1 * + col2 AS col0 FROM tab2 AS cor0
----
104922
31671
83160
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 72 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3911
SELECT - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-3911
SELECT - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query I rowsort
SELECT 75 + 47 AS col1 FROM tab0
----
122
122
122
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-3914
SELECT + MAX( + col0 ) AS col0 FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-3914
SELECT + MAX ( + col0 ) AS col0 FROM tab2 AS cor0
----
75
onlyif mysql # aggregate syntax:
query I rowsort label-3915
SELECT ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-3915
SELECT ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-3916
SELECT - ( + COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3916
SELECT - ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-3917
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-3917
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-3918
SELECT ALL + + col2 + + 17 DIV + 11 FROM tab2 AS cor0
----
24
41
59
skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + col2 + + 17 / + 11 FROM tab2 AS cor0
----
24
41
59
query I rowsort
SELECT DISTINCT - col2 + - + 99 + - + col0 * col0 * 94 AS col0 FROM tab1 AS cor0
----
-244689
-679308
-778581
query I rowsort
SELECT DISTINCT - ( + ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 / col0 + - - col1 + - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-3922
SELECT * FROM tab0 WHERE - + col2 + + CAST( + 78 AS SIGNED ) <= NULL
----
skipif mysql # not compatible
query III rowsort label-3922
SELECT * FROM tab0 WHERE - + col2 + + CAST ( + 78 AS INTEGER ) <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3923
SELECT DISTINCT SUM( ALL + 68 ) FROM tab1
----
204
skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT SUM ( ALL + 68 ) FROM tab1
----
204
query I rowsort
SELECT + 43 - - ( - 5 ) FROM tab1
----
38
38
38
query I rowsort
SELECT 72 + - 91 FROM tab0
----
-19
-19
-19
query III rowsort
SELECT * FROM tab1 WHERE - ( + col2 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3927
SELECT + col1 + + 30 + + CAST( NULL AS SIGNED ) * col0 + + 40 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3927
SELECT + col1 + + 30 + + CAST ( NULL AS INTEGER ) * col0 + + 40 AS col2 FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 > NULL
----
query I rowsort
SELECT + - 21 + - + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 889c1e493d5975e9cd2cf41f90342a92
query I rowsort
SELECT DISTINCT + 49 - ( + - 52 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3931
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-3932
SELECT MIN( col1 ) DIV - MIN( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3932
SELECT MIN ( col1 ) / - MIN ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-3933
SELECT + - COUNT( * ) * 36 FROM tab1 AS cor0
----
-108
skipif mysql # not compatible
query I rowsort label-3933
SELECT + - COUNT ( * ) * 36 FROM tab1 AS cor0
----
-108
query II rowsort
SELECT DISTINCT - ( col2 ) AS col2, + 96 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96
query II rowsort
SELECT DISTINCT - 78 * - col2, 65 * col0 AS col1 FROM tab2 AS cor0
----
1794
2990
3120
4160
4524
4875
query I rowsort
SELECT DISTINCT - + 31 FROM tab1 cor0
----
-31
query I rowsort
SELECT + + col0 * - ( + 6 ) FROM tab1 cor0
----
-306
-510
-546
query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND col0
----
query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT 81 * + col1 IS NULL
----
0
0
0
query II rowsort
SELECT - col0, + 20 + - + col1 AS col1 FROM tab1
----
-51
6
-85
15
-91
-27
query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT NULL <> + - col0 + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-3942
SELECT COUNT( + 6 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-3942
SELECT COUNT ( + 6 ) AS col1 FROM tab1
----
3
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT ( - 91 ) * 64 AS col1 FROM tab0
----
-5824
query II rowsort
SELECT ALL 23 AS col2, + 1 FROM tab1
----
23
1
23
1
23
1
onlyif mysql # DIV for integer division:
query I rowsort label-3946
SELECT ALL 15 * + col1 DIV - col1 FROM tab2
----
-15
-15
-15
skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL 15 * + col1 / - col1 FROM tab2
----
-15
-15
-15
query I rowsort
SELECT DISTINCT + col2 * - col1 * - 26 + + col0 FROM tab2 WHERE NULL IS NULL
----
101111
30544
80144
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 85 - - - col1 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL IN ( - 99 ) )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * - 99 * + - col2 > ( NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - + col2 * ( - 2 ) + - col0 FROM tab0 AS cor0
----
-67
101
79
query I rowsort
SELECT DISTINCT - 15 + - col1 FROM tab0 AS cor0
----
-16
-36
-96
onlyif mysql # aggregate syntax:
query I rowsort label-3954
SELECT 7 + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-39
skipif mysql # not compatible
query I rowsort label-3954
SELECT 7 + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-39
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3955
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query III rowsort label-3956
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 DIV col2 * + col2 NOT BETWEEN - 41 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-3956
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 62 / col2 * + col2 NOT BETWEEN - 41 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 93 + - + col2 AS col1 FROM tab1
----
-3
25
34
query I rowsort
SELECT + col1 + + 52 FROM tab2
----
103
119
129
query I rowsort
SELECT 69 + + col2 FROM tab1
----
128
137
165
query I rowsort
SELECT 33 * - col0 * col0 * - 35 FROM tab0
----
10867395
259875
8742195
onlyif mysql # aggregate syntax:
query I rowsort label-3961
SELECT 82 * - COUNT( * ) FROM tab2
----
-246
skipif mysql # not compatible
query I rowsort label-3961
SELECT 82 * - COUNT ( * ) FROM tab2
----
-246
query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 * - 46 IS NULL
----
query II rowsort
SELECT ALL - + ( - - col1 ) AS col2, - col2 * - - 93 + 37 FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN - 88 AND - col1
----
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT - + col0 - + col2 * - + col1 FROM tab1 AS cor0
----
1293
210
3105
onlyif mysql # aggregate syntax:
query I rowsort label-3966
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * - + 45 + + + 49 col0 FROM tab0 AS cor0
----
454
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * - + 45 + + + 49 col0 FROM tab0 AS cor0
----
454
onlyif mysql # aggregate syntax:
query I rowsort label-3967
SELECT SUM( DISTINCT 23 ) FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-3967
SELECT SUM ( DISTINCT 23 ) FROM tab2 AS cor0
----
23
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3968
SELECT + CAST( - 60 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60
skipif mysql # not compatible
query I rowsort label-3968
SELECT + CAST ( - 60 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-60
-60
-60
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-3969
SELECT * FROM tab0 WHERE ( NOT ( NOT col1 <= NULL ) ) OR NOT 45 * - CAST( NULL AS DECIMAL ) * + + col0 IS NULL
----
skipif mysql # not compatible
query III rowsort label-3969
SELECT * FROM tab0 WHERE ( NOT ( NOT col1 <= NULL ) ) OR NOT 45 * - CAST ( NULL AS REAL ) * + + col0 IS NULL
----
query II rowsort
SELECT 86, + 89 * - col1 * + col0 AS col0 FROM tab1
----
86
-37825
86
-380653
86
-63546
query I rowsort
SELECT ALL col0 * - ( 19 ) * - col1 FROM tab0
----
1843
23085
34713
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + - col2 - + + col2 - - col0 - - col0 * col2 NOT BETWEEN - col2 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-3973
SELECT ALL - COUNT( ALL + 41 ) * - + 19 AS col0 FROM tab0
----
57
skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - COUNT ( ALL + 41 ) * - + 19 AS col0 FROM tab0
----
57
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT + 19 * - + col1 AS col2 FROM tab0 AS cor0
----
-1539
-19
-399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2, col1 * - + col0 col2 FROM tab2 AS cor0
----
-23
-2346
-40
-4928
-58
-5025
onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division:
query II rowsort label-3977
SELECT + col0 DIV - - col0 AS col2, ( + CAST( NULL AS DECIMAL ) ) * col2 FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL
skipif mysql # not compatible
query II rowsort label-3977
SELECT + col0 / - - col0 AS col2, ( + CAST ( NULL AS REAL ) ) * col2 FROM tab2 AS cor0
----
1
NULL
1
NULL
1
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> NULL
----
query I rowsort
SELECT + + col1 * + 76 FROM tab1 AS cor0
----
1064
3572
380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col2, 68 FROM tab2 AS cor0
----
-94
68
-94
68
-94
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col0 FROM tab2 AS cor0
----
51
67
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-3982
SELECT ALL - - col2 * - CAST( + - col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
3481
4624
9216
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3982
SELECT ALL - - col2 * - CAST ( + - col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
3481
4624
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50, - col2 * + 47 col0 FROM tab1 AS cor0
----
50
-2773
50
-3196
50
-4512
query I rowsort
SELECT - - col0 * - + 78 FROM tab2 AS cor0
----
-3588
-4992
-5850
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-3985
SELECT ALL - ( - CAST( - 46 AS SIGNED ) ) * - 61 + 81 DIV - 29 AS col1 FROM tab1
----
2804
2804
2804
skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL - ( - CAST ( - 46 AS INTEGER ) ) * - 61 + 81 / - 29 AS col1 FROM tab1
----
2804
2804
2804
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 col0 FROM tab2 AS cor0
----
76
76
76
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + col0 + + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-3988
SELECT + - MAX( - ( col0 ) ) FROM tab1 AS cor0
----
51
skipif mysql # not compatible
query I rowsort label-3988
SELECT + - MAX ( - ( col0 ) ) FROM tab1 AS cor0
----
51
query I rowsort
SELECT DISTINCT - 38 * col0 * + ( + 89 ) FROM tab2 AS cor0
----
-155572
-216448
-253650
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
query II rowsort
SELECT DISTINCT 43 AS col1, + 8 FROM tab1
----
43
8
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-3992
SELECT ALL * FROM tab2 WHERE NOT NULL < - CAST( - col1 AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-3992
SELECT ALL * FROM tab2 WHERE NOT NULL < - CAST ( - col1 AS REAL )
----
query I rowsort
SELECT ALL col0 + - - ( - col1 ) FROM tab1
----
37
44
80
query II rowsort
SELECT + 22, col0 FROM tab2 AS cor0
----
22
46
22
64
22
75
query I rowsort
SELECT + ( - + 31 ) FROM tab2 AS cor0
----
-31
-31
-31
query I rowsort
SELECT DISTINCT + + 32 + + 43 AS col0 FROM tab2 AS cor0
----
75
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT + 19 NOT BETWEEN + - col2 + - - 37 AND + col1 * col1 + col2 * + + col0 ) )
----
15
81
47
97
1
99
query I rowsort
SELECT DISTINCT - 37 + col2 FROM tab2 AS cor0
----
-14
21
3
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-3999
SELECT DISTINCT + CAST( NULL AS DECIMAL ), - 94 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
skipif mysql # not compatible
query II rowsort label-3999
SELECT DISTINCT + CAST ( NULL AS REAL ), - 94 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
query II rowsort
SELECT - col0 AS col1, 94 FROM tab1 AS cor0
----
-51
94
-85
94
-91
94
query I rowsort
SELECT DISTINCT 96 + col0 AS col0 FROM tab2 AS cor0
----
142
160
171
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL - col1 + col1 * + col0 * + + ( + 4 ) AS col1 FROM tab1 AS cor0
----
1695
17061
2842
onlyif mysql # aggregate syntax:
query I rowsort label-4004
SELECT + + COUNT( * ) col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4004
SELECT + + COUNT ( * ) col0 FROM tab0 cor0
----
3
query I rowsort
SELECT ALL + - col2 + col1 - - col2 FROM tab0 AS cor0
----
1
21
81
query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab2 cor0
----
-128
-150
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + - ( + col2 ) col0 FROM tab2 AS cor0
----
116
46
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4008
SELECT ALL CAST( - 62 AS SIGNED ) + - ( + 69 ) AS col0 FROM tab0
----
-131
-131
-131
skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL CAST ( - 62 AS INTEGER ) + - ( + 69 ) AS col0 FROM tab0
----
-131
-131
-131
onlyif mysql # DIV for integer division:
query II rowsort label-4009
SELECT ALL + col2 + - 14 DIV + col0 + + col2 AS col2, 9 * - col1 AS col2 FROM tab2
----
116
-603
46
-459
80
-693
skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL + col2 + - 14 / + col0 + + col2 AS col2, 9 * - col1 AS col2 FROM tab2
----
116
-603
46
-459
80
-693
onlyif mysql # aggregate syntax:
query I rowsort label-4010
SELECT COUNT( * ) - 38 col0 FROM tab1
----
-35
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4010
SELECT COUNT ( * ) - 38 col0 FROM tab1
----
-35
onlyif mysql # aggregate syntax:
query I rowsort label-4011
SELECT DISTINCT MIN( DISTINCT col1 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT MIN ( DISTINCT col1 ) FROM tab0
----
1
query I rowsort
SELECT + 27 * 37 + col2 FROM tab2
----
1022
1039
1057
query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NULL < col1
----
query II rowsort
SELECT DISTINCT - + col2 * + col2 AS col1, 70 - - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-3481
365
-4624
3266
-9216
1414
query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab2 AS cor0
----
-13
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT ALL ( ( col1 ) ), 73 FROM tab2
----
51
73
67
73
77
73
query I rowsort
SELECT DISTINCT ( - ( - col0 ) ) FROM tab1
----
51
85
91
query I rowsort
SELECT col0 * + col0 * - 90 * 9 * + col1 + + - 31 + - 24 AS col0 FROM tab2 AS cor0
----
-255467575
-305268805
-87412015
onlyif mysql # aggregate syntax:
query I rowsort label-4020
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 * + col1 col1 FROM tab0 AS cor0
----
1533
5913
73
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab0
----
69
69
69
query II rowsort
SELECT ALL col1 AS col0, - 53 FROM tab0
----
1
-53
21
-53
81
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + col0 col1 FROM tab1
----
145
179
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 12 col1, col0 - + - col0 AS col1 FROM tab2
----
-12
128
-12
150
-12
92
query I rowsort
SELECT col1 * + col0 * ( + 43 ) + + col0 FROM tab0
----
4268
52260
78648
query I rowsort
SELECT ALL 1 * + col0 FROM tab0
----
15
87
97
query II rowsort
SELECT + col1 + 58, ( + col1 ) FROM tab0
----
139
81
59
1
79
21
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4030
SELECT - 49 + + MAX( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4030
SELECT - 49 + + MAX ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT + col2 + + - col0 FROM tab1
----
-23
-26
45
query I rowsort
SELECT DISTINCT + ( - 79 ) FROM tab1
----
-79
query I rowsort
SELECT - 34 + + - col0 FROM tab1
----
-119
-125
-85
query I rowsort
SELECT col0 + + 67 FROM tab2
----
113
131
142
query II rowsort
SELECT DISTINCT + col1, + 0 FROM tab1
----
14
0
47
0
5
0
query I rowsort
SELECT + AVG ( + + 45 ) AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
NULL
query I rowsort
SELECT - 88 * col0 * - 36 FROM tab0
----
275616
307296
47520
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-4038
SELECT 6 DIV - CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4038
SELECT 6 / - CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ( 78 ) + + col2 AS col2 FROM tab1 AS cor0
----
137
146
174
query I rowsort
SELECT + 8 AS col0 FROM tab0 AS cor0 WHERE - col2 = 1 * + 86
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4042
SELECT - - col1 + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
108
96
98
skipif mysql # not compatible
query I rowsort label-4042
SELECT - - col1 + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
108
96
98
query I rowsort
SELECT - col0 AS col0 FROM tab1 cor0 WHERE ( col0 ) IS NOT NULL
----
-51
-85
-91
query I rowsort
SELECT ALL - col2 + - - col0 AS col0 FROM tab0
----
-2
-32
77
query III rowsort
SELECT * FROM tab1 WHERE ( NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4046
SELECT - SUM( DISTINCT col2 ) FROM tab1
----
-223
skipif mysql # not compatible
query I rowsort label-4046
SELECT - SUM ( DISTINCT col2 ) FROM tab1
----
-223
query III rowsort
SELECT * FROM tab2 WHERE col2 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 95 + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4049
SELECT + 38 * CAST( NULL AS SIGNED ) * - + col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4049
SELECT + 38 * CAST ( NULL AS INTEGER ) * - + col0 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL + 56 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
56
23
56
40
56
58
onlyif mysql # aggregate syntax:
query I rowsort label-4051
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-4051
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * ( col1 ) BETWEEN ( NULL ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col2 + 19 FROM tab2
----
-21
-39
-4
query I rowsort
SELECT ( col2 ) FROM tab0 WHERE NOT + 37 * - col0 < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE ( col1 / - ( - 23 ) + 81 ) <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 col2 FROM tab2
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * 1 ) > + col2 + - 44 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col2 FROM tab2 WHERE + col1 IS NOT NULL
----
23
40
58
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4060
SELECT - col1 + - col0 col1 FROM tab0 WHERE col1 + - CAST( NULL AS DECIMAL ) * + col2 IS NOT NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4060
SELECT - col1 + - col0 col1 FROM tab0 WHERE col1 + - CAST ( NULL AS REAL ) * + col2 IS NOT NULL
----
query I rowsort
SELECT col2 * - 6 + + col2 FROM tab2
----
-115
-200
-290
onlyif mysql # aggregate syntax:
query I rowsort label-4062
SELECT 17 * + 74 + - COUNT( ALL col0 + - col2 ) AS col1 FROM tab0
----
1255
skipif mysql # not compatible
query I rowsort label-4062
SELECT 17 * + 74 + - COUNT ( ALL col0 + - col2 ) AS col1 FROM tab0
----
1255
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 85 + col2 * 31 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4064
SELECT COUNT( - 98 ) + - COUNT( * ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4064
SELECT COUNT ( - 98 ) + - COUNT ( * ) FROM tab1
----
0
query I rowsort
SELECT ALL 13 * ( col2 * - 61 ) FROM tab1 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT DISTINCT col1 * - 87 FROM tab2
----
-4437
-5829
-6699
onlyif mysql # aggregate syntax:
query I rowsort label-4067
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE col1 IS NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4068
SELECT 50 + col0 * - CAST( col1 * col0 AS SIGNED ) AS col2 FROM tab0
----
-158899
-18175
-9359
skipif mysql # not compatible
query I rowsort label-4068
SELECT 50 + col0 * - CAST ( col1 * col0 AS INTEGER ) AS col2 FROM tab0
----
-158899
-18175
-9359
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 - col0 < NULL
----
query I rowsort
SELECT col2 * - 73 - col1 FROM tab0
----
-3512
-7228
-751
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4071
SELECT - col1 * CAST( 38 AS SIGNED ) + col2 FROM tab0
----
-3031
-788
61
skipif mysql # not compatible
query I rowsort label-4071
SELECT - col1 * CAST ( 38 AS INTEGER ) + col2 FROM tab0
----
-3031
-788
61
query III rowsort
SELECT * FROM tab2 WHERE NOT 51 + col1 >= 36 / - col0
----
query I rowsort
SELECT ALL 73 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NULL
----
73
73
73
onlyif mysql # aggregate syntax:
query I rowsort label-4074
SELECT ALL + 82 + COUNT( * ) FROM tab2 WHERE NOT col0 + 67 IS NULL
----
85
skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + 82 + COUNT ( * ) FROM tab2 WHERE NOT col0 + 67 IS NULL
----
85
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = - 95 + + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-4076
SELECT ( ( - COUNT( DISTINCT + 49 ) ) ) + 16 FROM tab1 cor0
----
15
skipif mysql # not compatible
query I rowsort label-4076
SELECT ( ( - COUNT ( DISTINCT + 49 ) ) ) + 16 FROM tab1 cor0
----
15
onlyif mysql # aggregate syntax:
query I rowsort label-4077
SELECT MAX( + col0 ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
97
skipif mysql # not compatible
query I rowsort label-4077
SELECT MAX ( + col0 ) FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
97
query I rowsort
SELECT ALL 70 * + col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3570
4690
5390
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4079
SELECT - col0 + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4079
SELECT - col0 + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 8 * col0 + col1 AS col2 FROM tab1 AS cor0
----
422
685
775
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4082
SELECT DISTINCT + SUM( DISTINCT 51 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
51
skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + SUM ( DISTINCT 51 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
51
onlyif mysql # DIV for integer division:
query I rowsort label-4083
SELECT - 71 DIV 6 FROM tab1 WHERE col0 <> - 31 + - 39
----
-11
-11
-11
skipif mysql # not compatible
query I rowsort label-4083
SELECT - 71 / 6 FROM tab1 WHERE col0 <> - 31 + - 39
----
-11
-11
-11
query I rowsort
SELECT - col0 * 82 AS col1 FROM tab1
----
-4182
-6970
-7462
onlyif mysql # aggregate syntax:
query I rowsort label-4085
SELECT ALL - SUM( 50 ) * 85 FROM tab0 AS cor0
----
-12750
skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL - SUM ( 50 ) * 85 FROM tab0 AS cor0
----
-12750
onlyif mysql # aggregate syntax:
query I rowsort label-4086
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND - 59
----
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab2 cor0 WHERE NULL IS NULL
----
28
28
28
onlyif mysql # aggregate syntax:
query I rowsort label-4090
SELECT + 85 * - 25 - SUM( ALL - col0 ) FROM tab1 cor0
----
-1898
skipif mysql # not compatible
query I rowsort label-4090
SELECT + 85 * - 25 - SUM ( ALL - col0 ) FROM tab1 cor0
----
-1898
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-4093
SELECT + 69 - COUNT( * ) AS col1 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-4093
SELECT + 69 - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4094
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
51
67
77
skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
51
67
77
query I rowsort
SELECT DISTINCT + 39 + + 24 AS col1 FROM tab0 cor0
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 col0 FROM tab2 AS cor0
----
-116
-46
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4097
SELECT + AVG ( 2 ) AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-4097
SELECT + AVG ( 2 ) AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-4098
SELECT ALL - col1 DIV 38 + col0 FROM tab2 AS cor0
----
45
62
74
skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - col1 / 38 + col0 FROM tab2 AS cor0
----
45
62
74
query I rowsort
SELECT ALL + 56 * + ( col0 ) FROM tab1 WHERE NULL BETWEEN ( ( 28 ) + + col1 ) AND ( col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col1 ) >= col1 - + col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4101
SELECT + 18 + - 31 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
skipif mysql # not compatible
query I rowsort label-4101
SELECT + 18 + - 31 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4102
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4103
SELECT ALL COUNT( * ) * 27 FROM tab1
----
81
skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL COUNT ( * ) * 27 FROM tab1
----
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4104
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NULL BETWEEN + col2 / col2 AND ( 10 )
----
skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NULL BETWEEN + col2 / col2 AND ( 10 )
----
query I rowsort
SELECT DISTINCT - col2 * - - col1 FROM tab1
----
-1344
-295
-3196
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4106
SELECT - + COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4106
SELECT - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4107
SELECT DISTINCT + COUNT( * ) DIV - 84 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-4107
SELECT DISTINCT + COUNT ( * ) / - 84 AS col0 FROM tab0 cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-4108
SELECT DISTINCT + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT + col1 / - col0 AS col1 FROM tab2 AS cor0
----
-1
0
onlyif mysql # aggregate syntax:
query I rowsort label-4109
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 19 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / - 19 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4110
SELECT ALL COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * + col0 col0 FROM tab1
----
4590
7650
8190
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4112
SELECT + - ( - SUM( DISTINCT 69 ) ) DIV 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8
skipif mysql # not compatible
query I rowsort label-4112
SELECT + - ( - SUM ( DISTINCT 69 ) ) / 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
8
query II rowsort
SELECT DISTINCT - 89 AS col0, 12 AS col0 FROM tab0
----
-89
12
onlyif mysql # aggregate syntax:
query I rowsort label-4114
SELECT MAX( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 33 ) ) IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-4114
SELECT MAX ( ALL - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( ( 33 ) ) IS NOT NULL
----
NULL
query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - col0 ) ) IS NULL
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-4116
SELECT + MIN( + col0 ) + - 51 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-4116
SELECT + MIN ( + col0 ) + - 51 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4117
SELECT + 9 + + ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4117
SELECT + 9 + + ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 0 IS NULL
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4118
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( + col2 + CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-4118
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 ) NOT IN ( + col2 + CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4120
SELECT ALL - + 13 AS col0, CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
-13
NULL
-13
NULL
-13
NULL
skipif mysql # not compatible
query II rowsort label-4120
SELECT ALL - + 13 AS col0, CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
-13
NULL
-13
NULL
-13
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4121
SELECT ALL + ( + 67 ) + COUNT( * ) FROM tab1
----
70
skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + ( + 67 ) + COUNT ( * ) FROM tab1
----
70
query I rowsort
SELECT DISTINCT 5 - 22 FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4124
SELECT * FROM tab1 WHERE + 5 * - - ( + col1 ) + - col2 BETWEEN CAST( NULL AS SIGNED ) * col1 AND col1
----
skipif mysql # not compatible
query III rowsort label-4124
SELECT * FROM tab1 WHERE + 5 * - - ( + col1 ) + - col2 BETWEEN CAST ( NULL AS INTEGER ) * col1 AND col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4125
SELECT col0 * 73 + - + CAST( col2 AS SIGNED ) FROM tab1
----
3627
6146
6575
skipif mysql # not compatible
query I rowsort label-4125
SELECT col0 * 73 + - + CAST ( col2 AS INTEGER ) FROM tab1
----
3627
6146
6575
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-4126
SELECT DISTINCT - COUNT( * ) DIV - CAST( - + 68 AS SIGNED ) AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - COUNT ( * ) / - CAST ( - + 68 AS INTEGER ) AS col1 FROM tab1
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-4127
SELECT DISTINCT col1 DIV + 42 FROM tab2 WHERE NOT ( 27 ) IS NULL
----
1
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col1 / + 42 FROM tab2 WHERE NOT ( 27 ) IS NULL
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-4128
SELECT - 42 + + + COUNT( * ) AS col2 FROM tab0
----
-39
skipif mysql # not compatible
query I rowsort label-4128
SELECT - 42 + + + COUNT ( * ) AS col2 FROM tab0
----
-39
query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN ( col0 ) AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4130
SELECT DISTINCT 94 DIV + col0 + + 23 FROM tab2 AS cor0
----
24
25
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT 94 / + col0 + + 23 FROM tab2 AS cor0
----
24
25
onlyif mysql # aggregate syntax:
query I rowsort label-4131
SELECT - - 47 * COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 + - + col0 IS NOT NULL
----
144
skipif mysql # not compatible
query I rowsort label-4131
SELECT - - 47 * COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 + - + col0 IS NOT NULL
----
144
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4132
SELECT ALL col0 * - col2 * 79 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL col0 * - col2 * 79 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-4133
SELECT DISTINCT ( - col2 ) DIV - col2 + + + 31 + 59 + ( col2 ) AS col0 FROM tab0 AS cor0
----
101
138
190
skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT ( - col2 ) / - col2 + + + 31 + 59 + ( col2 ) AS col0 FROM tab0 AS cor0
----
101
138
190
onlyif mysql # DIV for integer division:
query I rowsort label-4134
SELECT ALL + ( col1 ) * - - 0 + 12 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL + ( col1 ) * - - 0 + 12 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT 20 FROM tab1 WHERE + ( - 0 ) < ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE - col2 - col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4138
SELECT CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0 WHERE col0 * 39 IS NOT NULL
----
-15
-87
-97
skipif mysql # not compatible
query I rowsort label-4138
SELECT CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0 WHERE col0 * 39 IS NOT NULL
----
-15
-87
-97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4139
SELECT ALL + 79 + - 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + 79 + - 36 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + CAST ( NULL AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4140
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-12
skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-12
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
query I rowsort
SELECT + - 52 * + col0 * + col2 FROM tab1 AS cor0
----
-254592
-260780
-321776
query I rowsort
SELECT DISTINCT - col0 * + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
705
870
9603
onlyif mysql # aggregate syntax:
query I rowsort label-4144
SELECT - - MIN( col0 ) FROM tab1 cor0
----
51
skipif mysql # not compatible
query I rowsort label-4144
SELECT - - MIN ( col0 ) FROM tab1 cor0
----
51
query II rowsort
SELECT - + 29 AS col0, ( + col0 ) * col2 + ( 4 + col1 ) / col1 FROM tab2 AS cor0 WHERE NOT - 99 < NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 92
----
onlyif mysql # aggregate syntax:
query I rowsort label-4147
SELECT MIN( + col0 ) col1 FROM tab1
----
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4147
SELECT MIN ( + col0 ) col1 FROM tab1
----
51
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4148
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-4148
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN - col2 AND ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + 32 IN ( + - ( + + 93 ) * + 46 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL ( + col0 ) * col1 AS col0 FROM tab0
----
1215
1827
97
query I rowsort
SELECT + col2 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
705
870
9603
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4153
SELECT - 87 * + + ( SUM( - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4153
SELECT - 87 * + + ( SUM ( - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4154
SELECT DISTINCT + 1 * - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 1 * - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 * + - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col0 FROM tab0 AS cor0
----
14
14
14
onlyif mysql # aggregate syntax:
query II rowsort label-4157
SELECT DISTINCT 71, COUNT( * ) AS col1 FROM tab2 AS cor0
----
71
3
skipif mysql # not compatible
query II rowsort label-4157
SELECT DISTINCT 71, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
71
3
onlyif mysql # aggregate syntax:
query I rowsort label-4158
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query III rowsort label-4159
SELECT - col2 AS col2, + col2 DIV - - ( + - 31 ), + + 75 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 03c6df2bc7963421fd30bf42b07a1f32
skipif mysql # not compatible
query III rowsort label-4159
SELECT - col2 AS col2, + col2 / - - ( + - 31 ), + + 75 * - col2 AS col1 FROM tab0 AS cor0
----
9 values hashing to 03c6df2bc7963421fd30bf42b07a1f32
onlyif mysql # aggregate syntax:
query I rowsort label-4160
SELECT + MAX( DISTINCT - 79 ) AS col0 FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL BETWEEN NULL AND 72 )
----
NULL
skipif mysql # not compatible
query I rowsort label-4160
SELECT + MAX ( DISTINCT - 79 ) AS col0 FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL BETWEEN NULL AND 72 )
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4161
SELECT ALL - CAST( - MIN( - + col1 ) AS SIGNED ) AS col2 FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - CAST ( - MIN ( - + col1 ) AS INTEGER ) AS col2 FROM tab0
----
-81
query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab1
----
-1530
-1638
-918
query II rowsort
SELECT ( 65 ), + 5 * 89 AS col2 FROM tab1 AS cor0
----
65
445
65
445
65
445
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4164
SELECT - col1 * - + 42 * col1 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4164
SELECT - col1 * - + 42 * col1 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4165
SELECT ALL - 8 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-11
skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL - 8 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-11
query II rowsort
SELECT DISTINCT - 98 * 3 AS col0, - 8 FROM tab0 AS cor0
----
-294
-8
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4167
SELECT + + col0 * + CAST( + 79 AS SIGNED ) FROM tab1 AS cor0
----
4029
6715
7189
skipif mysql # not compatible
query I rowsort label-4167
SELECT + + col0 * + CAST ( + 79 AS INTEGER ) FROM tab1 AS cor0
----
4029
6715
7189
query II rowsort
SELECT DISTINCT - 58 + + col2, col2 AS col2 FROM tab1 AS cor0
----
1
59
10
68
38
96
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * 1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - + col2 * + - col2 * col2 FROM tab1 AS cor0
----
205379
314432
884736
query II rowsort
SELECT - col2, + 20 AS col1 FROM tab2
----
-23
20
-40
20
-58
20
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 19 * + col0 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 WHERE ( + + col1 * col1 / col0 ) IN ( 53 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4174
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col0 / + - 10 + - + 90 + + col1 * - col1 * + col1 * - col0 / - 48 IS NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col0 / + - 10 + - + 90 + + col1 * - col1 * + col1 * - col0 / - 48 IS NULL
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-4175
SELECT ALL + + COUNT( * ) AS col1, + 88 col1 FROM tab0 AS cor0
----
3
88
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4175
SELECT ALL + + COUNT ( * ) AS col1, + 88 col1 FROM tab0 AS cor0
----
3
88
onlyif mysql # aggregate syntax:
query I rowsort label-4176
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-48
skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-48
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 / - - col1 = + 77
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col2 NOT BETWEEN ( + col0 + + col0 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL 91 - 92 AS col0 FROM tab1
----
-1
-1
-1
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN + - 76 AND col0 / + 11 + + + 62
----
87
21
10
97
1
99
onlyif mysql # DIV for integer division:
query I rowsort label-4181
SELECT ALL + col1 - + + col1 DIV - + col0 AS col2 FROM tab0
----
1
21
86
skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + col1 - + + col1 / - + col0 AS col2 FROM tab0
----
1
21
86
onlyif mysql # aggregate syntax:
query I rowsort label-4182
SELECT DISTINCT COUNT( * ) FROM tab2, tab0 cor0
----
9
skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT COUNT ( * ) FROM tab2, tab0 cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-4183
SELECT + COUNT( ALL + - 57 ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4183
SELECT + COUNT ( ALL + - 57 ) AS col0 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4184
SELECT ALL - COUNT( DISTINCT - col1 ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - COUNT ( DISTINCT - col1 ) FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4185
SELECT ALL - 38 * - MIN( col1 ) FROM tab1
----
190
skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL - 38 * - MIN ( col1 ) FROM tab1
----
190
onlyif mysql # aggregate syntax:
query II rowsort label-4186
SELECT ( + MAX( + 20 ) ), - 68 AS col2 FROM tab0
----
20
-68
skipif mysql # not compatible
query II rowsort label-4186
SELECT ( + MAX ( + 20 ) ), - 68 AS col2 FROM tab0
----
20
-68
query I rowsort
SELECT ALL + - ( + - 92 ) AS col2 FROM tab0 AS cor0
----
92
92
92
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4188
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST( - 62 AS SIGNED ), 82 )
----
skipif mysql # not compatible
query III rowsort label-4188
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - CAST ( - 62 AS INTEGER ), 82 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + + col0 / col2 + - 3 + - col2 - - - col0 / - ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4190
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + col0 * col2 <> NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4190
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + col0 * col2 <> NULL
----
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4191
SELECT + 81 DIV - - COUNT( DISTINCT col0 ) AS col1 FROM tab2
----
27
skipif mysql # not compatible
query I rowsort label-4191
SELECT + 81 / - - COUNT ( DISTINCT col0 ) AS col1 FROM tab2
----
27
query I rowsort
SELECT ALL - 78 * + col2 AS col0 FROM tab1
----
-4602
-5304
-7488
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4193
SELECT + COUNT( * ) DIV - ( 56 ) * 70 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4193
SELECT + COUNT ( * ) / - ( 56 ) * 70 AS col2 FROM tab2
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - + 29 = ( ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - col1 + + 59 FROM tab0 AS cor0
----
-22
38
58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4196
SELECT + col1 FROM tab1 AS cor0 WHERE - 2 - - - ( - - CAST( - col1 AS SIGNED ) ) <= + col0 / CAST( - - col0 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-4196
SELECT + col1 FROM tab1 AS cor0 WHERE - 2 - - - ( - - CAST ( - col1 AS INTEGER ) ) <= + col0 / CAST ( - - col0 AS INTEGER )
----
onlyif mysql # DIV for integer division:
query I rowsort label-4197
SELECT ALL - col0 * - col0 DIV - ( - col0 ) FROM tab0 cor0
----
15
87
97
skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL - col0 * - col0 / - ( - col0 ) FROM tab0 cor0
----
15
87
97
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT IN ( + ( - + col2 ), - col2 + - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4199
SELECT DISTINCT COUNT( * ) + 9 FROM tab1 AS cor0
----
12
skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT COUNT ( * ) + 9 FROM tab1 AS cor0
----
12
query I rowsort
SELECT + + 17 + + 91 FROM tab2 cor0
----
108
108
108
onlyif mysql # aggregate syntax:
query I rowsort label-4201
SELECT + COUNT( * ) * + 57 + 78 FROM tab2
----
249
skipif mysql # not compatible
query I rowsort label-4201
SELECT + COUNT ( * ) * + 57 + 78 FROM tab2
----
249
onlyif mysql # DIV for integer division:
query I rowsort label-4202
SELECT ALL - 32 DIV 15 col2 FROM tab2
----
-2
-2
-2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4202
SELECT ALL - 32 / 15 col2 FROM tab2
----
-2
-2
-2
onlyif mysql # aggregate syntax:
query I rowsort label-4203
SELECT - COUNT( * ) + - MAX( ALL - col0 ) FROM tab0
----
12
skipif mysql # not compatible
query I rowsort label-4203
SELECT - COUNT ( * ) + - MAX ( ALL - col0 ) FROM tab0
----
12
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4204
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 87 ) * + COUNT( * ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 87 ) * + COUNT ( * ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT + col1 + ( + col2 ) * col1 * - 80 * - col2 FROM tab2
----
18031107
2158371
9856077
query II rowsort
SELECT ALL 15 - + col0 AS col1, col0 AS col1 FROM tab2
----
-31
46
-49
64
-60
75
onlyif mysql # aggregate syntax:
query II rowsort label-4207
SELECT ALL + COUNT( ALL + - 6 ) AS col1, MAX( col2 ) AS col0 FROM tab1
----
3
96
skipif mysql # not compatible
query II rowsort label-4207
SELECT ALL + COUNT ( ALL + - 6 ) AS col1, MAX ( col2 ) AS col0 FROM tab1
----
3
96
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4208
SELECT DISTINCT COUNT( * ) DIV 95 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT COUNT ( * ) / 95 FROM tab1
----
0
query I rowsort
SELECT - 3 * - col1 AS col0 FROM tab0
----
243
3
63
onlyif mysql # DIV for integer division:
query I rowsort label-4210
SELECT 75 DIV 34 AS col2 FROM tab2
----
2
2
2
skipif mysql # not compatible
query I rowsort label-4210
SELECT 75 / 34 AS col2 FROM tab2
----
2
2
2
query I rowsort
SELECT - 53 AS col2 FROM tab2 cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) - + col1 * + + col2 FROM tab2 AS cor0
----
-1242
-3184
-4019
query I rowsort
SELECT - - 7 - + 80 + - 3 AS col0 FROM tab2 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL 28 + - 94 AS col0 FROM tab1 AS cor0
----
-66
-66
-66
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 33 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4216
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / CAST( + col1 AS SIGNED ) * - col1 ) >= 61 * - 9
----
skipif mysql # not compatible
query III rowsort label-4216
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 / CAST ( + col1 AS INTEGER ) * - col1 ) >= 61 * - 9
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
query I rowsort
SELECT ALL + 2 AS col0 FROM tab1 cor0
----
2
2
2
onlyif mysql # DIV for integer division:
query II rowsort label-4219
SELECT DISTINCT + 2 DIV - - ( - - 29 ), col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81
skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT + 2 / - - ( - - 29 ), col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
0
81
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-4221
SELECT - + 12 DIV + + col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4221
SELECT - + 12 / + + col0 FROM tab2 AS cor0
----
0
0
0
query II rowsort
SELECT + col1, col1 * 87 FROM tab0 AS cor0
----
1
87
21
1827
81
7047
onlyif mysql # aggregate syntax:
query I rowsort label-4223
SELECT - MAX( 75 ) AS col1 FROM tab1 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-4223
SELECT - MAX ( 75 ) AS col1 FROM tab1 AS cor0
----
-75
onlyif mysql # aggregate syntax:
query I rowsort label-4224
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4224
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4225
SELECT ALL 70 AS col0 FROM tab0 WHERE col1 * col2 + + col2 >= ( - + CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL 70 AS col0 FROM tab0 WHERE col1 * col2 + + col2 >= ( - + CAST ( NULL AS INTEGER ) )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= - - 7 / col1 * - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-4227
SELECT ALL + + col2 + + - col1, + col0 DIV + col2 + + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
21
-6187
54
-5014
82
-4896
skipif mysql # not compatible
query II rowsort label-4227
SELECT ALL + + col2 + + - col1, + col0 / + col2 + + col2 * + - col0 AS col1 FROM tab1 AS cor0
----
21
-6187
54
-5014
82
-4896
onlyif mysql # aggregate syntax:
query I rowsort label-4228
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4228
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4229
SELECT DISTINCT - - MIN( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22
skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT - - MIN ( DISTINCT 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
22
query I rowsort
SELECT col1 * - 71 + + 16 * 82 FROM tab0
----
-179
-4439
1241
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 78 IS NULL
----
query I rowsort
SELECT DISTINCT - col2 + 49 AS col2 FROM tab0 AS cor0
----
-50
2
39
query I rowsort
SELECT ALL - - ( - + col0 ) + - col1 FROM tab2 AS cor0
----
-141
-142
-97
onlyif mysql # aggregate syntax:
query I rowsort label-4234
SELECT + ( + COUNT( * ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4234
SELECT + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
3
query II rowsort
SELECT + col1 AS col2, 95 AS col1 FROM tab0 AS cor0
----
1
95
21
95
81
95
onlyif mysql # aggregate syntax:
query I rowsort label-4236
SELECT ALL MIN( ALL + 36 ) AS col1 FROM tab2
----
36
skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL MIN ( ALL + 36 ) AS col1 FROM tab2
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-4237
SELECT 37 + - COUNT( * ) FROM tab1
----
34
skipif mysql # not compatible
query I rowsort label-4237
SELECT 37 + - COUNT ( * ) FROM tab1
----
34
query I rowsort
SELECT ( 29 ) + 1 AS col2 FROM tab0
----
30
30
30
onlyif mysql # aggregate syntax:
query II rowsort label-4239
SELECT ALL - MAX( ALL 87 ) AS col2, - MIN( DISTINCT - - col1 ) * - 95 FROM tab0
----
-87
95
skipif mysql # not compatible
query II rowsort label-4239
SELECT ALL - MAX ( ALL 87 ) AS col2, - MIN ( DISTINCT - - col1 ) * - 95 FROM tab0
----
-87
95
onlyif mysql # aggregate syntax:
query I rowsort label-4240
SELECT DISTINCT COUNT( ALL 38 ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT COUNT ( ALL 38 ) AS col2 FROM tab1
----
3
query I rowsort
SELECT DISTINCT + col0 * - col2 * - 82 AS col1 FROM tab2 AS cor0
----
209920
356700
86756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 + - - 85 col2 FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT col1 + - 13 * col1 + - + col1 FROM tab1 AS cor0
----
-182
-611
-65
onlyif mysql # aggregate syntax:
query I rowsort label-4244
SELECT ALL + 9 + + SUM( + 28 ) + - MAX( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
16
skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + 9 + + SUM ( + 28 ) + - MAX ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
16
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT 37 IS NOT NULL
----
query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 51 BETWEEN 30 * - ( 9 ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4249
SELECT DISTINCT + SUM( + col2 ) FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-4249
SELECT DISTINCT + SUM ( + col2 ) FROM tab2
----
121
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4250
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - col2 col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4250
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - col2 col2, - col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75
query I rowsort
SELECT ALL + col0 * - 21 * - + col1 - - + col0 AS col1 FROM tab1 AS cor0
----
15045
89908
9010
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + ( + col2 ), col1, + col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4253
SELECT DISTINCT + 18 * CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + 18 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4254
SELECT DISTINCT CAST( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) / + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT CAST ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) / + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4255
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= col0 + + CAST( 90 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4255
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= col0 + + CAST ( 90 AS INTEGER )
----
query II rowsort
SELECT ALL - col2, col2 FROM tab0
----
-10
10
-47
47
-99
99
query III rowsort
SELECT * FROM tab1 WHERE NOT - + 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT col2 + 7 AS col2 FROM tab0
----
106
17
54
onlyif mysql # aggregate syntax:
query I rowsort label-4259
SELECT - COUNT( * ) + + - COUNT( * ) + - COUNT( * ) * - + 43 + - - ( - 14 ) * + - 73 FROM tab1
----
1145
skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) * - + 43 + - - ( - 14 ) * + - 73 FROM tab1
----
1145
query I rowsort
SELECT ALL - 43 * col0 * + col2 AS col0 FROM tab0
----
-30315
-37410
-412929
query I rowsort
SELECT 75 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4262
SELECT DISTINCT + col1 + + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
2
22
82
skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + col1 + + col2 / + col2 AS col2 FROM tab0 AS cor0
----
2
22
82
query I rowsort
SELECT - - ( + col1 ) * + 22 AS col0 FROM tab2 AS cor0
----
1122
1474
1694
query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
87
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----
query I rowsort
SELECT 14 + - 71 AS col1 FROM tab0 AS cor0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE + 46 IS NOT NULL
----
23
40
58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4268
SELECT DISTINCT + 32 + - col1 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + 32 + - col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4271
SELECT ALL + 23 * COUNT( * ) * - + 58 FROM tab1
----
-4002
skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL + 23 * COUNT ( * ) * - + 58 FROM tab1
----
-4002
onlyif mysql # aggregate syntax:
query I rowsort label-4272
SELECT + SUM( ALL + 48 ) FROM tab0
----
144
skipif mysql # not compatible
query I rowsort label-4272
SELECT + SUM ( ALL + 48 ) FROM tab0
----
144
query I rowsort
SELECT DISTINCT - col0 - + 64 AS col0 FROM tab2
----
-110
-128
-139
onlyif mysql # aggregate syntax:
query I rowsort label-4274
SELECT DISTINCT + 37 - + - COUNT( + col2 ) FROM tab1
----
40
skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT + 37 - + - COUNT ( + col2 ) FROM tab1
----
40
query II rowsort
SELECT + col2 AS col0, 59 AS col1 FROM tab1
----
59
59
68
59
96
59
query I rowsort
SELECT DISTINCT 8 - + 7 AS col1 FROM tab1
----
1
query I rowsort
SELECT DISTINCT - 10 - - 81 FROM tab0
----
71
onlyif mysql # aggregate syntax:
query I rowsort label-4278
SELECT DISTINCT MIN( + col0 ) * + - COUNT( * ) AS col2 FROM tab1
----
-153
skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT MIN ( + col0 ) * + - COUNT ( * ) AS col2 FROM tab1
----
-153
query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab2 AS cor0
----
-83
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL 23 AS col0 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + + 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
onlyif mysql # DIV for integer division:
query II rowsort label-4284
SELECT + 40 AS col0, 73 DIV + col2 + - - 70 + + 26 + col1 AS col1 FROM tab2
----
40
150
40
164
40
174
skipif mysql # not compatible
query II rowsort label-4284
SELECT + 40 AS col0, 73 / + col2 + - - 70 + + 26 + col1 AS col1 FROM tab2
----
40
150
40
164
40
174
query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4286
SELECT DISTINCT MAX( ALL + col0 ) DIV - + ( - 79 ) * - 1 AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT MAX ( ALL + col0 ) / - + ( - 79 ) * - 1 AS col0 FROM tab0
----
-1
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 79 * - ( + 45 ) IS NULL )
----
query I rowsort
SELECT ALL 44 * + 49 * + col2 * col2 + + col0 FROM tab2 AS cor0
----
1140570
3449664
7252859
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4289
SELECT DISTINCT col2 * - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT col2 * - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4290
SELECT COUNT( DISTINCT - 38 ) FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4290
SELECT COUNT ( DISTINCT - 38 ) FROM tab1 cor0 WHERE NOT col2 * + col0 IS NOT NULL
----
0
query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
27
27
27
onlyif mysql # aggregate syntax:
query I rowsort label-4292
SELECT DISTINCT - - MAX( + 40 ) AS col1 FROM tab1 AS cor0
----
40
skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT - - MAX ( + 40 ) AS col1 FROM tab1 AS cor0
----
40
onlyif mysql # aggregate syntax:
query I rowsort label-4293
SELECT COUNT( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL - col2 * col0 AS col2 FROM tab1 cor0 WHERE + 84 + + - col0 IS NOT NULL
----
-4896
-5015
-6188
onlyif mysql # DIV for integer division:
query II rowsort label-4295
SELECT DISTINCT - 58 DIV col0 * col2 * 77 AS col1, col0 FROM tab0 AS cor0
----
-10857
15
0
87
0
97
skipif mysql # not compatible
query II rowsort label-4295
SELECT DISTINCT - 58 / col0 * col2 * 77 AS col1, col0 FROM tab0 AS cor0
----
-10857
15
0
87
0
97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4296
SELECT - COUNT( - - 50 ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4296
SELECT - COUNT ( - - 50 ) / - + COUNT ( * ) FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-4297
SELECT - COUNT( * ) * + - MAX( - - col2 ) FROM tab1
----
288
skipif mysql # not compatible
query I rowsort label-4297
SELECT - COUNT ( * ) * + - MAX ( - - col2 ) FROM tab1
----
288
query I rowsort
SELECT DISTINCT - 77 * - col0 FROM tab2
----
3542
4928
5775
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN ( - 73 ) AND 17 + - col1
----
query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN - 81 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4301
SELECT COUNT( DISTINCT + col2 ) col0 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4301
SELECT COUNT ( DISTINCT + col2 ) col0 FROM tab0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4302
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT - col1 * - col1 + - 97 AS col0 FROM tab1 AS cor0
----
-72
2112
99
query I rowsort
SELECT - 30 * - ( + + 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d52de07bab766030599066fba6fac2d0
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-4305
SELECT CAST( NULL AS DECIMAL ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69
skipif mysql # not compatible
query II rowsort label-4305
SELECT CAST ( NULL AS REAL ) AS col0, - 69 FROM tab2
----
NULL
-69
NULL
-69
NULL
-69
onlyif mysql # DIV for integer division:
query I rowsort label-4306
SELECT - 72 DIV - col1 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4306
SELECT - 72 / - col1 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT - ( + + col1 ) * - col2 * - col2 FROM tab2
----
-123200
-225388
-26979
query I rowsort
SELECT - 2 - + 89 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-91
-91
-91
onlyif mysql # aggregate syntax:
query I rowsort label-4309
SELECT - + COUNT( DISTINCT - 25 ) AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4309
SELECT - + COUNT ( DISTINCT - 25 ) AS col0 FROM tab0 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-4310
SELECT - MIN( - 61 ) FROM tab0 AS cor0
----
61
skipif mysql # not compatible
query I rowsort label-4310
SELECT - MIN ( - 61 ) FROM tab0 AS cor0
----
61
onlyif mysql # aggregate syntax:
query I rowsort label-4311
SELECT + - MAX( + col2 ) FROM tab0 AS cor0
----
-99
skipif mysql # not compatible
query I rowsort label-4311
SELECT + - MAX ( + col2 ) FROM tab0 AS cor0
----
-99
onlyif mysql # DIV for integer division:
query I rowsort label-4312
SELECT - col0 DIV - - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4312
SELECT - col0 / - - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # DIV for integer division:
query I rowsort label-4313
SELECT ALL - 34 - col1 DIV - ( col2 ) col0 FROM tab1 AS cor0
----
-34
-34
-34
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT ALL - 34 - col1 / - ( col2 ) col0 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT 78 + + ( - - col2 ) FROM tab2 AS cor0 WHERE 77 IS NOT NULL
----
101
118
136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - + col2 - col1 AS col0, col2 col1 FROM tab0 AS cor0
----
-121
10
-2290
47
-9802
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4316
SELECT ALL + - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4317
SELECT ALL + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
6
onlyif mysql # DIV for integer division:
query I rowsort label-4318
SELECT DISTINCT - 20 DIV + + col1 - + 35 AS col1 FROM tab0 AS cor0
----
-35
-55
skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - 20 / + + col1 - + 35 AS col1 FROM tab0 AS cor0
----
-35
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 + - col0 + - + col1 col2 FROM tab0
----
-172
-174
-184
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE col2 / + col1 + col2 + + col0 / - 51 IS NOT NULL
----
-46
-64
-75
query I rowsort
SELECT ALL + col0 * + col2 - - col2 FROM tab2
----
1081
2600
4408
onlyif mysql # DIV for integer division:
query I rowsort label-4322
SELECT DISTINCT col0 - - - col2 DIV - 2 AS col1 FROM tab1
----
114
125
99
skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT col0 - - - col2 / - 2 AS col1 FROM tab1
----
114
125
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4323
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4324
SELECT col2 * ( col1 ) * - + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-25075
-290836
-68544
skipif mysql # not compatible
query I rowsort label-4324
SELECT col2 * ( col1 ) * - + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-25075
-290836
-68544
query I rowsort
SELECT DISTINCT 20 * col2 AS col0 FROM tab0
----
1980
200
940
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4326
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4326
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 44 * - + col0 FROM tab1
----
-2244
-3740
-4004
query I rowsort
SELECT ALL - 39 * col0 FROM tab1
----
-1989
-3315
-3549
query I rowsort
SELECT + 44 * - ( + - 5 ) AS col2 FROM tab2
----
220
220
220
onlyif mysql # aggregate syntax:
query I rowsort label-4330
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9
skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9
query I rowsort
SELECT - 3 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
onlyif mysql # aggregate syntax:
query I rowsort label-4332
SELECT - MAX( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
skipif mysql # not compatible
query I rowsort label-4332
SELECT - MAX ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-4333
SELECT DISTINCT + + COUNT( - col2 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + + COUNT ( - col2 ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 IS NOT NULL
----
query I rowsort
SELECT ALL - ( + 40 ) * 89 FROM tab1 AS cor0
----
-3560
-3560
-3560
query II rowsort
SELECT ALL + 64 AS col1, 2 FROM tab0 AS cor0
----
64
2
64
2
64
2
onlyif mysql # DIV for integer division:
query I rowsort label-4337
SELECT DISTINCT - ( - 90 ) DIV col1 + + 40 * + 62 * 7 FROM tab0 AS cor0
----
17361
17364
17450
skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT - ( - 90 ) / col1 + + 40 * + 62 * 7 FROM tab0 AS cor0
----
17361
17364
17450
query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 > + col2 + - col1 / col2 / - 24
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= ( col2 )
----
query I rowsort
SELECT col2 + + + col0 AS col2 FROM tab0
----
196
62
97
query I rowsort
SELECT DISTINCT - 49 * + col0 * - - col0 FROM tab2
----
-103684
-200704
-275625
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4342
SELECT ALL COUNT( * ) DIV - MAX( ALL - col0 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL COUNT ( * ) / - MAX ( ALL - col0 ) FROM tab0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4343
SELECT CAST( - col1 AS SIGNED ) * - 94 + - 79 FROM tab1
----
1237
391
4339
skipif mysql # not compatible
query I rowsort label-4343
SELECT CAST ( - col1 AS INTEGER ) * - 94 + - 79 FROM tab1
----
1237
391
4339
query II rowsort
SELECT + col1 + + col0 * - - 30 - - + col2, - col1 AS col1 FROM tab2
----
1454
-51
2037
-77
2375
-67
query II rowsort
SELECT + - col1 + + 51, + ( - 22 ) AS col2 FROM tab1 WHERE - col1 * - 53 IS NOT NULL
----
37
-22
4
-22
46
-22
onlyif mysql # aggregate syntax:
query I rowsort label-4346
SELECT + 76 * - + COUNT( * ) FROM tab1
----
-228
skipif mysql # not compatible
query I rowsort label-4346
SELECT + 76 * - + COUNT ( * ) FROM tab1
----
-228
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4347
SELECT DISTINCT CAST( MIN( - 87 ) AS SIGNED ) FROM tab2
----
-87
skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT CAST ( MIN ( - 87 ) AS INTEGER ) FROM tab2
----
-87
query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col1 + - + col1 * - col2 IS NULL
----
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT DISTINCT + 26 + - col1 * + - col1 AS col0 FROM tab2 AS cor0
----
2627
4515
5955
query II rowsort
SELECT + 48 AS col2, col2 * - col1 AS col2 FROM tab1 AS cor0
----
48
-1344
48
-295
48
-3196
query I rowsort
SELECT + 45 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT - col1 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4356
SELECT DISTINCT + CAST( + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
47
5
skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
47
5
onlyif mysql # aggregate syntax:
query II rowsort label-4357
SELECT + COUNT( ALL + col1 ) AS col1, SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
3
66
skipif mysql # not compatible
query II rowsort label-4357
SELECT + COUNT ( ALL + col1 ) AS col1, SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
3
66
onlyif mysql # aggregate syntax:
query I rowsort label-4358
SELECT - COUNT( * ) * + 97 + SUM( ALL col0 ) * - - 22 FROM tab0 AS cor0 WHERE col2 * + col0 * - col2 <= col0
----
4087
skipif mysql # not compatible
query I rowsort label-4358
SELECT - COUNT ( * ) * + 97 + SUM ( ALL col0 ) * - - 22 FROM tab0 AS cor0 WHERE col2 * + col0 * - col2 <= col0
----
4087
query I rowsort
SELECT ALL - ( col0 ) + + 88 AS col0 FROM tab0 AS cor0
----
-9
1
73
query II rowsort
SELECT ALL - 60 AS col0, - ( + + 63 ) FROM tab1
----
-60
-63
-60
-63
-60
-63
onlyif mysql # DIV for integer division:
query II rowsort label-4361
SELECT col0 AS col2, + 48 DIV + - col0 * 83 FROM tab1
----
51
0
85
0
91
0
skipif mysql # not compatible
query II rowsort label-4361
SELECT col0 AS col2, + 48 / + - col0 * 83 FROM tab1
----
51
0
85
0
91
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4362
SELECT CAST( 21 AS SIGNED ) FROM tab0
----
21
21
21
skipif mysql # not compatible
query I rowsort label-4362
SELECT CAST ( 21 AS INTEGER ) FROM tab0
----
21
21
21
query I rowsort
SELECT + - col2 AS col0 FROM tab1 WHERE NOT NULL IN ( - ( - - col1 ) * + col2 * - col2 + + - col0 * + ( + + col0 ), + col2, - - col2 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-4364
SELECT COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
3
3
skipif mysql # not compatible
query II rowsort label-4364
SELECT COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
3
3
query II rowsort
SELECT ALL - col2, + col2 * 14 AS col0 FROM tab1
----
-59
826
-68
952
-96
1344
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 BETWEEN + ( - + 43 ) AND 81
----
query I rowsort
SELECT - col2 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
178929
2100
9801
onlyif mysql # aggregate syntax:
query II rowsort label-4368
SELECT DISTINCT - + 53, 4 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-53
7
skipif mysql # not compatible
query II rowsort label-4368
SELECT DISTINCT - + 53, 4 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-53
7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4369
SELECT + - 59 DIV - ( - MAX( - - 21 ) ) AS col0 FROM tab1 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-4369
SELECT + - 59 / - ( - MAX ( - - 21 ) ) AS col0 FROM tab1 AS cor0
----
-2
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4371
SELECT ALL - MIN( + 31 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-31
skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - MIN ( + 31 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 + - - col0, + col1 col1 FROM tab0 WHERE NULL NOT BETWEEN + 40 + - col1 + - - 98 AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4374
SELECT ALL - ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL - ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4375
SELECT ALL + MIN( - col2 ) + - 30 FROM tab0 cor0
----
-129
skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL + MIN ( - col2 ) + - 30 FROM tab0 cor0
----
-129
query I rowsort
SELECT + + ( - ( + 65 ) ) AS col2 FROM tab1 cor0
----
-65
-65
-65
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 80
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab2 AS cor0
----
-43
-43
-43
query I rowsort
SELECT col0 * + - ( + col1 ) FROM tab0 AS cor0
----
-1215
-1827
-97
query I rowsort
SELECT DISTINCT - col2 + - + col1 FROM tab2 AS cor0
----
-117
-125
-74
query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE col0 * + 3 IS NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-4382
SELECT + 74 DIV col2 AS col2, - 75 FROM tab0 AS cor0
----
0
-75
1
-75
7
-75
skipif mysql # not compatible
query II rowsort label-4382
SELECT + 74 / col2 AS col2, - 75 FROM tab0 AS cor0
----
0
-75
1
-75
7
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4383
SELECT ALL col2 + + + CAST( NULL AS SIGNED ) + + + 92 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL col2 + + + CAST ( NULL AS INTEGER ) + + + 92 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4384
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9
query I rowsort
SELECT ( + + col2 ) FROM tab1
----
59
68
96
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 64 < 94 * - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - ( 48 ) AS col1 FROM tab1
----
-48
query II rowsort
SELECT ALL col1, + 58 FROM tab1
----
14
58
47
58
5
58
query III rowsort
SELECT * FROM tab1 WHERE NULL <= - 61 + + col0
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4390
SELECT DISTINCT + 99 + + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + 99 + + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
query I rowsort
SELECT col2 + + 30 AS col0 FROM tab0 AS cor0
----
129
40
77
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL col2, + col1 * - 32 AS col0 FROM tab0 AS cor0
----
10
-672
47
-2592
99
-32
query I rowsort
SELECT ALL col1 + - + 49 AS col2 FROM tab2 AS cor0
----
18
2
28
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 92 - - 59 AS col1 FROM tab1 AS cor0
----
151
151
151
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4397
SELECT ALL CAST( - - 12 AS SIGNED ) + - + col0 + col2, col2 * - col2 AS col1 FROM tab2 AS cor0
----
-11
-529
-12
-1600
-5
-3364
skipif mysql # not compatible
query II rowsort label-4397
SELECT ALL CAST ( - - 12 AS INTEGER ) + - + col0 + col2, col2 * - col2 AS col1 FROM tab2 AS cor0
----
-11
-529
-12
-1600
-5
-3364
query I rowsort
SELECT + + 95 * - - 99 FROM tab2 AS cor0
----
9405
9405
9405
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 NOT IN ( - col1, + col2, - col0 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4400
SELECT DISTINCT - COUNT( DISTINCT col1 ) DIV + COUNT( ALL col1 ) FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - COUNT ( DISTINCT col1 ) / + COUNT ( ALL col1 ) FROM tab0 cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-4401
SELECT ALL COUNT( ALL + 11 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL COUNT ( ALL + 11 ) AS col1 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4402
SELECT DISTINCT + MIN( ALL col2 ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab0
----
10
query I rowsort
SELECT + col1 * + - col2 FROM tab0
----
-210
-3807
-99
onlyif mysql # aggregate syntax:
query II rowsort label-4404
SELECT DISTINCT - COUNT( ALL + col1 ) AS col0, + 22 + + + SUM( ALL + 41 ) FROM tab2
----
-3
145
skipif mysql # not compatible
query II rowsort label-4404
SELECT DISTINCT - COUNT ( ALL + col1 ) AS col0, + 22 + + + SUM ( ALL + 41 ) FROM tab2
----
-3
145
onlyif mysql # aggregate syntax:
query I rowsort label-4405
SELECT DISTINCT + 66 * + COUNT( + 55 ) FROM tab1
----
198
skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT + 66 * + COUNT ( + 55 ) FROM tab1
----
198
onlyif mysql # aggregate syntax:
query I rowsort label-4406
SELECT - 24 * - 73 * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - - col0 ) >= NULL
----
0
skipif mysql # not compatible
query I rowsort label-4406
SELECT - 24 * - 73 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( - - col0 ) >= NULL
----
0
onlyif mysql # DIV for integer division:
query II rowsort label-4407
SELECT - + ( col0 ) AS col0, - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-15
-3
-87
0
-97
-1
skipif mysql # not compatible
query II rowsort label-4407
SELECT - + ( col0 ) AS col0, - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-15
-3
-87
0
-97
-1
query I rowsort
SELECT - 23 FROM tab1 AS cor0 WHERE NOT - 64 + col0 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4409
SELECT ( + ( + + COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4409
SELECT ( + ( + + COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4410
SELECT ALL - COUNT( + col0 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - COUNT ( + col0 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL < 93 + - 38 + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4412
SELECT - MAX( ALL + 77 ) AS col2 FROM tab1 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-4412
SELECT - MAX ( ALL + 77 ) AS col2 FROM tab1 AS cor0
----
-77
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT IN ( + - col1 + + col1 / - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - - 28 * - col0 + + - 16 FROM tab1 AS cor0
----
-1444
-2396
-2564
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND - col1
----
query II rowsort
SELECT - col1 * col2 * + + ( + col2 ) + - col0 * - 39 + - col2 + + 96, col1 FROM tab2 AS cor0
----
-120648
77
-222425
67
-25112
51
query I rowsort
SELECT DISTINCT - col0 + - 49 FROM tab2 AS cor0
----
-113
-124
-95
query I rowsort
SELECT + col2 + + - 77 AS col1 FROM tab0 AS cor0
----
-30
-67
22
query I rowsort
SELECT col1 * - col1 + ( - col1 ) AS col2 FROM tab1
----
-210
-2256
-30
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4420
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 WHERE 56 IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4420
SELECT - CAST ( NULL AS REAL ) FROM tab2 WHERE 56 IS NOT NULL
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + 64 + - 75 * 94 AS col0 FROM tab2
----
-11146
-11850
-9994
query I rowsort
SELECT - col1 + - - col0 AS col2 FROM tab0
----
-66
66
96
query I rowsort
SELECT 58 * + 90 * 30 FROM tab2
----
156600
156600
156600
query I rowsort
SELECT ALL - col1 * col1 + col1 * + + 9 FROM tab0 cor0
----
-252
-5832
8
query I rowsort
SELECT ALL + col2 + - - col2 FROM tab2 AS cor0
----
116
46
80
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - col1 )
----
query I rowsort
SELECT ALL + col2 - col0 * + 67 AS col1 FROM tab0 AS cor0
----
-5819
-6400
-958
onlyif mysql # aggregate syntax:
query I rowsort label-4428
SELECT DISTINCT COUNT( * ) * - MAX( - - 19 ) FROM tab0
----
-57
skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT COUNT ( * ) * - MAX ( - - 19 ) FROM tab0
----
-57
onlyif mysql # aggregate syntax:
query I rowsort label-4429
SELECT + COUNT( * ) * - + 16 + - + 44 + + MIN( ALL 76 ) FROM tab2
----
-16
skipif mysql # not compatible
query I rowsort label-4429
SELECT + COUNT ( * ) * - + 16 + - + 44 + + MIN ( ALL 76 ) FROM tab2
----
-16
onlyif mysql # aggregate syntax:
query I rowsort label-4430
SELECT - - COUNT( * ) * - MAX( + 26 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234
skipif mysql # not compatible
query I rowsort label-4430
SELECT - - COUNT ( * ) * - MAX ( + 26 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-234
query I rowsort
SELECT ALL col0 * 63 * 64 * - - col0 - - - 50 - + col2 AS col0 FROM tab1 AS cor0
----
10487086
29131091
33388874
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 col0 FROM tab1 AS cor0
----
-50
query I rowsort
SELECT DISTINCT + col0 * - - 41 + col0 FROM tab0 cor0
----
3654
4074
630
query I rowsort
SELECT col0 * + ( - col1 ) + + 59 FROM tab0 AS cor0
----
-1156
-1768
-38
onlyif mysql # aggregate syntax:
query I rowsort label-4436
SELECT - - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-4436
SELECT - - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9
query I rowsort
SELECT ALL + - col0 * + col2 - col2 FROM tab2 AS cor0
----
-1081
-2600
-4408
query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
92
92
92
query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE col1 * + 17 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-4440
SELECT ALL - COUNT( * ), COUNT( * ) col0 FROM tab0 WHERE + 88 IS NOT NULL
----
-3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4440
SELECT ALL - COUNT ( * ), COUNT ( * ) col0 FROM tab0 WHERE + 88 IS NOT NULL
----
-3
3
query II rowsort
SELECT + col0, - col0 AS col2 FROM tab2
----
46
-46
64
-64
75
-75
query I rowsort
SELECT ALL 10 * - - col0 AS col0 FROM tab1
----
510
850
910
query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab1 WHERE - + col0 * + col2 IS NULL
----
query I rowsort
SELECT ALL 76 * col2 FROM tab1
----
4484
5168
7296
onlyif mysql # aggregate syntax:
query I rowsort label-4445
SELECT - COUNT( * ) col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4445
SELECT - COUNT ( * ) col2 FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4446
SELECT ALL + MAX( + + col1 ) AS col2 FROM tab2 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + MAX ( + + col1 ) AS col2 FROM tab2 AS cor0
----
77
query II rowsort
SELECT + col1 AS col0, col1 * col1 FROM tab1 AS cor0
----
14
196
47
2209
5
25
onlyif mysql # aggregate syntax:
query I rowsort label-4448
SELECT ALL - ( + COUNT( ALL - 4 ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - ( + COUNT ( ALL - 4 ) ) AS col0 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, ( + col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
-51
-2116
-67
-5625
-77
-4096
onlyif mysql # aggregate syntax:
query I rowsort label-4451
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL = col0
----
0
skipif mysql # not compatible
query I rowsort label-4451
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL = col0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4452
SELECT + SUM( DISTINCT + 76 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76
skipif mysql # not compatible
query I rowsort label-4452
SELECT + SUM ( DISTINCT + 76 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
76
onlyif mysql # aggregate syntax:
query I rowsort label-4453
SELECT + MIN( col0 ) AS col0 FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-4453
SELECT + MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
46
query I rowsort
SELECT DISTINCT + col2 + + + 68 FROM tab2 AS cor0
----
108
126
91
onlyif mysql # aggregate syntax:
query I rowsort label-4455
SELECT ( + MIN( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-4455
SELECT ( + MIN ( ALL + col2 ) ) AS col2 FROM tab2 AS cor0
----
23
onlyif mysql # aggregate syntax:
query I rowsort label-4456
SELECT ALL COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < + col1
----
0
skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL < + col1
----
0
query I rowsort
SELECT ALL col2 * + ( + + col2 ) FROM tab0 AS cor0 WHERE - col1 * col2 + + col0 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4458
SELECT ALL + col2 * CAST( - 28 AS SIGNED ) + + ( - - 46 ) col0 FROM tab2
----
-1074
-1578
-598
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4458
SELECT ALL + col2 * CAST ( - 28 AS INTEGER ) + + ( - - 46 ) col0 FROM tab2
----
-1074
-1578
-598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab1
----
-97
onlyif mysql # aggregate syntax:
query I rowsort label-4460
SELECT DISTINCT SUM( 3 ) AS col2 FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT SUM ( 3 ) AS col2 FROM tab0
----
9
query I rowsort
SELECT + 62 FROM tab2 WHERE - ( + col0 ) <> NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4462
SELECT DISTINCT col0 * - - 67 * + col2 * + + col0 + + + col2 DIV + ( + col1 ) FROM tab2 AS cor0
----
10977280
21858750
3260756
skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT col0 * - - 67 * + col2 * + + col0 + + + col2 / + ( + col1 ) FROM tab2 AS cor0
----
10977280
21858750
3260756
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4463
SELECT ALL + col2 + - + CAST( + - 21 AS SIGNED ) col2 FROM tab0 cor0
----
120
31
68
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4463
SELECT ALL + col2 + - + CAST ( + - 21 AS INTEGER ) col2 FROM tab0 cor0
----
120
31
68
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-4464
SELECT ALL + SUM( + CAST( + 70 AS SIGNED ) ), + ( - 93 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
210
-93
skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL + SUM ( + CAST ( + 70 AS INTEGER ) ), + ( - 93 ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
210
-93
onlyif mysql # aggregate syntax:
query I rowsort label-4465
SELECT DISTINCT - COUNT( * ) - - 75 AS col1 FROM tab1 cor0
----
72
skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - COUNT ( * ) - - 75 AS col1 FROM tab1 cor0
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab0
----
-14
-14
-14
query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT - 38 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4470
SELECT ALL + CAST( + 94 AS SIGNED ) FROM tab2 AS cor0
----
94
94
94
skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + CAST ( + 94 AS INTEGER ) FROM tab2 AS cor0
----
94
94
94
onlyif mysql # aggregate syntax:
query I rowsort label-4471
SELECT COUNT( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111
skipif mysql # not compatible
query I rowsort label-4471
SELECT COUNT ( * ) * + 37 AS col1 FROM tab2 AS cor0
----
111
query I rowsort
SELECT + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
15
87
97
query I rowsort
SELECT col1 * - + col0 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958
query I rowsort
SELECT ALL - - 18 * - - ( + col2 ) AS col2 FROM tab1 AS cor0
----
1062
1224
1728
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4475
SELECT - 1 * - - 8 + col2 + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4475
SELECT - 1 * - - 8 + col2 + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4476
SELECT ALL col1 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL col1 * + + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4477
SELECT ALL + COUNT( * ) DIV 87 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + COUNT ( * ) / 87 FROM tab2
----
0
query I rowsort
SELECT ALL col0 * - ( + 62 ) FROM tab2
----
-2852
-3968
-4650
onlyif mysql # DIV for integer division:
query I rowsort label-4479
SELECT + 86 DIV + 97 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4479
SELECT + 86 / + 97 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT 59 * - col2 FROM tab0
----
-2773
-5841
-590
onlyif mysql # DIV for integer division:
query I rowsort label-4481
SELECT DISTINCT + col0 DIV + + col1 col1 FROM tab1
----
1
17
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4481
SELECT DISTINCT + col0 / + + col1 col1 FROM tab1
----
1
17
3
onlyif mysql # aggregate syntax:
query II rowsort label-4482
SELECT ALL + 74 AS col1, COUNT( * ) FROM tab0 AS cor0
----
74
3
skipif mysql # not compatible
query II rowsort label-4482
SELECT ALL + 74 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
74
3
onlyif mysql # aggregate syntax:
query I rowsort label-4483
SELECT - - MAX( col0 ) FROM tab2 cor0
----
75
skipif mysql # not compatible
query I rowsort label-4483
SELECT - - MAX ( col0 ) FROM tab2 cor0
----
75
query I rowsort
SELECT ALL - col2 * + - col0 FROM tab0 AS cor0
----
705
870
9603
query II rowsort
SELECT DISTINCT col2, + 34 AS col0 FROM tab2 AS cor0
----
23
34
40
34
58
34
query I rowsort
SELECT + - col2 * + + 26 + - 70 AS col1 FROM tab0 cor0
----
-1292
-2644
-330
onlyif mysql # aggregate syntax:
query I rowsort label-4487
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-243
skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
-243
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * + col2 + - col1 col0 FROM tab1 cor0
----
5128
5869
8338
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4489
SELECT - + CAST( + - col2 AS SIGNED ) * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99
skipif mysql # not compatible
query I rowsort label-4489
SELECT - + CAST ( + - col2 AS INTEGER ) * + - col1 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99
query III rowsort
SELECT - col2, + col0, - + ( + col1 ) AS col2 FROM tab0
----
9 values hashing to 6b07b08d9ce4608121be301acf870388
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4491
SELECT ALL + CAST( NULL AS SIGNED ) * - 54 * + 32 + + COUNT( * ) * + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + CAST ( NULL AS INTEGER ) * - 54 * + 32 + + COUNT ( * ) * + + 67 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query I rowsort
SELECT + col2 * + + 70 AS col2 FROM tab2
----
1610
2800
4060
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4493
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) FROM tab0
----
1
query I rowsort
SELECT col2 + + 75 FROM tab2 AS cor0
----
115
133
98
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-4495
SELECT DISTINCT + CAST( NULL AS SIGNED ) + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 60 col2, 53 col1 FROM tab0 AS cor0 WHERE 18 * - col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-4497
SELECT ALL + col0 * + CAST( col1 AS SIGNED ) + 28 * col0 * - col0, + 43 DIV + + col2 + - 34 AS col2 FROM tab1 AS cor0
----
-201875
-34
-227591
-34
-72114
-34
skipif mysql # not compatible
query II rowsort label-4497
SELECT ALL + col0 * + CAST ( col1 AS INTEGER ) + 28 * col0 * - col0, + 43 / + + col2 + - 34 AS col2 FROM tab1 AS cor0
----
-201875
-34
-227591
-34
-72114
-34
query I rowsort
SELECT ALL + 95 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
95
95
95
query I rowsort
SELECT + col2 * - + 22 * col0 AS col1 FROM tab0
----
-15510
-19140
-211266
query I rowsort
SELECT DISTINCT 58 FROM tab2 cor0
----
58
onlyif mysql # aggregate syntax:
query I rowsort label-4501
SELECT ALL - COUNT( * ) + + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - COUNT ( * ) + + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4502
SELECT DISTINCT + - ( + - MAX( ALL - col2 ) ) + + COUNT( * ) * COUNT( * ) FROM tab1 cor0
----
-50
skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + - ( + - MAX ( ALL - col2 ) ) + + COUNT ( * ) * COUNT ( * ) FROM tab1 cor0
----
-50
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 98 > ( col2 )
----
15
81
47
87
21
10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4504
SELECT + + col2 - + 84 + + col0 * + 52 * col2 - + 92 * col2 * + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4504
SELECT + + col2 - + 84 + + col0 * + 52 * col2 - + 92 * col2 * + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4505
SELECT DISTINCT COUNT( * ) + - CAST( - 70 AS SIGNED ) FROM tab1 AS cor0
----
73
skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT COUNT ( * ) + - CAST ( - 70 AS INTEGER ) FROM tab1 AS cor0
----
73
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT - + col1 NOT BETWEEN - - col2 * + - col2 AND 81
----
-14
-47
-5
query II rowsort
SELECT DISTINCT + 51 AS col2, - col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT - col0 * - 37 * - + col2 * - col0 AS col1 FROM tab0 AS cor0
----
2800530
34465167
391275
onlyif mysql # aggregate syntax:
query I rowsort label-4510
SELECT + ( + COUNT( * ) ) col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4510
SELECT + ( + COUNT ( * ) ) col1 FROM tab1 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4511
SELECT + COUNT( DISTINCT col2 ) * COUNT( * ) - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-4511
SELECT + COUNT ( DISTINCT col2 ) * COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT - col2 * - - 74 FROM tab1 cor0
----
-4366
-5032
-7104
onlyif mysql # aggregate syntax:
query I rowsort label-4514
SELECT DISTINCT - - COUNT( + + col0 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4514
SELECT DISTINCT - - COUNT ( + + col0 ) FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-4515
SELECT MIN( - + col1 ) FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-4515
SELECT MIN ( - + col1 ) FROM tab2
----
-77
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4516
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST( + + col0 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4516
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND CAST ( + + col0 AS INTEGER )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - 21 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query II rowsort label-4518
SELECT + col1 DIV col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15
skipif mysql # not compatible
query II rowsort label-4518
SELECT + col1 / col2, + 3 * + + 5 AS col0 FROM tab0
----
0
15
1
15
2
15
query I rowsort
SELECT DISTINCT - 19 * 37 AS col2 FROM tab2 AS cor0
----
-703
query I rowsort
SELECT + 21 + + 31 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT + - 0 + - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT DISTINCT - col1 + + 58 AS col2 FROM tab0
----
-23
37
57
onlyif mysql # aggregate syntax:
query I rowsort label-4523
SELECT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-4523
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-4524
SELECT - 78 * - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
234
skipif mysql # not compatible
query I rowsort label-4524
SELECT - 78 * - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
234
query I rowsort
SELECT ALL - col0 * col1 + - col0 * 70 * + 1 * + - col1 AS col1 FROM tab1 AS cor0
----
29325
295113
49266
query I rowsort
SELECT + + 95 * - - 37 AS col0 FROM tab2 AS cor0
----
3515
3515
3515
query II rowsort
SELECT 48, 29 AS col2 FROM tab0 AS cor0
----
48
29
48
29
48
29
query I rowsort
SELECT ALL + 32 * 5 + + + 33 FROM tab0 AS cor0
----
193
193
193
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 <= + - col0 + - 21 * + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-4530
SELECT - COUNT( * ) - COUNT( * ) FROM tab2 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-4530
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab2 AS cor0
----
-6
query I rowsort
SELECT DISTINCT col0 + - - col2 FROM tab2 AS cor0
----
104
133
69
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 / col2 IS NULL
----
9
query I rowsort
SELECT DISTINCT + 14 FROM tab1 WHERE ( NULL ) IS NULL AND NOT NULL >= + col1
----
query I rowsort
SELECT + 41 + + + col1 FROM tab2
----
108
118
92
onlyif mysql # aggregate syntax:
query II rowsort label-4535
SELECT ALL COUNT( * ), - 76 * - COUNT( * ) col0 FROM tab2
----
3
228
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4535
SELECT ALL COUNT ( * ), - 76 * - COUNT ( * ) col0 FROM tab2
----
3
228
onlyif mysql # aggregate syntax:
query I rowsort label-4536
SELECT + COUNT( - - col1 ) + 37 + + 57 + - 16 FROM tab1
----
81
skipif mysql # not compatible
query I rowsort label-4536
SELECT + COUNT ( - - col1 ) + 37 + + 57 + - 16 FROM tab1
----
81
query II rowsort
SELECT DISTINCT + col2 + + col1, col2 - - col2 + - col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + ( - col2 ) IS NULL
----
100
297
128
3901
31
230
query I rowsort
SELECT - 0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
0
0
0
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 + 46 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, ( - 72 ) FROM tab0 AS cor0
----
1
-72
21
-72
81
-72
query I rowsort
SELECT - - 44 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4542
SELECT DISTINCT - MAX( 22 ) FROM tab0 cor0
----
-22
skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - MAX ( 22 ) FROM tab0 cor0
----
-22
query I rowsort
SELECT DISTINCT + - col0 * - - 66 + - + 20 + - + col2 AS col0 FROM tab0 AS cor0
----
-1057
-5772
-6521
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4544
SELECT - - CAST( NULL AS SIGNED ) * + 78 * - col0 - + 87 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 90, 1, 78 + - col1 )
----
skipif mysql # not compatible
query I rowsort label-4544
SELECT - - CAST ( NULL AS INTEGER ) * + 78 * - col0 - + 87 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - 90, 1, 78 + - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4545
SELECT + MIN( + ( - 40 ) ) / COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-4545
SELECT + MIN ( + ( - 40 ) ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4546
SELECT DISTINCT 26 * + 24 * + COUNT( * ) AS col1 FROM tab1
----
1872
skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT 26 * + 24 * + COUNT ( * ) AS col1 FROM tab1
----
1872
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4547
SELECT ALL + ( - 33 ) * - 91 + CAST( + + CAST( + col0 AS SIGNED ) AS SIGNED ) * + + col0 AS col0 FROM tab1
----
10228
11284
5604
skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + ( - 33 ) * - 91 + CAST ( + + CAST ( + col0 AS INTEGER ) AS INTEGER ) * + + col0 AS col0 FROM tab1
----
10228
11284
5604
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4548
SELECT ALL CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4549
SELECT 22 + + ( - CAST( - + AVG ( ALL - col1 ) AS SIGNED ) ) * - 67 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1496
skipif mysql # not compatible
query I rowsort label-4549
SELECT 22 + + ( - CAST ( - + AVG ( ALL - col1 ) AS INTEGER ) ) * - 67 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1496
query I rowsort
SELECT col1 + + 61 - col1 + + + 93 AS col0 FROM tab1
----
154
154
154
query I rowsort
SELECT + 45 + + + col0 AS col1 FROM tab0
----
132
142
60
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4552
SELECT CAST( NULL AS SIGNED ) * 4 + 80 col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT CAST ( NULL AS INTEGER ) * 4 + 80 col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4553
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4554
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( + + col0 ) + + 24 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( + + col0 ) + + 24 AS col0 FROM tab0
----
NULL
query II rowsort
SELECT ALL 23 AS col1, - col0 AS col2 FROM tab1
----
23
-51
23
-85
23
-91
query II rowsort
SELECT ALL col2 + + col0 + + ( 21 ) AS col0, + 12 AS col0 FROM tab2
----
125
12
154
12
90
12
query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE ( NULL ) >= ( + + 33 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4558
SELECT DISTINCT + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE 64 IS NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT DISTINCT + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE 64 IS NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4559
SELECT ALL + + col0 * + + col2 * - - CAST( NULL AS SIGNED ) + + 79 + col0 * + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL + + col0 * + + col2 * - - CAST ( NULL AS INTEGER ) + + 79 + col0 * + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT - col0 * - col1 * + 66 AS col0, - 73 FROM tab1 AS cor0
----
28050
-73
282282
-73
47124
-73
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 80 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4562
SELECT - COUNT( DISTINCT ( 23 ) ) AS col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-4562
SELECT - COUNT ( DISTINCT ( 23 ) ) AS col1 FROM tab1
----
-1
query I rowsort
SELECT ( 43 ) * - col0 + col1 AS col2 FROM tab2
----
-1927
-2675
-3158
onlyif mysql # DIV for integer division:
query I rowsort label-4564
SELECT 77 * col2 - ( col2 + col0 ) DIV 64 FROM tab1 WHERE - 49 IS NOT NULL
----
4541
5234
7390
skipif mysql # not compatible
query I rowsort label-4564
SELECT 77 * col2 - ( col2 + col0 ) / 64 FROM tab1 WHERE - 49 IS NOT NULL
----
4541
5234
7390
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-4565
SELECT DISTINCT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 64 + + ( col2 ) FROM tab1
----
123
132
160
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4567
SELECT DISTINCT col0 * + 65 col2 FROM tab0 WHERE col1 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4567
SELECT DISTINCT col0 * + 65 col2 FROM tab0 WHERE col1 * + CAST ( NULL AS REAL ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 / col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * + col0 col1 FROM tab2
----
1104
2624
4425
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN ( NULL ) AND - col2 + - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-4571
SELECT + COUNT( col0 ) * COUNT( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4571
SELECT + COUNT ( col0 ) * COUNT ( * ) FROM tab1 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4572
SELECT DISTINCT - COUNT( * ) + + MIN( - col0 ) FROM tab0
----
-100
skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - COUNT ( * ) + + MIN ( - col0 ) FROM tab0
----
-100
query I rowsort
SELECT DISTINCT - col0 * + 1 + - col0 AS col2 FROM tab2
----
-128
-150
-92
onlyif mysql # aggregate syntax:
query I rowsort label-4574
SELECT - SUM( 99 ) + ( - 5 + + MIN( ALL - col0 ) ) FROM tab2
----
-377
skipif mysql # not compatible
query I rowsort label-4574
SELECT - SUM ( 99 ) + ( - 5 + + MIN ( ALL - col0 ) ) FROM tab2
----
-377
onlyif mysql # DIV for integer division:
query I rowsort label-4575
SELECT - ( col0 ) DIV + 33 + - 61 FROM tab0
----
-61
-63
-63
skipif mysql # not compatible
query I rowsort label-4575
SELECT - ( col0 ) / + 33 + - 61 FROM tab0
----
-61
-63
-63
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4576
SELECT + col1 / - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4576
SELECT + col1 / - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4577
SELECT DISTINCT - SUM( - col1 ) * + 7 AS col1 FROM tab1 WHERE NULL IS NULL
----
462
skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - SUM ( - col1 ) * + 7 AS col1 FROM tab1 WHERE NULL IS NULL
----
462
query I rowsort
SELECT 93 * + 85 AS col2 FROM tab1
----
7905
7905
7905
query I rowsort
SELECT ALL 76 FROM tab0 WHERE NOT ( 23 ) <> 9
----
query I rowsort
SELECT 30 + - 72 AS col2 FROM tab0
----
-42
-42
-42
query I rowsort
SELECT ALL + 25 * col2 AS col0 FROM tab2
----
1000
1450
575
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4582
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - 55 + ( SUM( col2 ) ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - 55 + ( SUM ( col2 ) ) FROM tab2
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4583
SELECT col0 - CAST( - ( - 84 ) AS SIGNED ) FROM tab2
----
-20
-38
-9
skipif mysql # not compatible
query I rowsort label-4583
SELECT col0 - CAST ( - ( - 84 ) AS INTEGER ) FROM tab2
----
-20
-38
-9
query I rowsort
SELECT ( 70 ) * - col2 FROM tab1 WHERE NOT + col2 < ( + col2 + 90 * 78 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4585
SELECT ALL ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-4586
SELECT ALL + col2 DIV 61 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + col2 / 61 FROM tab0
----
0
0
1
query I rowsort
SELECT - col1 - 59 FROM tab2
----
-110
-126
-136
query I rowsort
SELECT - col0 / col0 AS col2 FROM tab2 WHERE 60 >= NULL
----
query I rowsort
SELECT 66 - + col0 AS col2 FROM tab0
----
-21
-31
51
query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 WHERE NOT ( - 95 ) IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 99 * 60 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4592
SELECT DISTINCT ( - 63 ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4592
SELECT DISTINCT ( - 63 ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 1 col2 FROM tab0 WHERE ( col0 * col0 ) BETWEEN col1 - 55 * - col0 AND ( col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4594
SELECT COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-4594
SELECT COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT ALL + ( col2 ) + 31 FROM tab0
----
130
41
78
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE ( NULL ) IN ( 97 * + ( col0 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4597
SELECT MIN( ALL - col0 ) AS col1 FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-4597
SELECT MIN ( ALL - col0 ) AS col1 FROM tab2
----
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col1 FROM tab2 cor0
----
55
query I rowsort
SELECT ALL col0 * 16 FROM tab2 AS cor0
----
1024
1200
736
onlyif mysql # aggregate syntax:
query I rowsort label-4600
SELECT MIN( ALL 57 ) * 36 FROM tab2 cor0
----
2052
skipif mysql # not compatible
query I rowsort label-4600
SELECT MIN ( ALL 57 ) * 36 FROM tab2 cor0
----
2052
query I rowsort
SELECT 6 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col2 * 17 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 + + 81 * col0 AND + col2 / col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-4603
SELECT ( 57 ) DIV + col2 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4603
SELECT ( 57 ) / + col2 FROM tab2
----
0
1
2
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
10
47
99
onlyif mysql # DIV for integer division:
query I rowsort label-4605
SELECT ALL - - 35 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - - 35 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * + 65 IS NOT NULL
----
query I rowsort
SELECT - - 9 * - col2 AS col1 FROM tab2 AS cor0
----
-207
-360
-522
query I rowsort
SELECT ALL 35 + 22 * col0 FROM tab1 AS cor0
----
1157
1905
2037
query I rowsort
SELECT ALL + ( 19 ) AS col0 FROM tab0 AS cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 35 col2 FROM tab2 AS cor0
----
1610
2240
2625
onlyif mysql # aggregate syntax:
query I rowsort label-4611
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-4611
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9
query I rowsort
SELECT - col0 * + col2 * col2 FROM tab0
----
-33135
-8700
-950697
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4613
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col0 * col1 + + col2 * CAST( NULL AS SIGNED ) AND - col1
----
skipif mysql # not compatible
query III rowsort label-4613
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col0 * col1 + + col2 * CAST ( NULL AS INTEGER ) AND - col1
----
query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT col2 >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 90 col0 FROM tab1
----
149
158
186
onlyif mysql # aggregate syntax:
query I rowsort label-4616
SELECT - COUNT( * ) FROM tab1 WHERE + ( + 27 ) >= col1
----
-2
skipif mysql # not compatible
query I rowsort label-4616
SELECT - COUNT ( * ) FROM tab1 WHERE + ( + 27 ) >= col1
----
-2
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 10 BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col1 + + + col0 * - 79 AS col2 FROM tab1 cor0
----
-4043
-6720
-7236
onlyif mysql # aggregate syntax:
query I rowsort label-4619
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-4619
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4620
SELECT COUNT( * ) * SUM( + col1 ) * + 97 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) * SUM ( + col1 ) * + 97 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( + col0 + ( + 10 ) ) IS NOT NULL
----
51
67
77
query I rowsort
SELECT DISTINCT col0 * + col0 * col0 - - 20 AS col2 FROM tab0 AS cor0
----
3395
658523
912693
onlyif mysql # aggregate syntax:
query II rowsort label-4623
SELECT ALL COUNT( * ) col2, 25 FROM tab0
----
3
25
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4623
SELECT ALL COUNT ( * ) col2, 25 FROM tab0
----
3
25
query I rowsort
SELECT - col2 * - 7 AS col2 FROM tab0
----
329
693
70
onlyif mysql # aggregate syntax:
query I rowsort label-4625
SELECT + - 48 + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-39
skipif mysql # not compatible
query I rowsort label-4625
SELECT + - 48 + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-39
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL > col0
----
query I rowsort
SELECT ALL 41 - - col2 AS col2 FROM tab1
----
100
109
137
onlyif mysql # aggregate syntax:
query I rowsort label-4628
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-4628
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 ) > ( + 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col0 col0 FROM tab1 AS cor0
----
-37
-44
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + - + col2 col2 FROM tab0 AS cor0
----
-2
1168
1817
query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT - col1 IS NULL OR ( - col0 ) / + col0 IS NULL
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-4633
SELECT - - 1 - + COUNT( * ) + MAX( ALL col1 ) FROM tab1 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-4633
SELECT - - 1 - + COUNT ( * ) + MAX ( ALL col1 ) FROM tab1 AS cor0
----
45
query I rowsort
SELECT DISTINCT + col0 + - col0 + 74 AS col2 FROM tab0 cor0
----
74
query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab2 AS cor0 WHERE ( - 51 + - col2 ) IS NOT NULL
----
17
23
24
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4636
SELECT 32 * COUNT( DISTINCT + 50 ) DIV 2 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
13
skipif mysql # not compatible
query I rowsort label-4636
SELECT 32 * COUNT ( DISTINCT + 50 ) / 2 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - + col2 col0 FROM tab1 cor0
----
118
136
192
query I rowsort
SELECT - + 27 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN - 25 AND ( col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-4640
SELECT DISTINCT 82 * 52 DIV 81 col2 FROM tab2
----
52
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4640
SELECT DISTINCT 82 * 52 / 81 col2 FROM tab2
----
52
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= - col0 * + col2
----
query I rowsort
SELECT ALL col0 * + + ( - col0 ) FROM tab1
----
-2601
-7225
-8281
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 + - col1 + - col2 ) = + 11 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 9 * + + col0 AS col0 FROM tab1
----
459
765
819
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 0 AND + col2 * + col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4646
SELECT col1 * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4646
SELECT col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4647
SELECT ALL 66 * + MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL 66 * + MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query III rowsort
SELECT ALL * FROM tab0 WHERE ( - - 95 + - 70 + + 80 ) IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4650
SELECT 71 * COUNT( * ) * + SUM( + col2 ) AS col1 FROM tab1 AS cor0
----
47499
skipif mysql # not compatible
query I rowsort label-4650
SELECT 71 * COUNT ( * ) * + SUM ( + col2 ) AS col1 FROM tab1 AS cor0
----
47499
onlyif mysql # aggregate syntax:
query I rowsort label-4651
SELECT ALL 78 * 68 * COUNT( DISTINCT + 63 ) FROM tab2 AS cor0
----
5304
skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL 78 * 68 * COUNT ( DISTINCT + 63 ) FROM tab2 AS cor0
----
5304
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 33, col0 * + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4653
SELECT - COUNT( * ) * - 70 AS col0 FROM tab2
----
210
skipif mysql # not compatible
query I rowsort label-4653
SELECT - COUNT ( * ) * - 70 AS col0 FROM tab2
----
210
query I rowsort
SELECT DISTINCT 46 * - 74 * 21 AS col0 FROM tab2
----
-71484
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4655
SELECT COUNT( * ) DIV - - 15 + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( * ) / - - 15 + + 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
query I rowsort
SELECT ALL col1 * - col2 - col1 - col2 + + col1 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
-2047
-295
-5069
onlyif mysql # DIV for integer division:
query I rowsort label-4657
SELECT DISTINCT - 46 DIV - col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - 46 / - col2 FROM tab1 AS cor0
----
0
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 49 + - ( col0 ) ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-4659
SELECT + COUNT( * ) col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4659
SELECT + COUNT ( * ) col1 FROM tab1 cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col1 ) <= NULL
----
query I rowsort
SELECT DISTINCT col1 * + col2 + col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 * col1 * - - 4 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - - 75 - - col1 col1, + 2 AS col2 FROM tab2 AS cor0
----
177
2
209
2
229
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + + ( 27 ) + + - 79 col1 FROM tab2 AS cor0
----
2162
2162
2162
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE 47 + col0 < + 59 * - col2
----
query I rowsort
SELECT col2 + + + col1 AS col1 FROM tab1
----
110
115
64
onlyif mysql # aggregate syntax:
query I rowsort label-4666
SELECT + COUNT( * ) + - 87 FROM tab1
----
-84
skipif mysql # not compatible
query I rowsort label-4666
SELECT + COUNT ( * ) + - 87 FROM tab1
----
-84
query I rowsort
SELECT + 65 * - col0 AS col1 FROM tab2
----
-2990
-4160
-4875
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4668
SELECT col1 col0, CAST( 20 AS SIGNED ) FROM tab2
----
51
20
67
20
77
20
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4668
SELECT col1 col0, CAST ( 20 AS INTEGER ) FROM tab2
----
51
20
67
20
77
20
onlyif mysql # aggregate syntax:
query I rowsort label-4669
SELECT DISTINCT MAX( 7 ) FROM tab1
----
7
skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT MAX ( 7 ) FROM tab1
----
7
query II rowsort
SELECT ALL col2 AS col0, 32 AS col1 FROM tab0
----
10
32
47
32
99
32
onlyif mysql # aggregate syntax:
query II rowsort label-4671
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) FROM tab0
----
-3
3
skipif mysql # not compatible
query II rowsort label-4671
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) FROM tab0
----
-3
3
query I rowsort
SELECT DISTINCT 22 * + col2 FROM tab2 WHERE ( ( ( + 17 * col0 ) IN ( 57 + + 14 ) ) )
----
query I rowsort
SELECT DISTINCT - ( - col0 ) + col2 + - 91 + 54 AS col2 FROM tab1 AS cor0
----
107
110
122
query I rowsort
SELECT + ( - col2 ) + - 80 * + + col2 / - col2 FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----
query I rowsort
SELECT ALL - 13 FROM tab2 AS cor0 WHERE ( col2 + ( 16 ) ) IS NOT NULL
----
-13
-13
-13
query I rowsort
SELECT - 33 * - 14 + - - col1 - - 44 AS col1 FROM tab2 AS cor0
----
557
573
583
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----
query I rowsort
SELECT + 86 - - - ( - - col0 ) + - + col1 * - 66 * + col0 FROM tab2
----
154876
325270
331661
query I rowsort
SELECT 64 + - 71 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4680
SELECT DISTINCT col0 * + col0 - CAST( NULL AS SIGNED ) + + 73 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT col0 * + col0 - CAST ( NULL AS INTEGER ) + + 73 FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 42 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 - 89 col2 FROM tab2 AS cor0 WHERE NOT ( - + ( col0 ) ) <= - col2 - - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-4683
SELECT ALL + + SUM( + col2 ) AS col0 FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + + SUM ( + col2 ) AS col0 FROM tab1 AS cor0
----
223
query II rowsort
SELECT + 78 AS col1, 66 FROM tab1
----
78
66
78
66
78
66
query I rowsort
SELECT DISTINCT - ( - 3 ) AS col1 FROM tab2
----
3
query I rowsort
SELECT ALL + 66 AS col1 FROM tab2
----
66
66
66
query II rowsort
SELECT - col1, - ( - + col1 ) FROM tab1 WHERE NOT NULL > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4688
SELECT DISTINCT - 51 * - + ( + - ( CAST( + col1 AS SIGNED ) ) ) FROM tab0
----
-1071
-4131
-51
skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - 51 * - + ( + - ( CAST ( + col1 AS INTEGER ) ) ) FROM tab0
----
-1071
-4131
-51
onlyif mysql # aggregate syntax:
query II rowsort label-4689
SELECT 50 AS col0, + COUNT( * ) FROM tab2
----
50
3
skipif mysql # not compatible
query II rowsort label-4689
SELECT 50 AS col0, + COUNT ( * ) FROM tab2
----
50
3
query I rowsort
SELECT DISTINCT col2 * - col2 * - - col1 FROM tab0
----
-178929
-2100
-9801
query III rowsort
SELECT ALL * FROM tab2 WHERE - - ( - 60 ) IS NULL
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4693
SELECT + SUM( col2 ) FROM tab1 AS cor0 WHERE NOT ( + col2 * - 31 ) IS NULL
----
223
skipif mysql # not compatible
query I rowsort label-4693
SELECT + SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT ( + col2 * - 31 ) IS NULL
----
223
query I rowsort
SELECT ALL - col2 * + + col0 FROM tab0 cor0
----
-705
-870
-9603
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) < + ( - 41 ) - + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4696
SELECT + - COUNT( - 66 ) AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4696
SELECT + - COUNT ( - 66 ) AS col2 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT + col2 * col1 * col1 + + col0 AS col0 FROM tab2 AS cor0
----
237224
260437
59869
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4698
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 16 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4698
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 16 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT + - col1, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4700
SELECT - 27 * + 12 * - + CAST( NULL AS SIGNED ) * AVG ( DISTINCT + col1 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4700
SELECT - 27 * + 12 * - + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + col1 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 11 * - + col0 AS col2 FROM tab0 AS cor0
----
1067
165
957
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4702
SELECT ALL CAST( 99 AS SIGNED ) * + col2 FROM tab2
----
2277
3960
5742
skipif mysql # not compatible
query I rowsort label-4702
SELECT ALL CAST ( 99 AS INTEGER ) * + col2 FROM tab2
----
2277
3960
5742
query II rowsort
SELECT col1, col0 - + col2 AS col1 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
51
23
67
17
77
24
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 70 + col2 AS col2 FROM tab1 AS cor0
----
129
138
166
query I rowsort
SELECT + - 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81
query I rowsort
SELECT - - ( + 16 ) AS col1 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT col1 * - 81 AS col2 FROM tab0 AS cor0
----
-1701
-6561
-81
onlyif mysql # aggregate syntax:
query I rowsort label-4710
SELECT DISTINCT - MIN( 43 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1, 49 )
----
NULL
skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - MIN ( 43 ) AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1, 49 )
----
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - + col0 * + + col0 col1, col0 * - + 6 * col0 AS col1 FROM tab0
----
-3375
-1350
-658503
-45414
-912673
-56454
query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IS NOT NULL AND col1 BETWEEN ( - col0 ) AND ( NULL )
----
query I rowsort
SELECT 39 + + col1 FROM tab1
----
44
53
86
onlyif mysql # aggregate syntax:
query I rowsort label-4715
SELECT ALL + 91 + - COUNT( * ) FROM tab1
----
88
skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + 91 + - COUNT ( * ) FROM tab1
----
88
query I rowsort
SELECT ( col0 ) + + 88 AS col0 FROM tab1
----
139
173
179
query I rowsort
SELECT + col0 + - - col2 FROM tab2
----
104
133
69
onlyif mysql # aggregate syntax:
query I rowsort label-4718
SELECT - COUNT( * ) * - 24 + - 96 AS col1 FROM tab2
----
-24
skipif mysql # not compatible
query I rowsort label-4718
SELECT - COUNT ( * ) * - 24 + - 96 AS col1 FROM tab2
----
-24
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4719
SELECT ALL 29 + + CAST( MIN( - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-70
skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL 29 + + CAST ( MIN ( - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-70
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4721
SELECT - 1 * + 63 * SUM( DISTINCT + 85 ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4721
SELECT - 1 * + 63 * SUM ( DISTINCT + 85 ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4722
SELECT + 41 + + - COUNT( * ) FROM tab1 AS cor0
----
38
skipif mysql # not compatible
query I rowsort label-4722
SELECT + 41 + + - COUNT ( * ) FROM tab1 AS cor0
----
38
query I rowsort
SELECT - col2 + + - col1 FROM tab1 AS cor0
----
-110
-115
-64
query I rowsort
SELECT ALL - + col1 + - 94 AS col1 FROM tab0 AS cor0
----
-115
-175
-95
query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4726
SELECT COUNT( DISTINCT - + 50 ) AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( DISTINCT - + 50 ) AS col1 FROM tab2
----
1
onlyif mysql # aggregate syntax:
query II rowsort label-4727
SELECT - 17 AS col0, + SUM( ALL - - col0 ) FROM tab0 AS cor0
----
-17
199
skipif mysql # not compatible
query II rowsort label-4727
SELECT - 17 AS col0, + SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
-17
199
onlyif mysql # aggregate syntax:
query I rowsort label-4728
SELECT + COUNT( + 24 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 13 / + + col2 + - 75
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4728
SELECT + COUNT ( + 24 ) col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 13 / + + col2 + - 75
----
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4729
SELECT DISTINCT 74 AS col0, CAST( NULL AS SIGNED ) * + 51 FROM tab1 cor0
----
74
NULL
skipif mysql # not compatible
query II rowsort label-4729
SELECT DISTINCT 74 AS col0, CAST ( NULL AS INTEGER ) * + 51 FROM tab1 cor0
----
74
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4730
SELECT + col0 AS col0, + col2 * + 50 FROM tab0 WHERE NOT NULL BETWEEN - CAST( + 60 AS SIGNED ) AND + col2 * - col0 + + 15
----
skipif mysql # not compatible
query II rowsort label-4730
SELECT + col0 AS col0, + col2 * + 50 FROM tab0 WHERE NOT NULL BETWEEN - CAST ( + 60 AS INTEGER ) AND + col2 * - col0 + + 15
----
onlyif mysql # DIV for integer division:
query I rowsort label-4731
SELECT col0 * col0 DIV - col0 FROM tab2
----
-46
-64
-75
skipif mysql # not compatible
query I rowsort label-4731
SELECT col0 * col0 / - col0 FROM tab2
----
-46
-64
-75
query I rowsort
SELECT ALL - 63 * col2 FROM tab1
----
-3717
-4284
-6048
query III rowsort
SELECT * FROM tab2 WHERE NOT + 11 BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-4734
SELECT DISTINCT MAX( + col0 ) FROM tab0
----
97
skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT MAX ( + col0 ) FROM tab0
----
97
onlyif mysql # aggregate syntax:
query I rowsort label-4735
SELECT + SUM( DISTINCT - col1 ) FROM tab2
----
-195
skipif mysql # not compatible
query I rowsort label-4735
SELECT + SUM ( DISTINCT - col1 ) FROM tab2
----
-195
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col0 + - col1
----
query II rowsort
SELECT ALL 74 * 95 * - - col0, + col2 FROM tab0
----
105450
47
611610
10
681910
99
query I rowsort
SELECT ALL - 74 * - col0 AS col0 FROM tab2
----
3404
4736
5550
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4739
SELECT DISTINCT * FROM tab0 cor0 WHERE 82 + + col1 - - CAST( col1 AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-4739
SELECT DISTINCT * FROM tab0 cor0 WHERE 82 + + col1 - - CAST ( col1 AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4740
SELECT DISTINCT + + COUNT( * ) + - 29 AS col1 FROM tab0 AS cor0
----
-26
skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + + COUNT ( * ) + - 29 AS col1 FROM tab0 AS cor0
----
-26
query II rowsort
SELECT col0 * - - col2 + + col2 AS col0, + 10 * col2 FROM tab0 AS cor0
----
752
470
880
100
9702
990
query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE - 16 >= + col1 * - col1 + - col0
----
-14
-47
-5
query I rowsort
SELECT 81 + - col2 AS col0 FROM tab1 AS cor0
----
-15
13
22
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4744
SELECT ALL + CAST( - - CAST( 85 AS SIGNED ) AS SIGNED ) + + 26 AS col1 FROM tab0
----
111
111
111
skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL + CAST ( - - CAST ( 85 AS INTEGER ) AS INTEGER ) + + 26 AS col1 FROM tab0
----
111
111
111
onlyif mysql # DIV for integer division:
query I rowsort label-4745
SELECT DISTINCT + 57 DIV + ( - 13 ) AS col2 FROM tab2
----
-4
skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + 57 / + ( - 13 ) AS col2 FROM tab2
----
-4
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4746
SELECT CAST( - col1 AS SIGNED ) + - col2 FROM tab0
----
-100
-128
-31
skipif mysql # not compatible
query I rowsort label-4746
SELECT CAST ( - col1 AS INTEGER ) + - col2 FROM tab0
----
-100
-128
-31
query II rowsort
SELECT DISTINCT 7 + - 47, ( + col0 ) AS col0 FROM tab2
----
-40
46
-40
64
-40
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4748
SELECT DISTINCT 25 DIV - + COUNT( * ) AS col2 FROM tab1
----
-8
skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 25 / - + COUNT ( * ) AS col2 FROM tab1
----
-8
query I rowsort
SELECT col1 * + + 91 FROM tab1
----
1274
4277
455
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( + + ( - ( - 50 ) ) ) ) col0 FROM tab1
----
-50
-50
-50
onlyif mysql # aggregate syntax:
query II rowsort label-4751
SELECT ALL COUNT( DISTINCT + col0 ), - 68 AS col2 FROM tab0
----
3
-68
skipif mysql # not compatible
query II rowsort label-4751
SELECT ALL COUNT ( DISTINCT + col0 ), - 68 AS col2 FROM tab0
----
3
-68
onlyif mysql # aggregate syntax:
query I rowsort label-4752
SELECT + ( - COUNT( * ) ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-4752
SELECT + ( - COUNT ( * ) ) FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-4753
SELECT ALL MAX( DISTINCT - 46 ), - 89 + - COUNT( * ) AS col1 FROM tab2
----
-46
-92
skipif mysql # not compatible
query II rowsort label-4753
SELECT ALL MAX ( DISTINCT - 46 ), - 89 + - COUNT ( * ) AS col1 FROM tab2
----
-46
-92
onlyif mysql # aggregate syntax:
query II rowsort label-4754
SELECT DISTINCT COUNT( ALL - col1 ) col1, + MIN( col1 ) AS col2 FROM tab1 AS cor0
----
3
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4754
SELECT DISTINCT COUNT ( ALL - col1 ) col1, + MIN ( col1 ) AS col2 FROM tab1 AS cor0
----
3
5
query I rowsort
SELECT ALL - col1 * - 37 + - + col1 AS col1 FROM tab2 AS cor0
----
1836
2412
2772
query I rowsort
SELECT + + col1 - 13 AS col0 FROM tab1 AS cor0
----
-8
1
34
query I rowsort
SELECT col2 - - 11 FROM tab0 AS cor0
----
110
21
58
onlyif mysql # aggregate syntax:
query I rowsort label-4758
SELECT DISTINCT MAX( DISTINCT - 56 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-56
skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT MAX ( DISTINCT - 56 ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-56
query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4760
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 = - + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-4760
SELECT * FROM tab2 AS cor0 WHERE NOT - 18 = - + CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4761
SELECT ALL - + CAST( - 64 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - + CAST ( - 64 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 WHERE NOT NULL >= col2 / - + col1
----
query I rowsort
SELECT + 63 * + col1 FROM tab0
----
1323
5103
63
onlyif mysql # aggregate syntax:
query I rowsort label-4764
SELECT ALL + COUNT( * ) * - 1 AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + COUNT ( * ) * - 1 AS col2 FROM tab1
----
-3
query II rowsort
SELECT - 7 AS col1, 78 FROM tab0
----
-7
78
-7
78
-7
78
query I rowsort
SELECT + 79 * 28 AS col0 FROM tab1
----
2212
2212
2212
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col0 + - + col0
----
query I rowsort
SELECT DISTINCT - col1 + + 97 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4769
SELECT col0 + + CAST( - - 32 AS SIGNED ) + CAST( NULL AS SIGNED ) / - - col2 col2 FROM tab0 AS cor0 WHERE NOT + 46 * + - col2 * + col0 + + col0 > + + col0 * + - 30 + ( + 93 )
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT col0 + + CAST ( - - 32 AS INTEGER ) + CAST ( NULL AS INTEGER ) / - - col2 col2 FROM tab0 AS cor0 WHERE NOT + 46 * + - col2 * + col0 + + col0 > + + col0 * + - 30 + ( + 93 )
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( ( + col0 ) ) + + - col2 col1 FROM tab2 AS cor0
----
2323
4888
4967
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> + col2 * - col1
----
onlyif mysql # CAST syntax: SIGNED type:
query IIIIII rowsort label-4772
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 cor1 ON ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1
skipif mysql # not compatible
query IIIIII rowsort label-4772
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 cor1 ON ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1
onlyif mysql # aggregate syntax:
query I rowsort label-4773
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < ( + col0 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-4775
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-4776
SELECT DISTINCT - 1 + + + 31 + + + col2 DIV - col0 FROM tab0 AS cor0
----
27
29
30
skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - 1 + + + 31 + + + col2 / - col0 FROM tab0 AS cor0
----
27
29
30
onlyif mysql # aggregate syntax:
query I rowsort label-4777
SELECT ALL COUNT( + col0 ) * + + COUNT( * ) + 43 * + + COUNT( * ) FROM tab0 AS cor0
----
138
skipif mysql # not compatible
query I rowsort label-4777
SELECT ALL COUNT ( + col0 ) * + + COUNT ( * ) + 43 * + + COUNT ( * ) FROM tab0 AS cor0
----
138
query I rowsort
SELECT ALL + - col0 + - col2 + + 58 AS col2 FROM tab2 AS cor0
----
-11
-46
-75
onlyif mysql # aggregate syntax:
query I rowsort label-4779
SELECT ALL + ( + COUNT( * ) ) - + COUNT( * ) + - - COUNT( * ) - - + 7 + - 85 col0 FROM tab0 cor0
----
-75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4779
SELECT ALL + ( + COUNT ( * ) ) - + COUNT ( * ) + - - COUNT ( * ) - - + 7 + - 85 col0 FROM tab0 cor0
----
-75
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4781
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) * + + col2 * - 11 * col0 + - col1 + + + col1 <> + 48
----
skipif mysql # not compatible
query III rowsort label-4781
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) * + + col2 * - 11 * col0 + - col1 + + + col1 <> + 48
----
query III rowsort
SELECT * FROM tab0 WHERE + 77 + + col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4783
SELECT col0 * - CAST( + col0 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-306
-7590
-9410
skipif mysql # not compatible
query I rowsort label-4783
SELECT col0 * - CAST ( + col0 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-306
-7590
-9410
query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE + 64 + + + 76 + + + 60 + - + col2 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4786
SELECT col0 DIV col2 + col0 AS col0 FROM tab1
----
51
86
92
skipif mysql # not compatible
query I rowsort label-4786
SELECT col0 / col2 + col0 AS col0 FROM tab1
----
51
86
92
query I rowsort
SELECT DISTINCT + 96 * + - 21 FROM tab0
----
-2016
query I rowsort
SELECT ALL - ( - + 54 ) FROM tab2 cor0
----
54
54
54
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4790
SELECT col0 * 59 AS col2, CAST( - col2 AS SIGNED ) FROM tab2
----
2714
-23
3776
-40
4425
-58
skipif mysql # not compatible
query II rowsort label-4790
SELECT col0 * 59 AS col2, CAST ( - col2 AS INTEGER ) FROM tab2
----
2714
-23
3776
-40
4425
-58
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-4791
SELECT ALL + CAST( NULL AS DECIMAL ) * + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + CAST ( NULL AS REAL ) * + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-4792
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - 14 * - col1
----
0
skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL <> - 14 * - col1
----
0
query II rowsort
SELECT ALL col2 * - - col0 AS col0, 13 FROM tab0 AS cor0
----
705
13
870
13
9603
13
query I rowsort
SELECT - 48 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
4176
4656
720
query I rowsort
SELECT ALL - 47 * + ( col2 ) + + - col0 FROM tab0 AS cor0
----
-2224
-4750
-557
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 55 * col2 >= NULL
----
query II rowsort
SELECT ALL + - col1 * - 71 AS col0, - col2 * - col1 FROM tab0 AS cor0
----
1491
210
5751
3807
71
99
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL + ( - col0 ) + - + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 80 AND - col1
----
query I rowsort
SELECT DISTINCT + col0 * 96 FROM tab1 WHERE NOT + 54 * 11 + - 25 IS NULL
----
4896
8160
8736
onlyif mysql # aggregate syntax:
query I rowsort label-4801
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab1
----
-223
skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab1
----
-223
query II rowsort
SELECT ALL + col0, col0 FROM tab0
----
15
15
87
87
97
97
onlyif mysql # aggregate syntax:
query I rowsort label-4803
SELECT - SUM( + col0 ) AS col1 FROM tab1 WHERE NOT NULL = + 14 - + col1
----
NULL
skipif mysql # not compatible
query I rowsort label-4803
SELECT - SUM ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL = + 14 - + col1
----
NULL
query I rowsort
SELECT + col1 * - - 59 FROM tab1
----
2773
295
826
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4805
SELECT ALL + + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL + + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - + col0, + col1 * + col2 * - col1 / - col2 )
----
query I rowsort
SELECT + 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT - + 7 + + col0 * - col1 FROM tab1 AS cor0
----
-4284
-432
-721
query I rowsort
SELECT - + col1 + + 63 FROM tab0 AS cor0
----
-18
42
62
query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL < 13
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4811
SELECT ALL COUNT( * ) / + MAX( + col2 ) + + - CAST( - CAST( + MAX( DISTINCT - + ( + - col1 ) ) AS SIGNED ) AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 99 * + COUNT( * ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL COUNT ( * ) / + MAX ( + col2 ) + + - CAST ( - CAST ( + MAX ( DISTINCT - + ( + - col1 ) ) AS INTEGER ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 99 * + COUNT ( * ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 94 + - + col2 + - col0 FROM tab1 cor0
----
-50
-53
-65
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4814
SELECT ALL - 4 * + col1 + CAST( 20 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-304
-64
16
skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL - 4 * + col1 + CAST ( 20 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-304
-64
16
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 25 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4816
SELECT DISTINCT - 70 DIV - col0 + col0 AS col0 FROM tab0 AS cor0
----
19
87
97
skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT - 70 / - col0 + col0 AS col0 FROM tab0 AS cor0
----
19
87
97
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 - 90 + + - 88 + + col0 * + 22 * 4 - 80 <= NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-4818
SELECT - + COUNT( 4 ), 17 AS col2 FROM tab1 AS cor0
----
-3
17
skipif mysql # not compatible
query II rowsort label-4818
SELECT - + COUNT ( 4 ), 17 AS col2 FROM tab1 AS cor0
----
-3
17
onlyif mysql # aggregate syntax:
query I rowsort label-4819
SELECT ALL - COUNT( * ) - - + COUNT( * ) + - MIN( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - COUNT ( * ) - - + COUNT ( * ) + - MIN ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4821
SELECT DISTINCT - + ( + COUNT( * ) ) FROM tab1 WHERE + 80 > - col0 - 24 * + col2 * - col2
----
0
skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - + ( + COUNT ( * ) ) FROM tab1 WHERE + 80 > - col0 - 24 * + col2 * - col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-4822
SELECT DISTINCT COUNT( * ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4822
SELECT DISTINCT COUNT ( * ) col1 FROM tab0 WHERE - col2 IS NOT NULL
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-4823
SELECT - col2 DIV col0 - 81 DIV col1 col2 FROM tab0
----
-3
-4
-82
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4823
SELECT - col2 / col0 - 81 / col1 col2 FROM tab0
----
-3
-4
-82
query I rowsort
SELECT DISTINCT - 85 * col0 AS col2 FROM tab1
----
-4335
-7225
-7735
query I rowsort
SELECT DISTINCT + col2 - + 93 AS col0 FROM tab2
----
-35
-53
-70
query I rowsort
SELECT ALL - col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4827
SELECT ALL - col1 * + col2 / CAST( NULL AS SIGNED ) - + 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL - col1 * + col2 / CAST ( NULL AS INTEGER ) - + 54 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4828
SELECT col1 * - 45 FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST( NULL AS DECIMAL ) ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-4828
SELECT col1 * - 45 FROM tab0 AS cor0 WHERE NOT ( col1 + - CAST ( NULL AS REAL ) ) IS NULL
----
query II rowsort
SELECT DISTINCT ( - col2 ), - col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58
query I rowsort
SELECT ALL 20 * - + col0 AS col2 FROM tab1
----
-1020
-1700
-1820
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-4831
SELECT * FROM tab2 WHERE NOT ( col1 + - col1 ) BETWEEN col1 AND - - 80 / - col0 + + col2 - + - col1 - - CAST( NULL AS DECIMAL ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4831
SELECT * FROM tab2 WHERE NOT ( col1 + - col1 ) BETWEEN col1 AND - - 80 / - col0 + + col2 - + - col1 - - CAST ( NULL AS REAL ) * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4832
SELECT DISTINCT + CAST( + + 79 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79
skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + CAST ( + + 79 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79
onlyif mysql # DIV for integer division:
query I rowsort label-4833
SELECT DISTINCT + 39 DIV + + col2 col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4833
SELECT DISTINCT + 39 / + + col2 col1 FROM tab1 cor0
----
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4834
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + - col1 ) AND - col1 * + - CAST( col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-4834
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - ( + - col1 ) AND - col1 * + - CAST ( col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-4835
SELECT ALL + - ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + - ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= ( - 37 )
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
query II rowsort
SELECT col1, - col1 AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77
query I rowsort
SELECT ALL + - 10 AS col2 FROM tab1 AS cor0
----
-10
-10
-10
onlyif mysql # aggregate syntax:
query I rowsort label-4840
SELECT COUNT( * ) * + COUNT( - + col2 ) FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-4840
SELECT COUNT ( * ) * + COUNT ( - + col2 ) FROM tab0 AS cor0
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4841
SELECT ALL + 29 * ( + CAST( - 21 AS SIGNED ) ) FROM tab0
----
-609
-609
-609
skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + 29 * ( + CAST ( - 21 AS INTEGER ) ) FROM tab0
----
-609
-609
-609
query I rowsort
SELECT DISTINCT col1 * + col0 * col0 AS col0 FROM tab2
----
107916
315392
376875
onlyif mysql # DIV for integer division:
query II rowsort label-4843
SELECT col0 * + - col1 AS col1, 0 + - - col2 DIV + col0 FROM tab2
----
-2346
0
-4928
0
-5025
0
skipif mysql # not compatible
query II rowsort label-4843
SELECT col0 * + - col1 AS col1, 0 + - - col2 / + col0 FROM tab2
----
-2346
0
-4928
0
-5025
0
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( 18 * - col0 - - col0, + col0 - + + col0 + - + col0 * + col2 )
----
query I rowsort
SELECT 26 FROM tab2, tab2 AS cor0 WHERE + 5 <> - 87
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # DIV for integer division:
query I rowsort label-4846
SELECT + col2 DIV + col1 * + col1 + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9508
skipif mysql # not compatible
query I rowsort label-4846
SELECT + col2 / + col1 * + col1 + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9508
query I rowsort
SELECT ALL ( + + ( 83 ) ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= 15
----
51
14
96
85
5
59
query I rowsort
SELECT + col2 * - 63 AS col2 FROM tab2 cor0
----
-1449
-2520
-3654
query I rowsort
SELECT DISTINCT + 26 * - col0 FROM tab0 AS cor0
----
-2262
-2522
-390
query I rowsort
SELECT + 92 - 68 FROM tab0 AS cor0
----
24
24
24
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4852
SELECT ALL - 54 * CAST( NULL AS SIGNED ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 54 * CAST ( NULL AS INTEGER ) + - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4853
SELECT DISTINCT - ( - + CAST( NULL AS DECIMAL ) ) - + col0 + 55 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - ( - + CAST ( NULL AS REAL ) ) - + col0 + 55 * + col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + 12 FROM tab0 AS cor0
----
111
22
59
query I rowsort
SELECT ALL col2 - + + col0 * 8 FROM tab2
----
-345
-472
-542
query I rowsort
SELECT DISTINCT + col1 * - 29 * + + 2 * col2 FROM tab0
----
-12180
-220806
-5742
query I rowsort
SELECT ALL - 25 * - col0 FROM tab1
----
1275
2125
2275
query II rowsort
SELECT col2, 34 + + col1 FROM tab1
----
59
39
68
81
96
48
query I rowsort
SELECT ALL 29 * + ( 91 ) FROM tab2
----
2639
2639
2639
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, col1 FROM tab0
----
15
81
87
21
97
1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - ( - + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4862
SELECT - COUNT( * ) * 34 FROM tab1
----
-102
skipif mysql # not compatible
query I rowsort label-4862
SELECT - COUNT ( * ) * 34 FROM tab1
----
-102
query I rowsort
SELECT DISTINCT - + ( - 13 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
13
onlyif mysql # aggregate syntax:
query I rowsort label-4864
SELECT - COUNT( * ) + - + ( 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-59
skipif mysql # not compatible
query I rowsort label-4864
SELECT - COUNT ( * ) + - + ( 50 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - - col0 col0 FROM tab2
----
1058
2560
4350
onlyif mysql # aggregate syntax:
query I rowsort label-4866
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1
----
-9
skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1
----
-9
onlyif mysql # DIV for integer division:
query I rowsort label-4867
SELECT ALL col0 DIV 6 * ( col1 ) * 53 + 11 FROM tab0 AS cor0
----
15593
859
8597
skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL col0 / 6 * ( col1 ) * 53 + 11 FROM tab0 AS cor0
----
15593
859
8597
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 34 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 + - 79 * col2 * + 56 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 67 * - 48 + + + col2 + - - col1 * - - 88 * + col1 < NULL
----
query I rowsort
SELECT col2 + 7 * + col0 FROM tab2
----
345
488
583
onlyif mysql # DIV for integer division:
query I rowsort label-4874
SELECT ALL - 92 DIV - col2 AS col1 FROM tab0
----
0
1
9
skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - 92 / - col2 AS col1 FROM tab0
----
0
1
9
query I rowsort
SELECT 76 + - col0 * - 83 AS col0 FROM tab0
----
1321
7297
8127
query III rowsort
SELECT * FROM tab2 WHERE + 10 IS NULL
----
query I rowsort
SELECT ( - 24 ) * - 18 * + 19 AS col1 FROM tab2
----
8208
8208
8208
query I rowsort
SELECT 83 * + - 19 AS col0 FROM tab1
----
-1577
-1577
-1577
query I rowsort
SELECT ALL + 73 * col1 AS col0 FROM tab2
----
3723
4891
5621
onlyif mysql # aggregate syntax:
query I rowsort label-4880
SELECT DISTINCT 73 * - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab2
----
657
skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT 73 * - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab2
----
657
query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE - - 82 NOT BETWEEN ( + - 35 ) AND - col1 * + - col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 94
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT DISTINCT - 89 + - + col0 AS col2 FROM tab0 AS cor0
----
-104
-176
-186
onlyif mysql # aggregate syntax:
query I rowsort label-4885
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 - - - col1 FROM tab0 AS cor0
----
-100
-128
-31
query III rowsort
SELECT * FROM tab0 cor0 WHERE - 44 <= - col2
----
87
21
10
onlyif mysql # aggregate syntax:
query I rowsort label-4888
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab0
----
6
skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab0
----
6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4889
SELECT - 20 + - 16 - + - col2 * - CAST( - 82 AS SIGNED ) * col0 FROM tab0
----
57774
71304
787410
skipif mysql # not compatible
query I rowsort label-4889
SELECT - 20 + - 16 - + - col2 * - CAST ( - 82 AS INTEGER ) * col0 FROM tab0
----
57774
71304
787410
onlyif mysql # aggregate syntax:
query II rowsort label-4890
SELECT 43 * + + MAX( col0 ) * - + 28 + + - COUNT( * ), SUM( col0 ) AS col1 FROM tab1
----
-109567
227
skipif mysql # not compatible
query II rowsort label-4890
SELECT 43 * + + MAX ( col0 ) * - + 28 + + - COUNT ( * ), SUM ( col0 ) AS col1 FROM tab1
----
-109567
227
onlyif mysql # DIV for integer division:
query I rowsort label-4891
SELECT DISTINCT col1 DIV - col1 - + 60 FROM tab2
----
-61
skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT col1 / - col1 - + 60 FROM tab2
----
-61
query I rowsort
SELECT + col2 + - + col2 - + col0 AS col0 FROM tab1
----
-51
-85
-91
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-4893
SELECT * FROM tab2 WHERE ( CAST( NULL AS DECIMAL ) / col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-4893
SELECT * FROM tab2 WHERE ( CAST ( NULL AS REAL ) / col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-4894
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) >= col0
----
0
skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) >= col0
----
0
query I rowsort
SELECT - col2 * - 37 - - col1 AS col2 FROM tab0 AS cor0 WHERE + col1 >= - col1
----
1820
3664
391
onlyif mysql # aggregate syntax:
query I rowsort label-4896
SELECT DISTINCT - + SUM( - 92 ) col0 FROM tab0 AS cor0
----
276
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4896
SELECT DISTINCT - + SUM ( - 92 ) col0 FROM tab0 AS cor0
----
276
onlyif mysql # aggregate syntax:
query I rowsort label-4897
SELECT - ( + COUNT( ALL + ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4897
SELECT - ( + COUNT ( ALL + ( - col1 ) ) ) AS col2 FROM tab2 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + ( 80 ) * + col1 IS NOT NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab1
----
60
60
60
onlyif mysql # aggregate syntax:
query I rowsort label-4900
SELECT MAX( - col2 ) FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-4900
SELECT MAX ( - col2 ) FROM tab0
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-4901
SELECT ALL - MIN( ALL + col0 ) FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - MIN ( ALL + col0 ) FROM tab0
----
-15
query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab0
----
-15
81
-87
21
-97
1
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4903
SELECT * FROM tab1 WHERE NOT NULL IN ( 50 / + col0 * - + 35 * - 97 - + 73, CAST( NULL AS SIGNED ) * - col0 + + 12, col2 )
----
skipif mysql # not compatible
query III rowsort label-4903
SELECT * FROM tab1 WHERE NOT NULL IN ( 50 / + col0 * - + 35 * - 97 - + 73, CAST ( NULL AS INTEGER ) * - col0 + + 12, col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-4904
SELECT DISTINCT + 73 DIV - col2 FROM tab2
----
-1
-3
skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT + 73 / - col2 FROM tab2
----
-1
-3
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN + 29 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4907
SELECT DISTINCT SUM( ALL - col1 ) AS col0 FROM tab1
----
-66
skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT SUM ( ALL - col1 ) AS col0 FROM tab1
----
-66
query II rowsort
SELECT ALL 28, col1 FROM tab0 AS cor0
----
28
1
28
21
28
81
onlyif mysql # DIV for integer division:
query I rowsort label-4909
SELECT + - 90 DIV - 98 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4909
SELECT + - 90 / - 98 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + - 75 * - col1 FROM tab2 cor0
----
3825
5025
5775
query I rowsort
SELECT ALL - col2 * 34 AS col2 FROM tab0 AS cor0
----
-1598
-3366
-340
onlyif mysql # aggregate syntax:
query I rowsort label-4912
SELECT - COUNT( * ) * 59 * + 81 FROM tab1
----
-14337
skipif mysql # not compatible
query I rowsort label-4912
SELECT - COUNT ( * ) * 59 * + 81 FROM tab1
----
-14337
onlyif mysql # aggregate syntax:
query II rowsort label-4913
SELECT ALL - COUNT( * ) AS col1, 88 AS col2 FROM tab0
----
-3
88
skipif mysql # not compatible
query II rowsort label-4913
SELECT ALL - COUNT ( * ) AS col1, 88 AS col2 FROM tab0
----
-3
88
onlyif mysql # aggregate syntax:
query I rowsort label-4914
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 23 >= - ( 86 )
----
query II rowsort
SELECT col0 AS col2, + col0 * + + 33 AS col2 FROM tab2 AS cor0
----
46
1518
64
2112
75
2475
onlyif mysql # aggregate syntax:
query I rowsort label-4917
SELECT DISTINCT + COUNT( * ) + - - ( 31 ) FROM tab2 AS cor0
----
34
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + COUNT ( * ) + - - ( 31 ) FROM tab2 AS cor0
----
34
query I rowsort
SELECT - + ( 68 ) FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT DISTINCT + col1 * + + col2 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
1148
270
987
onlyif mysql # aggregate syntax:
query I rowsort label-4920
SELECT DISTINCT - + COUNT( * ) - 18 FROM tab2 AS cor0 WHERE 80 < NULL
----
-18
skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT - + COUNT ( * ) - 18 FROM tab2 AS cor0 WHERE 80 < NULL
----
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 + - col1 col2, 59 FROM tab1 AS cor0
----
-110
59
-115
59
-64
59
onlyif mysql # aggregate syntax:
query I rowsort label-4922
SELECT + + ( + - COUNT( * ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-4922
SELECT + + ( + - COUNT ( * ) ) FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-4923
SELECT ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4923
SELECT ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab1
----
46
46
46
onlyif mysql # aggregate syntax:
query I rowsort label-4925
SELECT ALL + MIN( ALL col1 ) FROM tab2
----
51
skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + MIN ( ALL col1 ) FROM tab2
----
51
onlyif mysql # DIV for integer division:
query I rowsort label-4926
SELECT DISTINCT col2 DIV - col2 col2 FROM tab2
----
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4926
SELECT DISTINCT col2 / - col2 col2 FROM tab2
----
-1
query III rowsort
SELECT * FROM tab2 WHERE - + col0 IS NULL
----
query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT - + 54 - - col0 - - ( + + ( col1 ) ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-4929
SELECT + 58 * - 86 + - COUNT( * ) AS col1 FROM tab2
----
-4991
skipif mysql # not compatible
query I rowsort label-4929
SELECT + 58 * - 86 + - COUNT ( * ) AS col1 FROM tab2
----
-4991
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 + 31 col2, col2 FROM tab1 AS cor0
----
-28
59
-37
68
-65
96
query I rowsort
SELECT ALL + + 12 FROM tab1 AS cor0
----
12
12
12
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4932
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) + + CAST( - 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4932
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) + + CAST ( - 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 7 col0, ( - 62 ) + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT + col1 - - + col1 AS col1 FROM tab1 cor0
----
10
28
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col2 FROM tab2
----
75
query I rowsort
SELECT ALL 4 - - col0 * + 62 AS col1 FROM tab0
----
5398
6018
934
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-4937
SELECT COUNT( * ) DIV - + 58 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( * ) / - + 58 FROM tab1
----
0
query II rowsort
SELECT col1 AS col2, + 21 - - + col2 FROM tab1 AS cor0 WHERE + 18 <> NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-4939
SELECT col0 DIV - col1 - + col1 FROM tab0 AS cor0
----
-25
-81
-98
skipif mysql # not compatible
query I rowsort label-4939
SELECT col0 / - col1 - + col1 FROM tab0 AS cor0
----
-25
-81
-98
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4940
SELECT - CAST( - + 12 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-2
-35
7
skipif mysql # not compatible
query I rowsort label-4940
SELECT - CAST ( - + 12 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-2
-35
7
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-4942
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * + 8 + + 77, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77
skipif mysql # not compatible
query II rowsort label-4942
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * + 8 + + 77, col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * - col1 + col2 - - col0 * 42 col1 FROM tab1 AS cor0
----
1230
3269
506
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 67 ) IS NOT NULL
----
query I rowsort
SELECT col0 * - 6 * - - col0 AS col1 FROM tab2 AS cor0
----
-12696
-24576
-33750
query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99
query II rowsort
SELECT ALL col1 AS col1, ( col2 ) * 31 AS col0 FROM tab1 cor0
----
14
2976
47
2108
5
1829
onlyif mysql # aggregate syntax:
query II rowsort label-4948
SELECT ALL - COUNT( * ) AS col2, - MIN( ALL 74 ) FROM tab2 WHERE NULL <= col0
----
0
NULL
skipif mysql # not compatible
query II rowsort label-4948
SELECT ALL - COUNT ( * ) AS col2, - MIN ( ALL 74 ) FROM tab2 WHERE NULL <= col0
----
0
NULL
query I rowsort
SELECT ALL ( 32 ) AS col1 FROM tab2
----
32
32
32
onlyif mysql # aggregate syntax:
query I rowsort label-4950
SELECT DISTINCT + MIN( ( - 33 ) ) FROM tab2
----
-33
skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT + MIN ( ( - 33 ) ) FROM tab2
----
-33
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 93 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4952
SELECT - CAST( CAST( + - col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58
skipif mysql # not compatible
query I rowsort label-4952
SELECT - CAST ( CAST ( + - col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-4953
SELECT MAX( DISTINCT + 84 ) AS col0 FROM tab1
----
84
skipif mysql # not compatible
query I rowsort label-4953
SELECT MAX ( DISTINCT + 84 ) AS col0 FROM tab1
----
84
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-4954
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 IN ( col0, + col0 * - + CAST( + + 59 AS SIGNED ) - + col2 ) )
----
skipif mysql # not compatible
query III rowsort label-4954
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col2 + - col0 IN ( col0, + col0 * - + CAST ( + + 59 AS INTEGER ) - + col2 ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4955
SELECT COUNT( * ) * COUNT( * ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-4955
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0
----
9
query II rowsort
SELECT - col1 AS col2, 46 AS col1 FROM tab2
----
-51
46
-67
46
-77
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < - ( + col0 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-4959
SELECT - - 0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4959
SELECT - - 0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - + col0 ) + 32 FROM tab2
----
-14
-32
-43
query I rowsort
SELECT ALL + 91 AS col0 FROM tab0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col1 FROM tab1 WHERE NULL IS NULL
----
-68
-68
-68
query II rowsort
SELECT DISTINCT + col1, col2 FROM tab2
----
51
23
67
58
77
40
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-4964
SELECT - 7 * + COUNT( CAST( NULL AS SIGNED ) ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4964
SELECT - 7 * + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 32 col1, 33 FROM tab2
----
32
33
query III rowsort
SELECT * FROM tab2 WHERE - + ( + - col1 ) < + + col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col1 * col1 * - 39 * col0 + 81 FROM tab2 AS cor0
----
-13130244
-14798703
-4666113
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col0 * - + col2 IS NULL
----
query I rowsort
SELECT ALL - 10 + - col2 * 33 FROM tab1 AS cor0
----
-1957
-2254
-3178
query I rowsort
SELECT ALL - + 81 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 + + col0 + - 71 / + col2 * - col1 * + - col2 * - col1
----
query I rowsort
SELECT ALL + col1 + col0 * - 48 FROM tab1 AS cor0
----
-2434
-4075
-4321
onlyif mysql # DIV for integer division:
query I rowsort label-4972
SELECT ALL + 0 DIV + col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL + 0 / + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * - 0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query II rowsort label-4974
SELECT ALL col2 DIV + col1 * - - col1 AS col0, col0 * 6 DIV - 2 AS col1 FROM tab2 AS cor0
----
0
-138
0
-192
0
-225
skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL col2 / + col1 * - - col1 AS col0, col0 * 6 / - 2 AS col1 FROM tab2 AS cor0
----
0
-138
0
-192
0
-225
query I rowsort
SELECT + 39 * col2 AS col0 FROM tab0 AS cor0
----
1833
3861
390
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4976
SELECT - 7 * - CAST( - + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4976
SELECT - 7 * - CAST ( - + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - 26 * col0 * - + 94 AS col1 FROM tab2 AS cor0
----
-112424
-156416
-183300
onlyif mysql # aggregate syntax:
query I rowsort label-4978
SELECT DISTINCT MIN( DISTINCT + col2 ) FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT MIN ( DISTINCT + col2 ) FROM tab0
----
10
onlyif mysql # aggregate syntax:
query II rowsort label-4979
SELECT ALL 28 AS col1, - MIN( 65 ) FROM tab0
----
28
-65
skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL 28 AS col1, - MIN ( 65 ) FROM tab0
----
28
-65
onlyif mysql # aggregate syntax:
query I rowsort label-4980
SELECT - MIN( ALL col0 ) AS col1 FROM tab1
----
-51
skipif mysql # not compatible
query I rowsort label-4980
SELECT - MIN ( ALL col0 ) AS col1 FROM tab1
----
-51
query II rowsort
SELECT - col2 AS col2, 0 FROM tab0 WHERE NOT - + col1 * + + col2 = - col0
----
-10
0
-47
0
-99
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 38 AS col1, 72 col0 FROM tab0
----
38
72
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + + 25 <> 58
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 67 ) + + - col1 < col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-4985
SELECT + + COUNT( + - col1 ) AS col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-4985
SELECT + + COUNT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE ( col2 * - col0 * - col1 ) = ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-4987
SELECT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4987
SELECT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
onlyif mysql # aggregate syntax:
query I rowsort label-4989
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-4990
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 18 AND NULL
----
3
skipif mysql # not compatible
query I rowsort label-4990
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 NOT BETWEEN + + 18 AND NULL
----
3
query I rowsort
SELECT ALL 60 FROM tab0 cor0
----
60
60
60
onlyif mysql # DIV for integer division:
query I rowsort label-4992
SELECT ALL + col1 * - col0 DIV - col0 + - + col1 + col2 FROM tab2 AS cor0
----
23
40
58
skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + col1 * - col0 / - col0 + - + col1 + col2 FROM tab2 AS cor0
----
23
40
58
query I rowsort
SELECT DISTINCT 31 + col2 AS col1 FROM tab1 AS cor0
----
127
90
99
onlyif mysql # DIV for integer division:
query I rowsort label-4994
SELECT ALL col2 DIV col2 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-14
-86
-96
skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL col2 / col2 + - col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-14
-86
-96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-4995
SELECT - - 43 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
124
44
64
skipif mysql # not compatible
query I rowsort label-4995
SELECT - - 43 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
124
44
64
query I rowsort
SELECT ALL + + ( + col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98
query I rowsort
SELECT DISTINCT 5 + - col0 FROM tab2
----
-41
-59
-70
onlyif mysql # aggregate syntax:
query I rowsort label-4998
SELECT ALL COUNT( * ) - - - COUNT( DISTINCT + 12 ) + + MAX( - 5 ) * 49 AS col2 FROM tab2
----
-243
skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL COUNT ( * ) - - - COUNT ( DISTINCT + 12 ) + + MAX ( - 5 ) * 49 AS col2 FROM tab2
----
-243
query I rowsort
SELECT col1 + + + ( + 38 ) AS col1 FROM tab2
----
105
115
89
query I rowsort
SELECT - col2 + + col1 + - 46 AS col0 FROM tab2
----
-18
-37
-9
query III rowsort
SELECT * FROM tab1 WHERE NULL = - - ( + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5002
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5003
SELECT + 27 * col2 + - CAST( - - 17 AS SIGNED ) + + 41 FROM tab0 cor0
----
1293
2697
294
skipif mysql # not compatible
query I rowsort label-5003
SELECT + 27 * col2 + - CAST ( - - 17 AS INTEGER ) + + 41 FROM tab0 cor0
----
1293
2697
294
onlyif mysql # aggregate syntax:
query I rowsort label-5004
SELECT - + COUNT( ALL - col1 ) col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5004
SELECT - + COUNT ( ALL - col1 ) col0 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT ALL - 4 - - 71 * col2 + + col1 FROM tab0 AS cor0
----
3414
7026
727
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 > col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5007
SELECT + 90 * + + COUNT( * ) FROM tab0
----
270
skipif mysql # not compatible
query I rowsort label-5007
SELECT + 90 * + + COUNT ( * ) FROM tab0
----
270
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5008
SELECT + 12 * + + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5008
SELECT + 12 * + + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5009
SELECT ALL + COUNT( * ) * + - 75 * + 25 AS col1 FROM tab2 AS cor0
----
-5625
skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL + COUNT ( * ) * + - 75 * + 25 AS col1 FROM tab2 AS cor0
----
-5625
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5010
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886
skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886
onlyif mysql # DIV for integer division:
query I rowsort label-5011
SELECT - col1 * col1 DIV - + col0 FROM tab1 AS cor0
----
0
24
3
skipif mysql # not compatible
query I rowsort label-5011
SELECT - col1 * col1 / - + col0 FROM tab1 AS cor0
----
0
24
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5012
SELECT - 22 * + MIN( ALL col1 ) + - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5012
SELECT - 22 * + MIN ( ALL col1 ) + - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5013
SELECT - + COUNT( ALL - col1 ) * COUNT( * ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-5013
SELECT - + COUNT ( ALL - col1 ) * COUNT ( * ) FROM tab0 AS cor0
----
-9
onlyif mysql # aggregate syntax:
query II rowsort label-5014
SELECT DISTINCT + 64 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
64
-3
skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT + 64 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
64
-3
query II rowsort
SELECT ALL + 31 AS col2, col1 FROM tab0 AS cor0
----
31
1
31
21
31
81
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5016
SELECT ALL + CAST( - col1 AS SIGNED ) AS col2, + col0 + - col0 FROM tab1
----
-14
0
-47
0
-5
0
skipif mysql # not compatible
query II rowsort label-5016
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col2, + col0 + - col0 FROM tab1
----
-14
0
-47
0
-5
0
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5017
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5017
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3
query I rowsort
SELECT ALL col2 * - ( + + col2 ) * + 77 * + 57 AS col2 FROM tab1
----
-15278109
-20294736
-40449024
query I rowsort
SELECT DISTINCT + 2 FROM tab0 WHERE ( NOT ( NOT - 3 * + - col1 / - + col1 IS NULL ) )
----
query I rowsort
SELECT + 97 AS col1 FROM tab0 cor0
----
97
97
97
query I rowsort
SELECT + + ( - 93 ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93
query I rowsort
SELECT col0 * + 50 * - + 19 FROM tab2 AS cor0
----
-43700
-60800
-71250
query I rowsort
SELECT col2 * 1 FROM tab0
----
10
47
99
query III rowsort
SELECT * FROM tab1 WHERE - + col0 >= col0 + - - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5025
SELECT SUM( + 26 ) * COUNT( * ) FROM tab0
----
234
skipif mysql # not compatible
query I rowsort label-5025
SELECT SUM ( + 26 ) * COUNT ( * ) FROM tab0
----
234
query I rowsort
SELECT + + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32
query III rowsort
SELECT * FROM tab2 cor0 WHERE 76 * ( + 83 ) * + 46 / + + 84 + - col1 IS NULL
----
query I rowsort
SELECT DISTINCT col2 - - 49 FROM tab1 AS cor0
----
108
117
145
query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE ( NULL ) < - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-5030
SELECT - MIN( - + 78 ) AS col1 FROM tab2 AS cor0
----
78
skipif mysql # not compatible
query I rowsort label-5030
SELECT - MIN ( - + 78 ) AS col1 FROM tab2 AS cor0
----
78
query I rowsort
SELECT ALL + col0 * col2 + col2 - + col0 FROM tab0
----
737
793
9605
onlyif mysql # aggregate syntax:
query I rowsort label-5032
SELECT + SUM( col1 ) AS col2 FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-5032
SELECT + SUM ( col1 ) AS col2 FROM tab1
----
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5033
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - ( ( col1 ) ) col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 54 * + + col1 AS col0 FROM tab0
----
-1134
-4374
-54
onlyif mysql # aggregate syntax:
query I rowsort label-5036
SELECT COUNT( * ) * 16 AS col0 FROM tab2
----
48
skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) * 16 AS col0 FROM tab2
----
48
query III rowsort
SELECT * FROM tab1 WHERE - 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL
----
query I rowsort
SELECT ALL + col0 * - 7 + + 64 * - - 55 FROM tab0 cor0
----
2841
2911
3415
onlyif mysql # DIV for integer division:
query I rowsort label-5040
SELECT - col1 DIV + 63 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5040
SELECT - col1 / + 63 FROM tab2
----
-1
-1
0
onlyif mysql # aggregate syntax:
query I rowsort label-5041
SELECT ( + COUNT( * ) ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-5041
SELECT ( + COUNT ( * ) ) AS col1 FROM tab0
----
3
query I rowsort
SELECT ALL col2 * + + col0 AS col1 FROM tab1
----
4896
5015
6188
query I rowsort
SELECT ALL + 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-5045
SELECT + 91 * - COUNT( * ) FROM tab0 AS cor0
----
-273
skipif mysql # not compatible
query I rowsort label-5045
SELECT + 91 * - COUNT ( * ) FROM tab0 AS cor0
----
-273
query I rowsort
SELECT ( + col1 ) * col1 + + 10 * - 1 AS col1 FROM tab2 AS cor0
----
2591
4479
5919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 85 * + 29 - - col2 AS col0 FROM tab2 AS cor0
----
-2407
-2425
-2442
query I rowsort
SELECT DISTINCT + 53 * - 64 * col1 * - col0 * + col2 FROM tab2
----
183025536
668631040
988598400
query I rowsort
SELECT ALL - ( col2 ) * + + 23 FROM tab1
----
-1357
-1564
-2208
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5051
SELECT * FROM tab1 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + 42
----
skipif mysql # not compatible
query III rowsort label-5051
SELECT * FROM tab1 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + 42
----
onlyif mysql # DIV for integer division:
query I rowsort label-5052
SELECT DISTINCT col2 DIV + - col0 AS col0 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT col2 / + - col0 AS col0 FROM tab1
----
-1
0
query II rowsort
SELECT - col2, col1 AS col1 FROM tab1
----
-59
5
-68
47
-96
14
onlyif mysql # aggregate syntax:
query I rowsort label-5054
SELECT DISTINCT - 81 + - COUNT( * ) col1 FROM tab0 AS cor0
----
-84
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5054
SELECT DISTINCT - 81 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT - - 62 + - 72 * + col0 + - 45 + col0 FROM tab1 AS cor0
----
-3604
-6018
-6444
query I rowsort
SELECT col1 + - - col2 + + - col0 AS col0 FROM tab0 cor0
----
-56
113
3
onlyif mysql # aggregate syntax:
query I rowsort label-5057
SELECT DISTINCT 27 * SUM( + - col2 ) FROM tab2
----
-3267
skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT 27 * SUM ( + - col2 ) FROM tab2
----
-3267
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5058
SELECT ALL * FROM tab2 WHERE NOT - ( CAST( NULL AS SIGNED ) ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-5058
SELECT ALL * FROM tab2 WHERE NOT - ( CAST ( NULL AS INTEGER ) ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5059
SELECT + MAX( ALL + ( + col0 ) ) AS col0 FROM tab1 cor0
----
91
skipif mysql # not compatible
query I rowsort label-5059
SELECT + MAX ( ALL + ( + col0 ) ) AS col0 FROM tab1 cor0
----
91
onlyif mysql # DIV for integer division:
query I rowsort label-5060
SELECT col2 DIV + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5060
SELECT col2 / + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 48 + - col2 * - ( - col1 ) - - col0 IS NOT NULL
----
query I rowsort
SELECT - col2 - - + col0 AS col2 FROM tab2 cor0
----
17
23
24
query I rowsort
SELECT DISTINCT - 48 + + col1 AS col2 FROM tab2 AS cor0
----
19
29
3
query I rowsort
SELECT ( + + col2 ) - - col0 AS col1 FROM tab1 AS cor0
----
144
147
159
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 40 = + col2
----
query I rowsort
SELECT ALL - col2 * col2 - + col1 + + col0 AS col2 FROM tab0
----
-2275
-34
-9705
query I rowsort
SELECT col2 + - + col1 FROM tab0
----
-11
-34
98
onlyif mysql # aggregate syntax:
query II rowsort label-5068
SELECT ALL COUNT( * ) col1, ( - - COUNT( * ) ) AS col1 FROM tab1
----
3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5068
SELECT ALL COUNT ( * ) col1, ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-5069
SELECT COUNT( * ) * + + 26 FROM tab0
----
78
skipif mysql # not compatible
query I rowsort label-5069
SELECT COUNT ( * ) * + + 26 FROM tab0
----
78
onlyif mysql # aggregate syntax:
query I rowsort label-5070
SELECT ALL COUNT( * ) col2 FROM tab1
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5070
SELECT ALL COUNT ( * ) col2 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query II rowsort label-5071
SELECT + COUNT( * ) AS col0, + COUNT( + 71 ) FROM tab1 AS cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-5071
SELECT + COUNT ( * ) AS col0, + COUNT ( + 71 ) FROM tab1 AS cor0
----
3
3
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE 30 + col2 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5073
SELECT ALL col0 - col1 DIV - col0 AS col2 FROM tab0
----
20
87
97
skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL col0 - col1 / - col0 AS col2 FROM tab0
----
20
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-5074
SELECT SUM( ALL + 71 ) + - 56 * 8 FROM tab2
----
-235
skipif mysql # not compatible
query I rowsort label-5074
SELECT SUM ( ALL + 71 ) + - 56 * 8 FROM tab2
----
-235
onlyif mysql # aggregate syntax:
query I rowsort label-5075
SELECT ALL + SUM( col2 ) AS col1 FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + SUM ( col2 ) AS col1 FROM tab2
----
121
onlyif mysql # aggregate syntax:
query I rowsort label-5076
SELECT - 83 * + 79 + COUNT( * ) FROM tab0
----
-6554
skipif mysql # not compatible
query I rowsort label-5076
SELECT - 83 * + 79 + COUNT ( * ) FROM tab0
----
-6554
query III rowsort
SELECT * FROM tab2 WHERE - col2 * - col1 BETWEEN NULL AND ( + col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( 81 / col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN NULL AND - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-5080
SELECT SUM( - col0 ) AS col0 FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-5080
SELECT SUM ( - col0 ) AS col0 FROM tab1
----
-227
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5082
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-5082
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2
----
0
query I rowsort
SELECT - 28 + col2 AS col0 FROM tab2
----
-5
12
30
onlyif mysql # aggregate syntax:
query I rowsort label-5084
SELECT ALL - ( COUNT( * ) ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - ( COUNT ( * ) ) FROM tab0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-5085
SELECT - 17 DIV 59 + + col0 * + col2 AS col2 FROM tab2
----
1058
2560
4350
skipif mysql # not compatible
query I rowsort label-5085
SELECT - 17 / 59 + + col0 * + col2 AS col2 FROM tab2
----
1058
2560
4350
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * - col0 - col2 col0 FROM tab0
----
-5317
-6016
-962
query I rowsort
SELECT DISTINCT + 36 * col0 AS col1 FROM tab2
----
1656
2304
2700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * col0 col2 FROM tab1 WHERE ( 75 ) IS NOT NULL
----
2091
3485
3731
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 51 >= + col0
----
51
14
96
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 WHERE ( NULL ) <= - 76
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 + ( col1 ) * - ( - 42 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 87 - - 25 AS col1 FROM tab1
----
-62
-62
-62
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - col2 IS NOT NULL
----
query I rowsort
SELECT + ( - col0 ) * 26 FROM tab0
----
-2262
-2522
-390
query I rowsort
SELECT + col2 * 58 AS col0 FROM tab1
----
3422
3944
5568
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 NOT BETWEEN col0 * col1 + col0 AND - ( - 25 ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 89 * col1 AS col2 FROM tab2
----
4539
5963
6853
query I rowsort
SELECT - col2 * 91 AS col2 FROM tab1
----
-5369
-6188
-8736
query III rowsort
SELECT ALL * FROM tab1 WHERE 24 * ( col0 ) IN ( col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5100
SELECT ALL - ( COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - ( COUNT ( * ) ) FROM tab1
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-5101
SELECT col2 DIV col2 + - col1 * 35 FROM tab2
----
-1784
-2344
-2694
skipif mysql # not compatible
query I rowsort label-5101
SELECT col2 / col2 + - col1 * 35 FROM tab2
----
-1784
-2344
-2694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE ( NULL ) < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5103
SELECT - col2 DIV - 16 + - 35 AS col1 FROM tab2
----
-32
-33
-34
skipif mysql # not compatible
query I rowsort label-5103
SELECT - col2 / - 16 + - 35 AS col1 FROM tab2
----
-32
-33
-34
query I rowsort
SELECT col1 - + 31 AS col1 FROM tab2
----
20
36
46
query I rowsort
SELECT ALL 76 AS col2 FROM tab2 WHERE NOT NULL <= ( col1 )
----
query I rowsort
SELECT ALL 91 + ( - col2 + - 39 ) FROM tab1 AS cor0
----
-16
-44
-7
query I rowsort
SELECT - col0 * col1 FROM tab2 AS cor0 WHERE NULL >= - col2
----
query I rowsort
SELECT ALL + col2 + + 92 FROM tab0 cor0
----
102
139
191
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) <= + 75
----
51
14
96
onlyif mysql # aggregate syntax:
query I rowsort label-5110
SELECT DISTINCT + 27 + ( - COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
18
skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 27 + ( - COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2
----
18
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 * col2 ) = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
88
query I rowsort
SELECT ALL + 94 * + 29 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to ed7566e127e49d26a05c6e4b3e55f92d
onlyif mysql # DIV for integer division:
query I rowsort label-5114
SELECT - col2 DIV col0 + 28 AS col1 FROM tab0
----
25
27
28
skipif mysql # not compatible
query I rowsort label-5114
SELECT - col2 / col0 + 28 AS col1 FROM tab0
----
25
27
28
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 24 ) BETWEEN ( NULL ) AND + col1
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= ( col2 / col2 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) >= + 65
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 63 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-5119
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 64 AND 79
----
0
skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 64 AND 79
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 / - col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-5122
SELECT ALL - 31 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-93
skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - 31 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-93
query I rowsort
SELECT ALL + col1 + + 18 FROM tab1 cor0
----
23
32
65
query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab1 cor0
----
138
65
90
onlyif mysql # aggregate syntax:
query I rowsort label-5125
SELECT DISTINCT 7 - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT 7 - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10
onlyif mysql # aggregate syntax:
query I rowsort label-5126
SELECT - MAX( col0 ) col2 FROM tab0 AS cor0
----
-97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5126
SELECT - MAX ( col0 ) col2 FROM tab0 AS cor0
----
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab1 cor0 WHERE NULL >= - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-5128
SELECT SUM( + col0 ) FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-5128
SELECT SUM ( + col0 ) FROM tab2 AS cor0
----
185
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5130
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-5130
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + ( col2 ) ) col0 FROM tab0
----
100
128
31
query I rowsort
SELECT ALL 7 - - col2 FROM tab2
----
30
47
65
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( col2 ) * ( + col1 ) NOT IN ( 36 * - 76 )
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-5134
SELECT - COUNT( * ) * - COUNT( * ) * + COUNT( * ) FROM tab0
----
27
skipif mysql # not compatible
query I rowsort label-5134
SELECT - COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
27
query I rowsort
SELECT DISTINCT + 58 * + - col1 AS col1 FROM tab2
----
-2958
-3886
-4466
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5136
SELECT ALL + MIN( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 WHERE NULL <= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + MIN ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 WHERE NULL <= NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5137
SELECT - COUNT( * ) * 69 * - MAX( ( + col0 ) * - col1 ) FROM tab1
----
-87975
skipif mysql # not compatible
query I rowsort label-5137
SELECT - COUNT ( * ) * 69 * - MAX ( ( + col0 ) * - col1 ) FROM tab1
----
-87975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col1 FROM tab2
----
39
query I rowsort
SELECT ALL + 14 AS col0 FROM tab1
----
14
14
14
query I rowsort
SELECT + - 16 * + 2 AS col0 FROM tab1 cor0
----
-32
-32
-32
query I rowsort
SELECT + - col1 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
25075
290836
68544
query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NOT col0 * - col1 + + 8 IS NULL
----
1
21
81
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 IN ( CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-5143
SELECT * FROM tab2 AS cor0 WHERE NOT - 36 IN ( CAST ( NULL AS INTEGER ) )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 69 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5145
SELECT + SUM( ALL ( + - col0 ) ) AS col1 FROM tab2
----
-185
skipif mysql # not compatible
query I rowsort label-5145
SELECT + SUM ( ALL ( + - col0 ) ) AS col1 FROM tab2
----
-185
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 26 * col2 + ( - 19 + - col0 ) > ( + col0 + + 76 )
----
87
21
10
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-5147
SELECT ALL * FROM tab0 WHERE ( NOT ( CAST( col0 AS DECIMAL ) ) >= + 46 )
----
15
81
47
skipif mysql # not compatible
query III rowsort label-5147
SELECT ALL * FROM tab0 WHERE ( NOT ( CAST ( col0 AS REAL ) ) >= + 46 )
----
15
81
47
query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT - col0 < + col0
----
query II rowsort
SELECT ALL - col1 AS col1, + 8 FROM tab1 AS cor0
----
-14
8
-47
8
-5
8
onlyif mysql # aggregate syntax:
query I rowsort label-5150
SELECT DISTINCT + COUNT( * ) * ( - + 86 ) AS col1 FROM tab0 AS cor0
----
-258
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + COUNT ( * ) * ( - + 86 ) AS col1 FROM tab0 AS cor0
----
-258
onlyif mysql # aggregate syntax:
query I rowsort label-5151
SELECT MIN( - - 31 ) FROM tab2 AS cor0
----
31
skipif mysql # not compatible
query I rowsort label-5151
SELECT MIN ( - - 31 ) FROM tab2 AS cor0
----
31
query I rowsort
SELECT ALL + - col0 + + - col0 + + - col0 * + col0 FROM tab0 AS cor0
----
-255
-7743
-9603
query I rowsort
SELECT + col2 * + 55 * ( col2 ) AS col1 FROM tab1 AS cor0
----
191455
254320
506880
query I rowsort
SELECT + col1 * - col0 * - 85 FROM tab1 AS cor0
----
36125
363545
60690
query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0 WHERE NOT 30 IS NULL
----
65
onlyif mysql # aggregate syntax:
query I rowsort label-5156
SELECT - COUNT( DISTINCT - col2 ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-5156
SELECT - COUNT ( DISTINCT - col2 ) FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5157
SELECT ALL MAX( col0 ) FROM tab1
----
91
skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL MAX ( col0 ) FROM tab1
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-5158
SELECT - MAX( DISTINCT + 30 ) * COUNT( * ) AS col1 FROM tab1 WHERE - col1 NOT IN ( + col0 * - col2 )
----
-90
skipif mysql # not compatible
query I rowsort label-5158
SELECT - MAX ( DISTINCT + 30 ) * COUNT ( * ) AS col1 FROM tab1 WHERE - col1 NOT IN ( + col0 * - col2 )
----
-90
query III rowsort
SELECT * FROM tab2 WHERE - - 2 NOT IN ( 77 + + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + 30 FROM tab0
----
30
30
30
onlyif mysql # aggregate syntax:
query I rowsort label-5161
SELECT DISTINCT COUNT( * ) col0 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5161
SELECT DISTINCT COUNT ( * ) col0 FROM tab2
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col2 FROM tab1
----
53
53
53
query I rowsort
SELECT + 33 + - - col1 FROM tab1
----
38
47
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5164
SELECT + - CAST( + col1 AS SIGNED ) + + 99 + 88 * CAST( 10 + 26 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
-115760
-152384
-175274
skipif mysql # not compatible
query I rowsort label-5164
SELECT + - CAST ( + col1 AS INTEGER ) + + 99 + 88 * CAST ( 10 + 26 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
-115760
-152384
-175274
onlyif mysql # aggregate syntax:
query I rowsort label-5165
SELECT + - COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-5165
SELECT + - COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5166
SELECT - - col1 + - - CAST( - + col1 AS SIGNED ) + + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96
skipif mysql # not compatible
query I rowsort label-5166
SELECT - - col1 + - - CAST ( - + col1 AS INTEGER ) + + + ( + col2 ) FROM tab1 AS cor0
----
59
68
96
onlyif mysql # DIV for integer division:
query I rowsort label-5167
SELECT ALL col2 DIV + 65 - - col1 AS col2 FROM tab0 AS cor0
----
2
21
81
skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL col2 / + 65 - - col1 AS col2 FROM tab0 AS cor0
----
2
21
81
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5168
SELECT ALL + CAST( NULL AS SIGNED ), 83 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
83
NULL
83
NULL
83
skipif mysql # not compatible
query II rowsort label-5168
SELECT ALL + CAST ( NULL AS INTEGER ), 83 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
83
NULL
83
NULL
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col2 FROM tab1
----
-81
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5170
SELECT col1 - - ( - CAST( NULL AS DECIMAL ) ) + + col2 * + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5170
SELECT col1 - - ( - CAST ( NULL AS REAL ) ) + + col2 * + col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col2 * + col1 * - + col1 col0 FROM tab0 AS cor0
----
-198
-308414
-4420
onlyif mysql # DIV for integer division:
query I rowsort label-5172
SELECT + - col2 - + 87 + + 96 + + 16 DIV + col0 FROM tab2 AS cor0
----
-14
-31
-49
skipif mysql # not compatible
query I rowsort label-5172
SELECT + - col2 - + 87 + + 96 + + 16 / + col0 FROM tab2 AS cor0
----
-14
-31
-49
query I rowsort
SELECT 93 + - col2 FROM tab2 AS cor0
----
35
53
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 AS cor0 WHERE NOT 54 IS NOT NULL
----
query II rowsort
SELECT - col0 * 88 AS col2, + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4488
14
-7480
5
-8008
47
onlyif mysql # aggregate syntax:
query I rowsort label-5176
SELECT - + MIN( ALL 72 ) FROM tab0 cor0
----
-72
skipif mysql # not compatible
query I rowsort label-5176
SELECT - + MIN ( ALL 72 ) FROM tab0 cor0
----
-72
query II rowsort
SELECT - col1 AS col2, + col0 * + - col1 + col0 AS col1 FROM tab2
----
-51
-2300
-67
-4950
-77
-4864
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + col1 * col2 * - - col0 FROM tab1
----
25075
290836
68544
query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) NOT BETWEEN + 0 AND NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5181
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - col1 ) * + 18, + 44 * col2 AS col2 FROM tab0
----
NULL
2068
NULL
4356
NULL
440
skipif mysql # not compatible
query II rowsort label-5181
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - col1 ) * + 18, + 44 * col2 AS col2 FROM tab0
----
NULL
2068
NULL
4356
NULL
440
query I rowsort
SELECT - 73 * - 18 FROM tab2 AS cor0
----
1314
1314
1314
onlyif mysql # aggregate syntax:
query I rowsort label-5183
SELECT MIN( DISTINCT + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 94 )
----
NULL
skipif mysql # not compatible
query I rowsort label-5183
SELECT MIN ( DISTINCT + - col2 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 94 )
----
NULL
query I rowsort
SELECT col0 / - col0 FROM tab0 WHERE NOT 93 * col2 + + - 69 + + + col0 > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5185
SELECT + 97 + - 7 - - SUM( - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36
skipif mysql # not compatible
query I rowsort label-5185
SELECT + 97 + - 7 - - SUM ( - 6 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36
onlyif mysql # aggregate syntax:
query I rowsort label-5186
SELECT COUNT( 17 ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5186
SELECT COUNT ( 17 ) AS col0 FROM tab2
----
3
query I rowsort
SELECT - ( 19 ) FROM tab0 cor0
----
-19
-19
-19
onlyif mysql # aggregate syntax:
query I rowsort label-5188
SELECT ALL - COUNT( * ) - + 3 AS col0 FROM tab0 cor0 WHERE ( NOT + - ( + 59 ) = - col1 )
----
-6
skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - COUNT ( * ) - + 3 AS col0 FROM tab0 cor0 WHERE ( NOT + - ( + 59 ) = - col1 )
----
-6
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 96 * 59 > ( NULL )
----
query I rowsort
SELECT + 38 / - 74 AS col2 FROM tab1 AS cor0 WHERE col1 + col0 + - col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5191
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----
0
query I rowsort
SELECT ALL 74 AS col2 FROM tab0 cor0
----
74
74
74
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5193
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * 53 + - COUNT( * ) FROM tab1 cor0
----
-162
skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * 53 + - COUNT ( * ) FROM tab1 cor0
----
-162
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5194
SELECT - 43 * - CAST( NULL AS DECIMAL ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT - 43 * - CAST ( NULL AS REAL ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 43 + - + ( + + col1 ) FROM tab1
----
-4
29
38
onlyif mysql # aggregate syntax:
query I rowsort label-5196
SELECT + COUNT( * ) col0 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5196
SELECT + COUNT ( * ) col0 FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5197
SELECT COUNT( * ) col1 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5197
SELECT COUNT ( * ) col1 FROM tab0
----
3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5198
SELECT - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5198
SELECT - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
-1
query I rowsort
SELECT ALL + col2 * - - col1 * + col1 * ( - col0 ) AS col2 FROM tab0
----
-383670
-4625505
-9603
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 IN ( + + col2 * 39 + + + ( + col1 ) + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT ALL - + 41, + col0 AS col2 FROM tab1 cor0
----
-41
51
-41
85
-41
91
onlyif mysql # aggregate syntax:
query I rowsort label-5202
SELECT MAX( ALL col1 ) - 78 + 10 * - COUNT( * ) FROM tab1 AS cor0
----
-61
skipif mysql # not compatible
query I rowsort label-5202
SELECT MAX ( ALL col1 ) - 78 + 10 * - COUNT ( * ) FROM tab1 AS cor0
----
-61
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5203
SELECT ALL + + col0 + - + CAST( - 67 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
104
111
147
skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + + col0 + - + CAST ( - 67 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
104
111
147
onlyif mysql # aggregate syntax:
query I rowsort label-5204
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9
query III rowsort
SELECT * FROM tab1 WHERE NULL >= col2 * + col1
----
query I rowsort
SELECT 50 + col2 + col1 FROM tab2
----
124
167
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 col0 FROM tab2 AS cor0
----
-62
-62
-62
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5208
SELECT col1 AS col1, - col0 * - col2 * 3 * + 63 * + CAST( + + col2 AS SIGNED ) FROM tab0
----
1
179681733
21
1644300
81
6262515
skipif mysql # not compatible
query II rowsort label-5208
SELECT col1 AS col1, - col0 * - col2 * 3 * + 63 * + CAST ( + + col2 AS INTEGER ) FROM tab0
----
1
179681733
21
1644300
81
6262515
onlyif mysql # aggregate syntax:
query II rowsort label-5209
SELECT DISTINCT - 50 AS col2, + 14 * + COUNT( * ) AS col0 FROM tab1
----
-50
42
skipif mysql # not compatible
query II rowsort label-5209
SELECT DISTINCT - 50 AS col2, + 14 * + COUNT ( * ) AS col0 FROM tab1
----
-50
42
query I rowsort
SELECT + col1 * + - col1 * 77 FROM tab2
----
-200277
-345653
-456533
query I rowsort
SELECT ALL col0 * + 49 FROM tab0
----
4263
4753
735
query II rowsort
SELECT 13 AS col1, - col0 * - col1 FROM tab0 WHERE NOT NULL BETWEEN 39 * + 14 AND - 60
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND - col2 + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5214
SELECT ALL - MIN( + col1 ) FROM tab2 WHERE ( col2 ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL - MIN ( + col1 ) FROM tab2 WHERE ( col2 ) IS NULL
----
NULL
query III rowsort
SELECT * FROM tab1 WHERE NOT + 74 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0, col2 )
----
query I rowsort
SELECT DISTINCT + col0 * - 91 FROM tab0 AS cor0
----
-1365
-7917
-8827
query I rowsort
SELECT ALL + 83 * + + 9 FROM tab2 AS cor0
----
747
747
747
query I rowsort
SELECT ALL + col1 * 98 FROM tab1
----
1372
4606
490
onlyif mysql # aggregate syntax:
query I rowsort label-5221
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5221
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col0 / - + 43 )
----
query I rowsort
SELECT ALL - - 83 AS col2 FROM tab2 AS cor0
----
83
83
83
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5224
SELECT CAST( NULL AS SIGNED ) AS col1, MAX( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
NULL
-5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5224
SELECT CAST ( NULL AS INTEGER ) AS col1, MAX ( DISTINCT - col1 ) col1 FROM tab1 AS cor0
----
NULL
-5
query II rowsort
SELECT - col2, col1 AS col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1
onlyif mysql # aggregate syntax:
query I rowsort label-5226
SELECT DISTINCT COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6
query II rowsort
SELECT + + col0 * + 71 AS col1, col2 FROM tab1 AS cor0
----
3621
96
6035
59
6461
68
query I rowsort
SELECT ALL - col2 * col1 + - 41 - + col1 AS col2 FROM tab2 AS cor0
----
-1265
-3198
-3994
query I rowsort
SELECT + 77 * + 66 FROM tab0 AS cor0
----
5082
5082
5082
query I rowsort
SELECT DISTINCT + - 22 + + + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
111
47
82
query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5232
SELECT + ( 11 ) + + SUM( - - col1 ) DIV - + COUNT( * ) * - 1 AS col2 FROM tab2
----
76
skipif mysql # not compatible
query I rowsort label-5232
SELECT + ( 11 ) + + SUM ( - - col1 ) / - + COUNT ( * ) * - 1 AS col2 FROM tab2
----
76
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 27 * + - col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5234
SELECT ALL - 86 DIV 4 * - 5 AS col1 FROM tab1
----
105
105
105
skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - 86 / 4 * - 5 AS col1 FROM tab1
----
105
105
105
query III rowsort
SELECT * FROM tab2 WHERE 87 / + + 78 IS NULL
----
query I rowsort
SELECT + 26 + col0 AS col1 FROM tab0
----
113
123
41
query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5238
SELECT ALL + 56 * CAST( NULL AS SIGNED ) / 43 + col1 + - + col2 + + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5238
SELECT ALL + 56 * CAST ( NULL AS INTEGER ) / 43 + col1 + - + col2 + + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab1 AS cor0
----
425
4277
714
query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col0 + col2 + + ( - - col0 ) <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5241
SELECT - COUNT( * ) col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5241
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5242
SELECT DISTINCT SUM( ALL + - 61 ) FROM tab0 AS cor0
----
-183
skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT SUM ( ALL + - 61 ) FROM tab0 AS cor0
----
-183
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5243
SELECT + MIN( - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 78 - + CAST( col1 AS SIGNED ) / col1 IS NULL
----
-97
skipif mysql # not compatible
query I rowsort label-5243
SELECT + MIN ( - col0 ) FROM tab0 AS cor0 WHERE NOT + col1 + - 78 - + CAST ( col1 AS INTEGER ) / col1 IS NULL
----
-97
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
query I rowsort
SELECT ALL + 85 AS col0 FROM tab2 cor0
----
85
85
85
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - 92
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT ( NULL ) <= col0
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col2 IN ( - 63 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query I rowsort label-5249
SELECT col0 FROM tab0 WHERE NOT - col2 NOT IN ( - ( + col1 ) DIV col2 * - - col2 )
----
15
skipif mysql # not compatible
query I rowsort label-5249
SELECT col0 FROM tab0 WHERE NOT - col2 NOT IN ( - ( + col1 ) / col2 * - - col2 )
----
15
onlyif mysql # aggregate syntax:
query I rowsort label-5250
SELECT ALL COUNT( - col1 ) FROM tab1 WHERE col2 / + - 18 < + col2
----
3
skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL COUNT ( - col1 ) FROM tab1 WHERE col2 / + - 18 < + col2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5251
SELECT COUNT( col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5251
SELECT COUNT ( col2 ) FROM tab2
----
3
query III rowsort
SELECT ALL * FROM tab2 WHERE + - 53 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 WHERE NOT ( 2 + 50 * - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT - 53 * - 31 FROM tab0
----
1643
query I rowsort
SELECT + 9 * + - col1 AS col0 FROM tab0 AS cor0
----
-189
-729
-9
query I rowsort
SELECT - col0 * - + 58 AS col0 FROM tab0
----
5046
5626
870
query I rowsort
SELECT DISTINCT + - 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67
onlyif mysql # DIV for integer division:
query I rowsort label-5258
SELECT + 65 DIV 17 AS col1 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-5258
SELECT + 65 / 17 AS col1 FROM tab2
----
3
3
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5259
SELECT - ( + + CAST( - 22 AS SIGNED ) ) AS col2 FROM tab1
----
22
22
22
skipif mysql # not compatible
query I rowsort label-5259
SELECT - ( + + CAST ( - 22 AS INTEGER ) ) AS col2 FROM tab1
----
22
22
22
onlyif mysql # aggregate syntax:
query I rowsort label-5260
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-5261
SELECT DISTINCT - COUNT( * ) + 56 AS col2 FROM tab2 AS cor0
----
53
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT - COUNT ( * ) + 56 AS col2 FROM tab2 AS cor0
----
53
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 96 IS NULL
----
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL > + 38 + + + ( + - 11 )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5264
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-5264
SELECT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT col2 - - 10 FROM tab0 AS cor0
----
109
20
57
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5266
SELECT CAST( NULL AS SIGNED ) + - + col1 * - col2 + + + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5266
SELECT CAST ( NULL AS INTEGER ) + - + col1 * - col2 + + + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 46 + + col2 FROM tab2 AS cor0
----
104
69
86
query I rowsort
SELECT ALL 13 FROM tab1 WHERE NOT - col1 NOT BETWEEN - 44 + + ( col2 ) + + 13 AND 84
----
onlyif mysql # aggregate syntax:
query I rowsort label-5269
SELECT DISTINCT + 47 * COUNT( * ) FROM tab1
----
141
skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT + 47 * COUNT ( * ) FROM tab1
----
141
query I rowsort
SELECT DISTINCT col2 + 86 + + 17 AS col0 FROM tab1
----
162
171
199
onlyif mysql # DIV for integer division:
query I rowsort label-5271
SELECT DISTINCT col0 * + col0 - 42 DIV col0 FROM tab0
----
223
7569
9409
skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT col0 * + col0 - 42 / col0 FROM tab0
----
223
7569
9409
onlyif mysql # aggregate syntax:
query I rowsort label-5272
SELECT DISTINCT - MIN( ( + - col0 ) ) AS col2 FROM tab2
----
75
skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - MIN ( ( + - col0 ) ) AS col2 FROM tab2
----
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5273
SELECT COUNT( DISTINCT - col1 ) DIV + COUNT( * ) col0 FROM tab2
----
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5273
SELECT COUNT ( DISTINCT - col1 ) / + COUNT ( * ) col0 FROM tab2
----
1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5274
SELECT DISTINCT 17 DIV - COUNT( * ) FROM tab2
----
-5
skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT 17 / - COUNT ( * ) FROM tab2
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-5275
SELECT DISTINCT + MAX( + + 75 ) AS col2 FROM tab1 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT + MAX ( + + 75 ) AS col2 FROM tab1 AS cor0
----
75
query I rowsort
SELECT - ( + ( col1 ) ) + - - col0 FROM tab1 cor0
----
37
44
80
onlyif mysql # aggregate syntax:
query I rowsort label-5277
SELECT - COUNT( * ) + COUNT( * ) + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5277
SELECT - COUNT ( * ) + COUNT ( * ) + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
-3
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1 * col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-5280
SELECT 40 DIV col1 AS col2, CAST( col1 AS SIGNED ) * + ( - ( - + col0 ) ) FROM tab0 AS cor0
----
0
1215
1
1827
40
97
skipif mysql # not compatible
query II rowsort label-5280
SELECT 40 / col1 AS col2, CAST ( col1 AS INTEGER ) * + ( - ( - + col0 ) ) FROM tab0 AS cor0
----
0
1215
1
1827
40
97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col1 FROM tab0
----
-80
-80
-80
query II rowsort
SELECT DISTINCT - 21 AS col2, 68 FROM tab2
----
-21
68
query II rowsort
SELECT DISTINCT + col0 AS col2, ( 83 ) FROM tab1
----
51
83
85
83
91
83
onlyif mysql # aggregate syntax:
query I rowsort label-5285
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE - + col0 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE - + col0 IS NULL
----
0
query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0, tab1 AS cor0
----
93
onlyif mysql # aggregate syntax:
query I rowsort label-5287
SELECT + COUNT( * ) col1 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5287
SELECT + COUNT ( * ) col1 FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5288
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab0 AS cor0
----
-18
34
71
onlyif mysql # aggregate syntax:
query I rowsort label-5290
SELECT + - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5290
SELECT + - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + 60 + - + col0 AS col1 FROM tab1 AS cor0
----
-25
-31
9
query II rowsort
SELECT DISTINCT - col2 AS col0, col0 + + + col2 FROM tab0 AS cor0
----
-10
97
-47
62
-99
196
query I rowsort
SELECT ALL 66 * + - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082
query III rowsort
SELECT * FROM tab1 WHERE - + 96 IS NULL
----
query I rowsort
SELECT DISTINCT + 19 + + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
42
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 * 26 >= 10
----
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE col1 / - + 61 + - ( col1 ) <> - - 68
----
23
40
58
query II rowsort
SELECT ( + 33 ) AS col0, ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
33
10
33
28
33
94
onlyif mysql # aggregate syntax:
query I rowsort label-5299
SELECT ALL + 24 + + - COUNT( * ) FROM tab2 AS cor0
----
21
skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 24 + + - COUNT ( * ) FROM tab2 AS cor0
----
21
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < 70
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5302
SELECT + col2 - + CAST( + ( 45 ) AS SIGNED ) + col0 + + 6 * - + col0 FROM tab1 AS cor0
----
-204
-411
-432
skipif mysql # not compatible
query I rowsort label-5302
SELECT + col2 - + CAST ( + ( 45 ) AS INTEGER ) + col0 + + 6 * - + col0 FROM tab1 AS cor0
----
-204
-411
-432
query I rowsort
SELECT 38 - 29 FROM tab1 AS cor0 WHERE - 51 > NULL
----
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL <= + col2 + - col1 )
----
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL <= NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5306
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5308
SELECT ALL + COUNT( col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + COUNT ( col2 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5309
SELECT + COUNT( * ) * - - COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-5309
SELECT + COUNT ( * ) * - - COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5310
SELECT DISTINCT + COUNT( + 55 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT + COUNT ( + 55 ) AS col1 FROM tab1
----
3
query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 IS NULL OR - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5312
SELECT ALL + 32 - + 94 * + + SUM( DISTINCT - col1 ) FROM tab0
----
9714
skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + 32 - + 94 * + + SUM ( DISTINCT - col1 ) FROM tab0
----
9714
query I rowsort
SELECT ALL col0 * - - col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query II rowsort
SELECT + 46 AS col0, col2 * - 83 * 71 * + col2 FROM tab1 AS cor0
----
46
-20513533
46
-27249232
46
-54309888
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5315
SELECT - 73 - + - CAST( NULL AS SIGNED ) + - - MIN( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = - - col1
----
NULL
skipif mysql # not compatible
query I rowsort label-5315
SELECT - 73 - + - CAST ( NULL AS INTEGER ) + - - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 = - - col1
----
NULL
query I rowsort
SELECT ( - - col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99
onlyif mysql # DIV for integer division:
query II rowsort label-5317
SELECT ALL 67 DIV - col0 + 17 AS col2, col1 AS col0 FROM tab1 AS cor0
----
16
14
17
47
17
5
skipif mysql # not compatible
query II rowsort label-5317
SELECT ALL 67 / - col0 + 17 AS col2, col1 AS col0 FROM tab1 AS cor0
----
16
14
17
47
17
5
onlyif mysql # aggregate syntax:
query II rowsort label-5318
SELECT + + 32 + - COUNT( ALL + col0 ) AS col1, - 62 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
32
-62
skipif mysql # not compatible
query II rowsort label-5318
SELECT + + 32 + - COUNT ( ALL + col0 ) AS col1, - 62 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
32
-62
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5319
SELECT DISTINCT + CAST( + - ( + + ( - col1 ) ) AS SIGNED ) FROM tab1
----
14
47
5
skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + CAST ( + - ( + + ( - col1 ) ) AS INTEGER ) FROM tab1
----
14
47
5
query I rowsort
SELECT ALL - 24 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5321
SELECT ALL 59 col0, 59 * + + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
59
177
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5321
SELECT ALL 59 col0, 59 * + + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
59
177
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5324
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 / + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 / + col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5325
SELECT DISTINCT - + MAX( - col2 ) FROM tab0 AS cor0
----
10
skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT - + MAX ( - col2 ) FROM tab0 AS cor0
----
10
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5327
SELECT ALL ( - COUNT( * ) ) / + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5327
SELECT ALL ( - COUNT ( * ) ) / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, + col0 + + - ( 5 ) FROM tab2 AS cor0
----
51
41
67
70
77
59
query I rowsort
SELECT - col0 * - - col2 * + 10 AS col1 FROM tab0
----
-7050
-8700
-96030
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-5330
SELECT ALL * FROM tab0 WHERE NOT CAST( col2 AS DECIMAL ) < - + 6 - - col1 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-5330
SELECT ALL * FROM tab0 WHERE NOT CAST ( col2 AS REAL ) < - + 6 - - col1 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE NOT 72 IS NOT NULL
----
query I rowsort
SELECT - ( ( - - 63 ) ) AS col2 FROM tab1
----
-63
-63
-63
onlyif mysql # aggregate syntax:
query II rowsort label-5333
SELECT - MIN( ALL ( - - col1 ) ) AS col1, 60 AS col0 FROM tab1
----
-5
60
skipif mysql # not compatible
query II rowsort label-5333
SELECT - MIN ( ALL ( - - col1 ) ) AS col1, 60 AS col0 FROM tab1
----
-5
60
query II rowsort
SELECT - ( - + col2 ) AS col2, + col0 FROM tab2
----
23
46
40
64
58
75
query I rowsort
SELECT ALL 65 + 65 AS col0 FROM tab1 AS cor0
----
130
130
130
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-5336
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-5336
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + CAST ( NULL AS REAL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5337
SELECT col1 * CAST( ( + 41 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE - col2 / + - col2 + - 39 NOT BETWEEN - col2 AND 45 * col0 + col1
----
skipif mysql # not compatible
query I rowsort label-5337
SELECT col1 * CAST ( ( + 41 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE - col2 / + - col2 + - 39 NOT BETWEEN - col2 AND 45 * col0 + col1
----
query I rowsort
SELECT + col2 * ( + 18 ) FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
1044
414
720
onlyif mysql # aggregate syntax:
query I rowsort label-5339
SELECT + - COUNT( * ) AS col0 FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5339
SELECT + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5340
SELECT ALL COUNT( * ) + 46 AS col0 FROM tab0
----
49
skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL COUNT ( * ) + 46 AS col0 FROM tab0
----
49
onlyif mysql # aggregate syntax:
query I rowsort label-5341
SELECT + MIN( ALL - 52 ) + + COUNT( * ) - - 83 FROM tab0 AS cor0
----
34
skipif mysql # not compatible
query I rowsort label-5341
SELECT + MIN ( ALL - 52 ) + + COUNT ( * ) - - 83 FROM tab0 AS cor0
----
34
query I rowsort
SELECT DISTINCT - col1 + ( 46 ) FROM tab0 AS cor0
----
-35
25
45
onlyif mysql # aggregate syntax:
query I rowsort label-5343
SELECT ALL SUM( DISTINCT - - col2 ) + - + MAX( ALL - 8 ) * COUNT( + col0 ) FROM tab2 AS cor0
----
145
skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL SUM ( DISTINCT - - col2 ) + - + MAX ( ALL - 8 ) * COUNT ( + col0 ) FROM tab2 AS cor0
----
145
query I rowsort
SELECT ALL - + 51 - + + col1 FROM tab1 AS cor0
----
-56
-65
-98
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + ( + + 54 ) AS col0 FROM tab2
----
54
54
54
query III rowsort
SELECT * FROM tab1 WHERE + col2 - 39 + + 36 = + + col2
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5348
SELECT COUNT( * ) DIV - - COUNT( * ) - 35 AS col2 FROM tab0
----
-34
skipif mysql # not compatible
query I rowsort label-5348
SELECT COUNT ( * ) / - - COUNT ( * ) - 35 AS col2 FROM tab0
----
-34
query I rowsort
SELECT DISTINCT 12 - + col0 FROM tab2
----
-34
-52
-63
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5350
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * - + 92 IN ( - + col1, 55 + + CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-5350
SELECT * FROM tab2 AS cor0 WHERE NOT 79 * - + 92 IN ( - + col1, 55 + + CAST ( NULL AS INTEGER ) )
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + 41 * + ( col2 ) AND + - 18 * + col1 * + - 85 * - - col0 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5352
SELECT DISTINCT + 73 DIV + + MIN( + col2 ) FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT + 73 / + + MIN ( + col2 ) FROM tab1 cor0
----
1
onlyif mysql # DIV for integer division:
query I rowsort label-5353
SELECT DISTINCT col2 DIV + 64 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT col2 / + 64 FROM tab1
----
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-5354
SELECT + MAX( ALL 74 ) FROM tab1 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-5354
SELECT + MAX ( ALL 74 ) FROM tab1 AS cor0
----
74
onlyif mysql # aggregate syntax:
query II rowsort label-5355
SELECT ALL MIN( col2 ) + 51 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
61
-3
skipif mysql # not compatible
query II rowsort label-5355
SELECT ALL MIN ( col2 ) + 51 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
61
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5356
SELECT ALL - + 98 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-32
skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL - + 98 / - - COUNT ( * ) FROM tab2 AS cor0
----
-32
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 10 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 - + col1 + 67 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5359
SELECT + + COUNT( * ) * - ( 5 ) * 58 - + + 85 FROM tab1 AS cor0
----
-955
skipif mysql # not compatible
query I rowsort label-5359
SELECT + + COUNT ( * ) * - ( 5 ) * 58 - + + 85 FROM tab1 AS cor0
----
-955
query I rowsort
SELECT ALL 81 * - - 25 FROM tab0 AS cor0
----
2025
2025
2025
onlyif mysql # DIV for integer division:
query I rowsort label-5361
SELECT - col1 DIV - + 38 AS col2 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5361
SELECT - col1 / - + 38 AS col2 FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT + - 83 FROM tab0 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
-83
-83
-83
query I rowsort
SELECT 18 + + - col1 * 26 AS col2 FROM tab2 WHERE NOT - ( + + col1 ) * - - col1 / col2 + col2 = col0 / col0
----
-1308
-1724
-1984
query II rowsort
SELECT DISTINCT col2, - ( - col2 ) FROM tab0
----
10
10
47
47
99
99
query II rowsort
SELECT ALL + 95 AS col1, col2 FROM tab2
----
95
23
95
40
95
58
query I rowsort
SELECT + col2 * ( 65 ) FROM tab2
----
1495
2600
3770
query III rowsort
SELECT * FROM tab1 WHERE NULL > - + col2 * - + col1 * + col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-5368
SELECT ALL - 91 * - col0 * col0 * - col0 DIV col0 AS col1 FROM tab0
----
-20475
-688779
-856219
skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL - 91 * - col0 * col0 * - col0 / col0 AS col1 FROM tab0
----
-20475
-688779
-856219
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5370
SELECT ALL COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
9
query III rowsort
SELECT * FROM tab0 WHERE + - 46 BETWEEN + 27 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5372
SELECT ALL ( + + COUNT( * ) ) col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5372
SELECT ALL ( + + COUNT ( * ) ) col2 FROM tab2 cor0
----
3
query I rowsort
SELECT + + col1 + + 4 AS col1 FROM tab0 AS cor0
----
25
5
85
query I rowsort
SELECT - - 58 * + col0 + - col0 FROM tab2 AS cor0
----
2622
3648
4275
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5375
SELECT ALL + - col0 + - CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + - col0 + - CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5376
SELECT + COUNT( * ) * + COUNT( * ) - + + 12 AS col2 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5376
SELECT + COUNT ( * ) * + COUNT ( * ) - + + 12 AS col2 FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-5377
SELECT + + MIN( - col2 ) - + + COUNT( * ) FROM tab0 AS cor0
----
-102
skipif mysql # not compatible
query I rowsort label-5377
SELECT + + MIN ( - col2 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-102
query I rowsort
SELECT + 57 * + col0 - + 62 AS col1 FROM tab1 AS cor0
----
2845
4783
5125
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT + col0 - + col2 * col1 * - col0 FROM tab0 cor0
----
18357
57120
9700
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5381
SELECT col1 * + col1 / - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5381
SELECT col1 * + col1 / - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 15 + - col2 + - 70 AS col2 FROM tab0 AS cor0
----
-132
-184
-95
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5383
SELECT DISTINCT 79 + - - SUM( DISTINCT col1 ) + - ( CAST( - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) ) * COUNT( * ) * 22 col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5383
SELECT DISTINCT 79 + - - SUM ( DISTINCT col1 ) + - ( CAST ( - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) * COUNT ( * ) * 22 col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 53 + + col0, + col0 col1 FROM tab2 AS cor0
----
117
64
128
75
99
46
onlyif mysql # DIV for integer division:
query II rowsort label-5385
SELECT DISTINCT + 35 AS col0, + col1 DIV 70 AS col0 FROM tab1
----
35
0
skipif mysql # not compatible
query II rowsort label-5385
SELECT DISTINCT + 35 AS col0, + col1 / 70 AS col0 FROM tab1
----
35
0
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77
onlyif mysql # aggregate syntax:
query II rowsort label-5387
SELECT COUNT( * ) AS col0, - COUNT( * ) * 51 col0 FROM tab2
----
3
-153
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5387
SELECT COUNT ( * ) AS col0, - COUNT ( * ) * 51 col0 FROM tab2
----
3
-153
onlyif mysql # aggregate syntax:
query I rowsort label-5388
SELECT ( - SUM( ALL + col1 ) ) AS col0 FROM tab2
----
-195
skipif mysql # not compatible
query I rowsort label-5388
SELECT ( - SUM ( ALL + col1 ) ) AS col0 FROM tab2
----
-195
query I rowsort
SELECT ALL - 75 + + + 88 FROM tab2 WHERE NOT + col0 * + col1 / + - col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5390
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
9
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5391
SELECT 40 col1, - CAST( + - 2 AS SIGNED ) FROM tab0
----
40
2
40
2
40
2
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5391
SELECT 40 col1, - CAST ( + - 2 AS INTEGER ) FROM tab0
----
40
2
40
2
40
2
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 27 + - 28
----
onlyif mysql # aggregate syntax:
query II rowsort label-5393
SELECT ALL - COUNT( * ), - COUNT( * ) col1 FROM tab2 AS cor0
----
-3
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5393
SELECT ALL - COUNT ( * ), - COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
-3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 92 * 59 FROM tab2
----
5428
5428
5428
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5396
SELECT DISTINCT COUNT( * ) DIV + 98 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT COUNT ( * ) / + 98 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE 93 < - col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < col0 + - col0
----
query I rowsort
SELECT DISTINCT 32 * - 42 * + + 59 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
-79296
onlyif mysql # aggregate syntax:
query I rowsort label-5400
SELECT DISTINCT + COUNT( - col2 ) AS col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + COUNT ( - col2 ) AS col0 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL - col2 + 96 AS col2 FROM tab1 AS cor0
----
0
28
37
query I rowsort
SELECT DISTINCT - 0 * + - 71 + + - 73 AS col2 FROM tab0 cor0
----
-73
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query III rowsort label-5403
SELECT ALL + + ( - col2 ) + + 68 DIV - col0 AS col2, + ( - CAST( + 19 AS SIGNED ) ) col1, ( - col2 ) FROM tab0 AS cor0
----
9 values hashing to d3f83928eefa995a76c26bc0832d122b
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5403
SELECT ALL + + ( - col2 ) + + 68 / - col0 AS col2, + ( - CAST ( + 19 AS INTEGER ) ) col1, ( - col2 ) FROM tab0 AS cor0
----
9 values hashing to d3f83928eefa995a76c26bc0832d122b
query I rowsort
SELECT + - col0 + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
59
68
96
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 98 + col0 - + - 13 * + + col2 IS NOT NULL
----
query I rowsort
SELECT ALL - col2 * + 16 AS col1 FROM tab0
----
-1584
-160
-752
onlyif mysql # aggregate syntax:
query I rowsort label-5407
SELECT ALL + MAX( ALL 89 ) FROM tab0
----
89
skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL + MAX ( ALL 89 ) FROM tab0
----
89
onlyif mysql # aggregate syntax:
query I rowsort label-5408
SELECT DISTINCT - 31 * - + COUNT( * ) AS col1 FROM tab0
----
93
skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - 31 * - + COUNT ( * ) AS col1 FROM tab0
----
93
query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN + ( col1 ) AND - col1 + col2 * + - 76 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-5410
SELECT ALL 26 + - + SUM( - 24 ) AS col1, MIN( ALL - col1 ) FROM tab1
----
98
-47
skipif mysql # not compatible
query II rowsort label-5410
SELECT ALL 26 + - + SUM ( - 24 ) AS col1, MIN ( ALL - col1 ) FROM tab1
----
98
-47
query III rowsort
SELECT * FROM tab2 WHERE - 65 >= col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5412
SELECT + COUNT( * ) * + 66 FROM tab0
----
198
skipif mysql # not compatible
query I rowsort label-5412
SELECT + COUNT ( * ) * + 66 FROM tab0
----
198
query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col0 + - - col1 + col1 * 1 / col2 + - col2 IS NULL
----
query I rowsort
SELECT ALL ( - ( - col2 ) ) + - - 34 AS col0 FROM tab0 AS cor0
----
133
44
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - 67 col1 FROM tab2 AS cor0
----
113
131
142
query I rowsort
SELECT col2 - + 68 FROM tab0 AS cor0
----
-21
-58
31
query I rowsort
SELECT DISTINCT + col1 - - 0 AS col0 FROM tab1
----
14
47
5
onlyif mysql # aggregate syntax:
query II rowsort label-5418
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
3
3
skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
3
3
query I rowsort
SELECT DISTINCT + 6 + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-71
38
8
onlyif mysql # aggregate syntax:
query I rowsort label-5420
SELECT + COUNT( + - 90 ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-5420
SELECT + COUNT ( + - 90 ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 * + col0 col2 FROM tab0 AS cor0
----
1262
1837
196
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / 49 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - 37 + - - 12 - - 7 FROM tab0 AS cor0
----
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 33 col1 FROM tab0 AS cor0
----
-33
-33
-33
onlyif mysql # aggregate syntax:
query II rowsort label-5425
SELECT ALL - COUNT( * ), + COUNT( * ) col1 FROM tab2 AS cor0
----
-3
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5425
SELECT ALL - COUNT ( * ), + COUNT ( * ) col1 FROM tab2 AS cor0
----
-3
3
onlyif mysql # aggregate syntax:
query I rowsort label-5426
SELECT + - ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5426
SELECT + - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5427
SELECT - COUNT( * ) * COUNT( * ) * + - 97 AS col1 FROM tab1 AS cor0
----
873
skipif mysql # not compatible
query I rowsort label-5427
SELECT - COUNT ( * ) * COUNT ( * ) * + - 97 AS col1 FROM tab1 AS cor0
----
873
query II rowsort
SELECT + + col2 + + col2 AS col0, col0 FROM tab2 cor0 WHERE NOT ( ( - - 74 / + - col0 ) BETWEEN - col0 * + col0 AND NULL )
----
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-5429
SELECT DISTINCT ( col0 ) AS col1, - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL
skipif mysql # not compatible
query II rowsort label-5429
SELECT DISTINCT ( col0 ) AS col1, - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
15
NULL
87
NULL
97
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5430
SELECT ALL + COUNT( * ) * + ( + - 78 ) * + 65 AS col1 FROM tab2
----
-15210
skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL + COUNT ( * ) * + ( + - 78 ) * + 65 AS col1 FROM tab2
----
-15210
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5431
SELECT DISTINCT 60 + - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 WHERE - - 24 IS NOT NULL
----
57
skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT 60 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 WHERE - - 24 IS NOT NULL
----
57
query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) + 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT ( 59 ) FROM tab1
----
59
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5434
SELECT 69 DIV + - COUNT( * ) - + - SUM( - col0 ) FROM tab2 AS cor0
----
-208
skipif mysql # not compatible
query I rowsort label-5434
SELECT 69 / + - COUNT ( * ) - + - SUM ( - col0 ) FROM tab2 AS cor0
----
-208
query I rowsort
SELECT - + col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5436
SELECT + - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 15 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-5436
SELECT + - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 15 IS NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 89
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 <= - + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-5439
SELECT ALL + - COUNT( * ) * 75 AS col0 FROM tab1 AS cor0
----
-225
skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL + - COUNT ( * ) * 75 AS col0 FROM tab1 AS cor0
----
-225
query I rowsort
SELECT 90 * col0 + - 37 * col2 AS col2 FROM tab0 AS cor0
----
-389
5067
7460
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col1
----
query I rowsort
SELECT - col1 * + - 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * + + col2 AS col2 FROM tab0 AS cor0
----
-100
-2209
-9801
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5444
SELECT + + CAST( 96 AS SIGNED ) FROM tab0 AS cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort label-5444
SELECT + + CAST ( 96 AS INTEGER ) FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5446
SELECT col2 * + 38 + - col1 AS col2, + CAST( NULL AS SIGNED ) / + - col2 * col0 FROM tab1 AS cor0
----
2237
NULL
2537
NULL
3634
NULL
skipif mysql # not compatible
query II rowsort label-5446
SELECT col2 * + 38 + - col1 AS col2, + CAST ( NULL AS INTEGER ) / + - col2 * col0 FROM tab1 AS cor0
----
2237
NULL
2537
NULL
3634
NULL
query I rowsort
SELECT ALL + 86 * + col1 FROM tab2 WHERE NOT NULL >= - 45
----
query I rowsort
SELECT DISTINCT 2 * col2 * - 90 * - + col1 AS col0 FROM tab2
----
211140
554400
699480
query I rowsort
SELECT ALL - 21 * 27 AS col0 FROM tab1
----
-567
-567
-567
onlyif mysql # aggregate syntax:
query I rowsort label-5450
SELECT DISTINCT ( 55 ) * + COUNT( * ) FROM tab0
----
165
skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT ( 55 ) * + COUNT ( * ) FROM tab0
----
165
query I rowsort
SELECT DISTINCT 74 + - - col2 * + - 0 FROM tab2
----
74
onlyif mysql # aggregate syntax:
query I rowsort label-5452
SELECT ALL + MAX( + col0 ) + + 66 FROM tab1
----
157
skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL + MAX ( + col0 ) + + 66 FROM tab1
----
157
onlyif mysql # aggregate syntax:
query I rowsort label-5453
SELECT DISTINCT - COUNT( * ) + + ( 99 ) FROM tab0 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - COUNT ( * ) + + ( 99 ) FROM tab0 AS cor0
----
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5454
SELECT ALL - + col0 + - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL - + col0 + - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( + ( - + col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5457
SELECT DISTINCT MIN( ALL - - 50 ) FROM tab0
----
50
skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT MIN ( ALL - - 50 ) FROM tab0
----
50
query I rowsort
SELECT DISTINCT - col2 * - + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5459
SELECT + col2 / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5459
SELECT + col2 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-5460
SELECT DISTINCT 88 AS col0, + 69 DIV col2 col0 FROM tab2 AS cor0
----
88
1
88
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5460
SELECT DISTINCT 88 AS col0, + 69 / col2 col0 FROM tab2 AS cor0
----
88
1
88
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5461
SELECT ( - col1 ) + + - col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - + ( 65 ) + 36 * - CAST( NULL AS SIGNED ) - - 53
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5461
SELECT ( - col1 ) + + - col0 + + col2 col1 FROM tab2 AS cor0 WHERE NOT + col2 <> - + ( 65 ) + 36 * - CAST ( NULL AS INTEGER ) - - 53
----
query I rowsort
SELECT + 28 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
106596
2772
5880
onlyif mysql # aggregate syntax:
query I rowsort label-5463
SELECT + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
query I rowsort label-5463
SELECT + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
-227
query I rowsort
SELECT + col1 * + 6 AS col2 FROM tab2 AS cor0
----
306
402
462
query I rowsort
SELECT col1 * + + col0 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col1 * ( - 17 ) * + + col1
----
query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) < - + 24
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5467
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 17, CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-5467
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - + 17, CAST ( NULL AS INTEGER ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 31 col2, col1 FROM tab2
----
-31
51
-31
67
-31
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + ( ( - col1 ) ) col2 FROM tab0
----
-1029
-3969
-49
onlyif mysql # aggregate syntax:
query II rowsort label-5470
SELECT - 49 AS col1, COUNT( * ) + + 32 FROM tab0
----
-49
35
skipif mysql # not compatible
query II rowsort label-5470
SELECT - 49 AS col1, COUNT ( * ) + + 32 FROM tab0
----
-49
35
query II rowsort
SELECT ALL - col1 AS col0, 26 * - col1 AS col1 FROM tab1 cor0
----
-14
-364
-47
-1222
-5
-130
query I rowsort
SELECT DISTINCT + col2 + 4 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
100
63
72
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 70 <= col1
----
46
51
23
75
67
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5474
SELECT ALL CAST( + MAX( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL CAST ( + MAX ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
96
query I rowsort
SELECT ALL + - 12 FROM tab0 AS cor0 WHERE - col2 + + 73 IS NOT NULL
----
-12
-12
-12
query I rowsort
SELECT + col1 + + + col2 AS col2 FROM tab2 cor0
----
117
125
74
query I rowsort
SELECT DISTINCT col2 * + 17 * + col0 + + col0 AS col1 FROM tab0 AS cor0
----
12000
14877
163348
query I rowsort
SELECT + 17 + 19 FROM tab2 AS cor0 WHERE NULL < - col1 + - 74
----
query I rowsort
SELECT DISTINCT col1 * + col2 * - col1 + + col2 + 62 AS col2 FROM tab2 AS cor0
----
-237058
-260242
-59738
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + 61
----
query I rowsort
SELECT + - col0 + - - ( - - col2 ) AS col0 FROM tab0 AS cor0
----
-77
2
32
query I rowsort
SELECT ALL 33 + + col0 FROM tab1
----
118
124
84
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / - + col2 BETWEEN col0 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5484
SELECT ALL - COUNT( ALL col1 ) - - + 31 AS col1 FROM tab0
----
28
skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - COUNT ( ALL col1 ) - - + 31 AS col1 FROM tab0
----
28
query II rowsort
SELECT + col1, col2 FROM tab1
----
14
96
47
68
5
59
query I rowsort
SELECT - ( - - col0 ) AS col1 FROM tab0
----
-15
-87
-97
onlyif mysql # aggregate syntax:
query I rowsort label-5487
SELECT 34 * - COUNT( * ) FROM tab2
----
-102
skipif mysql # not compatible
query I rowsort label-5487
SELECT 34 * - COUNT ( * ) FROM tab2
----
-102
query II rowsort
SELECT DISTINCT + col2, - 89 AS col0 FROM tab1
----
59
-89
68
-89
96
-89
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5489
SELECT ALL ( COUNT( DISTINCT - CAST( + col0 AS SIGNED ) ) ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL ( COUNT ( DISTINCT - CAST ( + col0 AS INTEGER ) ) ) AS col2 FROM tab1
----
3
query I rowsort
SELECT ALL 32 + + col0 FROM tab0
----
119
129
47
query I rowsort
SELECT ALL - 6 + col1 FROM tab2
----
45
61
71
query I rowsort
SELECT + 36 + + 54 AS col1 FROM tab1 WHERE NULL < NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 1 NOT BETWEEN - ( - 54 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5494
SELECT ALL + MIN( + col0 ) - - - MAX( DISTINCT + ( 64 ) ) AS col1 FROM tab2 cor0
----
-18
skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL + MIN ( + col0 ) - - - MAX ( DISTINCT + ( 64 ) ) AS col1 FROM tab2 cor0
----
-18
onlyif mysql # aggregate syntax:
query I rowsort label-5495
SELECT DISTINCT + 0 * + + COUNT( * ) - + MAX( 4 ) FROM tab1 AS cor0
----
-4
skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + 0 * + + COUNT ( * ) - + MAX ( 4 ) FROM tab1 AS cor0
----
-4
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5496
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5496
SELECT + + CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 18 + 7 FROM tab1
----
-11
-11
-11
query I rowsort
SELECT + 45 * - + col0 + - - col1 * col0 * + col2 * - 7 FROM tab0
----
-131805
-400410
-71586
query I rowsort
SELECT col1 * + - col0 + + - ( col2 ) FROM tab2
----
-2369
-4968
-5083
query I rowsort
SELECT ALL 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5501
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5503
SELECT + + COUNT( + 2 ) * - 7 AS col2 FROM tab2 AS cor0
----
-21
skipif mysql # not compatible
query I rowsort label-5503
SELECT + + COUNT ( + 2 ) * - 7 AS col2 FROM tab2 AS cor0
----
-21
query I rowsort
SELECT DISTINCT col1 * - 1 + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1470
150165
18802
onlyif mysql # aggregate syntax:
query I rowsort label-5505
SELECT 24 * - 66 + - + COUNT( * ) * + - ( - 84 ) FROM tab0 AS cor0
----
-1836
skipif mysql # not compatible
query I rowsort label-5505
SELECT 24 * - 66 + - + COUNT ( * ) * + - ( - 84 ) FROM tab0 AS cor0
----
-1836
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5506
SELECT ALL + COUNT( * ) DIV + 17 - - COUNT( * ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL + COUNT ( * ) / + 17 - - COUNT ( * ) FROM tab0 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5507
SELECT 6 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col0 * + 70 / + 93 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-5507
SELECT 6 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col0 * + 70 / + 93 IS NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5508
SELECT - + MAX( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-5508
SELECT - + MAX ( DISTINCT - 27 ) AS col2 FROM tab0 AS cor0
----
27
onlyif mysql # DIV for integer division:
query I rowsort label-5509
SELECT DISTINCT 87 DIV - 62 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT 87 / - 62 FROM tab0 AS cor0
----
-1
onlyif mysql # DIV for integer division:
query I rowsort label-5510
SELECT + col0 DIV - col2 col1 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT + col0 / - col2 col1 FROM tab1
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * - col0 col0 FROM tab1
----
-25075
-290836
-68544
query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-705
-870
-9603
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5513
SELECT 81 DIV SUM( ALL + 95 ) * + + COUNT( * ) * - - COUNT( * ) * MAX( ALL - ( + ( + col2 ) ) ) AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5513
SELECT 81 / SUM ( ALL + 95 ) * + + COUNT ( * ) * - - COUNT ( * ) * MAX ( ALL - ( + ( + col2 ) ) ) AS col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col2 + - 47 + + col2 / + + 78 * - 32 + + col1 FROM tab1 WHERE NULL <= + + col1
----
query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab0
----
10
47
99
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + 61 * - col1
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + col1 AND - ( + - col1 ) / + 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 * + 96 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT - col0 AS col2, + 85 AS col0 FROM tab1
----
-51
85
-85
85
-91
85
onlyif mysql # aggregate syntax:
query I rowsort label-5520
SELECT - COUNT( * ) FROM tab2 WHERE + + 86 * - col2 BETWEEN + 30 * + - col0 AND - col2
----
0
skipif mysql # not compatible
query I rowsort label-5520
SELECT - COUNT ( * ) FROM tab2 WHERE + + 86 * - col2 BETWEEN + 30 * + - col0 AND - col2
----
0
query I rowsort
SELECT ALL col2 + 44 FROM tab0
----
143
54
91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5522
SELECT * FROM tab2 WHERE col1 + - ( + - CAST( NULL AS SIGNED ) ) BETWEEN 62 AND + 4
----
skipif mysql # not compatible
query III rowsort label-5522
SELECT * FROM tab2 WHERE col1 + - ( + - CAST ( NULL AS INTEGER ) ) BETWEEN 62 AND + 4
----
query I rowsort
SELECT DISTINCT - ( 15 ) + ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1188
-3095
-3901
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 >= NULL
----
query I rowsort
SELECT - 12 AS col2 FROM tab0 cor0
----
-12
-12
-12
query I rowsort
SELECT + 31 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
31
31
31
query I rowsort
SELECT ALL + + col1 + - - col1 FROM tab1 AS cor0
----
10
28
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 + + 22 col2 FROM tab0 AS cor0
----
118
120
130
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
16
query I rowsort
SELECT DISTINCT - col2 + + + col0 FROM tab0 AS cor0
----
-2
-32
77
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5531
SELECT + col0 - + + 54 * - + CAST( NULL AS DECIMAL ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5531
SELECT + col0 - + + 54 * - + CAST ( NULL AS REAL ) * + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 90 FROM tab0 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> - - col1 + - + col1
----
query II rowsort
SELECT - ( - ( col0 ) ), col1 FROM tab1 AS cor0
----
51
14
85
5
91
47
onlyif mysql # aggregate syntax:
query I rowsort label-5535
SELECT + MAX( + + col0 ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-5535
SELECT + MAX ( + + col0 ) FROM tab1 AS cor0
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-5536
SELECT ALL + + MAX( col0 ) * - - 3 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 * + col1 = + - ( - + 63 )
----
291
skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + + MAX ( col0 ) * - - 3 FROM tab0 AS cor0 WHERE NOT - col0 - + col0 * + col1 = + - ( - + 63 )
----
291
onlyif mysql # aggregate syntax:
query I rowsort label-5537
SELECT - + MIN( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5537
SELECT - + MIN ( ALL + col1 ) col2 FROM tab0 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-5538
SELECT + + COUNT( DISTINCT - 27 ) col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5538
SELECT + + COUNT ( DISTINCT - 27 ) col2 FROM tab2 AS cor0
----
1
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5539
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-5540
SELECT - 85 DIV col0 AS col0 FROM tab0 AS cor0
----
-5
0
0
skipif mysql # not compatible
query I rowsort label-5540
SELECT - 85 / col0 AS col0 FROM tab0 AS cor0
----
-5
0
0
query I rowsort
SELECT 14 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5542
SELECT + ( + COUNT( * ) ) * + + 73 * + COUNT( * ) AS col1 FROM tab0 cor0
----
657
skipif mysql # not compatible
query I rowsort label-5542
SELECT + ( + COUNT ( * ) ) * + + 73 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
657
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5543
SELECT col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5543
SELECT col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5544
SELECT DISTINCT + - ( 41 ) * COUNT( * ), 36 AS col2 FROM tab0 AS cor0
----
-123
36
skipif mysql # not compatible
query II rowsort label-5544
SELECT DISTINCT + - ( 41 ) * COUNT ( * ), 36 AS col2 FROM tab0 AS cor0
----
-123
36
query I rowsort
SELECT col0 - + col2 FROM tab0 AS cor0 WHERE NOT ( ( NOT col0 IS NOT NULL ) )
----
-2
-32
77
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----
query I rowsort
SELECT DISTINCT + - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5548
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + ( + CAST( NULL AS SIGNED ) ) * - - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-5548
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + ( + CAST ( NULL AS INTEGER ) ) * - - 68 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 49 + + 2 / + 60 * 22 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5550
SELECT DISTINCT + - SUM( 93 ) AS col2 FROM tab2 cor0
----
-279
skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + - SUM ( 93 ) AS col2 FROM tab2 cor0
----
-279
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-5552
SELECT ALL - SUM( DISTINCT - col1 ) AS col0, - 28 FROM tab1
----
66
-28
skipif mysql # not compatible
query II rowsort label-5552
SELECT ALL - SUM ( DISTINCT - col1 ) AS col0, - 28 FROM tab1
----
66
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col1 FROM tab1
----
53
53
53
query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 97 ) NOT BETWEEN + col2 AND col0 * col2 / - col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5555
SELECT ALL CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 33 * + ( - ( - 25 ) ) FROM tab0
----
825
query I rowsort
SELECT ( + + col2 ) FROM tab2
----
23
40
58
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97
query I rowsort
SELECT DISTINCT - 61 + 27 FROM tab2 AS cor0
----
-34
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5560
SELECT CAST( NULL AS SIGNED ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 49 ) col2 FROM tab1
----
-49
query I rowsort
SELECT col0 + + - col2 AS col0 FROM tab1
----
-45
23
26
query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99
query I rowsort
SELECT ( 95 ) + col2 + - - col1 FROM tab0
----
126
195
223
onlyif mysql # aggregate syntax:
query I rowsort label-5565
SELECT 29 + + - COUNT( * ) AS col0 FROM tab1
----
26
skipif mysql # not compatible
query I rowsort label-5565
SELECT 29 + + - COUNT ( * ) AS col0 FROM tab1
----
26
onlyif mysql # aggregate syntax:
query I rowsort label-5566
SELECT - 84 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-81
skipif mysql # not compatible
query I rowsort label-5566
SELECT - 84 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + + col2 + + 40 * + - col2 * col1 col0, - col2 FROM tab2 cor0
----
-123096
-40
-155307
-58
-46851
-23
query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77
query I rowsort
SELECT - col0 + + col1 * - - 82 AS col0 FROM tab2 AS cor0
----
4136
5419
6250
query I rowsort
SELECT DISTINCT - - 70 + - 53 FROM tab2 AS cor0
----
17
query I rowsort
SELECT + + 55 * col2 FROM tab1 cor0 WHERE 97 * 69 IS NOT NULL
----
3245
3740
5280
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5572
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT ( 87 ) AS col1 FROM tab1
----
87
query I rowsort
SELECT + ( - 12 ) - - + col0 AS col1 FROM tab2
----
34
52
63
query I rowsort
SELECT ALL ( - col0 ) * - col1 + - 14 FROM tab0 cor0
----
1201
1813
83
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 6 + + 2 * + 45 col0 FROM tab1 AS cor0 WHERE NOT 78 IS NOT NULL
----
query I rowsort
SELECT + 58 * - + 66 AS col1 FROM tab0 AS cor0
----
-3828
-3828
-3828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - + col0 AS col0, 81 col0 FROM tab0 cor0
----
-225
81
-7569
81
-9409
81
query II rowsort
SELECT 98 * + col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
4508
23
6272
40
7350
58
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 27 >= + 25 + + - ( + 5 ) - - - col0
----
15
81
47
query I rowsort
SELECT + ( - - 15 ) AS col1 FROM tab0 AS cor0
----
15
15
15
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * - - col1 < 58 + + 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5584
SELECT SUM( + - col1 ) FROM tab1
----
-66
skipif mysql # not compatible
query I rowsort label-5584
SELECT SUM ( + - col1 ) FROM tab1
----
-66
query I rowsort
SELECT 63 * + col2 AS col1 FROM tab1
----
3717
4284
6048
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5586
SELECT CAST( - 18 AS SIGNED ) AS col2 FROM tab0
----
-18
-18
-18
skipif mysql # not compatible
query I rowsort label-5586
SELECT CAST ( - 18 AS INTEGER ) AS col2 FROM tab0
----
-18
-18
-18
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5588
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
9
query II rowsort
SELECT - - 11 * + + col2, - 56 AS col2 FROM tab1 WHERE NOT + - 44 / - col0 IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5590
SELECT + 15 + ( - - MAX( 35 ) ) AS col2 FROM tab2 WHERE NOT ( NOT - col2 * - CAST( - - col0 AS SIGNED ) IS NOT NULL )
----
50
skipif mysql # not compatible
query I rowsort label-5590
SELECT + 15 + ( - - MAX ( 35 ) ) AS col2 FROM tab2 WHERE NOT ( NOT - col2 * - CAST ( - - col0 AS INTEGER ) IS NOT NULL )
----
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 90 col1 FROM tab0 AS cor0
----
-9
43
80
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 50 * + col0 IS NULL
----
query I rowsort
SELECT - 21 + 77 + + - col2 + + col1 * + 30 AS col1 FROM tab0 AS cor0
----
-13
2439
676
query I rowsort
SELECT + 89 + col1 AS col1 FROM tab1 AS cor0
----
103
136
94
query I rowsort
SELECT DISTINCT + - 1 * 84 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT ALL 78 + 49 AS col2 FROM tab0 WHERE + col1 NOT IN ( col2 )
----
127
127
127
query I rowsort
SELECT col1 + - 5 FROM tab0
----
-4
16
76
query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1
----
38
38
38
onlyif mysql # DIV for integer division:
query I rowsort label-5600
SELECT DISTINCT - col0 DIV 43 AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - col0 / 43 AS col2 FROM tab2
----
-1
query I rowsort
SELECT ALL + 83 * col1 FROM tab2
----
4233
5561
6391
onlyif mysql # aggregate syntax:
query I rowsort label-5602
SELECT + COUNT( DISTINCT ( col2 ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5602
SELECT + COUNT ( DISTINCT ( col2 ) ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5603
SELECT SUM( + col2 ) FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-5603
SELECT SUM ( + col2 ) FROM tab0
----
156
query I rowsort
SELECT + col1 + - ( + 5 ) FROM tab1
----
0
42
9
query I rowsort
SELECT - col0 + col0 * col2 AS col2 FROM tab0
----
690
783
9506
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IN ( - 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 72 ) col1 FROM tab0
----
72
72
72
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5608
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab0 WHERE 65 IS NULL
----
skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 WHERE 65 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5609
SELECT 2 - ( - MIN( ALL 47 ) ) FROM tab1
----
49
skipif mysql # not compatible
query I rowsort label-5609
SELECT 2 - ( - MIN ( ALL 47 ) ) FROM tab1
----
49
query I rowsort
SELECT ALL col0 + + 35 AS col1 FROM tab0
----
122
132
50
query I rowsort
SELECT + col2 - + col1 * - col1 FROM tab0
----
100
451
6608
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5612
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( col1 + - col0 ) BETWEEN ( + col1 ) AND 61 + CAST( col1 AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE ( col1 + - col0 ) BETWEEN ( + col1 ) AND 61 + CAST ( col1 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5613
SELECT COUNT( * ) + + ( + COUNT( * ) + 69 * 17 ) AS col1 FROM tab2
----
1179
skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( * ) + + ( + COUNT ( * ) + 69 * 17 ) AS col1 FROM tab2
----
1179
query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( - 45 * 93 ) NOT IN ( + 57 )
----
1
21
81
query I rowsort
SELECT + ( - 69 ) * + 8 FROM tab0
----
-552
-552
-552
query III rowsort
SELECT * FROM tab0 WHERE col2 BETWEEN col0 AND ( 64 )
----
15
81
47
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5617
SELECT ALL COUNT( * ) DIV - 46 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL COUNT ( * ) / - 46 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5618
SELECT 81 + + MAX( ALL + 58 - - col1 ) * + 48 FROM tab1
----
5121
skipif mysql # not compatible
query I rowsort label-5618
SELECT 81 + + MAX ( ALL + 58 - - col1 ) * + 48 FROM tab1
----
5121
onlyif mysql # DIV for integer division:
query I rowsort label-5619
SELECT ALL + ( col0 ) DIV 26 AS col0 FROM tab2
----
1
2
2
skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + ( col0 ) / 26 AS col0 FROM tab2
----
1
2
2
onlyif mysql # aggregate syntax:
query I rowsort label-5620
SELECT ALL + 96 + COUNT( DISTINCT col0 - 71 ) FROM tab1 WHERE NOT 74 + - 56 * 65 IS NOT NULL
----
96
skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + 96 + COUNT ( DISTINCT col0 - 71 ) FROM tab1 WHERE NOT 74 + - 56 * 65 IS NOT NULL
----
96
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 / + col1 ) <> + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5624
SELECT * FROM tab0 WHERE - CAST( + 58 AS SIGNED ) * - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-5624
SELECT * FROM tab0 WHERE - CAST ( + 58 AS INTEGER ) * - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5625
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 8 * + col2 ) NOT BETWEEN CAST( + col1 AS SIGNED ) + col2 AND NULL
----
skipif mysql # not compatible
query III rowsort label-5625
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 8 * + col2 ) NOT BETWEEN CAST ( + col1 AS INTEGER ) + col2 AND NULL
----
query I rowsort
SELECT - 47 FROM tab1 WHERE 90 * col1 IS NOT NULL
----
-47
-47
-47
onlyif mysql # aggregate syntax:
query I rowsort label-5627
SELECT ALL COUNT( * ) FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL COUNT ( * ) FROM tab0 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-5628
SELECT MIN( + col2 ) * 49 AS col1 FROM tab0 WHERE NOT ( - 10 ) = ( - col2 )
----
2303
skipif mysql # not compatible
query I rowsort label-5628
SELECT MIN ( + col2 ) * 49 AS col1 FROM tab0 WHERE NOT ( - 10 ) = ( - col2 )
----
2303
query I rowsort
SELECT ALL 38 + 48 * - 92 FROM tab1 WHERE + 62 IS NULL
----
query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 WHERE + 96 NOT IN ( - col0 )
----
92
onlyif mysql # aggregate syntax:
query I rowsort label-5631
SELECT ALL 94 * - COUNT( * ) FROM tab1
----
-282
skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL 94 * - COUNT ( * ) FROM tab1
----
-282
query I rowsort
SELECT ALL col1 * + 37 AS col0 FROM tab0 WHERE NULL IS NULL
----
2997
37
777
query I rowsort
SELECT + - 21 * 16 AS col1 FROM tab1 AS cor0
----
-336
-336
-336
onlyif mysql # aggregate syntax:
query I rowsort label-5634
SELECT ALL - COUNT( 13 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - COUNT ( 13 ) FROM tab0 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 col2 FROM tab1 AS cor0
----
-4896
-5015
-6188
query I rowsort
SELECT ALL + - col2 * - 88 AS col2 FROM tab1 AS cor0
----
5192
5984
8448
query I rowsort
SELECT ALL + col0 * + col2 + - col2 * col2 FROM tab0 WHERE NOT + 7 >= - col1 + 43 * col1
----
-1504
-198
770
query I rowsort
SELECT - col2 + - 12 * - 4 FROM tab2
----
-10
25
8
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5639
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( - col0 + col2 * - CAST( NULL AS DECIMAL ) ) NOT BETWEEN + col2 AND NULL
----
skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( - col0 + col2 * - CAST ( NULL AS REAL ) ) NOT BETWEEN + col2 AND NULL
----
query I rowsort
SELECT ALL + ( + - col0 ) AS col2 FROM tab1
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-5641
SELECT + ( COUNT( * ) ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-5641
SELECT + ( COUNT ( * ) ) AS col1 FROM tab0
----
3
query I rowsort
SELECT - 82 AS col0 FROM tab0
----
-82
-82
-82
onlyif mysql # aggregate syntax:
query I rowsort label-5643
SELECT DISTINCT COUNT( + col1 ) + COUNT( * ) AS col1 FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT COUNT ( + col1 ) + COUNT ( * ) AS col1 FROM tab2
----
6
onlyif mysql # DIV for integer division:
query I rowsort label-5644
SELECT DISTINCT + 67 + col2 + 30 DIV - 25 FROM tab2
----
106
124
89
skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + 67 + col2 + 30 / - 25 FROM tab2
----
106
124
89
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5645
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * CAST( 17 AS SIGNED ) BETWEEN ( + col1 + - col2 ) AND NULL
----
15
81
47
87
21
10
skipif mysql # not compatible
query III rowsort label-5645
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * CAST ( 17 AS INTEGER ) BETWEEN ( + col1 + - col2 ) AND NULL
----
15
81
47
87
21
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5646
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + ( - + 38 ) AS col2 FROM tab1
----
-38
-38
-38
query I rowsort
SELECT DISTINCT + ( + - col2 ) FROM tab2
----
-23
-40
-58
query I rowsort
SELECT DISTINCT 76 + + + col0 + 27 FROM tab0 AS cor0
----
118
190
200
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
query I rowsort
SELECT ALL + col2 + 56 AS col1 FROM tab0 cor0
----
103
155
66
query I rowsort
SELECT DISTINCT col0 + - - ( + col1 ) FROM tab2 AS cor0
----
141
142
97
query I rowsort
SELECT DISTINCT + 84 - + - col0 AS col2 FROM tab1 AS cor0
----
135
169
175
query I rowsort
SELECT DISTINCT - + 30 + - + col1 * - 70 FROM tab2 AS cor0
----
3540
4660
5360
onlyif mysql # aggregate syntax:
query I rowsort label-5655
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 73 IS NOT NULL
----
9
skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE - 73 IS NOT NULL
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5656
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + SUM( ALL col1 ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + SUM ( ALL col1 ) FROM tab0
----
NULL
query I rowsort
SELECT col0 + 1 FROM tab2
----
47
65
76
query I rowsort
SELECT 62 + col0 FROM tab0
----
149
159
77
onlyif mysql # aggregate syntax:
query I rowsort label-5659
SELECT COUNT( * ) * 73 AS col1 FROM tab2 WHERE + - 11 / - col1 NOT IN ( + col2 )
----
219
skipif mysql # not compatible
query I rowsort label-5659
SELECT COUNT ( * ) * 73 AS col1 FROM tab2 WHERE + - 11 / - col1 NOT IN ( + col2 )
----
219
query I rowsort
SELECT col1 * col1 * + ( col2 ) + col0 AS col1 FROM tab2
----
237224
260437
59869
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + - 0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5663
SELECT ALL - - MIN( + col2 ) col0 FROM tab2 cor0
----
23
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5663
SELECT ALL - - MIN ( + col2 ) col0 FROM tab2 cor0
----
23
query I rowsort
SELECT ALL - 58 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 77 ) + + 49 col0 FROM tab2 cor0 WHERE ( + col0 ) > NULL
----
query I rowsort
SELECT DISTINCT - - col2 + col2 - + - 60 AS col0 FROM tab0 AS cor0
----
154
258
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5667
SELECT DISTINCT - col0 + + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - col0 + + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-5668
SELECT ALL - ( + col1 ) DIV - col2 + - col0 FROM tab2
----
-44
-63
-74
skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL - ( + col1 ) / - col2 + - col0 FROM tab2
----
-44
-63
-74
onlyif mysql # aggregate syntax:
query I rowsort label-5669
SELECT MAX( col1 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-5669
SELECT MAX ( col1 ) FROM tab2
----
77
onlyif mysql # aggregate syntax:
query I rowsort label-5670
SELECT - COUNT( ALL - + col0 ) + SUM( + col2 + ( + 0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
220
skipif mysql # not compatible
query I rowsort label-5670
SELECT - COUNT ( ALL - + col0 ) + SUM ( + col2 + ( + 0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
220
query I rowsort
SELECT 15 * - ( - + col2 ) AS col2 FROM tab2
----
345
600
870
onlyif mysql # aggregate syntax:
query I rowsort label-5672
SELECT COUNT( + col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( + col2 ) FROM tab2
----
3
query I rowsort
SELECT 64 * - 77 * - 41 FROM tab0
----
202048
202048
202048
onlyif mysql # aggregate syntax:
query I rowsort label-5674
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE ( 35 ) >= + 95
----
0
skipif mysql # not compatible
query I rowsort label-5674
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE ( 35 ) >= + 95
----
0
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT ( NULL ) >= 38
----
onlyif mysql # aggregate syntax:
query I rowsort label-5676
SELECT ALL + 9 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + 9 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27
query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT NULL < 79 + col2 * - col2
----
query I rowsort
SELECT DISTINCT ( + - 65 ) FROM tab1 cor0
----
-65
query II rowsort
SELECT DISTINCT 23 AS col2, col1 * - - 82 * - col1 + - + col2 FROM tab1
----
23
-16168
23
-181206
23
-2109
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( 94 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 < ( NULL )
----
onlyif mysql # DIV for integer division:
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) < + col1 + col2 DIV 67
----
15
81
47
87
21
10
skipif mysql # not compatible
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) < + col1 + col2 / 67
----
15
81
47
87
21
10
onlyif mysql # aggregate syntax:
query I rowsort label-5684
SELECT + 98 * - ( - SUM( col2 ) ) AS col0 FROM tab0 AS cor0
----
15288
skipif mysql # not compatible
query I rowsort label-5684
SELECT + 98 * - ( - SUM ( col2 ) ) AS col0 FROM tab0 AS cor0
----
15288
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 45 + - - col1 / - col2 * + 3 )
----
query I rowsort
SELECT - 88 * + + 93 FROM tab0 AS cor0
----
-8184
-8184
-8184
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 98 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-5688
SELECT 20 AS col1, + col1 DIV col1 AS col0 FROM tab2
----
20
1
20
1
20
1
skipif mysql # not compatible
query II rowsort label-5688
SELECT 20 AS col1, + col1 / col1 AS col0 FROM tab2
----
20
1
20
1
20
1
onlyif mysql # aggregate syntax:
query I rowsort label-5689
SELECT + MAX( + - col1 ) AS col2 FROM tab1
----
-5
skipif mysql # not compatible
query I rowsort label-5689
SELECT + MAX ( + - col1 ) AS col2 FROM tab1
----
-5
query I rowsort
SELECT DISTINCT + col1 + - - col1 - col2 FROM tab0 WHERE NOT ( - col2 ) = + col0
----
-97
115
32
query II rowsort
SELECT ALL - 27, col0 FROM tab2
----
-27
46
-27
64
-27
75
query I rowsort
SELECT + col2 * + 63 + 17 + col1 FROM tab0 cor0
----
3059
6255
668
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + + col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5694
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5694
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1
----
3
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-5695
SELECT ALL - CAST( - col2 AS SIGNED ) * 19 + + - col1 DIV col1 FROM tab2
----
1101
436
759
skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - CAST ( - col2 AS INTEGER ) * 19 + + - col1 / col1 FROM tab2
----
1101
436
759
onlyif mysql # aggregate syntax:
query I rowsort label-5696
SELECT + COUNT( * ) + 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
98
skipif mysql # not compatible
query I rowsort label-5696
SELECT + COUNT ( * ) + 89 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
98
query I rowsort
SELECT ALL + - col1 * + + col1 * + col0 FROM tab1 AS cor0
----
-201019
-2125
-9996
query III rowsort
SELECT - 89 - - + col2, + col2 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to 3ac10f91eec751caf779bc87378520a4
query I rowsort
SELECT + 94 + 50 - - + col2 * - - col0 AS col2 FROM tab0 AS cor0
----
1014
849
9747
onlyif mysql # aggregate syntax:
query I rowsort label-5700
SELECT ALL - + SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199
skipif mysql # not compatible
query I rowsort label-5700
SELECT ALL - + SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199
query I rowsort
SELECT DISTINCT + col0 + - + 37 FROM tab2 AS cor0
----
27
38
9
query I rowsort
SELECT DISTINCT - col2 * 63 + - col0 AS col2 FROM tab1 AS cor0 WHERE ( NOT + col2 IS NOT NULL )
----
query I rowsort
SELECT DISTINCT + 33 * + + col2 * - ( 88 ) * - col0 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14217984
14563560
17969952
onlyif mysql # aggregate syntax:
query I rowsort label-5704
SELECT DISTINCT COUNT( * ) col0 FROM tab0 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5704
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 cor0
----
3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-5706
SELECT ALL 96 DIV col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL 96 / col2 FROM tab1
----
1
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-5707
SELECT 85 * - - ( MIN( - - col1 ) ) FROM tab2
----
4335
skipif mysql # not compatible
query I rowsort label-5707
SELECT 85 * - - ( MIN ( - - col1 ) ) FROM tab2
----
4335
query II rowsort
SELECT col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67
onlyif mysql # aggregate syntax:
query I rowsort label-5709
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
-5
skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-5710
SELECT - SUM( - col0 ) AS col0 FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-5710
SELECT - SUM ( - col0 ) AS col0 FROM tab0
----
199
query I rowsort
SELECT DISTINCT - 49 + + col0 AS col1 FROM tab0 WHERE NULL NOT IN ( 5 )
----
query I rowsort
SELECT DISTINCT 8 * + - col2 AS col1 FROM tab2
----
-184
-320
-464
onlyif mysql # aggregate syntax:
query I rowsort label-5713
SELECT 33 * - COUNT( * ) FROM tab0
----
-99
skipif mysql # not compatible
query I rowsort label-5713
SELECT 33 * - COUNT ( * ) FROM tab0
----
-99
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + + col1 >= - col2 * - - 46 + 40
----
query I rowsort
SELECT ALL + + col2 * + - col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + col2 + - - 69 IS NULL
----
query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81
query I rowsort
SELECT ( - - 26 ) AS col2 FROM tab0 AS cor0
----
26
26
26
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * - ( - col1 ) + col2 )
----
query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
17
onlyif mysql # aggregate syntax:
query I rowsort label-5721
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-5721
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # aggregate syntax:
query II rowsort label-5722
SELECT ALL 2 + + COUNT( * ) col0, 14 FROM tab0
----
5
14
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5722
SELECT ALL 2 + + COUNT ( * ) col0, 14 FROM tab0
----
5
14
query I rowsort
SELECT - 15 * - col2 FROM tab2
----
345
600
870
onlyif mysql # aggregate syntax:
query I rowsort label-5724
SELECT 9 * SUM( ALL + + col2 ) FROM tab1
----
2007
skipif mysql # not compatible
query I rowsort label-5724
SELECT 9 * SUM ( ALL + + col2 ) FROM tab1
----
2007
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5725
SELECT + col1 + + 75 + CAST( NULL AS SIGNED ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5725
SELECT + col1 + + 75 + CAST ( NULL AS INTEGER ) * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT 66 * - col1 NOT BETWEEN + + 99 AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query III rowsort label-5727
SELECT DISTINCT + 51 * CAST( NULL AS SIGNED ) + + COUNT( * ) + - - COUNT( + 84 ) AS col0, MAX( DISTINCT + - 72 ) AS col1, + 95 AS col2 FROM tab2 cor0
----
NULL
-72
95
skipif mysql # not compatible
query III rowsort label-5727
SELECT DISTINCT + 51 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - - COUNT ( + 84 ) AS col0, MAX ( DISTINCT + - 72 ) AS col1, + 95 AS col2 FROM tab2 cor0
----
NULL
-72
95
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < + - 29 + + + 68
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE - 78 NOT BETWEEN + CAST( NULL AS SIGNED ) * - ( - - col0 ) AND + col2
----
skipif mysql # not compatible
query III rowsort label-5729
SELECT * FROM tab0 AS cor0 WHERE - 78 NOT BETWEEN + CAST ( NULL AS INTEGER ) * - ( - - col0 ) AND + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + - col2 col0 FROM tab1 AS cor0
----
-144
-147
-159
query I rowsort
SELECT + 16 * col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5732
SELECT DISTINCT + - 68 + + 3 * + COUNT( * ) FROM tab0 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + - 68 + + 3 * + COUNT ( * ) FROM tab0 AS cor0
----
-59
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 / + + col1 + - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5734
SELECT + 67 DIV + COUNT( * ) col0 FROM tab0
----
22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5734
SELECT + 67 / + COUNT ( * ) col0 FROM tab0
----
22
query I rowsort
SELECT DISTINCT + col2 * - 97 + + col0 FROM tab2
----
-2185
-3816
-5551
onlyif mysql # aggregate syntax:
query I rowsort label-5736
SELECT ALL + ( SUM( + col1 ) ) FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + ( SUM ( + col1 ) ) FROM tab1
----
66
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5737
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col1 FROM tab0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5737
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
3
query II rowsort
SELECT ALL - 6, col0 * + 60 AS col1 FROM tab1
----
-6
3060
-6
5100
-6
5460
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 72 FROM tab0
----
1
72
21
72
81
72
query I rowsort
SELECT ALL ( 76 ) FROM tab2
----
76
76
76
onlyif mysql # aggregate syntax:
query I rowsort label-5741
SELECT - COUNT( * ) * COUNT( DISTINCT - col0 ) FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-5741
SELECT - COUNT ( * ) * COUNT ( DISTINCT - col0 ) FROM tab0
----
-9
onlyif mysql # DIV for integer division:
query I rowsort label-5742
SELECT - + 22 DIV - 70 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5742
SELECT - + 22 / - 70 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # DIV for integer division:
query I rowsort label-5743
SELECT - col2 DIV - 34 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-5743
SELECT - col2 / - 34 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( col2 + col2 / - + 30 * - - 40 )
----
query II rowsort
SELECT DISTINCT + 94 + - - col1 + - + 55, + col2 AS col2 FROM tab1 AS cor0
----
44
59
53
96
86
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 col0 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
75
query III rowsort
SELECT * FROM tab0 WHERE + - col0 + + col1 IS NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-5748
SELECT col0 DIV col1 + - 14 * + col0, col2 FROM tab0
----
-1214
10
-1261
99
-210
47
skipif mysql # not compatible
query II rowsort label-5748
SELECT col0 / col1 + - 14 * + col0, col2 FROM tab0
----
-1214
10
-1261
99
-210
47
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5749
SELECT DISTINCT CAST( + SUM( - CAST( - - 89 AS SIGNED ) ) AS SIGNED ), SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-267
121
skipif mysql # not compatible
query II rowsort label-5749
SELECT DISTINCT CAST ( + SUM ( - CAST ( - - 89 AS INTEGER ) ) AS INTEGER ), SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-267
121
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5751
SELECT DISTINCT COUNT( * ) * 60 FROM tab1 AS cor0
----
180
skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT COUNT ( * ) * 60 FROM tab1 AS cor0
----
180
onlyif mysql # aggregate syntax:
query I rowsort label-5752
SELECT ALL - MAX( DISTINCT - + col1 ) * - 9 AS col0 FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL - MAX ( DISTINCT - + col1 ) * - 9 AS col0 FROM tab0 AS cor0
----
-9
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-5753
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL ) * + + 3 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL COUNT ( * ) * + CAST ( NULL AS REAL ) * + + 3 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5754
SELECT ALL 9 * COUNT( * ) AS col1 FROM tab0 WHERE ( NULL < col0 )
----
0
skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL 9 * COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL < col0 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5755
SELECT COUNT( * ) AS col2 FROM tab0, tab0 cor0
----
9
skipif mysql # not compatible
query I rowsort label-5755
SELECT COUNT ( * ) AS col2 FROM tab0, tab0 cor0
----
9
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <= + col1 )
----
query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 4 * - 60 <= NULL
----
query I rowsort
SELECT ALL - col0 * - + 81 FROM tab2 AS cor0
----
3726
5184
6075
query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab0
----
10
10
47
47
99
99
query III rowsort
SELECT * FROM tab2 cor0 WHERE 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5762
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5762
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-5763
SELECT + COUNT( * ) AS col1, + 40 + 80 AS col2 FROM tab1 AS cor0
----
3
120
skipif mysql # not compatible
query II rowsort label-5763
SELECT + COUNT ( * ) AS col1, + 40 + 80 AS col2 FROM tab1 AS cor0
----
3
120
onlyif mysql # aggregate syntax:
query I rowsort label-5764
SELECT - COUNT( ALL ( - ( 86 ) ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5764
SELECT - COUNT ( ALL ( - ( 86 ) ) ) FROM tab1 AS cor0
----
-3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + 3 NOT BETWEEN - col2 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 IS NOT NULL
----
query II rowsort
SELECT - col0 + col2 AS col0, 24 AS col1 FROM tab1
----
-23
24
-26
24
45
24
onlyif mysql # aggregate syntax:
query I rowsort label-5768
SELECT 0 * + ( + + COUNT( * ) ) * - 93 + 43 FROM tab1
----
43
skipif mysql # not compatible
query I rowsort label-5768
SELECT 0 * + ( + + COUNT ( * ) ) * - 93 + 43 FROM tab1
----
43
query I rowsort
SELECT - col0 * + col2 + col2 FROM tab0
----
-658
-860
-9504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col2 FROM tab2 WHERE + - col0 IS NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5771
SELECT - + MAX( ALL - col0 ) DIV + 10 AS col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5771
SELECT - + MAX ( ALL - col0 ) / + 10 AS col2 FROM tab0 AS cor0
----
1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 30 / + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 NOT BETWEEN 26 AND NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5774
SELECT DISTINCT - col2 * col0 * - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT - col2 * col0 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + 22 + 28 + - col1 * + col1 ) OR NULL > 70 * + col0 + - col2 + - - col0
----
query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5777
SELECT ALL + MIN( ALL - + 99 ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
-297
skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL + MIN ( ALL - + 99 ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-297
query I rowsort
SELECT col2 + + col2 FROM tab1 WHERE NOT + col1 < + col2 * 4
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col0 FROM tab1 WHERE col2 - - - col2 + 81 IS NOT NULL
----
23
23
23
onlyif mysql # aggregate syntax:
query II rowsort label-5780
SELECT ALL - COUNT( * ), 6 AS col1 FROM tab2
----
-3
6
skipif mysql # not compatible
query II rowsort label-5780
SELECT ALL - COUNT ( * ), 6 AS col1 FROM tab2
----
-3
6
query I rowsort
SELECT ALL + ( + 47 ) * + col0 FROM tab1
----
2397
3995
4277
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5782
SELECT COUNT( ALL - ( + - CAST( + - col2 AS SIGNED ) ) ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5782
SELECT COUNT ( ALL - ( + - CAST ( + - col2 AS INTEGER ) ) ) FROM tab1
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5783
SELECT - col1 + - col0 FROM tab0 WHERE NOT ( + - CAST( + col2 AS DECIMAL ) ) IS NOT NULL AND NOT ( - - col1 ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-5783
SELECT - col1 + - col0 FROM tab0 WHERE NOT ( + - CAST ( + col2 AS REAL ) ) IS NOT NULL AND NOT ( - - col1 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5784
SELECT MAX( + - ( col1 ) ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5784
SELECT MAX ( + - ( col1 ) ) FROM tab0
----
-1
query I rowsort
SELECT ALL 19 FROM tab2 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT col1 * - 89 AS col2 FROM tab2
----
-4539
-5963
-6853
query III rowsort
SELECT * FROM tab0 WHERE NOT + 63 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - ( 67 ) FROM tab1
----
-67
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + - 59 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + col2 * + col1 + + ( - col1 ) FROM tab0 AS cor0
----
189
3726
98
query I rowsort
SELECT DISTINCT + 13 + - col0 AS col2 FROM tab2 AS cor0
----
-33
-51
-62
query I rowsort
SELECT - 98 * + 42 - + + col2 + + col1 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT 60 < - 47
----
-1076
-288
-2966
query I rowsort
SELECT DISTINCT ( + col0 ) * + 11 + col0 * + 94 AS col0 FROM tab0
----
10185
1575
9135
onlyif mysql # aggregate syntax:
query I rowsort label-5794
SELECT DISTINCT + 88 * + MAX( - - col2 ) AS col1 FROM tab1
----
8448
skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + 88 * + MAX ( - - col2 ) AS col1 FROM tab1
----
8448
query I rowsort
SELECT DISTINCT col0 + + col2 + 34 * - + col2 FROM tab2
----
-1256
-1839
-713
query I rowsort
SELECT ALL - 55 * - - 5 * - col1 AS col0 FROM tab0
----
22275
275
5775
onlyif mysql # DIV for integer division:
query I rowsort label-5797
SELECT + col1 DIV 40 DIV + col0 + col2 * - 46 FROM tab0 AS cor0
----
-2162
-4554
-460
skipif mysql # not compatible
query I rowsort label-5797
SELECT + col1 / 40 / + col0 + col2 * - 46 FROM tab0 AS cor0
----
-2162
-4554
-460
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5798
SELECT ALL - - col0 * - CAST( NULL AS SIGNED ) + + - 31 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - - col0 * - CAST ( NULL AS INTEGER ) + + - 31 FROM tab2 cor0
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( - col2 + - col0 + - col1 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5800
SELECT ALL - 72 DIV + COUNT( * ) AS col0 FROM tab0
----
-24
skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL - 72 / + COUNT ( * ) AS col0 FROM tab0
----
-24
onlyif mysql # aggregate syntax:
query I rowsort label-5801
SELECT COUNT( DISTINCT + - col1 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-5801
SELECT COUNT ( DISTINCT + - col1 ) AS col1 FROM tab2
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-5802
SELECT ALL col0 DIV 30 AS col2 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL col0 / 30 AS col2 FROM tab0
----
0
2
3
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + ( - col2 ) >= ( + col0 ) )
----
onlyif mysql # DIV for integer division:
query II rowsort label-5804
SELECT DISTINCT col1 AS col2, ( + - 35 ) DIV col1 FROM tab1
----
14
-2
47
0
5
-7
skipif mysql # not compatible
query II rowsort label-5804
SELECT DISTINCT col1 AS col2, ( + - 35 ) / col1 FROM tab1
----
14
-2
47
0
5
-7
query III rowsort
SELECT * FROM tab0 WHERE - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT 88 - + col0 + 89 FROM tab2
----
102
113
131
query II rowsort
SELECT DISTINCT + col2 + col2 * + 21 + + 15, - 10 * + col2 - + col1 - - col2 AS col2 FROM tab2 AS cor0
----
1291
-589
521
-258
895
-437
onlyif mysql # aggregate syntax:
query I rowsort label-5808
SELECT DISTINCT COUNT( col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 / - + col0, col2 )
----
0
skipif mysql # not compatible
query I rowsort label-5808
SELECT DISTINCT COUNT ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 / - + col0, col2 )
----
0
query I rowsort
SELECT 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # aggregate syntax:
query I rowsort label-5810
SELECT COUNT( * ) * + + 12 * - 24 FROM tab1
----
-864
skipif mysql # not compatible
query I rowsort label-5810
SELECT COUNT ( * ) * + + 12 * - 24 FROM tab1
----
-864
onlyif mysql # DIV for integer division:
query I rowsort label-5811
SELECT ALL col2 DIV + 37 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL col2 / + 37 FROM tab1
----
1
1
2
query I rowsort
SELECT 48 * - 58 AS col2 FROM tab2 cor0 WHERE NOT ( 85 IS NOT NULL )
----
query I rowsort
SELECT DISTINCT + + 27 AS col0 FROM tab0 AS cor0
----
27
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-5814
SELECT col0 + - 38 + - col2 * col2 FROM tab2 AS cor0 WHERE NOT - col2 <= CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query I rowsort label-5814
SELECT col0 + - 38 + - col2 * col2 FROM tab2 AS cor0 WHERE NOT - col2 <= CAST ( NULL AS REAL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5815
SELECT DISTINCT - + MIN( - 90 ) FROM tab1 AS cor0
----
90
skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT - + MIN ( - 90 ) FROM tab1 AS cor0
----
90
onlyif mysql # aggregate syntax:
query I rowsort label-5816
SELECT DISTINCT + + ( - + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT + + ( - + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT + ( col0 ) * 58 AS col1 FROM tab1 AS cor0
----
2958
4930
5278
onlyif mysql # aggregate syntax:
query I rowsort label-5818
SELECT + SUM( col2 ) * + - 1 FROM tab0
----
-156
skipif mysql # not compatible
query I rowsort label-5818
SELECT + SUM ( col2 ) * + - 1 FROM tab0
----
-156
onlyif mysql # aggregate syntax:
query I rowsort label-5819
SELECT - MAX( + + col2 ) AS col2 FROM tab1
----
-96
skipif mysql # not compatible
query I rowsort label-5819
SELECT - MAX ( + + col2 ) AS col2 FROM tab1
----
-96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5820
SELECT + 81 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5820
SELECT + 81 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 FROM tab1 WHERE ( - col2 ) NOT IN ( + + col2 * + col2, + ( col1 ), - col0 + - col1 )
----
59
68
96
query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab1
----
-59
59
-68
68
-96
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5823
SELECT + 78 + - + 56 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2778
-3674
-4234
skipif mysql # not compatible
query I rowsort label-5823
SELECT + 78 + - + 56 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2778
-3674
-4234
query I rowsort
SELECT ALL + ( - 4 ) FROM tab0 AS cor0
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + - 76 col2 FROM tab0 AS cor0
----
-35
-35
-35
onlyif mysql # aggregate syntax:
query I rowsort label-5826
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query I rowsort
SELECT DISTINCT + 5 + - - col0 FROM tab0 AS cor0
----
102
20
92
query I rowsort
SELECT + col0 - ( + - col1 ) FROM tab2 AS cor0
----
141
142
97
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= + col1
----
query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5831
SELECT - SUM( + col0 ) + + MIN( + 61 ) * + COUNT( * ) FROM tab1 cor0
----
-44
skipif mysql # not compatible
query I rowsort label-5831
SELECT - SUM ( + col0 ) + + MIN ( + 61 ) * + COUNT ( * ) FROM tab1 cor0
----
-44
query I rowsort
SELECT ALL + col2 - - col0 * col1 FROM tab0 AS cor0
----
1262
1837
196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + - 35 * - col1 col2 FROM tab0 AS cor0
----
-54
2746
646
query I rowsort
SELECT + col2 + col1 * + - col1 AS col2 FROM tab1
----
-100
-2141
34
query I rowsort
SELECT ALL - 94 * 56 + - col2 AS col0 FROM tab0
----
-5274
-5311
-5363
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5837
SELECT ALL CAST( + 18 AS SIGNED ) FROM tab1
----
18
18
18
skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL CAST ( + 18 AS INTEGER ) FROM tab1
----
18
18
18
query III rowsort
SELECT ALL * FROM tab2 WHERE 32 BETWEEN NULL AND + 41
----
query I rowsort
SELECT DISTINCT col2 - + col1 * + + 91 AS col0 FROM tab1
----
-1178
-396
-4209
query I rowsort
SELECT ( - + col1 ) + + - col1 FROM tab1
----
-10
-28
-94
query I rowsort
SELECT ALL + col1 * + + 1 - - col1 FROM tab0
----
162
2
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 col2 FROM tab2
----
-68
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5843
SELECT DISTINCT - + MIN( - col0 ) DIV - COUNT( * ) + 85 FROM tab1 AS cor0
----
55
skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - + MIN ( - col0 ) / - COUNT ( * ) + 85 FROM tab1 AS cor0
----
55
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5844
SELECT ALL + + SUM( + + col0 ) * + MIN( + + col2 ) FROM tab1 AS cor0 WHERE NOT col0 + + CAST( + col0 AS SIGNED ) IS NULL
----
13393
skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + + SUM ( + + col0 ) * + MIN ( + + col2 ) FROM tab1 AS cor0 WHERE NOT col0 + + CAST ( + col0 AS INTEGER ) IS NULL
----
13393
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col2, col0 * + col1 AS col2 FROM tab0
----
-10
1827
-47
1215
-99
97
onlyif mysql # aggregate syntax:
query I rowsort label-5846
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 58 col2, 86 AS col2 FROM tab1 AS cor0
----
58
86
58
86
58
86
query I rowsort
SELECT col2 / + + col0 + - ( col1 ) AS col1 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query II rowsort
SELECT ALL - col0, + 38 AS col0 FROM tab0 cor0
----
-15
38
-87
38
-97
38
onlyif mysql # aggregate syntax:
query I rowsort label-5850
SELECT - + MIN( - col1 ) + COUNT( * ) col2 FROM tab1 AS cor0
----
50
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5850
SELECT - + MIN ( - col1 ) + COUNT ( * ) col2 FROM tab1 AS cor0
----
50
onlyif mysql # aggregate syntax:
query I rowsort label-5851
SELECT DISTINCT + ( - - COUNT( * ) ) FROM tab0 cor0
----
3
skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + ( - - COUNT ( * ) ) FROM tab0 cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5852
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 31 NOT BETWEEN 41 / + col2 - + CAST( col2 AS SIGNED ) * - col1 AND col0 + col0
----
0
skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 31 NOT BETWEEN 41 / + col2 - + CAST ( col2 AS INTEGER ) * - col1 AND col0 + col0
----
0
query I rowsort
SELECT DISTINCT 18 + - 83 AS col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5854
SELECT ALL ( + + COUNT( * ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5854
SELECT ALL ( + + COUNT ( * ) ) AS col1 FROM tab1
----
3
query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab0
----
15
87
97
onlyif mysql # DIV for integer division:
query I rowsort label-5856
SELECT + col1 DIV + 67 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5856
SELECT + col1 / + 67 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 col1 FROM tab0
----
-76
-76
-76
query II rowsort
SELECT ALL ( - col0 ), + col1 FROM tab2
----
-46
51
-64
77
-75
67
query II rowsort
SELECT DISTINCT + - 44 + + col0, - col0 AS col0 FROM tab2 AS cor0
----
2
-46
20
-64
31
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5860
SELECT - ( - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-5860
SELECT - ( - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46
64
75
onlyif mysql # DIV for integer division:
query I rowsort label-5861
SELECT - 10 DIV 85 + - - 43 AS col0 FROM tab0
----
43
43
43
skipif mysql # not compatible
query I rowsort label-5861
SELECT - 10 / 85 + - - 43 AS col0 FROM tab0
----
43
43
43
query II rowsort
SELECT ALL + - col1, 84 AS col1 FROM tab0 WHERE NOT + ( - 5 ) IS NULL
----
-1
84
-21
84
-81
84
onlyif mysql # aggregate syntax:
query I rowsort label-5863
SELECT ALL SUM( + col0 ) + - 32 AS col1 FROM tab0 AS cor0
----
167
skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL SUM ( + col0 ) + - 32 AS col1 FROM tab0 AS cor0
----
167
query I rowsort
SELECT - col1 * 3 + - 22 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-175
-223
-253
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5865
SELECT ALL ( COUNT( * ) ) + + ( - - 30 ) + + + ( + COUNT( * ) ) DIV - + 96 AS col0 FROM tab1 AS cor0
----
33
skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL ( COUNT ( * ) ) + + ( - - 30 ) + + + ( + COUNT ( * ) ) / - + 96 AS col0 FROM tab1 AS cor0
----
33
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5866
SELECT + CAST( - - SUM( ALL + - col1 ) AS SIGNED ) FROM tab1 cor0
----
-66
skipif mysql # not compatible
query I rowsort label-5866
SELECT + CAST ( - - SUM ( ALL + - col1 ) AS INTEGER ) FROM tab1 cor0
----
-66
query I rowsort
SELECT DISTINCT - col2 * - col1 - col2 FROM tab0
----
0
200
3760
query I rowsort
SELECT ALL 37 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5869
SELECT ALL SUM( 57 ) col0 FROM tab0
----
171
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5869
SELECT ALL SUM ( 57 ) col0 FROM tab0
----
171
onlyif mysql # DIV for integer division:
query I rowsort label-5870
SELECT DISTINCT col1 DIV 47 * - col0 * - - col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-420784
0
skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT col1 / 47 * - col0 * - - col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-420784
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5871
SELECT ALL + + CAST( NULL AS SIGNED ) * - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-5872
SELECT DISTINCT - + ( + 80 ) DIV col1 FROM tab1 cor0
----
-1
-16
-5
skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - + ( + 80 ) / col1 FROM tab1 cor0
----
-1
-16
-5
onlyif mysql # aggregate syntax:
query I rowsort label-5873
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col1 FROM tab1
----
3
query I rowsort
SELECT ALL - col1 + - + col0 FROM tab0 cor0
----
-108
-96
-98
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-5875
SELECT ( MAX( - 89 ) ) DIV - 94 AS col1 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-5875
SELECT ( MAX ( - 89 ) ) / - 94 AS col1 FROM tab1 cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-5876
SELECT + MAX( - + col1 ) FROM tab2 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-5876
SELECT + MAX ( - + col1 ) FROM tab2 AS cor0
----
-51
query III rowsort
SELECT * FROM tab2 WHERE + col2 * + 5 + - 84 - col0 + + col0 < + 71
----
46
51
23
onlyif mysql # aggregate syntax:
query I rowsort label-5878
SELECT COUNT( * ) * + 22 FROM tab0
----
66
skipif mysql # not compatible
query I rowsort label-5878
SELECT COUNT ( * ) * + 22 FROM tab0
----
66
query I rowsort
SELECT ALL - 49 * - + 18 AS col1 FROM tab1
----
882
882
882
query I rowsort
SELECT ALL col1 * - 3 FROM tab0
----
-243
-3
-63
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 64 * - + col0 IS NULL
----
query I rowsort
SELECT - col2 + + - ( + col1 ) * col1 FROM tab1 AS cor0
----
-2277
-292
-84
onlyif mysql # aggregate syntax:
query II rowsort label-5883
SELECT DISTINCT - + 15 AS col2, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-15
-3
skipif mysql # not compatible
query II rowsort label-5883
SELECT DISTINCT - + 15 AS col2, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-15
-3
query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-10
-47
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE + 81 / + col1 * col1 <= NULL
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col1
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5887
SELECT - 54 - - - CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-5887
SELECT - 54 - - - CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
NULL
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5888
SELECT + 59 - + CAST( - col2 AS SIGNED ) - + col0 AS col2 FROM tab1 AS cor0
----
104
33
36
skipif mysql # not compatible
query I rowsort label-5888
SELECT + 59 - + CAST ( - col2 AS INTEGER ) - + col0 AS col2 FROM tab1 AS cor0
----
104
33
36
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5889
SELECT ALL - col0 + CAST( - 42 AS SIGNED ) FROM tab2 AS cor0
----
-106
-117
-88
skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - col0 + CAST ( - 42 AS INTEGER ) FROM tab2 AS cor0
----
-106
-117
-88
onlyif mysql # aggregate syntax:
query I rowsort label-5890
SELECT + 64 + COUNT( * ) AS col2 FROM tab1 cor0
----
67
skipif mysql # not compatible
query I rowsort label-5890
SELECT + 64 + COUNT ( * ) AS col2 FROM tab1 cor0
----
67
onlyif mysql # aggregate syntax:
query I rowsort label-5891
SELECT DISTINCT - + COUNT( * ) + + - COUNT( * ) FROM tab0 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT - + COUNT ( * ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 * col1 col2 FROM tab1 AS cor0
----
1036
3478
370
query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - ( - 63 ) AS col2 FROM tab1
----
63
63
63
onlyif mysql # aggregate syntax:
query I rowsort label-5895
SELECT DISTINCT COUNT( * ) * + 24 FROM tab1
----
72
skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT COUNT ( * ) * + 24 FROM tab1
----
72
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5896
SELECT col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL
skipif mysql # not compatible
query II rowsort label-5896
SELECT col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL ) IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-5898
SELECT ALL - MIN( 15 ) FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL - MIN ( 15 ) FROM tab0
----
-15
onlyif mysql # aggregate syntax:
query I rowsort label-5899
SELECT DISTINCT - SUM( ALL - - 13 ) FROM tab0 AS cor0
----
-39
skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT - SUM ( ALL - - 13 ) FROM tab0 AS cor0
----
-39
onlyif mysql # DIV for integer division:
query I rowsort label-5900
SELECT 24 DIV col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5900
SELECT 24 / col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + + 4 AS col1 FROM tab0 cor0 WHERE NOT 75 / + 93 IS NULL
----
4
onlyif mysql # aggregate syntax:
query I rowsort label-5902
SELECT ALL COUNT( * ) col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5902
SELECT ALL COUNT ( * ) col2 FROM tab1 AS cor0
----
3
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - + 16 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT DISTINCT - 16 * + 64 FROM tab0
----
-1024
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-5907
SELECT + MAX( ALL - - 13 ), + 14 AS col1 FROM tab2 AS cor0
----
13
14
skipif mysql # not compatible
query II rowsort label-5907
SELECT + MAX ( ALL - - 13 ), + 14 AS col1 FROM tab2 AS cor0
----
13
14
query II rowsort
SELECT 12, + col0 FROM tab1 AS cor0
----
12
51
12
85
12
91
onlyif mysql # aggregate syntax:
query I rowsort label-5909
SELECT DISTINCT - COUNT( DISTINCT + 14 ) + + COUNT( * ) FROM tab1 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT - COUNT ( DISTINCT + 14 ) + + COUNT ( * ) FROM tab1 AS cor0
----
2
query I rowsort
SELECT ( 84 ) + + col2 AS col0 FROM tab0 AS cor0
----
131
183
94
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 = - - 28 + - - 83 + + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT + + 45 AS col2, col2 AS col2 FROM tab2 AS cor0
----
45
23
45
40
45
58
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-5915
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * - col1, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77
skipif mysql # not compatible
query II rowsort label-5915
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * - col1, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77
query II rowsort
SELECT DISTINCT col1 * + + 88, col2 FROM tab0
----
1848
10
7128
47
88
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * + col2 * 30 col0 FROM tab1
----
-30090
-34680
-48960
onlyif mysql # aggregate syntax:
query II rowsort label-5918
SELECT ALL + COUNT( * ) * - ( - + 43 ) AS col2, - ( - MAX( 66 ) ) col0 FROM tab2
----
129
66
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5918
SELECT ALL + COUNT ( * ) * - ( - + 43 ) AS col2, - ( - MAX ( 66 ) ) col0 FROM tab2
----
129
66
query III rowsort
SELECT * FROM tab2 WHERE + + 60 >= NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5920
SELECT DISTINCT + 6 DIV - - col0 col2 FROM tab1
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5920
SELECT DISTINCT + 6 / - - col0 col2 FROM tab1
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-5921
SELECT DISTINCT 2 DIV - + col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT 2 / - + col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT + col0 + - + col2 + + 88 FROM tab2
----
105
111
112
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> - 26
----
onlyif mysql # DIV for integer division:
query I rowsort label-5924
SELECT DISTINCT + - col1 DIV 51 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT + - col1 / 51 AS col2 FROM tab2 AS cor0
----
-1
query II rowsort
SELECT ALL + col2 + - 84, ( - 48 ) AS col2 FROM tab2 cor0
----
-26
-48
-44
-48
-61
-48
query I rowsort
SELECT + col1 + - + 22 FROM tab0
----
-1
-21
59
query I rowsort
SELECT - 75 * - 73 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 90d1a4eafb879e5088ffaaa02c7d5bc7
query II rowsort
SELECT + col1 + + 11 + 77 AS col2, col2 + + col2 AS col2 FROM tab0
----
109
20
169
94
89
198
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-5929
SELECT - COUNT( * ) + + ( 80 ) AS col0, COUNT( * ) / 17 + - 12 * + CAST( NULL AS SIGNED ) FROM tab1
----
77
NULL
skipif mysql # not compatible
query II rowsort label-5929
SELECT - COUNT ( * ) + + ( 80 ) AS col0, COUNT ( * ) / 17 + - 12 * + CAST ( NULL AS INTEGER ) FROM tab1
----
77
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5930
SELECT ALL + COUNT( DISTINCT + 47 ) FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL + COUNT ( DISTINCT + 47 ) FROM tab2 cor0
----
1
query I rowsort
SELECT + ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT DISTINCT + 65 * - 1 + + col1 * - 43 * + 82 FROM tab2 AS cor0 WHERE NOT col1 * col0 * 73 IS NULL
----
-179891
-236307
-271567
onlyif mysql # aggregate syntax:
query I rowsort label-5933
SELECT DISTINCT - MIN( + col2 ) FROM tab1 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - MIN ( + col2 ) FROM tab1 AS cor0
----
-59
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-5935
SELECT ALL - ( + - COUNT( * ) ) col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5935
SELECT ALL - ( + - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5936
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5936
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT + 54 - + - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + col2 - + col0 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + 5 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5940
SELECT DISTINCT - SUM( ALL col1 ) FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-5940
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab2 AS cor0
----
-195
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5941
SELECT - CAST( NULL AS SIGNED ) * col2 * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5941
SELECT - CAST ( NULL AS INTEGER ) * col2 * - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5942
SELECT + ( col0 ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5942
SELECT + ( col0 ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL = NULL )
----
query I rowsort
SELECT ALL + col1 * 6 FROM tab1 AS cor0
----
282
30
84
query I rowsort
SELECT - - 19 AS col0 FROM tab2 AS cor0
----
19
19
19
query II rowsort
SELECT DISTINCT + - col1 * + col2 + - + col2, + col1 * col0 AS col2 FROM tab2 cor0
----
-1196
2346
-3120
4928
-3944
5025
query II rowsort
SELECT ALL + 67, 3 + - ( 71 ) * - + col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-5948
SELECT ( + + COUNT( DISTINCT col2 ) ) FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-5948
SELECT ( + + COUNT ( DISTINCT col2 ) ) FROM tab1 AS cor0 WHERE 14 IS NOT NULL
----
3
onlyif mysql # DIV for integer division:
query II rowsort label-5949
SELECT ALL + - col2 * + - 65 + + - 93 + + col1 DIV + + 36, + col0 AS col0 FROM tab1 AS cor0
----
3742
85
4328
91
6147
51
skipif mysql # not compatible
query II rowsort label-5949
SELECT ALL + - col2 * + - 65 + + - 93 + + col1 / + + 36, + col0 AS col0 FROM tab1 AS cor0
----
3742
85
4328
91
6147
51
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col2 * - col2 < + + 19 + + 56 * 89
----
query I rowsort
SELECT ALL + ( col1 ) * - 21 - col2 FROM tab0 AS cor0
----
-120
-1748
-451
onlyif mysql # aggregate syntax:
query I rowsort label-5952
SELECT DISTINCT + 73 * + COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
216
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5952
SELECT DISTINCT + 73 * + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
216
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5953
SELECT + COUNT( * ) FROM tab0 WHERE + - CAST( - + 44 AS SIGNED ) = - + 78 + - 4 * 26
----
0
skipif mysql # not compatible
query I rowsort label-5953
SELECT + COUNT ( * ) FROM tab0 WHERE + - CAST ( - + 44 AS INTEGER ) = - + 78 + - 4 * 26
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5954
SELECT col1 + + - CAST( + 53 AS SIGNED ) * - + col0 AS col0 FROM tab1
----
2717
4510
4870
skipif mysql # not compatible
query I rowsort label-5954
SELECT col1 + + - CAST ( + 53 AS INTEGER ) * - + col0 AS col0 FROM tab1
----
2717
4510
4870
query I rowsort
SELECT DISTINCT ( - - col2 ) * 52 + - col0 FROM tab2
----
1150
2016
2941
query I rowsort
SELECT DISTINCT 17 FROM tab2 WHERE NOT col2 + col0 <= - - col2 + - 51 + + 80
----
17
query I rowsort
SELECT + - 18 * + col0 + - 0 * + + col2 FROM tab2 WHERE + - col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE + - col1 IS NOT NULL
----
-59
-68
-96
query II rowsort
SELECT ALL + col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67
onlyif mysql # aggregate syntax:
query II rowsort label-5960
SELECT MIN( ALL - col2 ), 11 AS col1 FROM tab2 AS cor0
----
-58
11
skipif mysql # not compatible
query II rowsort label-5960
SELECT MIN ( ALL - col2 ), 11 AS col1 FROM tab2 AS cor0
----
-58
11
query I rowsort
SELECT DISTINCT 59 - + + col1 FROM tab0 AS cor0
----
-22
38
58
query I rowsort
SELECT + ( - 31 ) FROM tab0 AS cor0
----
-31
-31
-31
query I rowsort
SELECT ALL - 93 * - - col1 * - 52 - + 87 FROM tab0
----
101469
391629
4749
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5964
SELECT - CAST( NULL AS SIGNED ) * col1 * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5964
SELECT - CAST ( NULL AS INTEGER ) * col1 * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5965
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-5965
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-5966
SELECT - col2 * - CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
210
3807
99
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT - col2 * - CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
210
3807
99
query I rowsort
SELECT + col1 * + + col1 FROM tab1 AS cor0
----
196
2209
25
query II rowsort
SELECT DISTINCT 1, - 62 * col0 AS col1 FROM tab1
----
1
-3162
1
-5270
1
-5642
onlyif mysql # aggregate syntax:
query I rowsort label-5969
SELECT ALL - SUM( - col2 ) AS col0 FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - SUM ( - col2 ) AS col0 FROM tab1
----
223
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 20 ) col1 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT + ( + + col0 ) FROM tab2
----
46
64
75
query II rowsort
SELECT ALL + col2, + 87 FROM tab2
----
23
87
40
87
58
87
query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----
query I rowsort
SELECT ALL 72 * + col2 AS col0 FROM tab2
----
1656
2880
4176
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query II rowsort label-5975
SELECT DISTINCT 70, + 34 + - 27 + - CAST( 36 AS SIGNED ) DIV + col1 AS col2 FROM tab1
----
70
0
70
5
70
7
skipif mysql # not compatible
query II rowsort label-5975
SELECT DISTINCT 70, + 34 + - 27 + - CAST ( 36 AS INTEGER ) / + col1 AS col2 FROM tab1
----
70
0
70
5
70
7
query II rowsort
SELECT DISTINCT + 26 AS col0, - col0 - + + col2 * + - col0 AS col2 FROM tab1
----
26
4845
26
4930
26
6097
onlyif mysql # aggregate syntax:
query II rowsort label-5977
SELECT DISTINCT SUM( ALL - col2 ) AS col2, COUNT( * ) FROM tab0 WHERE NOT - col1 * + col0 * 77 * + 31 IS NOT NULL
----
NULL
0
skipif mysql # not compatible
query II rowsort label-5977
SELECT DISTINCT SUM ( ALL - col2 ) AS col2, COUNT ( * ) FROM tab0 WHERE NOT - col1 * + col0 * 77 * + 31 IS NOT NULL
----
NULL
0
onlyif mysql # aggregate syntax:
query I rowsort label-5978
SELECT + ( - ( + MIN( col2 ) ) ) FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-5978
SELECT + ( - ( + MIN ( col2 ) ) ) FROM tab0
----
-10
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 8 - - - ( col2 ) - + + 61 = - col2 - 90
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - 30 FROM tab0 WHERE - - 96 IS NOT NULL
----
-30
-30
-30
query I rowsort
SELECT - col1 * - - col2 + + - 80 FROM tab1
----
-1424
-3276
-375
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + 79 + col0 * - col2 - - 92 FROM tab0 AS cor0
----
-534
-699
-9432
query I rowsort
SELECT + 96 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
2697
4585
6025
onlyif mysql # aggregate syntax:
query I rowsort label-5985
SELECT ALL - 25 + + + COUNT( * ) FROM tab1 AS cor0
----
-22
skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - 25 + + + COUNT ( * ) FROM tab1 AS cor0
----
-22
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 83 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-5988
SELECT DISTINCT col2 + 9 DIV - col1 AS col0 FROM tab2 AS cor0
----
23
40
58
skipif mysql # not compatible
query I rowsort label-5988
SELECT DISTINCT col2 + 9 / - col1 AS col0 FROM tab2 AS cor0
----
23
40
58
query I rowsort
SELECT DISTINCT + col1 * + ( - col0 ) + - 78 * 43 AS col2 FROM tab0 AS cor0
----
-3451
-4569
-5181
query III rowsort
SELECT * FROM tab1 WHERE - + ( - + col1 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-5991
SELECT ALL + COUNT( * ) * + 34 AS col2 FROM tab0
----
102
skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL + COUNT ( * ) * + 34 AS col2 FROM tab0
----
102
query I rowsort
SELECT - 9 * - col1 AS col0 FROM tab0
----
189
729
9
onlyif mysql # aggregate syntax:
query I rowsort label-5993
SELECT ALL + 52 + + COUNT( col0 ) * 98 AS col0 FROM tab0
----
346
skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + 52 + + COUNT ( col0 ) * 98 AS col0 FROM tab0
----
346
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-5994
SELECT + MAX( DISTINCT 29 ) * + - COUNT( * ) col1, COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1
----
-87
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5994
SELECT + MAX ( DISTINCT 29 ) * + - COUNT ( * ) col1, COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1
----
-87
1
query II rowsort
SELECT ALL col2 AS col0, 49 FROM tab0
----
10
49
47
49
99
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab1
----
21
21
21
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-5997
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5997
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-5998
SELECT ( + COUNT( * ) ) * - 47 AS col2 FROM tab2
----
-141
skipif mysql # not compatible
query I rowsort label-5998
SELECT ( + COUNT ( * ) ) * - 47 AS col2 FROM tab2
----
-141
onlyif mysql # aggregate syntax:
query I rowsort label-5999
SELECT DISTINCT + SUM( - 0 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT + SUM ( - 0 ) FROM tab0
----
0
query I rowsort
SELECT ALL col1 + ( - 16 ) - col1 FROM tab0 cor0
----
-16
-16
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab1 WHERE NULL IS NULL
----
-83
onlyif mysql # aggregate syntax:
query I rowsort label-6002
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9
query I rowsort
SELECT ALL ( - - 96 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
onlyif mysql # aggregate syntax:
query I rowsort label-6004
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab2 AS cor0
----
3
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT - 51 >= + + col0
----
1
21
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + col2 col2 FROM tab2 cor0
----
-1600
-3364
-529
onlyif mysql # aggregate syntax:
query I rowsort label-6007
SELECT ALL + + 56 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
168
skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL + + 56 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
168
onlyif mysql # DIV for integer division:
query I rowsort label-6008
SELECT DISTINCT - col2 DIV + + col2 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - col2 / + + col2 AS col0 FROM tab0 AS cor0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-6009
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 91 * + - col0
----
0
skipif mysql # not compatible
query I rowsort label-6009
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 91 * + - col0
----
0
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( + 13 + + 35 )
----
query II rowsort
SELECT DISTINCT + col0 AS col1, 46 FROM tab0
----
15
46
87
46
97
46
query III rowsort
SELECT * FROM tab0 WHERE + col1 <= col2
----
97
1
99
query I rowsort
SELECT ALL + col2 * 28 FROM tab0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ( - + 45 ) FROM tab2 AS cor0
----
-45
-45
-45
onlyif mysql # DIV for integer division:
query I rowsort label-6015
SELECT ALL + - col2 DIV col1 + - - col0 - - - col0 FROM tab1 AS cor0
----
-1
-11
-6
skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL + - col2 / col1 + - - col0 - - - col0 FROM tab1 AS cor0
----
-1
-11
-6
query I rowsort
SELECT DISTINCT + + col0 + + col1 AS col0 FROM tab1 AS cor0
----
138
65
90
query I rowsort
SELECT + 68 - - col1 FROM tab2 AS cor0
----
119
135
145
query I rowsort
SELECT - + col1 - - col0 + col0 AS col2 FROM tab0 AS cor0
----
-51
153
193
onlyif mysql # aggregate syntax:
query I rowsort label-6019
SELECT + COUNT( * ) - - 99 AS col2 FROM tab2 AS cor0
----
102
skipif mysql # not compatible
query I rowsort label-6019
SELECT + COUNT ( * ) - - 99 AS col2 FROM tab2 AS cor0
----
102
query I rowsort
SELECT ALL + col0 + - + col2 AS col0 FROM tab0 AS cor0
----
-2
-32
77
query I rowsort
SELECT - 83 + + - 40 FROM tab0 AS cor0
----
-123
-123
-123
query I rowsort
SELECT ALL col0 - + 41 FROM tab2
----
23
34
5
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6023
SELECT ALL 44 AS col2 FROM tab1 WHERE NOT + - col0 >= - ( CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 44 AS col2 FROM tab1 WHERE NOT + - col0 >= - ( CAST ( NULL AS INTEGER ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6024
SELECT col0 * - - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-2346
-4928
-5025
skipif mysql # not compatible
query I rowsort label-6024
SELECT col0 * - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-2346
-4928
-5025
onlyif mysql # aggregate syntax:
query I rowsort label-6025
SELECT ALL + ( - MIN( DISTINCT - col0 ) ) * - - ( - 72 ) AS col0 FROM tab0
----
-6984
skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + ( - MIN ( DISTINCT - col0 ) ) * - - ( - 72 ) AS col0 FROM tab0
----
-6984
query I rowsort
SELECT ALL col1 + + + 3 + - 94 FROM tab2 AS cor0
----
-14
-24
-40
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 29 = + ( + col1 ) * 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6028
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - 36 col1 FROM tab1 AS cor0
----
-121
-127
-87
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6028
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - 36 col1 FROM tab1 AS cor0
----
-121
-127
-87
query I rowsort
SELECT ALL 28 * + + 67 + + col1 FROM tab1 AS cor0
----
1881
1890
1923
onlyif mysql # aggregate syntax:
query I rowsort label-6030
SELECT ALL MIN( + 45 ) AS col1 FROM tab1, tab2 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL MIN ( + 45 ) AS col1 FROM tab1, tab2 AS cor0
----
45
query I rowsort
SELECT + 58 * + col2 FROM tab2
----
1334
2320
3364
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * col0 col1 FROM tab0
----
-1200
-6960
-7760
query I rowsort
SELECT - 24 * col2 AS col0 FROM tab2
----
-1392
-552
-960
onlyif mysql # aggregate syntax:
query I rowsort label-6034
SELECT DISTINCT - + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <= - col1
----
0
skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT - + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <= - col1
----
0
query I rowsort
SELECT - - 66 FROM tab1 AS cor0 WHERE NOT col1 / - + col2 / 54 IS NOT NULL
----
query I rowsort
SELECT - + 84 * - col2 FROM tab1 AS cor0
----
4956
5712
8064
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + col2
----
query I rowsort
SELECT + 36 * + + col1 FROM tab0 AS cor0
----
2916
36
756
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 9 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT col2 + - + 27 FROM tab1
----
32
41
69
query I rowsort
SELECT DISTINCT - col1 + + + 38 + + + 69 - + 97 * col0 FROM tab1 AS cor0
----
-4854
-8143
-8767
onlyif mysql # aggregate syntax:
query I rowsort label-6043
SELECT - 97 + + COUNT( * ) FROM tab2
----
-94
skipif mysql # not compatible
query I rowsort label-6043
SELECT - 97 + + COUNT ( * ) FROM tab2
----
-94
onlyif mysql # aggregate syntax:
query I rowsort label-6044
SELECT ALL - COUNT( * ) + + ( - SUM( ALL - col0 ) ) FROM tab0
----
196
skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - COUNT ( * ) + + ( - SUM ( ALL - col0 ) ) FROM tab0
----
196
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 77 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6046
SELECT ALL - 10 + + MIN( ALL - col0 ) FROM tab2 AS cor0
----
-85
skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - 10 + + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-85
query II rowsort
SELECT DISTINCT ( + + 48 ) AS col1, ( - col0 ) FROM tab2 cor0
----
48
-46
48
-64
48
-75
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= - 97 - + 16
----
query I rowsort
SELECT - + 82 FROM tab1 cor0
----
-82
-82
-82
onlyif mysql # aggregate syntax:
query I rowsort label-6050
SELECT - MAX( col2 ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6050
SELECT - MAX ( col2 ) AS col0 FROM tab1 cor0 WHERE - col1 IS NULL
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) - - - 32 col2 FROM tab2 AS cor0
----
-109
-83
-99
onlyif mysql # DIV for integer division:
query I rowsort label-6052
SELECT ALL 48 DIV + col0 + - col0 AS col0 FROM tab0
----
-12
-87
-97
skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL 48 / + col0 + - col0 AS col0 FROM tab0
----
-12
-87
-97
onlyif mysql # aggregate syntax:
query II rowsort label-6053
SELECT ALL - COUNT( * ) * + COUNT( * ) AS col0, + 21 AS col0 FROM tab2 WHERE + ( + - col1 ) >= NULL
----
0
21
skipif mysql # not compatible
query II rowsort label-6053
SELECT ALL - COUNT ( * ) * + COUNT ( * ) AS col0, + 21 AS col0 FROM tab2 WHERE + ( + - col1 ) >= NULL
----
0
21
onlyif mysql # aggregate syntax:
query I rowsort label-6054
SELECT DISTINCT + COUNT( * ) - - MIN( DISTINCT + col2 ) AS col2 FROM tab2
----
26
skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT + COUNT ( * ) - - MIN ( DISTINCT + col2 ) AS col2 FROM tab2
----
26
query I rowsort
SELECT - ( + - col0 ) FROM tab1
----
51
85
91
query I rowsort
SELECT 40 - - + col1 FROM tab1
----
45
54
87
query II rowsort
SELECT ALL 43, col0 FROM tab0
----
43
15
43
87
43
97
onlyif mysql # aggregate syntax:
query I rowsort label-6058
SELECT DISTINCT COUNT( * ) - + - 91 FROM tab1
----
94
skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT COUNT ( * ) - + - 91 FROM tab1
----
94
query I rowsort
SELECT ALL + 68 * + 63 FROM tab2
----
4284
4284
4284
onlyif mysql # DIV for integer division:
query I rowsort label-6060
SELECT DISTINCT - col1 + col0 + + + 96 DIV ( + - col2 ) AS col0 FROM tab1
----
36
43
79
skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT - col1 + col0 + + + 96 / ( + - col2 ) AS col0 FROM tab1
----
36
43
79
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 73 BETWEEN NULL AND col2
----
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6063
SELECT ALL - 80 * + 21 + - COUNT( ALL col2 ) * 94 col1 FROM tab2 cor0
----
-1962
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6063
SELECT ALL - 80 * + 21 + - COUNT ( ALL col2 ) * 94 col1 FROM tab2 cor0
----
-1962
onlyif mysql # aggregate syntax:
query I rowsort label-6064
SELECT DISTINCT ( + - ( + - COUNT( - col2 ) ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT ( + - ( + - COUNT ( - col2 ) ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9
onlyif mysql # aggregate syntax:
query II rowsort label-6065
SELECT - + COUNT( * ) col2, SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6065
SELECT - + COUNT ( * ) col2, SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
NULL
query I rowsort
SELECT col1 + - 57 FROM tab0
----
-36
-56
24
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6067
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6067
SELECT + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 22 + - col0 AS col0 FROM tab0
----
-65
-75
7
query I rowsort
SELECT 59 + - col2 AS col2 FROM tab1
----
-37
-9
0
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 WHERE NOT col0 * 40 NOT BETWEEN NULL AND 43
----
query III rowsort
SELECT * FROM tab2 WHERE col2 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-6072
SELECT + COUNT( DISTINCT col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6072
SELECT + COUNT ( DISTINCT col2 ) FROM tab2
----
3
query I rowsort
SELECT - col1 * col1 + ( 95 ) FROM tab1
----
-101
-2114
70
query I rowsort
SELECT 21 + + 56 FROM tab0
----
77
77
77
onlyif mysql # aggregate syntax:
query I rowsort label-6075
SELECT ALL 13 + - COUNT( * ) AS col0 FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL 13 + - COUNT ( * ) AS col0 FROM tab0
----
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6076
SELECT ALL COUNT( col1 ) * + MIN( DISTINCT col1 ) + + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL COUNT ( col1 ) * + MIN ( DISTINCT col1 ) + + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col2 ) > ( NULL )
----
query I rowsort
SELECT + 2 + 58 AS col0 FROM tab1
----
60
60
60
onlyif mysql # aggregate syntax:
query I rowsort label-6079
SELECT - COUNT( ALL - 16 ) * + 95 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-285
skipif mysql # not compatible
query I rowsort label-6079
SELECT - COUNT ( ALL - 16 ) * + 95 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-285
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * + col1 col0 FROM tab2
----
1196
3120
3944
onlyif mysql # aggregate syntax:
query I rowsort label-6081
SELECT MAX( col1 ) FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-6081
SELECT MAX ( col1 ) FROM tab0
----
81
query I rowsort
SELECT col0 + - 90 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6083
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE ( - col0 ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6083
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE ( - col0 ) IS NULL
----
0
query I rowsort
SELECT + col2 + - 50 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-27
8
onlyif mysql # aggregate syntax:
query I rowsort label-6085
SELECT - 92 - - COUNT( * ) AS col1 FROM tab1
----
-89
skipif mysql # not compatible
query I rowsort label-6085
SELECT - 92 - - COUNT ( * ) AS col1 FROM tab1
----
-89
onlyif mysql # aggregate syntax:
query I rowsort label-6086
SELECT - 26 + - COUNT( * ) col0 FROM tab2
----
-29
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6086
SELECT - 26 + - COUNT ( * ) col0 FROM tab2
----
-29
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 7 * - col2 ) IN ( - 70 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL 55 + - 77 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6089
SELECT - SUM( + col1 ) col1 FROM tab2
----
-195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6089
SELECT - SUM ( + col1 ) col1 FROM tab2
----
-195
query I rowsort
SELECT - col2 * col1 FROM tab0 WHERE NOT col0 <> 96 * + col2
----
query I rowsort
SELECT col1 + + 56 AS col0 FROM tab1 WHERE col2 * - 70 <= NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL > + 62
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 57 * col1 >= ( + 28 - col2 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6094
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT col0 - - 82 NOT BETWEEN NULL AND + 2
----
skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT col0 - - 82 NOT BETWEEN NULL AND + 2
----
onlyif mysql # aggregate syntax:
query I rowsort label-6095
SELECT MAX( DISTINCT col2 ) FROM tab2
----
58
skipif mysql # not compatible
query I rowsort label-6095
SELECT MAX ( DISTINCT col2 ) FROM tab2
----
58
onlyif mysql # aggregate syntax:
query I rowsort label-6096
SELECT DISTINCT + 77 * MIN( DISTINCT 36 ) FROM tab1
----
2772
skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT + 77 * MIN ( DISTINCT 36 ) FROM tab1
----
2772
query I rowsort
SELECT ALL + 95 + col2 FROM tab1
----
154
163
191
query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( col0 ) BETWEEN NULL AND 60
----
query I rowsort
SELECT ALL - col1 * col1 + col1 * col2 FROM tab2 AS cor0
----
-1428
-2849
-603
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 )
----
query I rowsort
SELECT DISTINCT - col0 * + 30 FROM tab0
----
-2610
-2910
-450
query I rowsort
SELECT DISTINCT 8 + - 51 FROM tab1
----
-43
query III rowsort
SELECT * FROM tab2 WHERE + col1 + + col2 * col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6104
SELECT DISTINCT + 92 + - ( + COUNT( * ) ) * ( ( 97 ) ) AS col1 FROM tab1 AS cor0
----
-199
skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + 92 + - ( + COUNT ( * ) ) * ( ( 97 ) ) AS col1 FROM tab1 AS cor0
----
-199
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0 WHERE col2 / col2 IS NULL
----
query I rowsort
SELECT col1 - ( + col1 ) * + col2 AS col0 FROM tab0 cor0
----
-189
-3726
-98
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL + col1 + + 30 FROM tab1 AS cor0
----
35
44
77
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN ( col1 ) AND col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * + 30 NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-6111
SELECT ALL col0 - + 96 DIV + col1 AS col2 FROM tab0
----
1
14
83
skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL col0 - + 96 / + col1 AS col2 FROM tab0
----
1
14
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 col2 FROM tab2
----
35
query I rowsort
SELECT ALL + 66 FROM tab2 WHERE col1 IN ( + col2 * + 41 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6114
SELECT 9 * + + 6 * COUNT( * ) AS col0 FROM tab1
----
162
skipif mysql # not compatible
query I rowsort label-6114
SELECT 9 * + + 6 * COUNT ( * ) AS col0 FROM tab1
----
162
onlyif mysql # aggregate syntax:
query I rowsort label-6115
SELECT 95 * COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN ( col1 * + 21 ) AND ( - col2 * col1 )
----
285
skipif mysql # not compatible
query I rowsort label-6115
SELECT 95 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 BETWEEN ( col1 * + 21 ) AND ( - col2 * col1 )
----
285
query I rowsort
SELECT ALL - 14 * + - col0 AS col0 FROM tab0
----
1218
1358
210
query I rowsort
SELECT + 0 * col2 + + col0 FROM tab2 AS cor0
----
46
64
75
query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 WHERE NOT + col0 IN ( 74 )
----
64
64
64
query I rowsort
SELECT + col1 * + - col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6120
SELECT ALL - AVG ( ALL CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL - AVG ( ALL CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 19 ) > ( + col0 )
----
15
81
47
query I rowsort
SELECT ALL + col0 + + 19 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
106
116
34
query III rowsort
SELECT * FROM tab1 WHERE NOT + 1 + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-6124
SELECT - COUNT( * ) + + - 71 FROM tab0, tab2 AS cor0
----
-80
skipif mysql # not compatible
query I rowsort label-6124
SELECT - COUNT ( * ) + + - 71 FROM tab0, tab2 AS cor0
----
-80
onlyif mysql # aggregate syntax:
query I rowsort label-6125
SELECT MAX( col0 ) * 17 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6125
SELECT MAX ( col0 ) * 17 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6126
SELECT DISTINCT 2 - - ( + SUM( DISTINCT - 42 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-40
skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT 2 - - ( + SUM ( DISTINCT - 42 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-40
onlyif mysql # aggregate syntax:
query I rowsort label-6127
SELECT DISTINCT - COUNT( * ) FROM tab1, tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-6128
SELECT - - COUNT( + 55 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6128
SELECT - - COUNT ( + 55 ) FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6129
SELECT + COUNT( ALL + - col1 ) col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6129
SELECT + COUNT ( ALL + - col1 ) col2 FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6130
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND - - col2 * 51 + CAST( NULL AS SIGNED ) / col0
----
skipif mysql # not compatible
query III rowsort label-6130
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND - - col2 * 51 + CAST ( NULL AS INTEGER ) / col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-6131
SELECT DISTINCT ( + + MIN( - + 61 ) ) FROM tab0 AS cor0
----
-61
skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT ( + + MIN ( - + 61 ) ) FROM tab0 AS cor0
----
-61
query I rowsort
SELECT 67 * - col2 FROM tab0 AS cor0
----
-3149
-6633
-670
query I rowsort
SELECT DISTINCT + + ( + col0 ) + + 94 FROM tab2 AS cor0
----
140
158
169
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6134
SELECT DISTINCT + MAX( DISTINCT + CAST( + col1 AS SIGNED ) ) * 6 AS col2 FROM tab1 AS cor0
----
282
skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT + MAX ( DISTINCT + CAST ( + col1 AS INTEGER ) ) * 6 AS col2 FROM tab1 AS cor0
----
282
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6135
SELECT col1 + 27 FROM tab0 cor0 WHERE NOT ( CAST( + col0 AS SIGNED ) * + col1 ) > NULL
----
skipif mysql # not compatible
query I rowsort label-6135
SELECT col1 + 27 FROM tab0 cor0 WHERE NOT ( CAST ( + col0 AS INTEGER ) * + col1 ) > NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6136
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) NOT BETWEEN + 91 * - col2 AND - ( - col0 ) + col2
----
-3
skipif mysql # not compatible
query I rowsort label-6136
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) NOT BETWEEN + 91 * - col2 AND - ( - col0 ) + col2
----
-3
query II rowsort
SELECT DISTINCT - col0 AS col2, 92 * 26 * - 70 AS col1 FROM tab0 cor0
----
-15
-167440
-87
-167440
-97
-167440
onlyif mysql # aggregate syntax:
query I rowsort label-6138
SELECT - MAX( 42 ) FROM tab1 WHERE NOT + + col1 * + col1 NOT BETWEEN NULL AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6138
SELECT - MAX ( 42 ) FROM tab1 WHERE NOT + + col1 * + col1 NOT BETWEEN NULL AND NULL
----
NULL
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) * + - col0 + - col0 AS col2 FROM tab2
----
107870
315328
376800
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6140
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6141
SELECT DISTINCT - MAX( ALL + ( 33 ) ) AS col1 FROM tab0
----
-33
skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - MAX ( ALL + ( 33 ) ) AS col1 FROM tab0
----
-33
query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( - + col0 )
----
query I rowsort
SELECT + col0 + 51 FROM tab2 WHERE - ( - col1 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6144
SELECT DISTINCT + COUNT( * ) + + 83 FROM tab2
----
86
skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + COUNT ( * ) + + 83 FROM tab2
----
86
onlyif mysql # DIV for integer division:
query I rowsort label-6145
SELECT DISTINCT 4 DIV - col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 4 / - col0 FROM tab0
----
0
query I rowsort
SELECT - ( - 15 ) AS col1 FROM tab1
----
15
15
15
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6147
SELECT * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6147
SELECT * FROM tab1 WHERE + CAST ( NULL AS REAL ) IS NOT NULL
----
query I rowsort
SELECT 13 * + ( + 64 ) FROM tab2
----
832
832
832
onlyif mysql # DIV for integer division:
query II rowsort label-6149
SELECT col0 DIV + 19, 57 AS col2 FROM tab0
----
0
57
4
57
5
57
skipif mysql # not compatible
query II rowsort label-6149
SELECT col0 / + 19, 57 AS col2 FROM tab0
----
0
57
4
57
5
57
query I rowsort
SELECT ALL col2 * + col1 FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6151
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT + col2 IS NULL
----
3
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE + 22 NOT BETWEEN + 88 - + - col2 AND ( NULL )
----
-14
-47
-5
onlyif mysql # aggregate syntax:
query I rowsort label-6153
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NULL = ( - col1 / col1 )
----
0
skipif mysql # not compatible
query I rowsort label-6153
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = ( - col1 / col1 )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6154
SELECT - - COUNT( - 90 ) + 70 FROM tab2 AS cor0
----
73
skipif mysql # not compatible
query I rowsort label-6154
SELECT - - COUNT ( - 90 ) + 70 FROM tab2 AS cor0
----
73
query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN ( NULL ) AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE 12 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6157
SELECT ALL - CAST( NULL AS SIGNED ) / 14 * 82 * + ( - 89 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL - CAST ( NULL AS INTEGER ) / 14 * 82 * + ( - 89 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 67 + + - col1 col1 FROM tab2
----
-3133
-4365
-5092
query I rowsort
SELECT + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT + col0 + - col0 / - col1 AS col0 FROM tab0 cor0 WHERE - col2 * - - ( 90 ) = ( - - 57 * 24 + col1 * col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-6161
SELECT - ( + col2 ) DIV - col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6161
SELECT - ( + col2 ) / - col2 FROM tab0 AS cor0
----
1
1
1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 4 NOT IN ( - + col2 * + + 82 + + - 9 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6164
SELECT ALL SUM( 66 ) FROM tab1
----
198
skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL SUM ( 66 ) FROM tab1
----
198
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 80 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - ( 50 ) FROM tab1
----
-50
-50
-50
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6167
SELECT ALL + col2 / + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + col2 / + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 67 + + col1 > ( 29 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 31 + col1 * CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-6169
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 31 + col1 * CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 / - 28 + - + ( 0 ) + + 52 ) AND ( - 5 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < + + col0
----
15
81
47
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 * + 1 + col0 IS NOT NULL
----
query I rowsort
SELECT ALL - ( + col0 ) * - col1 + + col2 + 2 FROM tab2
----
2371
4970
5085
query I rowsort
SELECT - 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - ( - col0 ) col0, + col2 * col0 FROM tab0 AS cor0
----
15
705
87
870
97
9603
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 28 NOT IN ( + - col0 * col1 / col1 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-6177
SELECT DISTINCT + 7 + COUNT( * ) AS col0, COUNT( * ) * - COUNT( + col0 ) AS col1 FROM tab0 cor0
----
10
-9
skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT + 7 + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( + col0 ) AS col1 FROM tab0 cor0
----
10
-9
query II rowsort
SELECT col1 * + 96, col0 FROM tab0 AS cor0
----
2016
87
7776
15
96
97
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
query I rowsort
SELECT DISTINCT + 99 + + + col1 FROM tab2 AS cor0
----
150
166
176
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6181
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-6181
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col0 FROM tab1 AS cor0
----
138
65
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 88 col0, col2 FROM tab0
----
88
10
88
47
88
99
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6184
SELECT DISTINCT + 47 * + + CAST( + col0 AS SIGNED ), + col0 + - col0 AS col1 FROM tab0
----
4089
0
4559
0
705
0
skipif mysql # not compatible
query II rowsort label-6184
SELECT DISTINCT + 47 * + + CAST ( + col0 AS INTEGER ), + col0 + - col0 AS col1 FROM tab0
----
4089
0
4559
0
705
0
onlyif mysql # aggregate syntax:
query I rowsort label-6185
SELECT ALL + ( - - COUNT( * ) ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL + ( - - COUNT ( * ) ) AS col2 FROM tab2
----
3
query I rowsort
SELECT - 43 + + 26 FROM tab1
----
-17
-17
-17
query I rowsort
SELECT ALL - + 66 FROM tab1 WHERE NOT NULL >= NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6188
SELECT DISTINCT * FROM tab1 WHERE 31 IN ( CAST( NULL AS DECIMAL ), + col1 )
----
skipif mysql # not compatible
query III rowsort label-6188
SELECT DISTINCT * FROM tab1 WHERE 31 IN ( CAST ( NULL AS REAL ), + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6189
SELECT - - MIN( ALL - 90 ) FROM tab2 WHERE - - col2 < - 81
----
NULL
skipif mysql # not compatible
query I rowsort label-6189
SELECT - - MIN ( ALL - 90 ) FROM tab2 WHERE - - col2 < - 81
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, + col0 AS col2 FROM tab0
----
1
97
21
87
81
15
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6191
SELECT - + CAST( CAST( + - 48 AS SIGNED ) AS SIGNED ) + + col0, col1 FROM tab2 AS cor0
----
112
77
123
67
94
51
skipif mysql # not compatible
query II rowsort label-6191
SELECT - + CAST ( CAST ( + - 48 AS INTEGER ) AS INTEGER ) + + col0, col1 FROM tab2 AS cor0
----
112
77
123
67
94
51
onlyif mysql # aggregate syntax:
query I rowsort label-6192
SELECT ALL + COUNT( - col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + COUNT ( - col2 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6193
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9
skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-6194
SELECT DISTINCT - CAST( 25 AS SIGNED ), COUNT( * ) * - COUNT( * ) * - - SUM( ALL + 37 ) AS col0 FROM tab1
----
-25
-999
skipif mysql # not compatible
query II rowsort label-6194
SELECT DISTINCT - CAST ( 25 AS INTEGER ), COUNT ( * ) * - COUNT ( * ) * - - SUM ( ALL + 37 ) AS col0 FROM tab1
----
-25
-999
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 84 IS NOT NULL
----
query I rowsort
SELECT + - col1 * - + ( + col2 ) FROM tab0 AS cor0
----
210
3807
99
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6197
SELECT + - ( + ( - - MAX( DISTINCT - CAST( - + 31 AS SIGNED ) ) ) ) FROM tab2 cor0
----
-31
skipif mysql # not compatible
query I rowsort label-6197
SELECT + - ( + ( - - MAX ( DISTINCT - CAST ( - + 31 AS INTEGER ) ) ) ) FROM tab2 cor0
----
-31
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6198
SELECT - ( COUNT( * ) ) DIV + MAX( DISTINCT - col1 ) + + - COUNT( * ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6198
SELECT - ( COUNT ( * ) ) / + MAX ( DISTINCT - col1 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6199
SELECT ALL + SUM( DISTINCT + col0 ) * - ( - + COUNT( * ) ) AS col1 FROM tab2 cor0
----
555
skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + SUM ( DISTINCT + col0 ) * - ( - + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
555
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-6200
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) DIV - COUNT( * ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) / - COUNT ( * ) FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 col2 FROM tab2
----
68
query III rowsort
SELECT ALL * FROM tab2 WHERE - 25 + + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + ( - 70 ) FROM tab0
----
-70
-70
-70
onlyif mysql # aggregate syntax:
query I rowsort label-6204
SELECT DISTINCT ( - + COUNT( * ) ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT ( - + COUNT ( * ) ) AS col2 FROM tab1
----
-3
query I rowsort
SELECT - 6 * - - 98 AS col1 FROM tab1
----
-588
-588
-588
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6206
SELECT ALL - CAST( NULL AS SIGNED ) * + - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6207
SELECT ALL SUM( + col0 ) col2 FROM tab0
----
199
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6207
SELECT ALL SUM ( + col0 ) col2 FROM tab0
----
199
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - - col0 + col0 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6209
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0
skipif mysql # not compatible
query I rowsort label-6209
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----
0
query II rowsort
SELECT + col0, + col1 FROM tab2
----
46
51
64
77
75
67
query II rowsort
SELECT + + col1 + 95 AS col1, col1 AS col0 FROM tab0 AS cor0
----
116
21
176
81
96
1
query I rowsort
SELECT + - col2 * - + col1 * + + col2 - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( NULL ) BETWEEN + ( - col2 ) AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-6213
SELECT - SUM( ALL + col0 ) + - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 56 * - col0 * + col2 * - + 58 )
----
NULL
skipif mysql # not compatible
query I rowsort label-6213
SELECT - SUM ( ALL + col0 ) + - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 56 * - col0 * + col2 * - + 58 )
----
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-6214
SELECT ALL + - 28 + + 84 + + col0 DIV - col0 AS col1, + col2 FROM tab1 AS cor0
----
55
59
55
68
55
96
skipif mysql # not compatible
query II rowsort label-6214
SELECT ALL + - 28 + + 84 + + col0 / - col0 AS col1, + col2 FROM tab1 AS cor0
----
55
59
55
68
55
96
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + 3 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6216
SELECT ALL - col0 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - col0 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 11 * - 69 AS col1 FROM tab0
----
759
759
759
query I rowsort
SELECT + col0 * + - ( - - 20 ) FROM tab0
----
-1740
-1940
-300
onlyif mysql # aggregate syntax:
query I rowsort label-6219
SELECT + + COUNT( * ) * + + COUNT( * ) * - + 99 FROM tab2 WHERE ( + col0 / col1 NOT BETWEEN col2 AND NULL )
----
-891
skipif mysql # not compatible
query I rowsort label-6219
SELECT + + COUNT ( * ) * + + COUNT ( * ) * - + 99 FROM tab2 WHERE ( + col0 / col1 NOT BETWEEN col2 AND NULL )
----
-891
query I rowsort
SELECT 72 * - 26 * - col2 AS col2 FROM tab1
----
110448
127296
179712
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 75 / + 12 + - - 11 * + 97 / col1 IS NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6222
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * + col0 * + col0 * + CAST( + + ( col2 ) AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-6222
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 * + col0 * + col0 * + CAST ( + + ( col2 ) AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + 94 AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
94
94
94
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6224
SELECT DISTINCT - - CAST( - AVG ( DISTINCT - col2 ) AS SIGNED ) + - - COUNT( col2 ) AS col2 FROM tab0 AS cor0
----
55
skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - - CAST ( - AVG ( DISTINCT - col2 ) AS INTEGER ) + - - COUNT ( col2 ) AS col2 FROM tab0 AS cor0
----
55
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6225
SELECT ALL + CAST( - ( 5 ) AS SIGNED ) - col1 FROM tab2
----
-56
-72
-82
skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + CAST ( - ( 5 ) AS INTEGER ) - col1 FROM tab2
----
-56
-72
-82
query I rowsort
SELECT col1 * - 7 FROM tab1
----
-329
-35
-98
onlyif mysql # aggregate syntax:
query I rowsort label-6227
SELECT - MAX( DISTINCT - col1 ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-6227
SELECT - MAX ( DISTINCT - col1 ) FROM tab1
----
5
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * col1 / + col1, + col1, + 36, + + 82, + ( + 9 ) )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6229
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT 84 IN ( col2 )
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6229
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT 84 IN ( col2 )
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6230
SELECT DISTINCT - 26 * - + 54 DIV COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
471
skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - 26 * - + 54 / COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
471
onlyif mysql # aggregate syntax:
query I rowsort label-6231
SELECT ALL + COUNT( * ) * + 23 AS col0 FROM tab0 AS cor0
----
69
skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + COUNT ( * ) * + 23 AS col0 FROM tab0 AS cor0
----
69
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 81 IS NOT NULL
----
query I rowsort
SELECT + + ( 59 ) * - 19 FROM tab1 AS cor0
----
-1121
-1121
-1121
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 < - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 21 / - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-6236
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab2 cor0
----
3
3
skipif mysql # not compatible
query II rowsort label-6236
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab2 cor0
----
3
3
query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 / + - col1 * 39 * col2 BETWEEN NULL AND 48
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab0
----
60
query I rowsort
SELECT + col1 * + - 47 AS col1 FROM tab2
----
-2397
-3149
-3619
onlyif mysql # aggregate syntax:
query I rowsort label-6240
SELECT COUNT( ALL + - col2 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-6240
SELECT COUNT ( ALL + - col2 ) FROM tab0
----
3
query II rowsort
SELECT ALL col0 * - - 92, + 19 AS col2 FROM tab2
----
4232
19
5888
19
6900
19
query I rowsort
SELECT 39 AS col0 FROM tab1 WHERE NOT + 40 / 21 < - col1
----
39
39
39
query II rowsort
SELECT DISTINCT - col2, col2 FROM tab1 WHERE 22 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-6244
SELECT 56 + - COUNT( DISTINCT - 4 ) + + 24, 35 AS col0 FROM tab2 AS cor0
----
79
35
skipif mysql # not compatible
query II rowsort label-6244
SELECT 56 + - COUNT ( DISTINCT - 4 ) + + 24, 35 AS col0 FROM tab2 AS cor0
----
79
35
query I rowsort
SELECT DISTINCT 54 FROM tab0 AS cor0 WHERE NOT - col0 < + col0
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT col2 * col0 + - + col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > col2
----
query I rowsort
SELECT - col0 * + 11 * col2 FROM tab2 AS cor0
----
-11638
-28160
-47850
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6249
SELECT 68 DIV - COUNT( DISTINCT - col1 ) FROM tab0
----
-22
skipif mysql # not compatible
query I rowsort label-6249
SELECT 68 / - COUNT ( DISTINCT - col1 ) FROM tab0
----
-22
onlyif mysql # aggregate syntax:
query I rowsort label-6250
SELECT + MIN( DISTINCT + col0 ) FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-6250
SELECT + MIN ( DISTINCT + col0 ) FROM tab1
----
51
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT + col1 * - + col1 AS col1 FROM tab2
----
-2601
-4489
-5929
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6254
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-6254
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + 79 AS col1 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT + - 13 AS col1 FROM tab2 AS cor0
----
-13
-13
-13
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 55 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6258
SELECT DISTINCT 19 + + COUNT( * ) col1 FROM tab0 AS cor0
----
22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT DISTINCT 19 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
22
onlyif mysql # aggregate syntax:
query I rowsort label-6259
SELECT + COUNT( * ) * - COUNT( * ) + - + 29 FROM tab2 AS cor0
----
-38
skipif mysql # not compatible
query I rowsort label-6259
SELECT + COUNT ( * ) * - COUNT ( * ) + - + 29 FROM tab2 AS cor0
----
-38
query I rowsort
SELECT ALL + 96 * + - col2 FROM tab0
----
-4512
-9504
-960
query I rowsort
SELECT 85 + - col0 AS col0 FROM tab1
----
-6
0
34
query II rowsort
SELECT ALL col2 AS col1, col2 * - + col2 FROM tab0
----
10
-100
47
-2209
99
-9801
query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NULL NOT IN ( 92 * + + col0 * - col2, + col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( col0, - col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6265
SELECT - 37 FROM tab2 WHERE - CAST( ( - col1 ) AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-6265
SELECT - 37 FROM tab2 WHERE - CAST ( ( - col1 ) AS INTEGER ) IS NULL
----
query I rowsort
SELECT ALL - + ( - - 88 ) * - - 35 FROM tab1 cor0 WHERE NOT ( NULL ) = col0
----
query I rowsort
SELECT DISTINCT + - 80 AS col1 FROM tab1 AS cor0
----
-80
query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97
query I rowsort
SELECT ALL 57 - + + col0 - - + 11 + - 38 * col1 AS col1 FROM tab2 cor0
----
-1916
-2553
-2922
onlyif mysql # DIV for integer division:
query I rowsort label-6270
SELECT col2 DIV + - col1 + + 39 * - col0 FROM tab2 cor0
----
-1794
-2496
-2925
skipif mysql # not compatible
query I rowsort label-6270
SELECT col2 / + - col1 + + 39 * - col0 FROM tab2 cor0
----
-1794
-2496
-2925
onlyif mysql # aggregate syntax:
query I rowsort label-6271
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0
query I rowsort
SELECT DISTINCT + col1 * + 79 * 9 AS col0 FROM tab0 cor0
----
14931
57591
711
onlyif mysql # aggregate syntax:
query I rowsort label-6273
SELECT + SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-6273
SELECT + SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
66
onlyif mysql # aggregate syntax:
query I rowsort label-6274
SELECT + - COUNT( * ) * - ( + 8 ) FROM tab2 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-6274
SELECT + - COUNT ( * ) * - ( + 8 ) FROM tab2 AS cor0
----
24
query II rowsort
SELECT + ( - - 60 ) AS col1, col0 - + 96 FROM tab1 AS cor0
----
60
-11
60
-45
60
-5
onlyif mysql # aggregate syntax:
query II rowsort label-6276
SELECT + SUM( col0 ), + 31 AS col2 FROM tab1 AS cor0
----
227
31
skipif mysql # not compatible
query II rowsort label-6276
SELECT + SUM ( col0 ), + 31 AS col2 FROM tab1 AS cor0
----
227
31
onlyif mysql # DIV for integer division:
query I rowsort label-6277
SELECT 75 DIV + col0 col1 FROM tab0 AS cor0
----
0
0
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6277
SELECT 75 / + col0 col1 FROM tab0 AS cor0
----
0
0
5
onlyif mysql # aggregate syntax:
query I rowsort label-6278
SELECT DISTINCT + SUM( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + SUM ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-103
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 97 * - + ( + col0 )
----
query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT 86 < NULL
----
query I rowsort
SELECT ALL ( - + 90 ) * + + col1 * 66 AS col2 FROM tab1
----
-279180
-29700
-83160
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6282
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) AS col2 FROM tab2
----
-1
query II rowsort
SELECT + col2 AS col1, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99
onlyif mysql # aggregate syntax:
query II rowsort label-6284
SELECT + - 60 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-60
3
skipif mysql # not compatible
query II rowsort label-6284
SELECT + - 60 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-60
3
query II rowsort
SELECT ALL + col1, + col2 + - col2 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0
query I rowsort
SELECT ALL - 96 * 41 * col2 * + - 20 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT - col1, + 84 AS col1 FROM tab1 cor0
----
-14
84
-47
84
-5
84
query I rowsort
SELECT DISTINCT col0 + col1 - 74 FROM tab1 cor0
----
-9
16
64
onlyif mysql # aggregate syntax:
query I rowsort label-6289
SELECT ALL - + 84 * + - SUM( + - col1 ) FROM tab2 cor0
----
-16380
skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL - + 84 * + - SUM ( + - col1 ) FROM tab2 cor0
----
-16380
query I rowsort
SELECT col2 FROM tab1 WHERE NULL < - 43 - + 73 * - 10
----
query III rowsort
SELECT * FROM tab1 WHERE - 18 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6292
SELECT MAX( - 25 ) + + ( - ( - + COUNT( * ) ) ) FROM tab2
----
-22
skipif mysql # not compatible
query I rowsort label-6292
SELECT MAX ( - 25 ) + + ( - ( - + COUNT ( * ) ) ) FROM tab2
----
-22
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-6293
SELECT ALL - + col1, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE 60 * - col1 IS NULL
----
skipif mysql # not compatible
query II rowsort label-6293
SELECT ALL - + col1, - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE 60 * - col1 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6294
SELECT - col0 DIV - - col2 + - 37 AS col1 FROM tab1 AS cor0
----
-37
-38
-38
skipif mysql # not compatible
query I rowsort label-6294
SELECT - col0 / - - col2 + - 37 AS col1 FROM tab1 AS cor0
----
-37
-38
-38
onlyif mysql # aggregate syntax:
query I rowsort label-6295
SELECT ALL - MIN( ALL - + col2 ) AS col0 FROM tab1 AS cor0 WHERE - col0 + + 76 IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - MIN ( ALL - + col2 ) AS col0 FROM tab1 AS cor0 WHERE - col0 + + 76 IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6296
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( CAST( NULL AS SIGNED ), + 10, + - col2 )
----
skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( CAST ( NULL AS INTEGER ), + 10, + - col2 )
----
query I rowsort
SELECT DISTINCT + 22 * col0 AS col2 FROM tab1 cor0
----
1122
1870
2002
onlyif mysql # aggregate syntax:
query I rowsort label-6298
SELECT COUNT( * ) * 58 AS col1 FROM tab2 AS cor0
----
174
skipif mysql # not compatible
query I rowsort label-6298
SELECT COUNT ( * ) * 58 AS col1 FROM tab2 AS cor0
----
174
query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL < - col0 * - 4 )
----
query I rowsort
SELECT DISTINCT col0 - + col1 * col1 * + col2 * - col2 AS col1 FROM tab1
----
10214507
1806387
87110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 * + 19 * - col1 col0 FROM tab2
----
46
-44574
64
-93632
75
-95475
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col2, + col1 col1 FROM tab2
----
51
51
67
67
77
77
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - + col0 )
----
query I rowsort
SELECT col1 - - 26 FROM tab1
----
31
40
73
query I rowsort
SELECT ALL ( - 5 ) AS col2 FROM tab1
----
-5
-5
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 62 - ( + col0 ) col1, + col0 FROM tab0
----
-25
87
-35
97
47
15
query I rowsort
SELECT DISTINCT - col1 + - - 13 FROM tab1 AS cor0
----
-1
-34
8
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 40 <= + col2 * + col1 + - col1
----
query I rowsort
SELECT - 97 + + 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( ( NULL ) IS NULL )
----
query II rowsort
SELECT DISTINCT ( + col1 ) AS col2, col0 FROM tab2
----
51
46
67
75
77
64
onlyif mysql # aggregate syntax:
query I rowsort label-6311
SELECT COUNT( ALL - col2 ) FROM tab2 WHERE NOT - - col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-6311
SELECT COUNT ( ALL - col2 ) FROM tab2 WHERE NOT - - col2 IS NULL
----
3
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN 86 AND + 95
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - - col0 * - 93 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6314
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6315
SELECT + ( + + CAST( + col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5
skipif mysql # not compatible
query I rowsort label-6315
SELECT + ( + + CAST ( + col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5
query II rowsort
SELECT col1 AS col0, 57 * col2 FROM tab1 AS cor0
----
14
5472
47
3876
5
3363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 47 col2, - 6 - + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
47
-1064
47
-2566
47
-4356
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab2 cor0
----
23
40
58
onlyif mysql # aggregate syntax:
query II rowsort label-6319
SELECT DISTINCT - 27, + SUM( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-27
223
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6319
SELECT DISTINCT - 27, + SUM ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-27
223
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6320
SELECT COUNT( * ) DIV - + COUNT( * ) FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6320
SELECT COUNT ( * ) / - + COUNT ( * ) FROM tab0 cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, 97 FROM tab2 AS cor0
----
-51
97
-67
97
-77
97
onlyif mysql # aggregate syntax:
query I rowsort label-6322
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 WHERE NOT 57 * + 5 IN ( 50 )
----
-3
skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 WHERE NOT 57 * + 5 IN ( 50 )
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6323
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6323
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0
----
3
query I rowsort
SELECT ALL + 9 * 51 AS col0 FROM tab0 AS cor0
----
459
459
459
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT + col0 * - 16 * - - 94 AS col1 FROM tab2
----
-112800
-69184
-96256
query I rowsort
SELECT ALL - 75 * + - col2 FROM tab2
----
1725
3000
4350
query I rowsort
SELECT - + 12 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT ALL 10 * col0 FROM tab1
----
510
850
910
query III rowsort
SELECT * FROM tab0 WHERE NOT + - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT col2 + + col0 - - col0 + col0 * - col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6332
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 + - - col0 / - + ( ( 2 ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 + - - col0 / - + ( ( 2 ) ) FROM tab1 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-6333
SELECT ALL - 68 + 50 DIV col2 AS col2 FROM tab0 AS cor0
----
-63
-67
-68
skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL - 68 + 50 / col2 AS col2 FROM tab0 AS cor0
----
-63
-67
-68
query I rowsort
SELECT col2 + + - col1 * - 75 AS col0 FROM tab0 AS cor0
----
1585
174
6122
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6335
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) * + + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) * + + col1 FROM tab2 AS cor0
----
NULL
query II rowsort
SELECT ALL - 85 * - 23 AS col2, col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1955
4896
1955
5015
1955
6188
query I rowsort
SELECT ( - - 39 ) FROM tab2 AS cor0
----
39
39
39
query II rowsort
SELECT col2, + 84 AS col1 FROM tab0
----
10
84
47
84
99
84
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * col0 * - col0 + 72 + + - ( - col1 ) - + col0 + + + 25 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6340
SELECT ALL - + COUNT( ALL - 84 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - + COUNT ( ALL - 84 ) FROM tab0 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-6341
SELECT ALL + 28 + + 96 DIV col0 + + + ( - - col1 ) FROM tab2 AS cor0
----
106
81
96
skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL + 28 + + 96 / col0 + + + ( - - col1 ) FROM tab2 AS cor0
----
106
81
96
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL > 58 AND NOT NULL IS NULL
----
query I rowsort
SELECT ALL + + col1 + + + ( 66 ) AS col1 FROM tab0 AS cor0
----
147
67
87
query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) <= + col0
----
query I rowsort
SELECT DISTINCT - 55 + - 31 * col1 AS col1 FROM tab1 AS cor0
----
-1512
-210
-489
query I rowsort
SELECT DISTINCT col0 - ( ( - col2 ) ) * - ( ( - col0 ) ) FROM tab2 AS cor0
----
1104
2624
4425
query II rowsort
SELECT col2 + + - 16 + - col0, col0 AS col2 FROM tab2 AS cor0
----
-33
75
-39
46
-40
64
query I rowsort
SELECT - 12 FROM tab1 WHERE - + 13 * - - col2 + col1 + + + 36 * + col1 IS NULL
----
query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - - 12 BETWEEN - 35 AND - 80
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-6350
SELECT DISTINCT COUNT( ALL - col0 ) DIV + CAST( - 67 AS SIGNED ) - + MAX( ALL - ( - 68 ) ) col2, + 86 FROM tab0
----
-68
86
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6350
SELECT DISTINCT COUNT ( ALL - col0 ) / + CAST ( - 67 AS INTEGER ) - + MAX ( ALL - ( - 68 ) ) col2, + 86 FROM tab0
----
-68
86
onlyif mysql # aggregate syntax:
query I rowsort label-6351
SELECT DISTINCT + MAX( DISTINCT - ( - col0 ) ) FROM tab2
----
75
skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + MAX ( DISTINCT - ( - col0 ) ) FROM tab2
----
75
onlyif mysql # aggregate syntax:
query II rowsort label-6352
SELECT ALL COUNT( * ) * - 82 col0, MIN( - col2 ) * 13 FROM tab0 AS cor0
----
-246
-1287
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6352
SELECT ALL COUNT ( * ) * - 82 col0, MIN ( - col2 ) * 13 FROM tab0 AS cor0
----
-246
-1287
query I rowsort
SELECT + 49 * - col1 FROM tab0 AS cor0
----
-1029
-3969
-49
query I rowsort
SELECT 73 AS col2 FROM tab1 cor0
----
73
73
73
onlyif mysql # DIV for integer division:
query I rowsort label-6355
SELECT DISTINCT 39 DIV - - col1 AS col2 FROM tab0 AS cor0
----
0
1
39
skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT 39 / - - col1 AS col2 FROM tab0 AS cor0
----
0
1
39
onlyif mysql # aggregate syntax:
query I rowsort label-6356
SELECT DISTINCT COUNT( * ) * - SUM( ALL - col0 ) FROM tab1
----
681
skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL - col0 ) FROM tab1
----
681
query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT ALL + + 4 * + + ( + ( 22 ) ) AS col2 FROM tab2 AS cor0
----
88
88
88
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6359
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col1 col2 FROM tab2 cor0 WHERE 6 + + 10 + + ( - 38 ) * - 29 IS NOT NULL
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6359
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col1 col2 FROM tab2 cor0 WHERE 6 + + 10 + + ( - 38 ) * - 29 IS NOT NULL
----
NULL
query I rowsort
SELECT - + col2 * - col1 - - col1 FROM tab2 AS cor0
----
1224
3157
3953
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6361
SELECT CAST( + - 66 AS SIGNED ) col0 FROM tab2 cor0
----
-66
-66
-66
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6361
SELECT CAST ( + - 66 AS INTEGER ) col0 FROM tab2 cor0
----
-66
-66
-66
query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-10
-47
-99
query I rowsort
SELECT ALL col0 + - col1 + - col1 * - 66 FROM tab0 AS cor0
----
1452
162
5280
query I rowsort
SELECT ALL + 16 FROM tab1 cor0
----
16
16
16
onlyif mysql # aggregate syntax:
query I rowsort label-6365
SELECT + 53 * - SUM( - col2 ) FROM tab0
----
8268
skipif mysql # not compatible
query I rowsort label-6365
SELECT + 53 * - SUM ( - col2 ) FROM tab0
----
8268
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6366
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + ( + + ( + col0 ) ) AS col2 FROM tab0
----
1215
1827
97
query I rowsort
SELECT 42 FROM tab0 WHERE NOT - col2 IS NULL
----
42
42
42
query I rowsort
SELECT 26 / - col2 FROM tab2 WHERE NOT - + col1 < NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6370
SELECT - CAST( + - MAX( - 23 ) AS SIGNED ) AS col2 FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-6370
SELECT - CAST ( + - MAX ( - 23 ) AS INTEGER ) AS col2 FROM tab2
----
-23
query II rowsort
SELECT 3 AS col2, + col1 - + 76 AS col1 FROM tab0
----
3
-55
3
-75
3
5
onlyif mysql # aggregate syntax:
query I rowsort label-6372
SELECT DISTINCT - MAX( - col1 ) FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT - MAX ( - col1 ) FROM tab1
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-6373
SELECT + MIN( - - col2 ) AS col2 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-6373
SELECT + MIN ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - - - col0 <= + - col2
----
87
21
10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6375
SELECT + CAST( NULL AS SIGNED ) + - - col0 col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6375
SELECT + CAST ( NULL AS INTEGER ) + - - col0 col2 FROM tab0
----
NULL
NULL
NULL
query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE ( NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6377
SELECT ALL - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6377
SELECT ALL - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 33 AND + col1 + - col0 - - - col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-6379
SELECT DISTINCT - - MAX( ALL 98 ), - COUNT( - 90 ) AS col2 FROM tab1 AS cor0
----
98
-3
skipif mysql # not compatible
query II rowsort label-6379
SELECT DISTINCT - - MAX ( ALL 98 ), - COUNT ( - 90 ) AS col2 FROM tab1 AS cor0
----
98
-3
query I rowsort
SELECT DISTINCT 71 * - ( 94 ) + - 83 FROM tab0 AS cor0
----
-6757
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 88 + - 36 <= ( - col1 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6382
SELECT - col1 + + + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
skipif mysql # not compatible
query I rowsort label-6382
SELECT - col1 + + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6383
SELECT DISTINCT ( + + ( - 98 ) ) * + + 22 - COUNT( * ) + + 80 + + + MAX( ALL - col1 ) + + 61 FROM tab2 cor0
----
-2069
skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT ( + + ( - 98 ) ) * + + 22 - COUNT ( * ) + + 80 + + + MAX ( ALL - col1 ) + + 61 FROM tab2 cor0
----
-2069
query I rowsort
SELECT ALL + + 25 * - - 42 + - + col0 AS col2 FROM tab2 AS cor0
----
1004
975
986
query I rowsort
SELECT - 11 FROM tab2 cor0 WHERE 61 / col0 IS NOT NULL
----
-11
-11
-11
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6386
SELECT DISTINCT ( - + col1 ) - - CAST( - + col2 AS SIGNED ) col0 FROM tab0 cor0
----
-100
-128
-31
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6386
SELECT DISTINCT ( - + col1 ) - - CAST ( - + col2 AS INTEGER ) col0 FROM tab0 cor0
----
-100
-128
-31
query I rowsort
SELECT DISTINCT + 41 - + col2 AS col0 FROM tab2
----
-17
1
18
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6388
SELECT col0 * - ( + col2 ) - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6388
SELECT col0 * - ( + col2 ) - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6389
SELECT ALL - MIN( - col2 ) FROM tab1
----
96
skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL - MIN ( - col2 ) FROM tab1
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-6390
SELECT COUNT( DISTINCT - col2 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6390
SELECT COUNT ( DISTINCT - col2 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6391
SELECT - COUNT( + 42 ) FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-6391
SELECT - COUNT ( + 42 ) FROM tab0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6392
SELECT SUM( + 53 ) AS col2 FROM tab2
----
159
skipif mysql # not compatible
query I rowsort label-6392
SELECT SUM ( + 53 ) AS col2 FROM tab2
----
159
onlyif mysql # DIV for integer division:
query I rowsort label-6393
SELECT ALL col0 DIV + 67 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL col0 / + 67 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6394
SELECT - col1 / + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6394
SELECT - col1 / + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6395
SELECT DISTINCT - SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT - SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66
query I rowsort
SELECT + 93 AS col1 FROM tab2
----
93
93
93
onlyif mysql # aggregate syntax:
query I rowsort label-6397
SELECT DISTINCT COUNT( + + col1 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT COUNT ( + + col1 ) FROM tab2
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6398
SELECT * FROM tab1 WHERE NOT - - col1 + col0 < - 21 * CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-6398
SELECT * FROM tab1 WHERE NOT - - col1 + col0 < - 21 * CAST ( NULL AS REAL )
----
onlyif mysql # DIV for integer division:
query I rowsort label-6399
SELECT ALL + 32 DIV 17 * + + 92 AS col2 FROM tab0 cor0
----
92
92
92
skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + 32 / 17 * + + 92 AS col2 FROM tab0 cor0
----
92
92
92
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6400
SELECT DISTINCT - + 30 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - + 30 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL + col1 + + - 59 FROM tab2 AS cor0
----
-8
18
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab1 AS cor0
----
-64
-64
-64
onlyif mysql # aggregate syntax:
query I rowsort label-6403
SELECT DISTINCT + - COUNT( * ) + - MAX( - col0 ) FROM tab1 AS cor0
----
48
skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + - COUNT ( * ) + - MAX ( - col0 ) FROM tab1 AS cor0
----
48
query I rowsort
SELECT - + ( ( col1 ) ) FROM tab2 AS cor0
----
-51
-67
-77
onlyif mysql # DIV for integer division:
query I rowsort label-6405
SELECT - col0 DIV - 66 AS col2 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6405
SELECT - col0 / - 66 AS col2 FROM tab0
----
0
1
1
onlyif mysql # DIV for integer division:
query I rowsort label-6406
SELECT - 97 DIV - col2 AS col2 FROM tab0
----
0
2
9
skipif mysql # not compatible
query I rowsort label-6406
SELECT - 97 / - col2 AS col2 FROM tab0
----
0
2
9
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6407
SELECT DISTINCT 11 DIV - COUNT( * ) AS col0 FROM tab1, tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT 11 / - COUNT ( * ) AS col0 FROM tab1, tab0 cor0
----
-1
query III rowsort
SELECT ALL * FROM tab0 WHERE 2 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-6409
SELECT DISTINCT - - COUNT( * ) AS col1, - 36 FROM tab0 WHERE + col1 - CAST( NULL AS SIGNED ) IS NOT NULL
----
0
-36
skipif mysql # not compatible
query II rowsort label-6409
SELECT DISTINCT - - COUNT ( * ) AS col1, - 36 FROM tab0 WHERE + col1 - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0
-36
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( - + 57 ) <= - 87
----
query I rowsort
SELECT ALL - - col1 + - - col0 AS col2 FROM tab1 AS cor0
----
138
65
90
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6412
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 / - CAST( NULL AS SIGNED ) > NULL
----
skipif mysql # not compatible
query III rowsort label-6412
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 72 / - CAST ( NULL AS INTEGER ) > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6413
SELECT - + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6413
SELECT - + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 94 AS col0, col1 col1 FROM tab1 AS cor0
----
94
14
94
47
94
5
onlyif mysql # DIV for integer division:
query I rowsort label-6415
SELECT - - col2 * - col2 DIV col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801
skipif mysql # not compatible
query I rowsort label-6415
SELECT - - col2 * - col2 / col2 * + + col2 FROM tab0 AS cor0
----
-100
-2209
-9801
query I rowsort
SELECT ALL col1 * + 99 FROM tab1
----
1386
4653
495
query II rowsort
SELECT DISTINCT col0, - 13 FROM tab2
----
46
-13
64
-13
75
-13
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6418
SELECT 39 - - CAST( NULL AS SIGNED ) * - 43 + + col2 + - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6418
SELECT 39 - - CAST ( NULL AS INTEGER ) * - 43 + + col2 + - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6419
SELECT ALL - COUNT( + 72 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL - COUNT ( + 72 ) FROM tab2 AS cor0
----
-3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-6421
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + COUNT( * ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + COUNT ( * ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT 65 + + col1 AS col2 FROM tab1 AS cor0
----
112
70
79
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + + 49 * + 82 + col0 AS col0 FROM tab0 AS cor0
----
4033
4105
4115
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6425
SELECT + col1 + + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6425
SELECT + col1 + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 40 * - col1 FROM tab1 AS cor0
----
1880
200
560
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6427
SELECT - ( - col0 ) * col0 * - CAST( + col2 AS SIGNED ) - - - 28 + - - 32 FROM tab0 AS cor0
----
-10571
-75686
-931487
skipif mysql # not compatible
query I rowsort label-6427
SELECT - ( - col0 ) * col0 * - CAST ( + col2 AS INTEGER ) - - - 28 + - - 32 FROM tab0 AS cor0
----
-10571
-75686
-931487
onlyif mysql # aggregate syntax:
query I rowsort label-6428
SELECT - COUNT( * ) + 90 col2 FROM tab1 AS cor0
----
87
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6428
SELECT - COUNT ( * ) + 90 col2 FROM tab1 AS cor0
----
87
query I rowsort
SELECT - ( col0 ) + col2 * - 24 FROM tab0 AS cor0
----
-1143
-2473
-327
onlyif mysql # aggregate syntax:
query I rowsort label-6430
SELECT - MAX( + col1 ) FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-6430
SELECT - MAX ( + col1 ) FROM tab1 AS cor0
----
-47
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-6431
SELECT ALL + COUNT( * ) AS col0, 81 DIV + + ( + 99 ) FROM tab2 AS cor0
----
3
0
skipif mysql # not compatible
query II rowsort label-6431
SELECT ALL + COUNT ( * ) AS col0, 81 / + + ( + 99 ) FROM tab2 AS cor0
----
3
0
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6432
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE 11 / + - col0 IS NULL
----
skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE 11 / + - col0 IS NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97
query II rowsort
SELECT col1 * + col0 AS col1, ( - - col2 ) AS col1 FROM tab2
----
2346
23
4928
40
5025
58
query II rowsort
SELECT - ( + 13 ) * col0, col1 FROM tab2 AS cor0
----
-598
51
-832
77
-975
67
query I rowsort
SELECT 69 * + - col1 + col2 FROM tab0 AS cor0
----
-1439
-5542
30
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= - col0
----
query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col1 FROM tab1
----
-4896
-5015
-6188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) col1 FROM tab2
----
23
40
58
query I rowsort
SELECT ALL 9 * + 14 * - col0 AS col1 FROM tab0
----
-10962
-12222
-1890
query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab2
----
51
67
77
query I rowsort
SELECT ALL col2 * 38 FROM tab0
----
1786
3762
380
query I rowsort
SELECT DISTINCT 94 * col2 FROM tab2
----
2162
3760
5452
onlyif mysql # aggregate syntax:
query I rowsort label-6444
SELECT SUM( DISTINCT - col1 ) FROM tab0
----
-103
skipif mysql # not compatible
query I rowsort label-6444
SELECT SUM ( DISTINCT - col1 ) FROM tab0
----
-103
query I rowsort
SELECT DISTINCT - 98 * - - col0 AS col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-6446
SELECT DISTINCT - COUNT( * ) * + - 57 DIV COUNT( * ) AS col0, - COUNT( ALL - col2 ) col0 FROM tab2 AS cor0
----
57
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6446
SELECT DISTINCT - COUNT ( * ) * + - 57 / COUNT ( * ) AS col0, - COUNT ( ALL - col2 ) col0 FROM tab2 AS cor0
----
57
-3
query I rowsort
SELECT ALL + col1 + - + col2 FROM tab0 AS cor0
----
-98
11
34
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 NOT IN ( - col2, col2 + - col1, - ( - col2 ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 + - 99 col0 FROM tab0 AS cor0
----
-18
-18
-18
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 <> NULL
----
query I rowsort
SELECT DISTINCT 39 * + col0 * - col1 AS col0 FROM tab0
----
-3783
-47385
-71253
query I rowsort
SELECT DISTINCT + + col0 FROM tab0 WHERE NOT - ( + 44 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6453
SELECT ALL + COUNT( col0 ) * + - 23 FROM tab0
----
-69
skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + COUNT ( col0 ) * + - 23 FROM tab0
----
-69
onlyif mysql # aggregate syntax:
query I rowsort label-6454
SELECT + 27 * + MIN( - - 49 ) FROM tab2
----
1323
skipif mysql # not compatible
query I rowsort label-6454
SELECT + 27 * + MIN ( - - 49 ) FROM tab2
----
1323
query I rowsort
SELECT ALL ( ( - 92 ) ) FROM tab1
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * + col2 col2 FROM tab0
----
2867
6039
610
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab1
----
69
69
69
query I rowsort
SELECT DISTINCT - - col0 - - 39 * col1 FROM tab2 cor0
----
2035
2688
3067
onlyif mysql # DIV for integer division:
query I rowsort label-6459
SELECT col0 DIV col2 + + ( + + ( + 82 ) ) col0 FROM tab1
----
82
83
83
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6459
SELECT col0 / col2 + + ( + + ( + 82 ) ) col0 FROM tab1
----
82
83
83
onlyif mysql # aggregate syntax:
query I rowsort label-6460
SELECT - COUNT( * ) * COUNT( * ) col1 FROM tab0
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6460
SELECT - COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
-9
query I rowsort
SELECT + col2 * + + col1 * col0 * - + col0 FROM tab0
----
-1589490
-856575
-931491
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 <> ( 71 )
----
query I rowsort
SELECT - - col2 + col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6464
SELECT - + col0 * + CAST( - 60 AS SIGNED ) + - - col1 + col2 AS col1, col0 AS col2 FROM tab1 AS cor0
----
3170
51
5164
85
5575
91
skipif mysql # not compatible
query II rowsort label-6464
SELECT - + col0 * + CAST ( - 60 AS INTEGER ) + - - col1 + col2 AS col1, col0 AS col2 FROM tab1 AS cor0
----
3170
51
5164
85
5575
91
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col2 + - col2 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6467
SELECT SUM( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-6467
SELECT SUM ( DISTINCT + - col1 ) AS col1 FROM tab0 AS cor0
----
-103
query II rowsort
SELECT 69, - 55 * 76 AS col0 FROM tab1
----
69
-4180
69
-4180
69
-4180
onlyif mysql # aggregate syntax:
query I rowsort label-6469
SELECT SUM( - - col1 ) AS col1 FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-6469
SELECT SUM ( - - col1 ) AS col1 FROM tab1
----
66
query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 FROM tab2
----
-46
51
-64
77
-75
67
query II rowsort
SELECT ALL 76 AS col0, - 92 * + col2 - col1 FROM tab1
----
76
-5433
76
-6303
76
-8846
query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab1 WHERE NOT + + 81 + ( - + col2 ) IS NOT NULL
----
query I rowsort
SELECT ALL - ( + - col0 ) AS col0 FROM tab1
----
51
85
91
onlyif mysql # DIV for integer division:
query I rowsort label-6475
SELECT col1 * col1 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-6475
SELECT col1 * col1 / - + col1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - ( - - 77 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + col0 * + col2 + + col2 FROM tab0 AS cor0
----
752
880
9702
query I rowsort
SELECT - + 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT DISTINCT 31 * + col1 FROM tab2
----
1581
2077
2387
query I rowsort
SELECT - - 76 FROM tab2 WHERE NOT ( + + col1 ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6481
SELECT ALL col1 DIV - + ( col1 ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL col1 / - + ( col1 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - 28 + - col2 + + 38 FROM tab2 cor0
----
-13
-30
-48
query I rowsort
SELECT ALL - AVG ( col2 ) * - ( 19 ) AS col1 FROM tab2 AS cor0 WHERE 96 IS NULL
----
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + 59
----
query I rowsort
SELECT DISTINCT + ( 91 ) + col0 * + col2 AS col1 FROM tab0 AS cor0
----
796
961
9694
query I rowsort
SELECT ALL - 5 + - col1 * + 74 FROM tab0 AS cor0
----
-1559
-5999
-79
query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
128
31
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-6488
SELECT - AVG ( + ( + + 9 ) ) + + MIN( DISTINCT - + 88 ) + + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6488
SELECT - AVG ( + ( + + 9 ) ) + + MIN ( DISTINCT - + 88 ) + + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 * + col0 + - 74 * col2 * col2 * - col0 FROM tab2 AS cor0
----
1802832
18675825
7581696
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6490
SELECT DISTINCT - - COUNT( - col2 ) DIV COUNT( ALL - col0 ) FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - - COUNT ( - col2 ) / COUNT ( ALL - col0 ) FROM tab1 AS cor0
----
1
query I rowsort
SELECT 89 + - 86 + + + 18 AS col2 FROM tab1
----
21
21
21
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6492
SELECT DISTINCT + col0 * + col0 - - col0 * + 56, + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1065
NULL
12441
NULL
14841
NULL
skipif mysql # not compatible
query II rowsort label-6492
SELECT DISTINCT + col0 * + col0 - - col0 * + 56, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1065
NULL
12441
NULL
14841
NULL
query II rowsort
SELECT ALL col1, + col1 FROM tab2
----
51
51
67
67
77
77
query II rowsort
SELECT ALL col1, - col0 * 5 AS col2 FROM tab0
----
1
-485
21
-435
81
-75
query III rowsort
SELECT * FROM tab2 WHERE - 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-6496
SELECT DISTINCT - COUNT( * ) + 39 AS col2 FROM tab0
----
36
skipif mysql # not compatible
query I rowsort label-6496
SELECT DISTINCT - COUNT ( * ) + 39 AS col2 FROM tab0
----
36
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6497
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + ( col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96
skipif mysql # not compatible
query II rowsort label-6497
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + ( col2 ) FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96
onlyif mysql # aggregate syntax:
query II rowsort label-6498
SELECT COUNT( * ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3
skipif mysql # not compatible
query II rowsort label-6498
SELECT COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3
query I rowsort
SELECT ALL col2 + - 43 AS col2 FROM tab1 AS cor0
----
16
25
53
query II rowsort
SELECT ALL - col0 + + - ( col0 ), col2 + + col2 AS col0 FROM tab0 AS cor0
----
-174
20
-194
198
-30
94
query III rowsort
SELECT ALL * FROM tab2 WHERE - 24 * - + ( + col0 ) = col0 + - - col0
----
query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab0 WHERE NOT col1 + - - ( - col2 ) * - col0 IS NULL
----
1
21
81
onlyif mysql # aggregate syntax:
query II rowsort label-6503
SELECT 62 * COUNT( * ), + 46 col0 FROM tab2
----
186
46
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6503
SELECT 62 * COUNT ( * ), + 46 col0 FROM tab2
----
186
46
query I rowsort
SELECT ALL - 9 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
onlyif mysql # aggregate syntax:
query I rowsort label-6505
SELECT + MIN( ALL - - 86 ) FROM tab1 AS cor0
----
86
skipif mysql # not compatible
query I rowsort label-6505
SELECT + MIN ( ALL - - 86 ) FROM tab1 AS cor0
----
86
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN NULL AND 70
----
75
67
58
query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT ALL + + col2 * - + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 IN ( - col1, - col0 + - ( col2 ), 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - - 18 FROM tab2 WHERE NOT col0 IS NOT NULL
----
query II rowsort
SELECT 33, + col2 AS col1 FROM tab1
----
33
59
33
68
33
96
onlyif mysql # aggregate syntax:
query I rowsort label-6512
SELECT DISTINCT - MIN( ALL - 42 ) FROM tab1
----
42
skipif mysql # not compatible
query I rowsort label-6512
SELECT DISTINCT - MIN ( ALL - 42 ) FROM tab1
----
42
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - col1 * - col1 * ( 13 ) AND NULL
----
query III rowsort
SELECT ALL * FROM tab1 WHERE + 17 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col2 FROM tab0
----
-1
-21
-81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6516
SELECT ALL + CAST( NULL AS SIGNED ) + + - ( - col0 ) - - 74 + - col1 AS col2 FROM tab0 WHERE - col0 > + col2
----
skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL + CAST ( NULL AS INTEGER ) + + - ( - col0 ) - - 74 + - col1 AS col2 FROM tab0 WHERE - col0 > + col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + 44 col1 FROM tab2 AS cor0
----
2244
2948
3388
onlyif mysql # DIV for integer division:
query I rowsort label-6518
SELECT col2 DIV 49 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6518
SELECT col2 / 49 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
51
85
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, col1 * - col2 * + col2 col0 FROM tab1
----
51
-129024
85
-17405
91
-217328
query I rowsort
SELECT - 1 * + ( - + col2 ) AS col1 FROM tab2
----
23
40
58
query I rowsort
SELECT DISTINCT - 34 * + 53 * + 48 * + 65 + + col0 FROM tab1
----
-5622149
-5622155
-5622189
query I rowsort
SELECT + - col0 + - 78 FROM tab1 AS cor0
----
-129
-163
-169
query I rowsort
SELECT + + 41 + + 31 FROM tab1 AS cor0
----
72
72
72
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= + + ( + 96 )
----
query I rowsort
SELECT - 77 AS col2 FROM tab1 AS cor0 WHERE col1 + - - col2 NOT BETWEEN - - 45 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6527
SELECT ALL + COUNT( * ) AS col2 FROM tab2 cor0 WHERE + col2 BETWEEN col0 AND col2
----
0
skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + col2 BETWEEN col0 AND col2
----
0
query II rowsort
SELECT ALL + 87 + + 93, col0 - - ( + + col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
180
101
180
74
180
84
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6529
SELECT ALL CAST( NULL AS DECIMAL ) * - 52 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL CAST ( NULL AS REAL ) * - 52 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6530
SELECT DISTINCT + - 69 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT + - 69 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-66
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6531
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN + col0 AND + + col2 / CAST( NULL AS SIGNED ) * - + ( col2 ) + - col2 * - col2 * - + col2
----
87
21
10
skipif mysql # not compatible
query III rowsort label-6531
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN + col0 AND + + col2 / CAST ( NULL AS INTEGER ) * - + ( col2 ) + - col2 * - col2 * - + col2
----
87
21
10
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6532
SELECT ALL 36 AS col1, col1 * + col1 FROM tab2 WHERE NOT + CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) < - + col0
----
skipif mysql # not compatible
query II rowsort label-6532
SELECT ALL 36 AS col1, col1 * + col1 FROM tab2 WHERE NOT + CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) < - + col0
----
query I rowsort
SELECT col2 * + ( + col2 ) FROM tab2
----
1600
3364
529
onlyif mysql # aggregate syntax:
query I rowsort label-6534
SELECT COUNT( - col0 ) * COUNT( * ) FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-6534
SELECT COUNT ( - col0 ) * COUNT ( * ) FROM tab1
----
9
query I rowsort
SELECT 65 * 80 FROM tab0
----
5200
5200
5200
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6536
SELECT * FROM tab0 WHERE + - col0 * + - col0 + ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-6536
SELECT * FROM tab0 WHERE + - col0 * + - col0 + ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + col0 - - 36 AS col2 FROM tab1
----
121
127
87
query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab0
----
-88
query I rowsort
SELECT + ( + + 8 ) - - col1 * - - col1 FROM tab2
----
2609
4497
5937
onlyif mysql # DIV for integer division:
query I rowsort label-6540
SELECT - col2 DIV + - ( - - col0 ) - 59 AS col2 FROM tab2
----
-59
-59
-59
skipif mysql # not compatible
query I rowsort label-6540
SELECT - col2 / + - ( - - col0 ) - 59 AS col2 FROM tab2
----
-59
-59
-59
onlyif mysql # aggregate syntax:
query II rowsort label-6541
SELECT DISTINCT MIN( DISTINCT - col0 ), - 70 + 34 - - ( MAX( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-75
-82
skipif mysql # not compatible
query II rowsort label-6541
SELECT DISTINCT MIN ( DISTINCT - col0 ), - 70 + 34 - - ( MAX ( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-75
-82
query I rowsort
SELECT + + col0 + - + col0 + - 21 + 14 AS col2 FROM tab2 cor0 WHERE + col1 * - col0 > + + ( ( + - col1 ) )
----
query I rowsort
SELECT + 70 FROM tab1 cor0 WHERE 85 * - col1 >= + col2 * + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6544
SELECT - - CAST( NULL AS SIGNED ) + - + col0 * + - 42 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6544
SELECT - - CAST ( NULL AS INTEGER ) + - + col0 * + - 42 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col2
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col2 + col2 / + + 52 - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-6547
SELECT + COUNT( DISTINCT + col1 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6547
SELECT + COUNT ( DISTINCT + col1 ) FROM tab2
----
3
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 65 AND + col2 + - 95
----
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6550
SELECT ALL MAX( col1 ) * - + CAST( - 41 AS SIGNED ) col1 FROM tab2 AS cor0
----
3157
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT ALL MAX ( col1 ) * - + CAST ( - 41 AS INTEGER ) col1 FROM tab2 AS cor0
----
3157
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6552
SELECT COUNT( * ) * - COUNT( * ) - - + 15 AS col1 FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-6552
SELECT COUNT ( * ) * - COUNT ( * ) - - + 15 AS col1 FROM tab0 AS cor0
----
6
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6553
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS DECIMAL ) * - + col1 AND NULL
----
skipif mysql # not compatible
query III rowsort label-6553
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS REAL ) * - + col1 AND NULL
----
query I rowsort
SELECT + 79 * - col1 + - + col1 FROM tab0 AS cor0
----
-1680
-6480
-80
query I rowsort
SELECT + ( + + col0 ) FROM tab0
----
15
87
97
query I rowsort
SELECT - col2 * + + col2 AS col2 FROM tab0
----
-100
-2209
-9801
onlyif mysql # DIV for integer division:
query I rowsort label-6557
SELECT + col0 DIV - + ( - col1 ) FROM tab1
----
1
17
3
skipif mysql # not compatible
query I rowsort label-6557
SELECT + col0 / - + ( - col1 ) FROM tab1
----
1
17
3
onlyif mysql # aggregate syntax:
query I rowsort label-6558
SELECT 90 * COUNT( * ) FROM tab1
----
270
skipif mysql # not compatible
query I rowsort label-6558
SELECT 90 * COUNT ( * ) FROM tab1
----
270
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > + col1
----
onlyif mysql # DIV for integer division:
query I rowsort label-6560
SELECT DISTINCT ( 40 ) DIV - 55 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT ( 40 ) / - 55 FROM tab1
----
0
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6561
SELECT ALL CAST( col1 AS SIGNED ) AS col1, col0 FROM tab0
----
1
97
21
87
81
15
skipif mysql # not compatible
query II rowsort label-6561
SELECT ALL CAST ( col1 AS INTEGER ) AS col1, col0 FROM tab0
----
1
97
21
87
81
15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6562
SELECT ALL 43 + col1 FROM tab1 WHERE - col2 NOT IN ( - ( + CAST( col1 AS SIGNED ) ), col2, + col0, 65 )
----
48
57
90
skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL 43 + col1 FROM tab1 WHERE - col2 NOT IN ( - ( + CAST ( col1 AS INTEGER ) ), col2, + col0, 65 )
----
48
57
90
query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab1
----
-95
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > + - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - + 52 col2 FROM tab0 cor0
----
-31
-51
29
query I rowsort
SELECT + col0 + - col1 * col0 AS col2 FROM tab1 cor0
----
-340
-4186
-663
onlyif mysql # aggregate syntax:
query I rowsort label-6567
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6567
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT + 91 * - col0 FROM tab1
----
-4641
-7735
-8281
query I rowsort
SELECT - col1 * - 34 AS col1 FROM tab2
----
1734
2278
2618
query III rowsort
SELECT * FROM tab1 WHERE col2 * - + col2 + col0 + - col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6571
SELECT ALL ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6572
SELECT - ( - + COUNT( * ) ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - 97 + - col2 * + + 36 AND - - ( + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-6572
SELECT - ( - + COUNT ( * ) ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 97 + - col2 * + + 36 AND - - ( + col2 )
----
0
query I rowsort
SELECT ALL + + col2 + + + col0 AS col0 FROM tab1 AS cor0
----
144
147
159
query I rowsort
SELECT col0 - + col1 * - 73 AS col2 FROM tab1 AS cor0
----
1073
3522
450
query I rowsort
SELECT + + 53 * - 68 AS col1 FROM tab2 cor0 WHERE col1 <> NULL
----
query I rowsort
SELECT DISTINCT - + col2 + + + col0 - + - col2 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
198
2258
9800
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-6577
SELECT - COUNT( * ) * + 96 + - CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6577
SELECT - COUNT ( * ) * + 96 + - CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 46 + - 84 * + + 31 AS col1 FROM tab1 AS cor0
----
-2650
-2650
-2650
query I rowsort
SELECT + ( - col1 ) + - 16 AS col1 FROM tab2 AS cor0
----
-67
-83
-93
query I rowsort
SELECT DISTINCT col2 + col1 + 15 AS col0 FROM tab0
----
115
143
46
onlyif mysql # aggregate syntax:
query I rowsort label-6581
SELECT - 25 + + COUNT( * ) col1 FROM tab1
----
-22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT - 25 + + COUNT ( * ) col1 FROM tab1
----
-22
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6582
SELECT - 83 + COUNT( * ) + + + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-6582
SELECT - 83 + COUNT ( * ) + + + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-81
query I rowsort
SELECT + 32 * - + col0 FROM tab1
----
-1632
-2720
-2912
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col0 + - col2 + - - 10
----
query I rowsort
SELECT + col1 * - 37 * + + col0 FROM tab1
----
-15725
-158249
-26418
onlyif mysql # aggregate syntax:
query II rowsort label-6586
SELECT 67 AS col0, ( - 64 ) + + MAX( + 89 ) * COUNT( * ) * - 44 AS col0 FROM tab2 AS cor0
----
67
-11812
skipif mysql # not compatible
query II rowsort label-6586
SELECT 67 AS col0, ( - 64 ) + + MAX ( + 89 ) * COUNT ( * ) * - 44 AS col0 FROM tab2 AS cor0
----
67
-11812
onlyif mysql # aggregate syntax:
query I rowsort label-6587
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT ( ( NOT NULL IS NULL ) ) )
----
3
skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT ( ( NOT NULL IS NULL ) ) )
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6588
SELECT ALL + + MAX( + - 80 ) AS col2 FROM tab0 AS cor0
----
-80
skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + + MAX ( + - 80 ) AS col2 FROM tab0 AS cor0
----
-80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6589
SELECT ALL + ( + CAST( + col1 AS SIGNED ) ) * + + col0 FROM tab0 AS cor0
----
1215
1827
97
skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL + ( + CAST ( + col1 AS INTEGER ) ) * + + col0 FROM tab0 AS cor0
----
1215
1827
97
query I rowsort
SELECT ALL - 97 * + ( - 70 ) AS col2 FROM tab0 AS cor0
----
6790
6790
6790
query I rowsort
SELECT DISTINCT - + 90 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-90
query I rowsort
SELECT ALL - 62 AS col0 FROM tab1
----
-62
-62
-62
onlyif mysql # aggregate syntax:
query I rowsort label-6593
SELECT SUM( + 64 ) * COUNT( * ) * + 96 FROM tab1
----
55296
skipif mysql # not compatible
query I rowsort label-6593
SELECT SUM ( + 64 ) * COUNT ( * ) * + 96 FROM tab1
----
55296
query I rowsort
SELECT 81 * - col2 FROM tab1 AS cor0
----
-4779
-5508
-7776
query I rowsort
SELECT DISTINCT - + 39 * + + col0 * - 59 AS col1 FROM tab0 AS cor0
----
200187
223197
34515
onlyif mysql # DIV for integer division:
query II rowsort label-6596
SELECT DISTINCT + - 41 DIV - col1 AS col0, - 81 col2 FROM tab0 AS cor0
----
0
-81
1
-81
41
-81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6596
SELECT DISTINCT + - 41 / - col1 AS col0, - 81 col2 FROM tab0 AS cor0
----
0
-81
1
-81
41
-81
query I rowsort
SELECT - col2 * - 92 FROM tab2 cor0
----
2116
3680
5336
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-6598
SELECT CAST( - - 61 AS SIGNED ) * + + COUNT( * ) DIV + COUNT( - - col0 ) AS col0 FROM tab1 AS cor0
----
61
skipif mysql # not compatible
query I rowsort label-6598
SELECT CAST ( - - 61 AS INTEGER ) * + + COUNT ( * ) / + COUNT ( - - col0 ) AS col0 FROM tab1 AS cor0
----
61
query I rowsort
SELECT 98 * + col0 AS col2 FROM tab2 AS cor0
----
4508
6272
7350
query I rowsort
SELECT ALL + 37 FROM tab0 cor0
----
37
37
37
query II rowsort
SELECT DISTINCT 12, - col1 AS col2 FROM tab0
----
12
-1
12
-21
12
-81
query I rowsort
SELECT ALL 50 FROM tab2 WHERE NOT 32 IS NULL
----
50
50
50
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT ( + col1 ) < - col0 * - - col2
----
51
67
77
onlyif mysql # aggregate syntax:
query I rowsort label-6604
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-6605
SELECT - COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-6605
SELECT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
-3
query II rowsort
SELECT col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6607
SELECT CAST( - + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81
skipif mysql # not compatible
query I rowsort label-6607
SELECT CAST ( - + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < + 76 * - col0
----
query II rowsort
SELECT col2 AS col2, 53 AS col2 FROM tab1 AS cor0
----
59
53
68
53
96
53
onlyif mysql # aggregate syntax:
query I rowsort label-6610
SELECT DISTINCT COUNT( * ) + + - 75 FROM tab1 AS cor0
----
-72
skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT COUNT ( * ) + + - 75 FROM tab1 AS cor0
----
-72
onlyif mysql # aggregate syntax:
query I rowsort label-6611
SELECT - 82 * COUNT( - col2 ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
738
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6611
SELECT - 82 * COUNT ( - col2 ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
738
query II rowsort
SELECT DISTINCT + col2, + col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= NULL ) OR - col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6613
SELECT ALL MIN( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL MIN ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT ALL - 76 - col0 * + col2 AS col1 FROM tab0
----
-781
-946
-9679
query III rowsort
SELECT * FROM tab0 WHERE ( 80 ) IS NULL
----
query III rowsort
SELECT * FROM tab2 WHERE ( 77 + 30 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6617
SELECT COUNT( * ) * 69 AS col1 FROM tab1
----
207
skipif mysql # not compatible
query I rowsort label-6617
SELECT COUNT ( * ) * 69 AS col1 FROM tab1
----
207
query I rowsort
SELECT DISTINCT col0 * - ( 51 ) AS col1 FROM tab2 WHERE 13 * col2 IN ( + 0 )
----
query I rowsort
SELECT 46 * - col2 FROM tab2
----
-1058
-1840
-2668
query I rowsort
SELECT DISTINCT 76 + - col2 * col2 FROM tab2
----
-1524
-3288
-453
query I rowsort
SELECT DISTINCT - 49 + col1 FROM tab1 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT + col1 * + 13 FROM tab1 WHERE col1 * 40 IS NULL
----
query I rowsort
SELECT col0 * 31 AS col1 FROM tab0
----
2697
3007
465
onlyif mysql # aggregate syntax:
query I rowsort label-6624
SELECT COUNT( * ) + COUNT( * ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-6624
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2
----
6
query I rowsort
SELECT + 89 + 22 * 12 AS col1 FROM tab1
----
353
353
353
onlyif mysql # DIV for integer division:
query I rowsort label-6626
SELECT - 94 DIV ( ( col1 ) * col2 ) + + 90 FROM tab2
----
90
90
90
skipif mysql # not compatible
query I rowsort label-6626
SELECT - 94 / ( ( col1 ) * col2 ) + + 90 FROM tab2
----
90
90
90
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL <> 19 + + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-6628
SELECT DISTINCT + ( MAX( col2 ) ) * 74 AS col2 FROM tab0
----
7326
skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT + ( MAX ( col2 ) ) * 74 AS col2 FROM tab0
----
7326
query I rowsort
SELECT DISTINCT - 54 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6630
SELECT MAX( ALL 27 ) FROM tab2
----
27
skipif mysql # not compatible
query I rowsort label-6630
SELECT MAX ( ALL 27 ) FROM tab2
----
27
onlyif mysql # DIV for integer division:
query I rowsort label-6631
SELECT DISTINCT + 6 DIV + col2 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + 6 / + col2 AS col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT - 26 * 9 - col0 FROM tab2
----
-280
-298
-309
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6633
SELECT ALL * FROM tab0 WHERE CAST( 37 AS SIGNED ) + 65 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-6633
SELECT ALL * FROM tab0 WHERE CAST ( 37 AS INTEGER ) + 65 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - col1 + + col1 * col0 FROM tab2 WHERE ( - col2 ) IN ( col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT 12 BETWEEN NULL AND - col1 + + col2
----
15
81
47
87
21
10
query I rowsort
SELECT 54 - col2 * 67 FROM tab2
----
-1487
-2626
-3832
query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 + - 34 ) > + col2
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 / - 73 )
----
query I rowsort
SELECT 91 + col0 AS col1 FROM tab1
----
142
176
182
onlyif mysql # DIV for integer division:
query I rowsort label-6640
SELECT 60 DIV - 13 AS col0 FROM tab1
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-6640
SELECT 60 / - 13 AS col0 FROM tab1
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 * - col2 + - 73 col0 FROM tab2
----
-1637
-2793
-4017
onlyif mysql # aggregate syntax:
query I rowsort label-6642
SELECT + MAX( ALL + col2 ) FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-6642
SELECT + MAX ( ALL + col2 ) FROM tab0 AS cor0
----
99
onlyif mysql # aggregate syntax:
query I rowsort label-6643
SELECT ALL MAX( + col0 ) col1 FROM tab0 AS cor0
----
97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6643
SELECT ALL MAX ( + col0 ) col1 FROM tab0 AS cor0
----
97
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6644
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6644
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( 15 ) FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT + col0 FROM tab2 WHERE NOT 55 * col2 + - col0 <= - col2
----
46
64
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 96 ) * - col2 col1 FROM tab0
----
-4512
-9504
-960
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 7 * col2
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT + - 88 * + col0 FROM tab2 cor0
----
-4048
-5632
-6600
onlyif mysql # aggregate syntax:
query I rowsort label-6651
SELECT - ( + SUM( + 70 ) ) * + 12 FROM tab2 AS cor0
----
-2520
skipif mysql # not compatible
query I rowsort label-6651
SELECT - ( + SUM ( + 70 ) ) * + 12 FROM tab2 AS cor0
----
-2520
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT ( + 9 * col1 ) <= 91 * - col0
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 cor0 WHERE NOT col2 IS NULL
----
-15
-87
-97
onlyif mysql # DIV for integer division:
query I rowsort label-6654
SELECT ALL - - col2 DIV + 2 AS col2 FROM tab1 AS cor0
----
29
34
48
skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - - col2 / + 2 AS col2 FROM tab1 AS cor0
----
29
34
48
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col2 )
----
query I rowsort
SELECT + - col2 * ( + 56 ) AS col2 FROM tab0 AS cor0
----
-2632
-5544
-560
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6657
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + 31 ) IS NOT NULL
----
14
47
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6657
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + 31 ) IS NOT NULL
----
14
47
5
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 * - 60 )
----
query I rowsort
SELECT - - col0 * 52 FROM tab1 AS cor0
----
2652
4420
4732
query I rowsort
SELECT ( + 34 ) AS col1 FROM tab1 cor0
----
34
34
34
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 37 <= - col0 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-6662
SELECT ALL + COUNT( col0 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL + COUNT ( col0 ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT DISTINCT - + 39 * col1 FROM tab0 AS cor0
----
-3159
-39
-819
onlyif mysql # aggregate syntax:
query I rowsort label-6664
SELECT DISTINCT COUNT( * ) * + COUNT( ALL + 46 ) * COUNT( + col2 ) col1 FROM tab0
----
27
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT DISTINCT COUNT ( * ) * + COUNT ( ALL + 46 ) * COUNT ( + col2 ) col1 FROM tab0
----
27
onlyif mysql # DIV for integer division:
query I rowsort label-6665
SELECT DISTINCT 99 DIV 11 AS col1 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT 99 / 11 AS col1 FROM tab2
----
9
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6666
SELECT * FROM tab2 WHERE NOT col1 BETWEEN CAST( - col0 AS SIGNED ) AND col0
----
46
51
23
64
77
40
skipif mysql # not compatible
query III rowsort label-6666
SELECT * FROM tab2 WHERE NOT col1 BETWEEN CAST ( - col0 AS INTEGER ) AND col0
----
46
51
23
64
77
40
query I rowsort
SELECT + 22 AS col2 FROM tab2
----
22
22
22
onlyif mysql # aggregate syntax:
query I rowsort label-6668
SELECT COUNT( * ) col2 FROM tab2
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6668
SELECT COUNT ( * ) col2 FROM tab2
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-6669
SELECT DISTINCT + col1 DIV + ( 36 ) FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + col1 / + ( 36 ) FROM tab2
----
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * - col2 * + col2 col0 FROM tab1
----
-156645
-208080
-414720
onlyif mysql # aggregate syntax:
query I rowsort label-6671
SELECT DISTINCT ( - COUNT( DISTINCT col1 ) ) + - MIN( col2 ) FROM tab0
----
-13
skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT ( - COUNT ( DISTINCT col1 ) ) + - MIN ( col2 ) FROM tab0
----
-13
query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( col1 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL - ( - col1 ) * 20 FROM tab1
----
100
280
940
onlyif mysql # aggregate syntax:
query I rowsort label-6674
SELECT ALL COUNT( * ) FROM tab0 WHERE - col0 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col0 IS NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6675
SELECT DISTINCT 76 + COUNT( * ) - MIN( ALL - col2 ) FROM tab2 AS cor0
----
137
skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT 76 + COUNT ( * ) - MIN ( ALL - col2 ) FROM tab2 AS cor0
----
137
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6676
SELECT ALL + 0 / col2 + - 76 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL + 0 / col2 + - 76 * - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( 39 ) + + 59 * 12 FROM tab1 AS cor0
----
747
747
747
query I rowsort
SELECT - - 43 AS col0 FROM tab1 AS cor0
----
43
43
43
query I rowsort
SELECT + ( - + col0 ) FROM tab2 AS cor0
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query I rowsort label-6680
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE ( + ( - col1 ) IN ( - 37 / col1 ) )
----
0
skipif mysql # not compatible
query I rowsort label-6680
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE ( + ( - col1 ) IN ( - 37 / col1 ) )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6681
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9
skipif mysql # not compatible
query I rowsort label-6681
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9
query I rowsort
SELECT - col1 + - col2 * 42 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1 AS cor0
----
60
onlyif mysql # DIV for integer division:
query I rowsort label-6684
SELECT 49 - 69 + - col1 DIV col0 col0 FROM tab2 cor0
----
-20
-21
-21
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6684
SELECT 49 - 69 + - col1 / col0 col0 FROM tab2 cor0
----
-20
-21
-21
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----
query I rowsort
SELECT - + 96 FROM tab0 AS cor0 WHERE 29 IS NULL
----
query I rowsort
SELECT ALL ( + 9 ) / - col2 - - col1 * col1 AS col2 FROM tab0 cor0 WHERE NOT - ( col0 ) IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + 21 ) IS NULL
----
query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL <> + 88
----
onlyif mysql # aggregate syntax:
query I rowsort label-6690
SELECT COUNT( * ) + - + 99 FROM tab0 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-6690
SELECT COUNT ( * ) + - + 99 FROM tab0 AS cor0
----
-96
onlyif mysql # aggregate syntax:
query I rowsort label-6691
SELECT - + COUNT( * ) + - + 15 FROM tab0 AS cor0
----
-18
skipif mysql # not compatible
query I rowsort label-6691
SELECT - + COUNT ( * ) + - + 15 FROM tab0 AS cor0
----
-18
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6692
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( - ( + col2 ) * + 66 ) AND 78
----
skipif mysql # not compatible
query III rowsort label-6692
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( - ( + col2 ) * + 66 ) AND 78
----
onlyif mysql # aggregate syntax:
query I rowsort label-6693
SELECT ALL - 66 - + + COUNT( * ) AS col1 FROM tab2
----
-69
skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL - 66 - + + COUNT ( * ) AS col1 FROM tab2
----
-69
query I rowsort
SELECT DISTINCT + col0 * + 61 AS col1 FROM tab1
----
3111
5185
5551
query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT - 26 FROM tab0 WHERE NOT + 75 + + + 64 IS NULL
----
-26
-26
-26
query I rowsort
SELECT col2 * - + col1 * - - col2 FROM tab0
----
-178929
-2100
-9801
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6698
SELECT ALL - CAST( - AVG ( col1 ) AS SIGNED ) FROM tab2 AS cor0
----
65
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL - CAST ( - AVG ( col1 ) AS INTEGER ) FROM tab2 AS cor0
----
65
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6699
SELECT ALL + SUM( - - 70 ) FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) <= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL + SUM ( - - 70 ) FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= NULL
----
NULL
query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + - col2 IS NULL
----
15
87
97
query I rowsort
SELECT ALL + 80 AS col0 FROM tab0 AS cor0 WHERE ( + col1 * - + col1 + - + col1 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6702
SELECT ALL col0 col0 FROM tab2 AS cor0 WHERE NOT + ( - 74 ) + + CAST( - col0 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT ALL col0 col0 FROM tab2 AS cor0 WHERE NOT + ( - 74 ) + + CAST ( - col0 AS INTEGER ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6703
SELECT + 87 * - ( - CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
-4437
-5829
-6699
skipif mysql # not compatible
query I rowsort label-6703
SELECT + 87 * - ( - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-4437
-5829
-6699
query I rowsort
SELECT - col2 + + - 6 FROM tab0 cor0
----
-105
-16
-53
query I rowsort
SELECT ALL + col1 + 16 FROM tab1 AS cor0 WHERE NOT - col0 <= 74 * + + col0 * col2
----
query I rowsort
SELECT 52 * + + 2 * + 41 + - - col1 FROM tab1 AS cor0
----
4269
4278
4311
query I rowsort
SELECT DISTINCT - + 74 AS col0 FROM tab0 AS cor0
----
-74
onlyif mysql # aggregate syntax:
query I rowsort label-6708
SELECT + + COUNT( * ) + - 39 AS col1 FROM tab0 AS cor0
----
-36
skipif mysql # not compatible
query I rowsort label-6708
SELECT + + COUNT ( * ) + - 39 AS col1 FROM tab0 AS cor0
----
-36
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----
query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( col0 / 82 * + 83 + + col2 - - col0 * 9 ) > ( - col2 )
----
10
47
99
query I rowsort
SELECT DISTINCT - 38 * + - col0 AS col2 FROM tab2
----
1748
2432
2850
query I rowsort
SELECT ALL ( - - 61 ) * - ( - col1 ) AS col0 FROM tab1
----
2867
305
854
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NOT NULL BETWEEN ( NULL ) AND ( NULL ) ) )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col0 FROM tab0
----
66
66
66
onlyif mysql # DIV for integer division:
query I rowsort label-6715
SELECT DISTINCT 96 DIV + + ( - 7 ) AS col1 FROM tab1
----
-13
skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT 96 / + + ( - 7 ) AS col1 FROM tab1
----
-13
onlyif mysql # aggregate syntax:
query II rowsort label-6716
SELECT + COUNT( * ), + COUNT( * ) FROM tab2
----
3
3
skipif mysql # not compatible
query II rowsort label-6716
SELECT + COUNT ( * ), + COUNT ( * ) FROM tab2
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-6717
SELECT + MAX( ALL + + 49 ) AS col2 FROM tab0
----
49
skipif mysql # not compatible
query I rowsort label-6717
SELECT + MAX ( ALL + + 49 ) AS col2 FROM tab0
----
49
query I rowsort
SELECT - col0 * - col1 * + 15 FROM tab0
----
1455
18225
27405
query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col0 FROM tab2
----
-8
13
5
query I rowsort
SELECT 97 * + 50 FROM tab0
----
4850
4850
4850
query I rowsort
SELECT + + 58 - - 5 FROM tab1 WHERE + + col0 IS NULL
----
query II rowsort
SELECT DISTINCT + col0, col1 AS col2 FROM tab2
----
46
51
64
77
75
67
onlyif mysql # aggregate syntax:
query I rowsort label-6723
SELECT - - SUM( - + col1 ) AS col1 FROM tab2 cor0
----
-195
skipif mysql # not compatible
query I rowsort label-6723
SELECT - - SUM ( - + col1 ) AS col1 FROM tab2 cor0
----
-195
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6724
SELECT ALL - 57 + + col1 + - - col0 + + - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
118
172
59
skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - 57 + + col1 + - - col0 + + - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
118
172
59
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( + 79 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-6726
SELECT + ( - MAX( ALL col1 ) ) + - + 92 AS col2, 13 FROM tab0 cor0
----
-173
13
skipif mysql # not compatible
query II rowsort label-6726
SELECT + ( - MAX ( ALL col1 ) ) + - + 92 AS col2, 13 FROM tab0 cor0
----
-173
13
query I rowsort
SELECT col2 + + col1 + - col2 AS col1 FROM tab1
----
14
47
5
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6728
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) AS col0, - 29 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
12325
NULL
124033
NULL
20706
skipif mysql # not compatible
query II rowsort label-6728
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) AS col0, - 29 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
NULL
12325
NULL
124033
NULL
20706
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( + - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( 87 IS NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( 90 ) * col0 col1 FROM tab0 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6732
SELECT DISTINCT - ( + COUNT( * ) ) + - 34 * + 77 AS col1 FROM tab0 cor0
----
-2621
skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT - ( + COUNT ( * ) ) + - 34 * + 77 AS col1 FROM tab0 cor0
----
-2621
onlyif mysql # aggregate syntax:
query I rowsort label-6733
SELECT DISTINCT SUM( 68 ) FROM tab2 AS cor0
----
204
skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT SUM ( 68 ) FROM tab2 AS cor0
----
204
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 4 * - 40 ) >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6735
SELECT + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77
skipif mysql # not compatible
query I rowsort label-6735
SELECT + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77
query II rowsort
SELECT col1 AS col0, col1 FROM tab1
----
14
14
47
47
5
5
query II rowsort
SELECT 90, ( col2 ) AS col1 FROM tab1
----
90
59
90
68
90
96
query II rowsort
SELECT 59, col2 * col0 + - col0 AS col1 FROM tab2
----
59
1012
59
2496
59
4275
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-6739
SELECT col2 * - CAST( - col2 AS SIGNED ) AS col0, + col1 AS col2 FROM tab2
----
1600
77
3364
67
529
51
skipif mysql # not compatible
query II rowsort label-6739
SELECT col2 * - CAST ( - col2 AS INTEGER ) AS col0, + col1 AS col2 FROM tab2
----
1600
77
3364
67
529
51
query II rowsort
SELECT DISTINCT + 14, - 87 * - col2 AS col1 FROM tab2
----
14
2001
14
3480
14
5046
onlyif mysql # DIV for integer division:
query II rowsort label-6741
SELECT DISTINCT - ( + col2 ) DIV - - col2, col1 FROM tab2
----
-1
51
-1
67
-1
77
skipif mysql # not compatible
query II rowsort label-6741
SELECT DISTINCT - ( + col2 ) / - - col2, col1 FROM tab2
----
-1
51
-1
67
-1
77
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - ( - col1 )
----
query I rowsort
SELECT DISTINCT + + 54 + - col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col2 AND NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( + + col0 ) * - col2 >= - + 67
----
onlyif mysql # aggregate syntax:
query I rowsort label-6745
SELECT ALL ( - ( - + COUNT( * ) ) ) col2 FROM tab2 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT ALL ( - ( - + COUNT ( * ) ) ) col2 FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-6746
SELECT COUNT( DISTINCT - + 1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6746
SELECT COUNT ( DISTINCT - + 1 ) FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-6747
SELECT - MAX( + - col0 ) FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-6747
SELECT - MAX ( + - col0 ) FROM tab2 AS cor0
----
46
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 <> - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6749
SELECT - MAX( DISTINCT + + 40 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40
skipif mysql # not compatible
query I rowsort label-6749
SELECT - MAX ( DISTINCT + + 40 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-40
onlyif mysql # aggregate syntax:
query I rowsort label-6750
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 * + ( - 61 ) ) >= 2
----
-3
skipif mysql # not compatible
query I rowsort label-6750
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 * + ( - 61 ) ) >= 2
----
-3
query II rowsort
SELECT col2 * + + 11 AS col1, 19 AS col0 FROM tab2 AS cor0
----
253
19
440
19
638
19
onlyif mysql # aggregate syntax:
query I rowsort label-6752
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE + col2 * - + 44 BETWEEN col0 * - col2 + + 6 + col2 AND NULL
----
0
skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 * - + 44 BETWEEN col0 * - col2 + + 6 + col2 AND NULL
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + 59 AS col2, 44 col0, + 72 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 39 AND ( + - col1 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-6754
SELECT ALL COUNT( * ) + COUNT( * ) + + 39 * + COUNT( * ), + COUNT( * ) * + - 98 AS col1 FROM tab2 AS cor0
----
123
-294
skipif mysql # not compatible
query II rowsort label-6754
SELECT ALL COUNT ( * ) + COUNT ( * ) + + 39 * + COUNT ( * ), + COUNT ( * ) * + - 98 AS col1 FROM tab2 AS cor0
----
123
-294
onlyif mysql # aggregate syntax:
query I rowsort label-6755
SELECT ALL 75 + MIN( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
126
skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL 75 + MIN ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
126
query I rowsort
SELECT ALL - - 78 * + col0 FROM tab1 AS cor0
----
3978
6630
7098
onlyif mysql # aggregate syntax:
query I rowsort label-6757
SELECT - COUNT( + col1 ) AS col0 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6757
SELECT - COUNT ( + col1 ) AS col0 FROM tab1 AS cor0
----
-3
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - - ( col0 ) * + col1 FROM tab1 AS cor0
----
425
4277
714
query I rowsort
SELECT + + col0 * + + col1 AS col0 FROM tab0 AS cor0
----
1215
1827
97
query I rowsort
SELECT - + col1 FROM tab2 WHERE - col2 + + + col1 * + 39 + + + col1 - + col1 / + + col1 IS NULL
----
query I rowsort
SELECT 79 + + + col1 AS col0 FROM tab2
----
130
146
156
query I rowsort
SELECT col0 + 17 FROM tab1
----
102
108
68
onlyif mysql # aggregate syntax:
query I rowsort label-6764
SELECT ALL - 3 * - MIN( + 94 ) AS col0 FROM tab2
----
282
skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL - 3 * - MIN ( + 94 ) AS col0 FROM tab2
----
282
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6765
SELECT ALL - COUNT( * ) * - 88 AS col2 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) + - col1 ) IN ( col0, col2 / + 3 + col1 * + col1 )
----
0
skipif mysql # not compatible
query I rowsort label-6765
SELECT ALL - COUNT ( * ) * - 88 AS col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + - col1 ) IN ( col0, col2 / + 3 + col1 * + col1 )
----
0
query III rowsort
SELECT * FROM tab2 WHERE + col2 * col1 * - + col1 * - + col1 + col0 IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 * col2 NOT IN ( - col2, + 74 )
----
97
1
99
query I rowsort
SELECT + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # DIV for integer division:
query I rowsort label-6769
SELECT DISTINCT - col2 * - ( - col0 ) + - col1 DIV 64 - + col1 AS col2 FROM tab0 AS cor0
----
-787
-891
-9604
skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT - col2 * - ( - col0 ) + - col1 / 64 - + col1 AS col2 FROM tab0 AS cor0
----
-787
-891
-9604
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 + - col0 * col0 col2 FROM tab1
----
-2595
-7219
-8275
query I rowsort
SELECT + 53 * - col2 AS col2 FROM tab1 cor0
----
-3127
-3604
-5088
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 AND - col2 * + 4 + + 83
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 7
----
onlyif mysql # aggregate syntax:
query I rowsort label-6775
SELECT ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6775
SELECT ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3
query I rowsort
SELECT DISTINCT - + 74 FROM tab0 cor0 WHERE col1 IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 52 / - ( 47 ) IS NULL
----
query I rowsort
SELECT ALL + + 57 AS col0 FROM tab2 AS cor0
----
57
57
57
query II rowsort
SELECT DISTINCT col2 * col1, col1 FROM tab2
----
1173
51
3080
77
3886
67
query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - - col1 ) - + - 20 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6781
SELECT + COUNT( * ) * + 22 FROM tab2, tab0 AS cor0
----
198
skipif mysql # not compatible
query I rowsort label-6781
SELECT + COUNT ( * ) * + 22 FROM tab2, tab0 AS cor0
----
198
onlyif mysql # aggregate syntax:
query I rowsort label-6782
SELECT MAX( DISTINCT + 56 ) AS col0 FROM tab1
----
56
skipif mysql # not compatible
query I rowsort label-6782
SELECT MAX ( DISTINCT + 56 ) AS col0 FROM tab1
----
56
query II rowsort
SELECT ALL - col1 * + + col0 AS col2, - 95 AS col2 FROM tab0 AS cor0
----
-1215
-95
-1827
-95
-97
-95
query I rowsort
SELECT ( - 7 ) + + 59 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
52
52
52
onlyif mysql # aggregate syntax:
query I rowsort label-6785
SELECT DISTINCT + SUM( DISTINCT - col1 ) / 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + SUM ( DISTINCT - col1 ) / 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6787
SELECT ALL ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-6788
SELECT - 17 DIV + col2 * col0 col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT - 17 / + col2 * col0 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 64 col1, col2 AS col1 FROM tab2
----
64
23
64
40
64
58
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - 11 + - - ( + + 45 ) FROM tab1 AS cor0 WHERE NULL >= + col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6792
SELECT DISTINCT - - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT - - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query II rowsort
SELECT ALL col2, col1 - col2 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
10
11
47
34
99
-98
onlyif mysql # aggregate syntax:
query I rowsort label-6794
SELECT SUM( DISTINCT col2 ) + COUNT( col2 ) FROM tab1 AS cor0
----
226
skipif mysql # not compatible
query I rowsort label-6794
SELECT SUM ( DISTINCT col2 ) + COUNT ( col2 ) FROM tab1 AS cor0
----
226
query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91
onlyif mysql # aggregate syntax:
query I rowsort label-6796
SELECT DISTINCT - 54 + - MAX( + - col2 ) FROM tab0 cor0
----
-44
skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT - 54 + - MAX ( + - col2 ) FROM tab0 cor0
----
-44
query II rowsort
SELECT ALL - col0, + 95 * + col0 * 50 AS col2 FROM tab1 AS cor0
----
-51
242250
-85
403750
-91
432250
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6798
SELECT - col1 FROM tab1 WHERE + col1 * + - 87 * + CAST( NULL AS SIGNED ) IN ( - 82 + col1 )
----
skipif mysql # not compatible
query I rowsort label-6798
SELECT - col1 FROM tab1 WHERE + col1 * + - 87 * + CAST ( NULL AS INTEGER ) IN ( - 82 + col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE - - col2 > + col1
----
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-6800
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) = + col2
----
0
skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) = + col2
----
0
query I rowsort
SELECT ALL + 34 FROM tab2 WHERE NOT NULL NOT IN ( + col1 * col2 + 50 + + col1 * + col2 + - - 64, - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6802
SELECT ALL + COUNT( ALL - + 69 ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-6802
SELECT ALL + COUNT ( ALL - + 69 ) AS col1 FROM tab2
----
3
query I rowsort
SELECT ALL + 55 + col1 AS col0 FROM tab1
----
102
60
69
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6804
SELECT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) < NULL
----
skipif mysql # not compatible
query III rowsort label-6804
SELECT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) < NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-6805
SELECT + col1 DIV - 10 FROM tab1
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-6805
SELECT + col1 / - 10 FROM tab1
----
-1
-4
0
onlyif mysql # aggregate syntax:
query I rowsort label-6806
SELECT DISTINCT - ( - ( + MIN( col0 ) ) ) AS col2 FROM tab1 WHERE NOT - 91 IN ( col0 - 66, + 21 + - + col0 + - col0, col1 )
----
51
skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - ( - ( + MIN ( col0 ) ) ) AS col2 FROM tab1 WHERE NOT - 91 IN ( col0 - 66, + 21 + - + col0 + - col0, col1 )
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-6807
SELECT DISTINCT + COUNT( - col2 ) + + 96 + + ( - COUNT( * ) ) FROM tab0
----
96
skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + COUNT ( - col2 ) + + 96 + + ( - COUNT ( * ) ) FROM tab0
----
96
query I rowsort
SELECT + - col0 - - - 32 * 81 AS col0 FROM tab2 AS cor0
----
-2638
-2656
-2667
query I rowsort
SELECT ALL + 79 + 27 FROM tab1 AS cor0
----
106
106
106
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6810
SELECT + - col0 + - 57 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6810
SELECT + - col0 + - 57 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + + 0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-6812
SELECT + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9
skipif mysql # not compatible
query I rowsort label-6812
SELECT + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9
query I rowsort
SELECT col0 FROM tab2 WHERE NULL > + col0
----
query I rowsort
SELECT DISTINCT + 32 * - col2 FROM tab2
----
-1280
-1856
-736
query I rowsort
SELECT ALL col1 * ( + + col0 ) * ( - 32 ) + - col0 AS col2 FROM tab1 AS cor0
----
-13685
-136955
-22899
onlyif mysql # aggregate syntax:
query II rowsort label-6816
SELECT ALL + COUNT( * ) AS col0, AVG ( + + 18 ) FROM tab0 AS cor0 WHERE NOT col0 / - - 32 <= + 62
----
0
NULL
skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL + COUNT ( * ) AS col0, AVG ( + + 18 ) FROM tab0 AS cor0 WHERE NOT col0 / - - 32 <= + 62
----
0
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----
query II rowsort
SELECT + + 97 AS col1, - col2 FROM tab1 AS cor0
----
97
-59
97
-68
97
-96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 / + 64 IN ( - 15 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6820
SELECT DISTINCT - SUM( DISTINCT - 32 ) col2 FROM tab2 AS cor0
----
32
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6820
SELECT DISTINCT - SUM ( DISTINCT - 32 ) col2 FROM tab2 AS cor0
----
32
onlyif mysql # DIV for integer division:
query II rowsort label-6821
SELECT col2 DIV - col0 + - + 37 AS col2, - 13 * + col2 + + col2 FROM tab1 AS cor0
----
-37
-708
-37
-816
-38
-1152
skipif mysql # not compatible
query II rowsort label-6821
SELECT col2 / - col0 + - + 37 AS col2, - 13 * + col2 + + col2 FROM tab1 AS cor0
----
-37
-708
-37
-816
-38
-1152
query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col1 * 33 * - - col0 AS col0 FROM tab0
----
10
60291
47
40095
99
3201
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6824
SELECT ALL col0 * - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-2116
-4096
-5625
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL col0 * - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-2116
-4096
-5625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 AS col2 FROM tab2
----
23
51
40
77
58
67
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= - col1 * + ( + - col2 ) / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT + 54 * - - col2, col2 * + - 4 + - col1 * col0 AS col1 FROM tab2
----
1242
-2438
2160
-5088
3132
-5257
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col0, - 17 * + col2 - col2 + - 90 FROM tab1
----
1344
-1818
295
-1152
3196
-1314
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6829
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT 0 + + + ( + 87 ) FROM tab1 AS cor0
----
87
87
87
onlyif mysql # aggregate syntax:
query I rowsort label-6831
SELECT - COUNT( * ) + COUNT( 41 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6831
SELECT - COUNT ( * ) + COUNT ( 41 ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col1
----
query I rowsort
SELECT ALL + ( - 39 ) FROM tab2
----
-39
-39
-39
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL = NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6835
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) NOT BETWEEN ( + - col1 / - 55 * col2 ) AND + 32
----
skipif mysql # not compatible
query III rowsort label-6835
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) NOT BETWEEN ( + - col1 / - 55 * col2 ) AND + 32
----
onlyif mysql # DIV for integer division:
query I rowsort label-6836
SELECT DISTINCT + 1 DIV col1 + - - col0 AS col1 FROM tab2 cor0
----
46
64
75
skipif mysql # not compatible
query I rowsort label-6836
SELECT DISTINCT + 1 / col1 + - - col0 AS col1 FROM tab2 cor0
----
46
64
75
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6838
SELECT - col2 * 11 + + CAST( + + 38 AS SIGNED ) FROM tab1 AS cor0
----
-1018
-611
-710
skipif mysql # not compatible
query I rowsort label-6838
SELECT - col2 * 11 + + CAST ( + + 38 AS INTEGER ) FROM tab1 AS cor0
----
-1018
-611
-710
query I rowsort
SELECT ALL + 74 * - col1 - - col2 FROM tab0 AS cor0
----
-1544
-5947
25
query I rowsort
SELECT ALL col0 + + - col0 * + col2 FROM tab0 AS cor0
----
-690
-783
-9506
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col2 - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-6842
SELECT DISTINCT col2, + col2 DIV - ( - col2 ) AS col0 FROM tab1
----
59
1
68
1
96
1
skipif mysql # not compatible
query II rowsort label-6842
SELECT DISTINCT col2, + col2 / - ( - col2 ) AS col0 FROM tab1
----
59
1
68
1
96
1
query I rowsort
SELECT DISTINCT - + 29 FROM tab0 WHERE NOT ( col0 IS NULL )
----
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - - col2 col2 FROM tab2
----
-1058
-2560
-4350
query I rowsort
SELECT - 99 + col1 AS col1 FROM tab2
----
-22
-32
-48
query III rowsort
SELECT * FROM tab0 WHERE - - col0 IN ( - 4 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 94 BETWEEN ( + 14 ) AND col1 + col1
----
query I rowsort
SELECT - 72 * - - col0 FROM tab1 AS cor0
----
-3672
-6120
-6552
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6849
SELECT MAX( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6849
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 + + - col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-6851
SELECT ALL + ( COUNT( * ) ) * - + 47 + - ( 51 ) FROM tab2 AS cor0
----
-192
skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + ( COUNT ( * ) ) * - + 47 + - ( 51 ) FROM tab2 AS cor0
----
-192
query I rowsort
SELECT DISTINCT - col1 + - - col2 AS col1 FROM tab2 AS cor0
----
-28
-37
-9
query II rowsort
SELECT DISTINCT - - col0, 59 AS col1 FROM tab1 AS cor0
----
51
59
85
59
91
59
query I rowsort
SELECT DISTINCT 83 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
83
query I rowsort
SELECT ALL 33 AS col2 FROM tab2 WHERE - col1 * + - 30 + - + col0 IS NULL
----
query I rowsort
SELECT DISTINCT col0 * - - col0 FROM tab0
----
225
7569
9409
query I rowsort
SELECT DISTINCT - 22 * - col1 * - col1 FROM tab0
----
-144342
-22
-9702
query I rowsort
SELECT ALL col2 * + - 2 AS col1 FROM tab2
----
-116
-46
-80
query I rowsort
SELECT ALL - col2 * - 69 AS col0 FROM tab2 AS cor0
----
1587
2760
4002
query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6861
SELECT + + COUNT( ALL 28 ) DIV - 22 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6861
SELECT + + COUNT ( ALL 28 ) / - 22 FROM tab0 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-6862
SELECT - - col0 DIV - 20 + + col0 FROM tab0 AS cor0
----
15
83
93
skipif mysql # not compatible
query I rowsort label-6862
SELECT - - col0 / - 20 + + col0 FROM tab0 AS cor0
----
15
83
93
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----
query I rowsort
SELECT DISTINCT - - col0 / + 65 FROM tab1 AS cor0 WHERE NOT - col2 / 26 + col2 * + col2 + + - col2 NOT IN ( + 53, 94 * + 60 + + ( 65 ) )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6865
SELECT + col0 * - - col2 + ( + col2 ) + - col0 + - 28 + - 37 FROM tab2 WHERE NOT - - 46 + - CAST( + col1 AS DECIMAL ) + col1 + - + 56 + + - 9 BETWEEN NULL AND col2
----
skipif mysql # not compatible
query I rowsort label-6865
SELECT + col0 * - - col2 + ( + col2 ) + - col0 + - 28 + - 37 FROM tab2 WHERE NOT - - 46 + - CAST ( + col1 AS REAL ) + col1 + - + 56 + + - 9 BETWEEN NULL AND col2
----
query II rowsort
SELECT DISTINCT col1 AS col2, + col2 + col0 + + col2 AS col2 FROM tab1
----
14
243
47
227
5
203
query I rowsort
SELECT DISTINCT 71 * + - ( + col2 ) AS col2 FROM tab0
----
-3337
-7029
-710
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col0 * 86 AS col1 FROM tab0
----
1290
7482
8342
query III rowsort
SELECT ALL * FROM tab2 WHERE 43 + col2 / - col1 NOT BETWEEN + col2 / + - col1 AND + - col2 / col0 + 67 + - col1 / + 99
----
query I rowsort
SELECT DISTINCT + col0 * + + col1 * + col1 AS col0 FROM tab0
----
38367
97
98415
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * - col0 - - col1 + - - 13 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6873
SELECT DISTINCT SUM( DISTINCT 81 ) FROM tab1
----
81
skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT SUM ( DISTINCT 81 ) FROM tab1
----
81
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6874
SELECT * FROM tab2 WHERE NOT + col1 + - col2 + - + CAST( NULL AS SIGNED ) * + + ( - + ( - col1 ) ) * - col2 IN ( + + col2 )
----
skipif mysql # not compatible
query III rowsort label-6874
SELECT * FROM tab2 WHERE NOT + col1 + - col2 + - + CAST ( NULL AS INTEGER ) * + + ( - + ( - col1 ) ) * - col2 IN ( + + col2 )
----
query I rowsort
SELECT ALL col1 * - col0 + - 46 FROM tab0
----
-1261
-143
-1873
onlyif mysql # aggregate syntax:
query I rowsort label-6876
SELECT - SUM( + + col1 ) FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-6876
SELECT - SUM ( + + col1 ) FROM tab1 AS cor0
----
-66
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 68 IS NOT NULL
----
query I rowsort
SELECT - - 40 AS col1 FROM tab2 AS cor0
----
40
40
40
onlyif mysql # aggregate syntax:
query I rowsort label-6879
SELECT DISTINCT ( - - SUM( - 5 ) ) FROM tab2 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT ( - - SUM ( - 5 ) ) FROM tab2 AS cor0
----
-15
onlyif mysql # aggregate syntax:
query I rowsort label-6880
SELECT + SUM( 48 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
432
skipif mysql # not compatible
query I rowsort label-6880
SELECT + SUM ( 48 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
432
onlyif mysql # DIV for integer division:
query I rowsort label-6881
SELECT col1 * ( + col2 ) + + col0 DIV + col0 FROM tab0
----
100
211
3808
skipif mysql # not compatible
query I rowsort label-6881
SELECT col1 * ( + col2 ) + + col0 / + col0 FROM tab0
----
100
211
3808
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6882
SELECT ALL * FROM tab1 cor0 WHERE ( - CAST( NULL AS SIGNED ) ) > ( NULL )
----
skipif mysql # not compatible
query III rowsort label-6882
SELECT ALL * FROM tab1 cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) > ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-6883
SELECT - 38 * - SUM( ALL - col1 ) + 60 FROM tab0 cor0
----
-3854
skipif mysql # not compatible
query I rowsort label-6883
SELECT - 38 * - SUM ( ALL - col1 ) + 60 FROM tab0 cor0
----
-3854
onlyif mysql # DIV for integer division:
query II rowsort label-6884
SELECT DISTINCT - col2 + - 82 * - + col1 + - col2, - col2 + col2 - ( col0 ) DIV + + 55 AS col1 FROM tab0 AS cor0
----
-116
-1
1702
-1
6548
0
skipif mysql # not compatible
query II rowsort label-6884
SELECT DISTINCT - col2 + - 82 * - + col1 + - col2, - col2 + col2 - ( col0 ) / + + 55 AS col1 FROM tab0 AS cor0
----
-116
-1
1702
-1
6548
0
query II rowsort
SELECT DISTINCT + + col2 + col0 AS col1, + col2 * - 92 - col1 FROM tab0 AS cor0
----
196
-9109
62
-4405
97
-941
onlyif mysql # aggregate syntax:
query I rowsort label-6886
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-6886
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0
query I rowsort
SELECT ALL + col1 + + ( + + ( + 70 ) ) + col1 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - 46
----
query I rowsort
SELECT DISTINCT - col0 * 10 - + ( + ( + - col1 ) ) * + + col2 AS col2 FROM tab2
----
2440
3136
713
query III rowsort
SELECT * FROM tab0 WHERE NULL <> - - col0 + - 51
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6891
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6891
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6892
SELECT ALL - 92 DIV + - ( + MAX( DISTINCT - col2 ) ) AS col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL - 92 / + - ( + MAX ( DISTINCT - col2 ) ) AS col1 FROM tab1
----
-1
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-6893
SELECT col0 - - - CAST( NULL AS DECIMAL ) + - col2 - - + col2 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6893
SELECT col0 - - - CAST ( NULL AS REAL ) + - col2 - - + col2 * col1 FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + col1 * + 48 + col1 ) AND NOT NULL NOT BETWEEN + 42 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6895
SELECT COUNT( * ) - + 5 FROM tab2
----
-2
skipif mysql # not compatible
query I rowsort label-6895
SELECT COUNT ( * ) - + 5 FROM tab2
----
-2
query I rowsort
SELECT ALL - 84 + - 64 AS col0 FROM tab2 AS cor0
----
-148
-148
-148
onlyif mysql # aggregate syntax:
query I rowsort label-6897
SELECT DISTINCT ( - MIN( col0 ) ) FROM tab0 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT ( - MIN ( col0 ) ) FROM tab0 AS cor0
----
-15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6898
SELECT ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6898
SELECT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6899
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-6899
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-3
query II rowsort
SELECT ALL - - col2, + ( col2 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
10
47
47
99
99
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - ( + col2 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-6902
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3
onlyif mysql # aggregate syntax:
query II rowsort label-6903
SELECT DISTINCT + 37, COUNT( + 31 ) AS col0 FROM tab1 AS cor0
----
37
3
skipif mysql # not compatible
query II rowsort label-6903
SELECT DISTINCT + 37, COUNT ( + 31 ) AS col0 FROM tab1 AS cor0
----
37
3
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( col0, - col1 )
----
9
query II rowsort
SELECT ALL col0 + - + col1, - col1 FROM tab1 AS cor0 WHERE NOT col0 * - + 3 * + col1 IS NOT NULL
----
query I rowsort
SELECT - 84 * col2 FROM tab0 AS cor0
----
-3948
-8316
-840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 59 ) col0 FROM tab1 AS cor0
----
59
59
59
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - col1 + - - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6910
SELECT MIN( - col0 ) FROM tab1
----
-91
skipif mysql # not compatible
query I rowsort label-6910
SELECT MIN ( - col0 ) FROM tab1
----
-91
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6911
SELECT + CAST( + col0 AS SIGNED ) * - ( - 72 ) AS col0 FROM tab0
----
1080
6264
6984
skipif mysql # not compatible
query I rowsort label-6911
SELECT + CAST ( + col0 AS INTEGER ) * - ( - 72 ) AS col0 FROM tab0
----
1080
6264
6984
query I rowsort
SELECT ALL + 37 AS col1 FROM tab1
----
37
37
37
onlyif mysql # aggregate syntax:
query I rowsort label-6913
SELECT ALL - MAX( ALL + col1 ) AS col1 FROM tab0
----
-81
skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - MAX ( ALL + col1 ) AS col1 FROM tab0
----
-81
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-6914
SELECT * FROM tab0 WHERE NOT + col2 * - CAST( col2 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6914
SELECT * FROM tab0 WHERE NOT + col2 * - CAST ( col2 AS INTEGER ) IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 77 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-6916
SELECT - COUNT( ALL + + col2 ), 49 AS col2 FROM tab1 AS cor0
----
-3
49
skipif mysql # not compatible
query II rowsort label-6916
SELECT - COUNT ( ALL + + col2 ), 49 AS col2 FROM tab1 AS cor0
----
-3
49
onlyif mysql # DIV for integer division:
query I rowsort label-6917
SELECT - col0 DIV - 85 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6917
SELECT - col0 / - 85 FROM tab0
----
0
1
1
query I rowsort
SELECT DISTINCT - + 36 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-36
onlyif mysql # aggregate syntax:
query I rowsort label-6919
SELECT - MAX( ALL col1 ) AS col1 FROM tab2
----
-77
skipif mysql # not compatible
query I rowsort label-6919
SELECT - MAX ( ALL col1 ) AS col1 FROM tab2
----
-77
query I rowsort
SELECT + col0 - ( + col1 ) - + col1 FROM tab0
----
-147
45
95
onlyif mysql # aggregate syntax:
query I rowsort label-6921
SELECT + 14 * - SUM( DISTINCT col0 ) - + 94 FROM tab0 AS cor0
----
-2880
skipif mysql # not compatible
query I rowsort label-6921
SELECT + 14 * - SUM ( DISTINCT col0 ) - + 94 FROM tab0 AS cor0
----
-2880
onlyif mysql # DIV for integer division:
query I rowsort label-6922
SELECT ALL - + col0 + + + col2 * col0 DIV + ( 77 ) FROM tab1 AS cor0
----
-11
-20
12
skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - + col0 + + + col2 * col0 / + ( 77 ) FROM tab1 AS cor0
----
-11
-20
12
query I rowsort
SELECT + + 17 + - col1 FROM tab0 AS cor0
----
-4
-64
16
query I rowsort
SELECT 87 + ( - col1 ) * + + 1 * + - col0 FROM tab1 cor0
----
4364
512
801
onlyif mysql # DIV for integer division:
query I rowsort label-6925
SELECT DISTINCT - + col0 + - - col0 DIV + 18 FROM tab0 AS cor0
----
-15
-83
-92
skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - + col0 + - - col0 / + 18 FROM tab0 AS cor0
----
-15
-83
-92
onlyif mysql # aggregate syntax:
query I rowsort label-6926
SELECT DISTINCT + SUM( - col2 ) - - COUNT( * ) col1 FROM tab1
----
-220
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6926
SELECT DISTINCT + SUM ( - col2 ) - - COUNT ( * ) col1 FROM tab1
----
-220
query I rowsort
SELECT + 67 + + + ( col0 ) + 53 * + 39 + + + ( + 20 ) FROM tab1
----
2205
2239
2245
onlyif mysql # aggregate syntax:
query I rowsort label-6928
SELECT DISTINCT - 32 - COUNT( * ) AS col2 FROM tab1
----
-35
skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT - 32 - COUNT ( * ) AS col2 FROM tab1
----
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 22 FROM tab2
----
51
22
67
22
77
22
onlyif mysql # aggregate syntax:
query I rowsort label-6930
SELECT ALL ( MIN( DISTINCT + ( + col0 ) ) ) AS col1 FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-6930
SELECT ALL ( MIN ( DISTINCT + ( + col0 ) ) ) AS col1 FROM tab1
----
51
onlyif mysql # aggregate syntax:
query II rowsort label-6931
SELECT - COUNT( * ), - MIN( - 55 ) - + COUNT( * ) AS col1 FROM tab1
----
-3
52
skipif mysql # not compatible
query II rowsort label-6931
SELECT - COUNT ( * ), - MIN ( - 55 ) - + COUNT ( * ) AS col1 FROM tab1
----
-3
52
onlyif mysql # aggregate syntax:
query I rowsort label-6932
SELECT - COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 WHERE col1 + - col2 IS NULL OR - ( - + ( + col0 ) ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-6932
SELECT - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 WHERE col1 + - col2 IS NULL OR - ( - + ( + col0 ) ) IS NULL
----
0
query I rowsort
SELECT col1 * + 4 * - col2 FROM tab1 AS cor0
----
-1180
-12784
-5376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col1 FROM tab0
----
-41
-41
-41
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6936
SELECT CAST( NULL AS SIGNED ) * 20 + + - col0 * - - col2 * - + 20 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6936
SELECT CAST ( NULL AS INTEGER ) * 20 + + - col0 * - - col2 * - + 20 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6937
SELECT ALL SUM( col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL SUM ( col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6938
SELECT - + CAST( NULL AS SIGNED ) + 68 / + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6938
SELECT - + CAST ( NULL AS INTEGER ) + 68 / + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-6939
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-6940
SELECT * FROM tab0 cor0 WHERE NOT CAST( 9 AS DECIMAL ) + - 81 IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-6940
SELECT * FROM tab0 cor0 WHERE NOT CAST ( 9 AS REAL ) + - 81 IS NOT NULL
----
query I rowsort
SELECT ALL + 16 AS col0 FROM tab0
----
16
16
16
onlyif mysql # DIV for integer division:
query II rowsort label-6942
SELECT + col2 col2, + col0 * + - 8 * - 50 + + col2 DIV + col1 col1 FROM tab2
----
23
18400
40
25600
58
30000
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6942
SELECT + col2 col2, + col0 * + - 8 * - 50 + + col2 / + col1 col1 FROM tab2
----
23
18400
40
25600
58
30000
query II rowsort
SELECT col1, 64 * col1 AS col1 FROM tab2 WHERE NOT - col1 IS NULL
----
51
3264
67
4288
77
4928
query I rowsort
SELECT ( - col0 ) * col1 FROM tab2
----
-2346
-4928
-5025
query II rowsort
SELECT + col1, - 12 AS col0 FROM tab2
----
51
-12
67
-12
77
-12
onlyif mysql # aggregate syntax:
query I rowsort label-6946
SELECT DISTINCT + COUNT( * ) + + 35 AS col2 FROM tab0
----
38
skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT + COUNT ( * ) + + 35 AS col2 FROM tab0
----
38
query I rowsort
SELECT DISTINCT - col1 + + - col2 FROM tab0 AS cor0
----
-100
-128
-31
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6949
SELECT CAST( - 24 AS SIGNED ) + col0 AS col0 FROM tab0 WHERE + 63 * + col0 * - col1 * col0 IS NULL
----
skipif mysql # not compatible
query I rowsort label-6949
SELECT CAST ( - 24 AS INTEGER ) + col0 AS col0 FROM tab0 WHERE + 63 * + col0 * - col1 * col0 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 + + 45 - col1 col1 FROM tab1
----
43
76
85
onlyif mysql # aggregate syntax:
query I rowsort label-6951
SELECT + MAX( DISTINCT col0 ) * + SUM( DISTINCT col1 ) AS col1 FROM tab0
----
9991
skipif mysql # not compatible
query I rowsort label-6951
SELECT + MAX ( DISTINCT col0 ) * + SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
9991
onlyif mysql # DIV for integer division:
query I rowsort label-6952
SELECT - col0 DIV + col0 - + col1 FROM tab2 AS cor0
----
-52
-68
-78
skipif mysql # not compatible
query I rowsort label-6952
SELECT - col0 / + col0 - + col1 FROM tab2 AS cor0
----
-52
-68
-78
query I rowsort
SELECT DISTINCT - col2 - - col2 + + col2 AS col2 FROM tab2
----
23
40
58
query I rowsort
SELECT ALL ( col1 ) * - + 40 FROM tab2
----
-2040
-2680
-3080
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6955
SELECT ALL + + col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) <> col0
----
skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + + col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) <> col0
----
onlyif mysql # aggregate syntax:
query II rowsort label-6956
SELECT ALL 70 AS col0, - COUNT( * ) AS col1 FROM tab1
----
70
-3
skipif mysql # not compatible
query II rowsort label-6956
SELECT ALL 70 AS col0, - COUNT ( * ) AS col1 FROM tab1
----
70
-3
onlyif mysql # aggregate syntax:
query I rowsort label-6957
SELECT ALL + 83 * COUNT( * ) AS col2 FROM tab0
----
249
skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL + 83 * COUNT ( * ) AS col2 FROM tab0
----
249
query I rowsort
SELECT + ( + col2 ) * 62 FROM tab1
----
3658
4216
5952
query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + - 18 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6960
SELECT + ( + + COUNT( * ) ) * 67 * 33 AS col2 FROM tab2
----
6633
skipif mysql # not compatible
query I rowsort label-6960
SELECT + ( + + COUNT ( * ) ) * 67 * 33 AS col2 FROM tab2
----
6633
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-6962
SELECT COUNT( 50 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-6962
SELECT COUNT ( 50 ) AS col0 FROM tab1
----
3
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 / - col2 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6965
SELECT ALL + + COUNT( * ) DIV - 93 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL + + COUNT ( * ) / - 93 FROM tab2 AS cor0
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-6966
SELECT + + col0 DIV + col1 FROM tab2 cor0 WHERE NOT + col2 * - ( - 37 ) < - col1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6966
SELECT + + col0 / + col1 FROM tab2 cor0 WHERE NOT + col2 * - ( - 37 ) < - col1
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-6967
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-3
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 76 + + 40 + col0 * + + ( - - 88 ) * - + 86 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 94 FROM tab0 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99
query I rowsort
SELECT col1 * - col0 + + ( + - 63 ) AS col2 FROM tab1 AS cor0
----
-4340
-488
-777
onlyif mysql # DIV for integer division:
query I rowsort label-6972
SELECT DISTINCT - 32 DIV - + col0 AS col0 FROM tab0 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT - 32 / - + col0 AS col0 FROM tab0 AS cor0
----
0
2
query I rowsort
SELECT 1 * + 97 FROM tab0 AS cor0
----
97
97
97
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + ( col1 ) * col1 * col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-6975
SELECT ALL COUNT( DISTINCT - col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL COUNT ( DISTINCT - col2 ) FROM tab1 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( + col2 ) ) col2 FROM tab2
----
-23
-40
-58
onlyif mysql # aggregate syntax:
query I rowsort label-6977
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL NOT BETWEEN + col1 / col0 * 28 AND + + col2
----
0
skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL NOT BETWEEN + col1 / col0 * 28 AND + + col2
----
0
query II rowsort
SELECT col0 + col0, + col1 AS col0 FROM tab0
----
174
21
194
1
30
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( - 46 ) col0 FROM tab2 WHERE - 25 * - col0 + + col0 < - + 46
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-6980
SELECT 0 + + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6980
SELECT 0 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 WHERE + col1 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-6982
SELECT 71 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
68
skipif mysql # not compatible
query I rowsort label-6982
SELECT 71 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
68
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-6983
SELECT DISTINCT + - COUNT( * ) DIV MIN( - col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT + - COUNT ( * ) / MIN ( - col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT - 65 * - 95 + + + 65 AS col2 FROM tab2 cor0
----
6240
6240
6240
onlyif mysql # aggregate syntax:
query I rowsort label-6985
SELECT ALL + - 46 + MIN( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL + - 46 + MIN ( + 9 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-37
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT - + 47 + + + 66 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
19
query I rowsort
SELECT + 23 + - - col0 FROM tab0 AS cor0
----
110
120
38
query I rowsort
SELECT DISTINCT col2 * + + 61 AS col2 FROM tab1 AS cor0
----
3599
4148
5856
query I rowsort
SELECT ALL - - ( - - col1 ) * + 94 + - 82 + + + 72 + col2 * + + col0 + + - col1 * + - col2 * + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-12614
-139616
4000
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 68 > + - col2 - + col0 * + + 86
----
query II rowsort
SELECT ALL - col1 * + col0 + col1 + 69 - + col2 * + col2, + 50 AS col1 FROM tab0 AS cor0
----
-1837
50
-3274
50
-9828
50
query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL <> - 13
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - 52 < col2 * 72 / col0
----
query II rowsort
SELECT DISTINCT col2 * - + col1, col0 FROM tab1
----
-1344
51
-295
85
-3196
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 * + col1 * col1 col1 FROM tab0
----
41454
616734
94
onlyif mysql # aggregate syntax:
query I rowsort label-6997
SELECT DISTINCT + + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT + + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
9
query I rowsort
SELECT ALL 72 * col0 AS col0 FROM tab0 AS cor0
----
1080
6264
6984
query I rowsort
SELECT DISTINCT + + 5 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----
query I rowsort
SELECT + ( col1 ) * + - col1 * + - 1 * + 77 FROM tab0 AS cor0
----
33957
505197
77
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 IS NOT NULL
----
query I rowsort
SELECT + col1 * - 76 AS col0 FROM tab2
----
-3876
-5092
-5852
query I rowsort
SELECT - col0 + + ( + col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + - 57 FROM tab2 AS cor0
----
-11
18
7
onlyif mysql # aggregate syntax:
query I rowsort label-7005
SELECT 34 + - COUNT( DISTINCT + ( + col0 ) ) + - 82 + - 47 FROM tab2 cor0
----
-98
skipif mysql # not compatible
query I rowsort label-7005
SELECT 34 + - COUNT ( DISTINCT + ( + col0 ) ) + - 82 + - 47 FROM tab2 cor0
----
-98
onlyif mysql # aggregate syntax:
query I rowsort label-7006
SELECT ALL + COUNT( - col2 ) + + 2 AS col1 FROM tab2 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + COUNT ( - col2 ) + + 2 AS col1 FROM tab2 AS cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-7007
SELECT DISTINCT - COUNT( * ) * + 19 * - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-513
skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - COUNT ( * ) * + 19 * - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-513
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7008
SELECT - + 13 * + COUNT( - - col0 ) FROM tab0 AS cor0 WHERE + 59 * + col1 + - col1 + - + CAST( - col0 AS DECIMAL ) > - col2
----
-39
skipif mysql # not compatible
query I rowsort label-7008
SELECT - + 13 * + COUNT ( - - col0 ) FROM tab0 AS cor0 WHERE + 59 * + col1 + - col1 + - + CAST ( - col0 AS REAL ) > - col2
----
-39
onlyif mysql # aggregate syntax:
query I rowsort label-7009
SELECT DISTINCT - 45 * - COUNT( * ) AS col2 FROM tab0 cor0
----
135
skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT - 45 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
135
query I rowsort
SELECT ALL 98 + 14 AS col0 FROM tab0
----
112
112
112
onlyif mysql # aggregate syntax:
query I rowsort label-7011
SELECT DISTINCT + SUM( + col2 ) AS col2 FROM tab2
----
121
skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT + SUM ( + col2 ) AS col2 FROM tab2
----
121
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7012
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col0 * col1 * 16 AS col0 FROM tab2
----
NULL
37536
NULL
78848
NULL
80400
skipif mysql # not compatible
query II rowsort label-7012
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 * col1 * 16 AS col0 FROM tab2
----
NULL
37536
NULL
78848
NULL
80400
query II rowsort
SELECT DISTINCT col0 AS col2, + col0 FROM tab1
----
51
51
85
85
91
91
onlyif mysql # aggregate syntax:
query I rowsort label-7014
SELECT ALL + ( - COUNT( * ) ) AS col0 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 47 col0, col0 FROM tab1
----
47
51
47
85
47
91
query III rowsort
SELECT * FROM tab2 WHERE ( NULL BETWEEN col0 AND NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7017
SELECT DISTINCT + 21 * + CAST( + MIN( + col2 ) AS SIGNED ) AS col1 FROM tab0
----
210
skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + 21 * + CAST ( + MIN ( + col2 ) AS INTEGER ) AS col1 FROM tab0
----
210
onlyif mysql # DIV for integer division:
query I rowsort label-7018
SELECT DISTINCT col0 + - col2 + + - col1 DIV + col2 + + col2 * - col1 AS col2 FROM tab2
----
-1152
-3057
-3870
skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT col0 + - col2 + + - col1 / + col2 + + col2 * - col1 AS col2 FROM tab2
----
-1152
-3057
-3870
query I rowsort
SELECT - col2 - col2 * - col2 FROM tab0 AS cor0
----
2162
90
9702
query I rowsort
SELECT ALL + 74 + - - 9 AS col0 FROM tab1 cor0
----
83
83
83
onlyif mysql # aggregate syntax:
query I rowsort label-7021
SELECT + ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7021
SELECT + ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-7022
SELECT DISTINCT col2 + col1 DIV 78 FROM tab0 cor0
----
10
48
99
skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT col2 + col1 / 78 FROM tab0 cor0
----
10
48
99
query I rowsort
SELECT - - 96 + 55 FROM tab1 AS cor0
----
151
151
151
query I rowsort
SELECT ALL 39 + 63 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
2891
4007
4689
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = col2
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 >= - 71
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7027
SELECT ALL - col2 AS col0, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL < NULL
----
skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL - col2 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7028
SELECT DISTINCT + - MAX( ALL - col1 ) FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT + - MAX ( ALL - col1 ) FROM tab0 cor0
----
1
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7029
SELECT CAST( NULL AS SIGNED ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
skipif mysql # not compatible
query II rowsort label-7029
SELECT CAST ( NULL AS INTEGER ), + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 col1 FROM tab1
----
3
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-7031
SELECT + MAX( 99 ) FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-7031
SELECT + MAX ( 99 ) FROM tab0
----
99
onlyif mysql # aggregate syntax:
query I rowsort label-7032
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-7032
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab1
----
223
query I rowsort
SELECT ALL + col2 * - col1 * + 58 FROM tab1
----
-17110
-185368
-77952
query II rowsort
SELECT 77, + 84 + col0 AS col2 FROM tab0
----
77
171
77
181
77
99
onlyif mysql # aggregate syntax:
query I rowsort label-7035
SELECT ( - + SUM( DISTINCT - col1 ) ) FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-7035
SELECT ( - + SUM ( DISTINCT - col1 ) ) FROM tab1
----
66
query II rowsort
SELECT DISTINCT col1, 8 AS col0 FROM tab1
----
14
8
47
8
5
8
onlyif mysql # aggregate syntax:
query I rowsort label-7037
SELECT ALL MIN( ALL - ( 31 ) ) FROM tab0 AS cor0 WHERE NOT - col2 * - - ( - col1 ) * + + col0 <> - col0 * ( - + ( - col0 ) ) - col2
----
NULL
skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL MIN ( ALL - ( 31 ) ) FROM tab0 AS cor0 WHERE NOT - col2 * - - ( - col1 ) * + + col0 <> - col0 * ( - + ( - col0 ) ) - col2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7038
SELECT ALL + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT ALL 68 * col1 + + 7 + - + 57 * + col0 + - 49 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3573
-5503
4611
query I rowsort
SELECT + ( 8 ) * + - col1 AS col1 FROM tab2 cor0
----
-408
-536
-616
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * - 33, col0 col1 FROM tab1
----
1683
51
2805
85
3003
91
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 46 IS NULL
----
query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 + col0 AND + 85
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7044
SELECT DISTINCT col0 + col2 * + CAST( 9 AS SIGNED ) AS col1, + col1 AS col2 FROM tab2 cor0
----
253
51
424
77
597
67
skipif mysql # not compatible
query II rowsort label-7044
SELECT DISTINCT col0 + col2 * + CAST ( 9 AS INTEGER ) AS col1, + col1 AS col2 FROM tab2 cor0
----
253
51
424
77
597
67
onlyif mysql # DIV for integer division:
query I rowsort label-7045
SELECT ALL + col0 DIV + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-48
-68
-90
skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + col0 / + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-48
-68
-90
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - - col0 * - col0 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * - col2 + col0 + - col2 col1 FROM tab1 AS cor0
----
1299
321
3219
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7048
SELECT + CAST( 14 AS SIGNED ) + ( + - col0 ) AS col0 FROM tab2
----
-32
-50
-61
skipif mysql # not compatible
query I rowsort label-7048
SELECT + CAST ( 14 AS INTEGER ) + ( + - col0 ) AS col0 FROM tab2
----
-32
-50
-61
query II rowsort
SELECT ALL + ( 71 ) + - 17 AS col1, col0 FROM tab1
----
54
51
54
85
54
91
onlyif mysql # aggregate syntax:
query I rowsort label-7050
SELECT ALL COUNT( * ) * + MAX( - col0 ) FROM tab2
----
-138
skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL COUNT ( * ) * + MAX ( - col0 ) FROM tab2
----
-138
query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN ( + col0 ) AND 82 * - + col2 + ( + 62 )
----
query I rowsort
SELECT ALL - 70 FROM tab0 WHERE - + col0 > - 12 * + col2 * col0 + - col2 * ( - col0 ) * + col2 / + col0
----
-70
-70
-70
onlyif mysql # aggregate syntax:
query I rowsort label-7053
SELECT DISTINCT - 76 + + + COUNT( * ) AS col0 FROM tab2 cor0
----
-73
skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT - 76 + + + COUNT ( * ) AS col0 FROM tab2 cor0
----
-73
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7055
SELECT + + CAST( + - COUNT( ALL + ( - col1 ) ) AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
skipif mysql # not compatible
query II rowsort label-7055
SELECT + + CAST ( + - COUNT ( ALL + ( - col1 ) ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
query I rowsort
SELECT ALL - - 12 + - ( - - 70 ) + + col0 FROM tab1 AS cor0
----
-7
27
33
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7057
SELECT + - COUNT( ALL + + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7057
SELECT + - COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 - + - 40 * - 39 - col0 + + - col1 col2 FROM tab0 AS cor0
----
-1709
-1711
-1721
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7059
SELECT 16 DIV - COUNT( * ) col2 FROM tab0 cor0
----
-5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7059
SELECT 16 / - COUNT ( * ) col2 FROM tab0 cor0
----
-5
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - 28 * - col0 <> 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-7061
SELECT COUNT( * ) + + 16 + - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-48
skipif mysql # not compatible
query I rowsort label-7061
SELECT COUNT ( * ) + + 16 + - 73 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-48
query II rowsort
SELECT ALL col2 AS col0, 97 + - col0 AS col0 FROM tab0
----
10
10
47
82
99
0
query II rowsort
SELECT col0 AS col0, + 10 + col0 FROM tab1
----
51
61
85
95
91
101
onlyif mysql # aggregate syntax:
query I rowsort label-7064
SELECT ALL + COUNT( ALL 35 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + COUNT ( ALL 35 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7065
SELECT ALL + SUM( ALL + col2 ) AS col2 FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + SUM ( ALL + col2 ) AS col2 FROM tab1
----
223
onlyif mysql # aggregate syntax:
query I rowsort label-7066
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-7066
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7067
SELECT DISTINCT + 77 * + col1 * + col1 + - - col1 + col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + 77 * + col1 * + col1 + - - col1 + col0 FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col0 * - col2 * col0 NOT IN ( 36, + col0, + + 31 * - col0 * + CAST( NULL AS SIGNED ) + - 54 * - - col2 )
----
skipif mysql # not compatible
query III rowsort label-7068
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - col0 * - col2 * col0 NOT IN ( 36, + col0, + + 31 * - col0 * + CAST ( NULL AS INTEGER ) + - 54 * - - col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7069
SELECT ALL + col0, - CAST( NULL AS SIGNED ) * - ( + col1 ) * + + col1 * + col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL
skipif mysql # not compatible
query II rowsort label-7069
SELECT ALL + col0, - CAST ( NULL AS INTEGER ) * - ( + col1 ) * + + col1 * + col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7070
SELECT - MIN( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
skipif mysql # not compatible
query I rowsort label-7070
SELECT - MIN ( DISTINCT - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT + ( + 72 ) FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT 73 * col0 * + 80 FROM tab0 AS cor0
----
508080
566480
87600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 67 + + - col0 col1 FROM tab2 AS cor0
----
1495
2616
3811
query II rowsort
SELECT ALL 35, + col1 AS col2 FROM tab1 AS cor0
----
35
14
35
47
35
5
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7075
SELECT DISTINCT col0 * - col2 * - CAST( NULL AS DECIMAL ) / + - col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT col0 * - col2 * - CAST ( NULL AS REAL ) / + - col0 FROM tab2
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7076
SELECT - CAST( + ( + col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75
skipif mysql # not compatible
query I rowsort label-7076
SELECT - CAST ( + ( + col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75
onlyif mysql # aggregate syntax:
query II rowsort label-7077
SELECT DISTINCT + SUM( + col1 ) col1, COUNT( * ) FROM tab1
----
66
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7077
SELECT DISTINCT + SUM ( + col1 ) col1, COUNT ( * ) FROM tab1
----
66
3
onlyif mysql # aggregate syntax:
query I rowsort label-7078
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE 74 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE 74 IS NULL
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-7079
SELECT DISTINCT MIN( DISTINCT - 53 ), + COUNT( * ) AS col2 FROM tab0
----
-53
3
skipif mysql # not compatible
query II rowsort label-7079
SELECT DISTINCT MIN ( DISTINCT - 53 ), + COUNT ( * ) AS col2 FROM tab0
----
-53
3
onlyif mysql # aggregate syntax:
query I rowsort label-7080
SELECT MIN( ALL + 50 ) * 0 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7080
SELECT MIN ( ALL + 50 ) * 0 AS col1 FROM tab2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7081
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-7081
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7082
SELECT COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7082
SELECT COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7083
SELECT COUNT( * ) * + 4 + + 89 + - - MAX( + 0 ) AS col0 FROM tab1 cor0
----
101
skipif mysql # not compatible
query I rowsort label-7083
SELECT COUNT ( * ) * + 4 + + 89 + - - MAX ( + 0 ) AS col0 FROM tab1 cor0
----
101
onlyif mysql # aggregate syntax:
query I rowsort label-7084
SELECT ALL + COUNT( * ) + 74 col2 FROM tab0 cor0
----
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7084
SELECT ALL + COUNT ( * ) + 74 col2 FROM tab0 cor0
----
77
onlyif mysql # DIV for integer division:
query I rowsort label-7085
SELECT DISTINCT - 62 DIV - + 12 AS col0 FROM tab2
----
5
skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT - 62 / - + 12 AS col0 FROM tab2
----
5
query I rowsort
SELECT + col1 + - - 59 * - 53 AS col0 FROM tab1
----
-3080
-3113
-3122
onlyif mysql # aggregate syntax:
query I rowsort label-7087
SELECT ALL COUNT( * ) + - 73 + - 14 AS col1 FROM tab0
----
-84
skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL COUNT ( * ) + - 73 + - 14 AS col1 FROM tab0
----
-84
query I rowsort
SELECT ALL col2 + - + 76 FROM tab0 AS cor0
----
-29
-66
23
onlyif mysql # aggregate syntax:
query I rowsort label-7089
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7089
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
query I rowsort
SELECT DISTINCT + col1 + - col0 + 72 * + col2 FROM tab1 AS cor0
----
4168
4852
6875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 + + col2 * 56 * - col2, + 81 col0 FROM tab1 AS cor0
----
-194891
81
-258899
81
-516051
81
query I rowsort
SELECT ALL - 36 - + 80 FROM tab2 AS cor0
----
-116
-116
-116
onlyif mysql # aggregate syntax:
query I rowsort label-7093
SELECT + + 32 * - 86 - + ( COUNT( * ) ) FROM tab1 WHERE NULL IS NULL
----
-2755
skipif mysql # not compatible
query I rowsort label-7093
SELECT + + 32 * - 86 - + ( COUNT ( * ) ) FROM tab1 WHERE NULL IS NULL
----
-2755
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7094
SELECT CAST( COUNT( - col0 ) AS SIGNED ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7094
SELECT CAST ( COUNT ( - col0 ) AS INTEGER ) AS col1 FROM tab0
----
3
query II rowsort
SELECT col0 * + col1, - col2 AS col1 FROM tab2
----
2346
-23
4928
-40
5025
-58
onlyif mysql # DIV for integer division:
query I rowsort label-7096
SELECT DISTINCT 14 DIV + + col2 - + col2 FROM tab1
----
-59
-68
-96
skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT 14 / + + col2 - + col2 FROM tab1
----
-59
-68
-96
onlyif mysql # DIV for integer division:
query I rowsort label-7097
SELECT ALL + col1 DIV - col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + col1 / - col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 - 27 FROM tab1
----
-123
-86
-95
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7099
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + + col0 - + + 45 FROM tab0
----
660
825
9558
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-7101
SELECT MIN( + + CAST( col0 AS SIGNED ) ) * - MAX( DISTINCT col1 ) - + - 36 DIV - 58 AS col2 FROM tab0
----
-1215
skipif mysql # not compatible
query I rowsort label-7101
SELECT MIN ( + + CAST ( col0 AS INTEGER ) ) * - MAX ( DISTINCT col1 ) - + - 36 / - 58 AS col2 FROM tab0
----
-1215
query I rowsort
SELECT ALL + 20 + + col1 AS col2 FROM tab0 AS cor0
----
101
21
41
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= NULL AND NULL IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 45 col1 FROM tab2 AS cor0 WHERE - col1 >= + 5
----
query I rowsort
SELECT DISTINCT 97 * 54 + - - 97 * 76 * col2 + col2 FROM tab1 AS cor0
----
440245
506602
713046
onlyif mysql # DIV for integer division:
query I rowsort label-7106
SELECT - 5 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7106
SELECT - 5 / - col2 FROM tab1 AS cor0
----
0
0
0
query II rowsort
SELECT + col1 AS col2, 7 AS col2 FROM tab1
----
14
7
47
7
5
7
onlyif mysql # aggregate syntax:
query I rowsort label-7108
SELECT DISTINCT COUNT( DISTINCT - col1 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT COUNT ( DISTINCT - col1 ) FROM tab1
----
3
query I rowsort
SELECT ALL - 48 AS col2 FROM tab0
----
-48
-48
-48
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7111
SELECT ALL - 5 DIV + + col1 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - 5 / + + col1 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 56 col2 FROM tab2 cor0
----
56
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----
query II rowsort
SELECT + + ( col0 ) - + col2, col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----
query II rowsort
SELECT ALL + col1, - 43 AS col0 FROM tab1 AS cor0
----
14
-43
47
-43
5
-43
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / - - col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7117
SELECT ALL 17 DIV - col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 17 / - col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col1 ) col2 FROM tab0 AS cor0
----
-210
-3807
-99
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7120
SELECT ALL COUNT( - col2 ) DIV - 67 col0 FROM tab2
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7120
SELECT ALL COUNT ( - col2 ) / - 67 col0 FROM tab2
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-7121
SELECT - 60 AS col1, COUNT( * ) AS col1 FROM tab2
----
-60
3
skipif mysql # not compatible
query II rowsort label-7121
SELECT - 60 AS col1, COUNT ( * ) AS col1 FROM tab2
----
-60
3
query III rowsort
SELECT DISTINCT col0 AS col1, col1 + + ( + col1 ) AS col0, + col0 AS col0 FROM tab2
----
9 values hashing to c66d5e8ee201a45e8f326321a7d39527
query II rowsort
SELECT - col1, + col0 FROM tab2
----
-51
46
-67
75
-77
64
query II rowsort
SELECT ALL col0 AS col0, col1 FROM tab1
----
51
14
85
5
91
47
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7125
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7126
SELECT ALL + 31 + COUNT( * ) FROM tab0 AS cor0
----
34
skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + 31 + COUNT ( * ) FROM tab0 AS cor0
----
34
query I rowsort
SELECT col1 + + col1 + - - 11 + - col1 FROM tab0 AS cor0
----
12
32
92
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7128
SELECT - - 87 + CAST( NULL AS SIGNED ) + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7128
SELECT - - 87 + CAST ( NULL AS INTEGER ) + - 40 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-7129
SELECT - ( + col1 ) * + + col2 + + - col0 DIV + col1 AS col2 FROM tab0
----
-196
-214
-3807
skipif mysql # not compatible
query I rowsort label-7129
SELECT - ( + col1 ) * + + col2 + + - col0 / + col1 AS col2 FROM tab0
----
-196
-214
-3807
query I rowsort
SELECT - ( - 50 ) * - 3 + 82 FROM tab0
----
-68
-68
-68
query I rowsort
SELECT 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT col1 + + + col2 FROM tab0 AS cor0
----
100
128
31
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7133
SELECT DISTINCT 51 * CAST( NULL AS DECIMAL ) + - 5 * 96 * + + col2 + - 59 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT 51 * CAST ( NULL AS REAL ) + - 5 * 96 * + + col2 + - 59 AS col1 FROM tab1 AS cor0
----
NULL
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL AND 99 / - - 30 = - 1
----
query I rowsort
SELECT ( - col1 ) + - - 64 FROM tab0 cor0
----
-17
43
63
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7136
SELECT ALL + + ( + - CAST( NULL AS SIGNED ) ) + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL + + ( + - CAST ( NULL AS INTEGER ) ) + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + - 99 FROM tab1 AS cor0
----
-52
-85
-94
query I rowsort
SELECT ALL col2 - - 59 AS col1 FROM tab1 cor0
----
118
127
155
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 = NULL AND NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT - col1 - - - col2 FROM tab1 AS cor0
----
-110
-115
-64
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7141
SELECT CAST( - col1 AS SIGNED ) + - col1 col0 FROM tab1 AS cor0
----
-10
-28
-94
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7141
SELECT CAST ( - col1 AS INTEGER ) + - col1 col0 FROM tab1 AS cor0
----
-10
-28
-94
onlyif mysql # aggregate syntax:
query I rowsort label-7142
SELECT ALL - - MAX( + col0 ) FROM tab0 AS cor0
----
97
skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - - MAX ( + col0 ) FROM tab0 AS cor0
----
97
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7143
SELECT - COUNT( * ) * COUNT( * ) + - MAX( + col1 ) DIV + + 99 AS col2 FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-7143
SELECT - COUNT ( * ) * COUNT ( * ) + - MAX ( + col1 ) / + + 99 AS col2 FROM tab0 AS cor0
----
-9
query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----
query I rowsort
SELECT col0 + - ( + col1 ) + - col2 FROM tab2
----
-28
-50
-53
query I rowsort
SELECT ALL + 24 * + - 2 AS col2 FROM tab0
----
-48
-48
-48
query III rowsort
SELECT * FROM tab1 WHERE + - 31 + + 71 NOT BETWEEN NULL AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7148
SELECT + col2 * - - col0 DIV col0 FROM tab0 AS cor0
----
10
47
99
skipif mysql # not compatible
query I rowsort label-7148
SELECT + col2 * - - col0 / col0 FROM tab0 AS cor0
----
10
47
99
query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ( + 30 ) * - 26 FROM tab0 AS cor0
----
-780
-780
-780
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7151
SELECT + - CAST( - 81 AS SIGNED ) FROM tab0 AS cor0
----
81
81
81
skipif mysql # not compatible
query I rowsort label-7151
SELECT + - CAST ( - 81 AS INTEGER ) FROM tab0 AS cor0
----
81
81
81
onlyif mysql # aggregate syntax:
query I rowsort label-7152
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL < NULL
----
0
skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL < NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7153
SELECT ( COUNT( * ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7153
SELECT ( COUNT ( * ) ) FROM tab0
----
3
query I rowsort
SELECT - 51 + + col2 FROM tab2
----
-11
-28
7
onlyif mysql # DIV for integer division:
query I rowsort label-7155
SELECT + 41 + + 48 DIV - col0 AS col2 FROM tab1
----
41
41
41
skipif mysql # not compatible
query I rowsort label-7155
SELECT + 41 + + 48 / - col0 AS col2 FROM tab1
----
41
41
41
query III rowsort
SELECT * FROM tab2 WHERE NOT 46 IN ( + 77 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col0 FROM tab0
----
37
37
37
query III rowsort
SELECT * FROM tab2 WHERE NOT 52 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7159
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-7160
SELECT 93 - col1 DIV + 86 AS col2 FROM tab1
----
93
93
93
skipif mysql # not compatible
query I rowsort label-7160
SELECT 93 - col1 / + 86 AS col2 FROM tab1
----
93
93
93
onlyif mysql # aggregate syntax:
query I rowsort label-7161
SELECT ALL SUM( ALL col1 ) FROM tab1
----
66
skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL SUM ( ALL col1 ) FROM tab1
----
66
query I rowsort
SELECT ALL 21 + + 72 * ( col2 ) AS col1 FROM tab1
----
4269
4917
6933
query I rowsort
SELECT + col2 FROM tab0 WHERE ( ( col1 ) ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7164
SELECT + SUM( ALL + ( + col2 ) ) FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-7164
SELECT + SUM ( ALL + ( + col2 ) ) FROM tab0
----
156
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7165
SELECT - col1 * CAST( + 16 AS SIGNED ) - - CAST( + col1 + + col2 * - 67 AS SIGNED ) FROM tab0
----
-4364
-6648
-985
skipif mysql # not compatible
query I rowsort label-7165
SELECT - col1 * CAST ( + 16 AS INTEGER ) - - CAST ( + col1 + + col2 * - 67 AS INTEGER ) FROM tab0
----
-4364
-6648
-985
query I rowsort
SELECT + 74 * col0 + col0 AS col1 FROM tab1
----
3825
6375
6825
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * - 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL col1 * - 84 AS col0 FROM tab1 WHERE - col2 < - col2
----
query I rowsort
SELECT ALL + 99 + 5 AS col0 FROM tab0
----
104
104
104
onlyif mysql # aggregate syntax:
query I rowsort label-7170
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE ( - col1 ) IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE ( - col1 ) IS NULL
----
0
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( col0 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-7172
SELECT * FROM tab2 WHERE NULL <> - col0 / CAST( - col0 AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-7172
SELECT * FROM tab2 WHERE NULL <> - col0 / CAST ( - col0 AS REAL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7173
SELECT ALL MIN( - 15 ) FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL MIN ( - 15 ) FROM tab0
----
-15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + + col1 * 9 col2 FROM tab0 AS cor0
----
278
818
98
onlyif mysql # DIV for integer division:
query I rowsort label-7175
SELECT ALL + 11 DIV col2 + - col2 * + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350
skipif mysql # not compatible
query I rowsort label-7175
SELECT ALL + 11 / col2 + - col2 * + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = col2 - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-7177
SELECT ALL - MAX( DISTINCT - col0 ) * + 51 + 98 FROM tab2 cor0
----
2444
skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL - MAX ( DISTINCT - col0 ) * + 51 + 98 FROM tab2 cor0
----
2444
onlyif mysql # aggregate syntax:
query I rowsort label-7178
SELECT + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-7178
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-7179
SELECT 3 + - MIN( + 64 - - col2 ) col1 FROM tab2
----
-84
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7179
SELECT 3 + - MIN ( + 64 - - col2 ) col1 FROM tab2
----
-84
query III rowsort
SELECT * FROM tab0 WHERE col2 / col0 = ( NULL )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * - col1 ) IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7182
SELECT col1 DIV + 64 AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7182
SELECT col1 / + 64 AS col2 FROM tab1 cor0
----
0
0
0
query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7184
SELECT ALL + 95 * + CAST( - col1 * col1 + col2 * - 46 AS SIGNED ) FROM tab2 AS cor0
----
-347605
-679915
-738055
skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 95 * + CAST ( - col1 * col1 + col2 * - 46 AS INTEGER ) FROM tab2 AS cor0
----
-347605
-679915
-738055
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 58 + 15 > NULL
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) IN ( - col0 + 71 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 + col1 col1 FROM tab1 AS cor0
----
-23
-56
-65
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7189
SELECT + - COUNT( ALL 54 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7189
SELECT + - COUNT ( ALL 54 ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT - col1 * - 27 - + 33 AS col0 FROM tab1 AS cor0
----
102
1236
345
query I rowsort
SELECT DISTINCT col0 * + - 69 AS col2 FROM tab0
----
-1035
-6003
-6693
query I rowsort
SELECT ALL 15 + + col1 FROM tab0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT 5 - + col0 * ( - 44 * col2 ) FROM tab0
----
31025
38285
422537
query I rowsort
SELECT + 19 - - 40 AS col2 FROM tab2
----
59
59
59
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7195
SELECT ALL CAST( NULL AS SIGNED ) - - - 84 * col1 col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7195
SELECT ALL CAST ( NULL AS INTEGER ) - - - 84 * col1 col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 FROM tab0 WHERE col2 BETWEEN NULL AND - col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 49 ) NOT BETWEEN ( col1 ) AND + col2
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN NULL AND ( 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT 54 * + + col0 AS col0 FROM tab1
----
2754
4590
4914
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7200
SELECT DISTINCT col2 * col2 + + col0 AS col0 FROM tab0 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT col2 * col2 + + col0 AS col0 FROM tab0 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT col0 * 64 AS col2 FROM tab2 cor0
----
2944
4096
4800
onlyif mysql # DIV for integer division:
query I rowsort label-7202
SELECT ALL + col1 DIV col0 * + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL + col1 / col0 * + col2 FROM tab1 AS cor0
----
0
0
0
query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE - 45 BETWEEN ( 24 ) AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7204
SELECT COUNT( * ) + - 85 FROM tab0 WHERE NOT NULL >= - col1
----
-85
skipif mysql # not compatible
query I rowsort label-7204
SELECT COUNT ( * ) + - 85 FROM tab0 WHERE NOT NULL >= - col1
----
-85
query I rowsort
SELECT DISTINCT - ( 85 ) AS col1 FROM tab1
----
-85
onlyif mysql # aggregate syntax:
query I rowsort label-7206
SELECT DISTINCT - SUM( ALL 90 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-810
skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT - SUM ( ALL 90 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-810
query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE 35 IS NULL
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7208
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV - col0 AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / - col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT - + 24 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT + 46 * + - 98 FROM tab1 AS cor0
----
-4508
onlyif mysql # aggregate syntax:
query I rowsort label-7212
SELECT ALL + - SUM( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-185
skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL + - SUM ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
-185
onlyif mysql # aggregate syntax:
query I rowsort label-7213
SELECT COUNT( * ) * + ( + - 19 ) - + 12 FROM tab1 AS cor0
----
-69
skipif mysql # not compatible
query I rowsort label-7213
SELECT COUNT ( * ) * + ( + - 19 ) - + 12 FROM tab1 AS cor0
----
-69
query II rowsort
SELECT ALL col1 AS col2, 13 AS col2 FROM tab2 cor0
----
51
13
67
13
77
13
onlyif mysql # DIV for integer division:
query I rowsort label-7215
SELECT ALL - col1 * 53 DIV + - 43 FROM tab1 AS cor0
----
17
57
6
skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - col1 * 53 / + - 43 FROM tab1 AS cor0
----
17
57
6
query I rowsort
SELECT + 82 * - 28 AS col0 FROM tab1 AS cor0
----
-2296
-2296
-2296
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7217
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 < - + 5
----
skipif mysql # not compatible
query I rowsort label-7217
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 < - + 5
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * + - col2 col2 FROM tab0
----
-2679
-5643
-570
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) BETWEEN NULL AND + col1 + - col2
----
87
21
10
97
1
99
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + + col0 * - - col2 * - col1 IS NULL
----
46
64
75
query II rowsort
SELECT ALL 37 * + + col1, 11 AS col0 FROM tab2
----
1887
11
2479
11
2849
11
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7222
SELECT DISTINCT CAST( NULL AS SIGNED ) * MIN( DISTINCT 65 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MIN ( DISTINCT 65 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT IN ( + col2 + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT 90 * - 90 + 68 * + col2 * + col1 AS col1 FROM tab2 cor0
----
201340
256148
71664
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7225
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7225
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - 73 AS col0 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT + + 6 AS col0 FROM tab2 cor0
----
6
6
6
onlyif mysql # aggregate syntax:
query I rowsort label-7228
SELECT - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7228
SELECT - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7230
SELECT + SUM( + 51 ) + 83 AS col1 FROM tab1 AS cor0
----
236
skipif mysql # not compatible
query I rowsort label-7230
SELECT + SUM ( + 51 ) + 83 AS col1 FROM tab1 AS cor0
----
236
onlyif mysql # aggregate syntax:
query I rowsort label-7231
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 + 80 + - 64 < ( - col1 ) AND - col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 + 80 + - 64 < ( - col1 ) AND - col2 IS NULL
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 42 + - + col0 * + - 56 col0 FROM tab1 AS cor0
----
4998
8330
8918
query I rowsort
SELECT DISTINCT - - col1 + - - col1 * + col1 AS col0 FROM tab2 AS cor0
----
2652
4556
6006
query I rowsort
SELECT ALL + col2 + + 27 FROM tab1 AS cor0
----
123
86
95
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7235
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * 7 + + 34 FROM tab2 cor0
----
13
skipif mysql # not compatible
query I rowsort label-7235
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * 7 + + 34 FROM tab2 cor0
----
13
onlyif mysql # DIV for integer division:
query I rowsort label-7236
SELECT ALL - 38 DIV - - col2 + - 71 - 87 * + + col0 FROM tab2 cor0
----
-4074
-5639
-6596
skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL - 38 / - - col2 + - 71 - 87 * + + col0 FROM tab2 cor0
----
-4074
-5639
-6596
query II rowsort
SELECT ALL + col1 AS col1, col0 AS col1 FROM tab2
----
51
46
67
75
77
64
query I rowsort
SELECT ALL + 4 + col1 AS col2 FROM tab1 WHERE NULL IN ( - 80 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN col2 AND - - 45
----
onlyif mysql # aggregate syntax:
query I rowsort label-7240
SELECT + + ( + COUNT( ALL - + col0 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-7240
SELECT + + ( + COUNT ( ALL - + col0 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
query I rowsort
SELECT + 48 * + col0 AS col1 FROM tab2
----
2208
3072
3600
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7242
SELECT DISTINCT + col0 / col1 FROM tab2 WHERE NOT + 70 BETWEEN 52 AND + + CAST( NULL AS SIGNED ) + + col2
----
skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT + col0 / col1 FROM tab2 WHERE NOT + 70 BETWEEN 52 AND + + CAST ( NULL AS INTEGER ) + + col2
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 BETWEEN 70 AND - col1 * - - col2 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7244
SELECT + 2 * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
6
skipif mysql # not compatible
query I rowsort label-7244
SELECT + 2 * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
6
onlyif mysql # aggregate syntax:
query II rowsort label-7245
SELECT 63 AS col2, - SUM( 21 ) * + SUM( - col0 ) FROM tab2 AS cor0
----
63
11655
skipif mysql # not compatible
query II rowsort label-7245
SELECT 63 AS col2, - SUM ( 21 ) * + SUM ( - col0 ) FROM tab2 AS cor0
----
63
11655
query II rowsort
SELECT DISTINCT col1, col2 + - col1 + - col0 AS col2 FROM tab2 AS cor0
----
51
-74
67
-84
77
-101
query I rowsort
SELECT DISTINCT - col0 * - 47 * + - col1 FROM tab2
----
-110262
-231616
-236175
query II rowsort
SELECT DISTINCT + col0, - col0 + + col2 + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
47
87
10
97
99
onlyif mysql # aggregate syntax:
query I rowsort label-7249
SELECT ALL + - COUNT( col2 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL + - COUNT ( col2 ) FROM tab2 AS cor0
----
-3
query I rowsort
SELECT + + col1 + col1 + - 17 - - + col1 AS col2 FROM tab1 AS cor0
----
-2
124
25
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab0 cor0
----
60
query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query II rowsort
SELECT + ( - - 23 ) + - 30, col0 FROM tab0 AS cor0
----
-7
15
-7
87
-7
97
query I rowsort
SELECT ALL col2 * ( - 65 ) AS col0 FROM tab0 AS cor0
----
-3055
-6435
-650
onlyif mysql # aggregate syntax:
query I rowsort label-7255
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9
query I rowsort
SELECT - col0 / + 29 * + + 28 + - col2 / col2 FROM tab0 AS cor0 WHERE ( NULL <> NULL )
----
query I rowsort
SELECT ALL + + col0 * + col0 + + 54 AS col0 FROM tab2 cor0
----
2170
4150
5679
query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE + col2 = + + ( - col1 ) / - col1
----
query I rowsort
SELECT DISTINCT - col0 * 82 AS col1 FROM tab2 AS cor0
----
-3772
-5248
-6150
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7260
SELECT ALL col0 * - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL col0 * - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 66 * + 55 FROM tab1
----
3630
3630
3630
query I rowsort
SELECT - ( + 31 ) * 29 AS col2 FROM tab2 WHERE col1 BETWEEN col1 AND NULL
----
query I rowsort
SELECT DISTINCT 19 * col1 * col0 * - ( + col1 ) * + - ( - + col2 ) FROM tab0
----
-182457
-7289730
-87884595
query I rowsort
SELECT col1 / col0 AS col0 FROM tab1 WHERE NULL BETWEEN ( - + col2 * + + ( - col1 ) / + 55 + + 37 ) AND NULL
----
query I rowsort
SELECT - col0 * + - 55 AS col2 FROM tab1
----
2805
4675
5005
query I rowsort
SELECT ALL + 39 + col0 AS col2 FROM tab1
----
124
130
90
query I rowsort
SELECT + ( - - 79 ) * - 34 FROM tab1
----
-2686
-2686
-2686
onlyif mysql # aggregate syntax:
query I rowsort label-7268
SELECT + MIN( ALL col2 ) AS col1 FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-7268
SELECT + MIN ( ALL col2 ) AS col1 FROM tab0
----
10
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7269
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7270
SELECT - 20 DIV + COUNT( - 65 ) + COUNT( * ) FROM tab2 WHERE - - col2 - - 2 DIV + col2 * 50 * - 93 NOT IN ( + 8 )
----
-3
skipif mysql # not compatible
query I rowsort label-7270
SELECT - 20 / + COUNT ( - 65 ) + COUNT ( * ) FROM tab2 WHERE - - col2 - - 2 / + col2 * 50 * - 93 NOT IN ( + 8 )
----
-3
query I rowsort
SELECT ALL col0 + + col1 * col1 * col0 AS col1 FROM tab1
----
10047
201110
2210
query II rowsort
SELECT - 37, col2 FROM tab2
----
-37
23
-37
40
-37
58
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7273
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) / + 74 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7273
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + 74 FROM tab2
----
NULL
query I rowsort
SELECT 42 AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + 5 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7275
SELECT + - ( CAST( NULL AS DECIMAL ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7275
SELECT + - ( CAST ( NULL AS REAL ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 89 + + 25 = + ( - 14 )
----
query I rowsort
SELECT 82 AS col0 FROM tab1 WHERE NULL IS NULL
----
82
82
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2
----
10
query I rowsort
SELECT ALL - - ( 7 ) FROM tab1 AS cor0
----
7
7
7
query I rowsort
SELECT ALL col2 * ( + col0 ) + - col0 FROM tab0 AS cor0 WHERE NOT ( + col1 * col2 ) BETWEEN ( + col1 * + + col1 + + - col1 ) AND 75
----
690
783
9506
onlyif mysql # aggregate syntax:
query I rowsort label-7281
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7282
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 6
----
onlyif mysql # aggregate syntax:
query I rowsort label-7284
SELECT DISTINCT - - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3
query I rowsort
SELECT + 85 FROM tab1 cor0
----
85
85
85
onlyif mysql # aggregate syntax:
query I rowsort label-7286
SELECT ALL COUNT( * ) * SUM( col1 ) FROM tab1
----
198
skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL COUNT ( * ) * SUM ( col1 ) FROM tab1
----
198
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 98, col1 col1 FROM tab2
----
-98
51
-98
67
-98
77
query I rowsort
SELECT ( + 31 ) AS col0 FROM tab0
----
31
31
31
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col1 * - - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7290
SELECT MAX( + col0 ) col0 FROM tab2
----
75
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7290
SELECT MAX ( + col0 ) col0 FROM tab2
----
75
query I rowsort
SELECT - + 8 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7292
SELECT COUNT( DISTINCT + col1 ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-7292
SELECT COUNT ( DISTINCT + col1 ) FROM tab1
----
3
query I rowsort
SELECT - 39 * col2 AS col2 FROM tab1
----
-2301
-2652
-3744
query I rowsort
SELECT - 5 * + 78 AS col2 FROM tab1
----
-390
-390
-390
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 3 * + col2 - + ( + 46 ) + + + col2 * col0 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab0
----
10
10
10
onlyif mysql # aggregate syntax:
query I rowsort label-7298
SELECT ALL + + MAX( 0 ) AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + + MAX ( 0 ) AS col0 FROM tab1 AS cor0
----
0
query II rowsort
SELECT 25, 74 AS col2 FROM tab2 AS cor0
----
25
74
25
74
25
74
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7300
SELECT - 1 DIV COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7300
SELECT - 1 / COUNT ( * ) FROM tab1 AS cor0
----
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= NULL )
----
onlyif mysql # DIV for integer division:
query II rowsort label-7302
SELECT DISTINCT - col1 * - col0 AS col1, - 25 DIV - - col2 + col0 AS col2 FROM tab1
----
425
85
4277
91
714
51
skipif mysql # not compatible
query II rowsort label-7302
SELECT DISTINCT - col1 * - col0 AS col1, - 25 / - - col2 + col0 AS col2 FROM tab1
----
425
85
4277
91
714
51
query II rowsort
SELECT - 87, - 23 AS col1 FROM tab2
----
-87
-23
-87
-23
-87
-23
query I rowsort
SELECT ALL + 58 * + 25 FROM tab0
----
1450
1450
1450
query I rowsort
SELECT DISTINCT + 84 + 37 + + 46 FROM tab1
----
167
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 89 BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 20 ) col2 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL + col1 * + col2 + + col0 + - - 23 + + + col2 AS col0 FROM tab0 AS cor0
----
318
330
3892
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7309
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 79 + - CAST( + - 96 AS SIGNED ) AND NULL
----
skipif mysql # not compatible
query I rowsort label-7309
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 79 + - CAST ( + - 96 AS INTEGER ) AND NULL
----
query II rowsort
SELECT DISTINCT + col0 * + + col0 + - ( + col1 ) AS col1, + 67 FROM tab2 AS cor0
----
2065
67
4019
67
5558
67
onlyif mysql # aggregate syntax:
query I rowsort label-7311
SELECT DISTINCT + 73 + + ( - SUM( + col0 ) ) FROM tab1 AS cor0
----
-154
skipif mysql # not compatible
query I rowsort label-7311
SELECT DISTINCT + 73 + + ( - SUM ( + col0 ) ) FROM tab1 AS cor0
----
-154
onlyif mysql # aggregate syntax:
query I rowsort label-7312
SELECT - COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
-6
skipif mysql # not compatible
query I rowsort label-7312
SELECT - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
-6
onlyif mysql # aggregate syntax:
query I rowsort label-7313
SELECT + 44 + COUNT( * ) col1 FROM tab0
----
47
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7313
SELECT + 44 + COUNT ( * ) col1 FROM tab0
----
47
query II rowsort
SELECT DISTINCT col0 + + + 28 * col0 AS col0, col2 FROM tab0
----
2523
10
2813
99
435
47
query II rowsort
SELECT ALL ( col2 ) AS col2, + col0 FROM tab1
----
59
85
68
91
96
51
query II rowsort
SELECT + 62 + - col2, + col0 + + col2 AS col0 FROM tab2
----
22
104
39
69
4
133
onlyif mysql # aggregate syntax:
query I rowsort label-7317
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0
query I rowsort
SELECT DISTINCT + 28 * col2 FROM tab2
----
1120
1624
644
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 > + ( - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7320
SELECT ALL SUM( DISTINCT + col0 ) AS col2 FROM tab0
----
199
skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL SUM ( DISTINCT + col0 ) AS col2 FROM tab0
----
199
query I rowsort
SELECT + col0 * + - col0 + + col2 AS col2 FROM tab1
----
-2505
-7166
-8213
query I rowsort
SELECT col1 FROM tab1 WHERE - + 99 IS NOT NULL
----
14
47
5
query III rowsort
SELECT * FROM tab2 WHERE + - col0 <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7324
SELECT col1 * - CAST( NULL AS SIGNED ) - + ( col1 ) - col2 * - col2 + + - col2 / + + 63 * + col1 * + - col0 AS col2, - 47 FROM tab0 AS cor0
----
NULL
-47
NULL
-47
NULL
-47
skipif mysql # not compatible
query II rowsort label-7324
SELECT col1 * - CAST ( NULL AS INTEGER ) - + ( col1 ) - col2 * - col2 + + - col2 / + + 63 * + col1 * + - col0 AS col2, - 47 FROM tab0 AS cor0
----
NULL
-47
NULL
-47
NULL
-47
onlyif mysql # aggregate syntax:
query II rowsort label-7325
SELECT DISTINCT - ( + - SUM( - + col1 ) ) + + SUM( col0 ) AS col2, + COUNT( * ) FROM tab0 AS cor0
----
96
3
skipif mysql # not compatible
query II rowsort label-7325
SELECT DISTINCT - ( + - SUM ( - + col1 ) ) + + SUM ( col0 ) AS col2, + COUNT ( * ) FROM tab0 AS cor0
----
96
3
query I rowsort
SELECT ALL ( 43 ) + - col2 FROM tab0 AS cor0 WHERE + col2 / + 98 IS NULL
----
query I rowsort
SELECT DISTINCT 73 + - col0 AS col2 FROM tab1 AS cor0
----
-12
-18
22
onlyif mysql # aggregate syntax:
query I rowsort label-7328
SELECT 72 - + COUNT( * ) FROM tab2
----
69
skipif mysql # not compatible
query I rowsort label-7328
SELECT 72 - + COUNT ( * ) FROM tab2
----
69
query I rowsort
SELECT DISTINCT + 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
43
onlyif mysql # aggregate syntax:
query I rowsort label-7330
SELECT - COUNT( ALL 52 ) col0 FROM tab1
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7330
SELECT - COUNT ( ALL 52 ) col0 FROM tab1
----
-3
query II rowsort
SELECT ALL + + col2, col0 + + ( - 42 ) + + col2 FROM tab0 AS cor0
----
10
55
47
20
99
154
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) = - - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-7333
SELECT + 24 DIV + col2 AS col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7333
SELECT + 24 / + col2 AS col0 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # DIV for integer division:
query II rowsort label-7334
SELECT ALL 61 DIV - col1 - col2 + + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-22
47
-66
5
-86
14
skipif mysql # not compatible
query II rowsort label-7334
SELECT ALL 61 / - col1 - col2 + + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-22
47
-66
5
-86
14
query II rowsort
SELECT ALL - + col2 AS col2, + 14 AS col1 FROM tab2 AS cor0
----
-23
14
-40
14
-58
14
onlyif mysql # aggregate syntax:
query I rowsort label-7336
SELECT + SUM( DISTINCT - - 89 ) AS col0 FROM tab2 AS cor0
----
89
skipif mysql # not compatible
query I rowsort label-7336
SELECT + SUM ( DISTINCT - - 89 ) AS col0 FROM tab2 AS cor0
----
89
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7338
SELECT - - COUNT( * ) DIV + 29 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7338
SELECT - - COUNT ( * ) / + 29 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 75 * - + 23 AS col2 FROM tab0 AS cor0
----
-1725
query I rowsort
SELECT DISTINCT + + 22 AS col0 FROM tab1 AS cor0
----
22
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7341
SELECT + 42 * col0 - + + CAST( - col2 AS DECIMAL ) + 11 + - 89 * - 97 - col2 FROM tab1 WHERE NOT NULL IS NULL
----
skipif mysql # not compatible
query I rowsort label-7341
SELECT + 42 * col0 - + + CAST ( - col2 AS REAL ) + 11 + - 89 * - 97 - col2 FROM tab1 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( col1 + col1 ) OR NOT NULL NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - + AVG ( ALL + col2 ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL
query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NOT 19 IS NULL
----
-1
-21
-81
query I rowsort
SELECT 49 * + col1 AS col0 FROM tab2
----
2499
3283
3773
query I rowsort
SELECT - col0 * - ( + col0 ) AS col0 FROM tab1
----
2601
7225
8281
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7347
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( - + col0 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( - + col0 ) FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7348
SELECT DISTINCT ( COUNT( * ) ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT ( COUNT ( * ) ) AS col0 FROM tab1
----
3
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 23 * col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7350
SELECT ALL + 24 * + + 45 * + - COUNT( * ) * - 32 * + COUNT( DISTINCT + col2 ) col1 FROM tab0 AS cor0
----
311040
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7350
SELECT ALL + 24 * + + 45 * + - COUNT ( * ) * - 32 * + COUNT ( DISTINCT + col2 ) col1 FROM tab0 AS cor0
----
311040
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7351
SELECT DISTINCT + col0 DIV + + CAST( - 30 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
-24
-42
-60
skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + col0 / + + CAST ( - 30 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
-24
-42
-60
query I rowsort
SELECT - - col0 * + 96 FROM tab2 AS cor0
----
4416
6144
7200
onlyif mysql # aggregate syntax:
query I rowsort label-7353
SELECT ALL + MAX( + - 22 ) col1 FROM tab1 cor0
----
-22
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7353
SELECT ALL + MAX ( + - 22 ) col1 FROM tab1 cor0
----
-22
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-7354
SELECT col0 / CAST( NULL AS DECIMAL ) * + col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
skipif mysql # not compatible
query II rowsort label-7354
SELECT col0 / CAST ( NULL AS REAL ) * + col2, + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75
query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab1
----
20
query I rowsort
SELECT + 59 * + - col0 + + - col0 AS col1 FROM tab2 AS cor0
----
-2760
-3840
-4500
onlyif mysql # aggregate syntax:
query I rowsort label-7357
SELECT - 28 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-25
skipif mysql # not compatible
query I rowsort label-7357
SELECT - 28 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-25
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 28 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67
query I rowsort
SELECT ALL + + col0 + - 7 FROM tab2 cor0
----
39
57
68
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 21 IS NULL
----
query I rowsort
SELECT DISTINCT - col1 * + 10 + col2 FROM tab1 AS cor0
----
-402
-44
9
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col2 + col1 * 58 + + ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col0 + + ( + 29 ) AND - 70
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7366
SELECT DISTINCT col0 AS col1, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL
skipif mysql # not compatible
query II rowsort label-7366
SELECT DISTINCT col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL
query I rowsort
SELECT + + col1 * + col0 + + col2 * 81 * - + col0 * + 39 FROM tab2 WHERE + + col0 / - 88 + col0 IS NOT NULL
----
-13736625
-3339876
-8082112
onlyif mysql # aggregate syntax:
query I rowsort label-7368
SELECT DISTINCT + COUNT( * ) * + 65 AS col1 FROM tab1
----
195
skipif mysql # not compatible
query I rowsort label-7368
SELECT DISTINCT + COUNT ( * ) * + 65 AS col1 FROM tab1
----
195
query I rowsort
SELECT col0 - - + 48 AS col1 FROM tab1
----
133
139
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - - col0 col0 FROM tab0
----
103
175
185
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7371
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) + + 45 FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) + + 45 FROM tab2 AS cor0
----
46
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7372
SELECT CAST( + MAX( - 38 ) AS DECIMAL ) FROM tab1 AS cor0 WHERE - 18 IN ( + + 76 * - 98 + + 23 * - - 40 + ( + col1 ) * - - col1 / - - col1 )
----
NULL
skipif mysql # not compatible
query I rowsort label-7372
SELECT CAST ( + MAX ( - 38 ) AS REAL ) FROM tab1 AS cor0 WHERE - 18 IN ( + + 76 * - 98 + + 23 * - - 40 + ( + col1 ) * - - col1 / - - col1 )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7373
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7373
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----
0
query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
100
128
31
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7375
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 14 - col0 + - col2 * - col1 / + col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7375
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 14 - col0 + - col2 * - col1 / + col0 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7376
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7376
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7377
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + 32 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL
query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL IN ( - col2, col2 + + col0 + 90 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-7379
SELECT DISTINCT 20 DIV 35 col1, MAX( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
0
-15
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7379
SELECT DISTINCT 20 / 35 col1, MAX ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
0
-15
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 89 NOT IN ( - 42, col0 * + 15 + + - col1 * + col2, + 18 / ( + - ( + ( - col0 ) ) ) )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7381
SELECT COUNT( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7381
SELECT COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-7382
SELECT DISTINCT + col0 DIV + - 9 FROM tab1 AS cor0
----
-10
-5
-9
skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + col0 / + - 9 FROM tab1 AS cor0
----
-10
-5
-9
query I rowsort
SELECT + + 93 AS col1 FROM tab2 cor0
----
93
93
93
onlyif mysql # aggregate syntax:
query I rowsort label-7384
SELECT COUNT( * ) * COUNT( * ) AS col0 FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-7384
SELECT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0
----
9
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + - col0
----
query I rowsort
SELECT DISTINCT col2 * + 46 AS col2 FROM tab1
----
2714
3128
4416
onlyif mysql # aggregate syntax:
query I rowsort label-7387
SELECT + MIN( ALL 20 ) FROM tab1
----
20
skipif mysql # not compatible
query I rowsort label-7387
SELECT + MIN ( ALL 20 ) FROM tab1
----
20
onlyif mysql # aggregate syntax:
query I rowsort label-7388
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
-185
skipif mysql # not compatible
query I rowsort label-7388
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
-185
query II rowsort
SELECT - 26, col1 FROM tab0
----
-26
1
-26
21
-26
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 72 ) col0 FROM tab1
----
72
query I rowsort
SELECT DISTINCT - ( 3 ) AS col1 FROM tab1
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7392
SELECT DISTINCT + 11 * - CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT + 11 * - CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7393
SELECT ALL COUNT( 20 ) * + COUNT( * ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-7393
SELECT ALL COUNT ( 20 ) * + COUNT ( * ) FROM tab0
----
9
query I rowsort
SELECT DISTINCT - + 57 AS col1 FROM tab2 AS cor0
----
-57
query II rowsort
SELECT DISTINCT + col0, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75
query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7398
SELECT - COUNT( * ) * + COUNT( ALL col2 ) FROM tab2
----
-9
skipif mysql # not compatible
query I rowsort label-7398
SELECT - COUNT ( * ) * + COUNT ( ALL col2 ) FROM tab2
----
-9
query I rowsort
SELECT - + 77 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL 41 * - col2 + - col1 - col0 - - + 88 + + col0 - + 40 * + col2 * - ( 23 ) FROM tab1 AS cor0
----
51944
59813
84458
query I rowsort
SELECT col0 + col2 + - col2 * 5 FROM tab1 AS cor0
----
-151
-181
-333
query I rowsort
SELECT - - ( + - col0 ) + + 35 + + + col0 AS col2 FROM tab2 cor0
----
35
35
35
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7403
SELECT DISTINCT - 34 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - 34 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7404
SELECT ALL + CAST( col0 AS SIGNED ) + - + 1 AS col1 FROM tab1 AS cor0
----
50
84
90
skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + CAST ( col0 AS INTEGER ) + - + 1 AS col1 FROM tab1 AS cor0
----
50
84
90
query I rowsort
SELECT + - 95 * ( + 44 ) + col0 AS col2 FROM tab0 AS cor0
----
-4083
-4093
-4165
query II rowsort
SELECT DISTINCT + 64 + + col1, - col0 + + - 89 AS col2 FROM tab0 AS cor0
----
145
-104
65
-186
85
-176
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - col2
----
query I rowsort
SELECT 73 + - 73 - - + col1 FROM tab0 AS cor0
----
1
21
81
query I rowsort
SELECT ALL 87 + - col0 FROM tab2 AS cor0
----
12
23
41
onlyif mysql # DIV for integer division:
query II rowsort label-7410
SELECT - 56 * + 38 * col0 + + 90 AS col2, 99 DIV + + 17 FROM tab0 AS cor0
----
-185046
5
-206326
5
-31830
5
skipif mysql # not compatible
query II rowsort label-7410
SELECT - 56 * + 38 * col0 + + 90 AS col2, 99 / + + 17 FROM tab0 AS cor0
----
-185046
5
-206326
5
-31830
5
query I rowsort
SELECT 5 * - col2 + - + ( + 83 ) AS col0 FROM tab2
----
-198
-283
-373
onlyif mysql # aggregate syntax:
query I rowsort label-7412
SELECT DISTINCT COUNT( * ) - + 8 FROM tab2
----
-5
skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT COUNT ( * ) - + 8 FROM tab2
----
-5
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7414
SELECT ALL COUNT( DISTINCT ( - ( col2 ) ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL COUNT ( DISTINCT ( - ( col2 ) ) ) FROM tab2
----
3
query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col1
----
query I rowsort
SELECT ALL ( col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7417
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 5 * - col2 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-7417
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 5 * - col2 IS NULL
----
0
query I rowsort
SELECT ALL - - 54 - - col2 AS col0 FROM tab0 AS cor0
----
101
153
64
query II rowsort
SELECT - col2 - - 48 + - col1, 15 * 95 AS col0 FROM tab2 cor0
----
-26
1425
-69
1425
-77
1425
query I rowsort
SELECT 16 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - 95 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7422
SELECT - ( - SUM( ALL + col2 ) ) FROM tab2 AS cor0
----
121
skipif mysql # not compatible
query I rowsort label-7422
SELECT - ( - SUM ( ALL + col2 ) ) FROM tab2 AS cor0
----
121
query II rowsort
SELECT ALL - col2 AS col0, + 50 * - col0 FROM tab1 AS cor0
----
-59
-4250
-68
-4550
-96
-2550
onlyif mysql # aggregate syntax:
query I rowsort label-7424
SELECT MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7424
SELECT MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1
query II rowsort
SELECT DISTINCT - col0 AS col2, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99
query II rowsort
SELECT - + 97, + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-97
46
-97
64
-97
75
query I rowsort
SELECT ALL + + 88 AS col1 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + col2 * 19 * col1 + + 78 FROM tab1 AS cor0
----
25614
5683
60802
query III rowsort
SELECT * FROM tab1 WHERE NOT + - 88 <= - - col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-7430
SELECT MIN( + + col0 ), COUNT( * ) AS col2 FROM tab2
----
46
3
skipif mysql # not compatible
query II rowsort label-7430
SELECT MIN ( + + col0 ), COUNT ( * ) AS col2 FROM tab2
----
46
3
onlyif mysql # DIV for integer division:
query I rowsort label-7431
SELECT ALL col2 + col1 DIV - 10 AS col1 FROM tab0
----
39
8
99
skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL col2 + col1 / - 10 AS col1 FROM tab0
----
39
8
99
onlyif mysql # aggregate syntax:
query I rowsort label-7432
SELECT MIN( - ( col2 ) ) FROM tab0
----
-99
skipif mysql # not compatible
query I rowsort label-7432
SELECT MIN ( - ( col2 ) ) FROM tab0
----
-99
onlyif mysql # DIV for integer division:
query II rowsort label-7433
SELECT ALL - 24 DIV + 80 * + - 32, + col0 FROM tab0
----
0
15
0
87
0
97
skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL - 24 / + 80 * + - 32, + col0 FROM tab0
----
0
15
0
87
0
97
onlyif mysql # aggregate syntax:
query II rowsort label-7434
SELECT + MIN( + 36 ), - SUM( DISTINCT - - 71 ) AS col2 FROM tab1
----
36
-71
skipif mysql # not compatible
query II rowsort label-7434
SELECT + MIN ( + 36 ), - SUM ( DISTINCT - - 71 ) AS col2 FROM tab1
----
36
-71
query I rowsort
SELECT DISTINCT 69 + col1 FROM tab0 AS cor0
----
150
70
90
query I rowsort
SELECT ALL + - 30 AS col2 FROM tab0 cor0
----
-30
-30
-30
onlyif mysql # aggregate syntax:
query I rowsort label-7437
SELECT + 48 + - COUNT( * ) FROM tab2
----
45
skipif mysql # not compatible
query I rowsort label-7437
SELECT + 48 + - COUNT ( * ) FROM tab2
----
45
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7438
SELECT - 15 + + - 78 + - - COUNT( * ) DIV + 24 + COUNT( * ) DIV - 65 col1 FROM tab2
----
-93
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7438
SELECT - 15 + + - 78 + - - COUNT ( * ) / + 24 + COUNT ( * ) / - 65 col1 FROM tab2
----
-93
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7439
SELECT ALL CAST( 10 AS SIGNED ) FROM tab2
----
10
10
10
skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL CAST ( 10 AS INTEGER ) FROM tab2
----
10
10
10
query I rowsort
SELECT ALL - col1 * - 51 AS col2 FROM tab1 WHERE NULL <= - col1 * + - col1
----
query I rowsort
SELECT DISTINCT 94 + - col0 FROM tab0 AS cor0
----
-3
7
79
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-7442
SELECT + + 77 AS col2, + CAST( + 57 AS SIGNED ) FROM tab0 AS cor0
----
77
57
77
57
77
57
skipif mysql # not compatible
query II rowsort label-7442
SELECT + + 77 AS col2, + CAST ( + 57 AS INTEGER ) FROM tab0 AS cor0
----
77
57
77
57
77
57
query III rowsort
SELECT * FROM tab2 WHERE ( col1 + - - col0 IS NULL )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7444
SELECT DISTINCT - MIN( col0 ) DIV - + SUM( - - ( + - col0 ) ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT - MIN ( col0 ) / - + SUM ( - - ( + - col0 ) ) FROM tab2
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-7445
SELECT ALL + 17 DIV - 17 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + 17 / - 17 FROM tab1
----
-1
-1
-1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7446
SELECT + CAST( NULL AS SIGNED ) - - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7446
SELECT + CAST ( NULL AS INTEGER ) - - ( col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7447
SELECT DISTINCT - MAX( + - col1 ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT - MAX ( + - col1 ) AS col0 FROM tab0
----
1
query I rowsort
SELECT col0 + + col1 - - - 18 * 50 AS col2 FROM tab2
----
-758
-759
-803
onlyif mysql # DIV for integer division:
query I rowsort label-7449
SELECT - 47 + col1 DIV - col0 FROM tab1
----
-47
-47
-47
skipif mysql # not compatible
query I rowsort label-7449
SELECT - 47 + col1 / - col0 FROM tab1
----
-47
-47
-47
onlyif mysql # aggregate syntax:
query II rowsort label-7450
SELECT - 96, COUNT( ALL - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-96
0
skipif mysql # not compatible
query II rowsort label-7450
SELECT - 96, COUNT ( ALL - - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-96
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7451
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77
skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT ALL - 30 FROM tab1 cor0
----
-30
-30
-30
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 18 >= + col0
----
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7455
SELECT DISTINCT + + ( - + SUM( DISTINCT - - col1 ) ) col1 FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7455
SELECT DISTINCT + + ( - + SUM ( DISTINCT - - col1 ) ) col1 FROM tab2 AS cor0
----
-195
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7457
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + + col0 AND col0
----
skipif mysql # not compatible
query I rowsort label-7457
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 / + + col0 AND col0
----
query I rowsort
SELECT ALL + + col1 * col2 + 54 + + 46 FROM tab2 AS cor0
----
1273
3180
3986
query II rowsort
SELECT - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47
query II rowsort
SELECT col1 AS col0, - col2 FROM tab0
----
1
-99
21
-10
81
-47
onlyif mysql # aggregate syntax:
query I rowsort label-7461
SELECT ALL MIN( ALL + + col1 ) FROM tab2
----
51
skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL MIN ( ALL + + col1 ) FROM tab2
----
51
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7462
SELECT - col1 * + ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7462
SELECT - col1 * + ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7463
SELECT ALL - SUM( - col1 ) * - COUNT( * ) AS col2 FROM tab0
----
-309
skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - SUM ( - col1 ) * - COUNT ( * ) AS col2 FROM tab0
----
-309
onlyif mysql # aggregate syntax:
query I rowsort label-7464
SELECT + COUNT( * ) + - ( + 31 ) AS col2 FROM tab1
----
-28
skipif mysql # not compatible
query I rowsort label-7464
SELECT + COUNT ( * ) + - ( + 31 ) AS col2 FROM tab1
----
-28
query III rowsort
SELECT * FROM tab1 WHERE NOT + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT col2 * - 29 FROM tab0
----
-1363
-2871
-290
query I rowsort
SELECT DISTINCT - + col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816
query II rowsort
SELECT + col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7469
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - ( + col1 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7469
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - ( + col1 ) FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7470
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT ALL - + col2 + + - 69 + + - col2 + col1 FROM tab2 AS cor0
----
-118
-64
-72
query I rowsort
SELECT - + 17 * + col1 + + 64 AS col2 FROM tab0 AS cor0
----
-1313
-293
47
query I rowsort
SELECT ALL - 48 + 86 AS col0 FROM tab1 AS cor0 WHERE col0 * + + col2 * ( + + col1 ) IS NOT NULL
----
38
38
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col1 FROM tab1 AS cor0
----
60
60
60
onlyif mysql # aggregate syntax:
query I rowsort label-7475
SELECT ALL + - COUNT( DISTINCT col0 ) + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + - COUNT ( DISTINCT col0 ) + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
query I rowsort
SELECT - 43 + + - 51 * - col0 + col2 FROM tab1 cor0
----
2654
4351
4666
onlyif mysql # aggregate syntax:
query I rowsort label-7477
SELECT COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7477
SELECT COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col2 + - - col1 * + col2 - - col0 FROM tab0 AS cor0
----
287
3775
97
query I rowsort
SELECT ALL - col1 + + 74 AS col2 FROM tab2 AS cor0
----
-3
23
7
query I rowsort
SELECT ALL + col2 - - col0 + - col2 + + 30 * - 61 + - + ( 10 ) FROM tab1 cor0
----
-1749
-1755
-1789
onlyif mysql # aggregate syntax:
query I rowsort label-7481
SELECT ALL COUNT( + + 59 ) AS col1 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL COUNT ( + + 59 ) AS col1 FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7482
SELECT DISTINCT MAX( ALL + + 18 ) FROM tab2
----
18
skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT MAX ( ALL + + 18 ) FROM tab2
----
18
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 12 )
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7484
SELECT + COUNT( * ) DIV + 12 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7484
SELECT + COUNT ( * ) / + 12 AS col1 FROM tab1
----
0
query I rowsort
SELECT col1 * - + col2 - + col1 + - ( + 89 ) * - + col2 AS col0 FROM tab0 AS cor0
----
295
659
8711
query I rowsort
SELECT 77 * - 87 FROM tab1
----
-6699
-6699
-6699
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7488
SELECT + MIN( DISTINCT - 91 ) AS col0 FROM tab1
----
-91
skipif mysql # not compatible
query I rowsort label-7488
SELECT + MIN ( DISTINCT - 91 ) AS col0 FROM tab1
----
-91
onlyif mysql # aggregate syntax:
query I rowsort label-7489
SELECT DISTINCT - MAX( + + 95 ) AS col2 FROM tab0 AS cor0
----
-95
skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT - MAX ( + + 95 ) AS col2 FROM tab0 AS cor0
----
-95
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7490
SELECT + CAST( 86 AS SIGNED ) col2 FROM tab0 AS cor0
----
86
86
86
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7490
SELECT + CAST ( 86 AS INTEGER ) col2 FROM tab0 AS cor0
----
86
86
86
onlyif mysql # aggregate syntax:
query I rowsort label-7491
SELECT DISTINCT ( - ( - ( - 94 ) ) ) + SUM( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT ( - ( - ( - 94 ) ) ) + SUM ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-7492
SELECT ALL + - COUNT( 36 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL + - COUNT ( 36 ) FROM tab1 AS cor0
----
-3
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 - + 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query III rowsort label-7495
SELECT DISTINCT + col2, CAST( col2 AS SIGNED ) col2, + col0 DIV - col0 FROM tab0
----
9 values hashing to 8db078d243fee4cf8a0cf23ae51433fb
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7495
SELECT DISTINCT + col2, CAST ( col2 AS INTEGER ) col2, + col0 / - col0 FROM tab0
----
9 values hashing to 8db078d243fee4cf8a0cf23ae51433fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, - col1 AS col2 FROM tab0 WHERE ( NOT NULL NOT BETWEEN col1 AND ( - col0 ) )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7498
SELECT ALL - SUM( ALL - + 95 ) FROM tab1
----
285
skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - SUM ( ALL - + 95 ) FROM tab1
----
285
query I rowsort
SELECT + 55 * col2 FROM tab0
----
2585
5445
550
onlyif mysql # aggregate syntax:
query I rowsort label-7500
SELECT - MAX( DISTINCT - - col0 ) FROM tab1
----
-91
skipif mysql # not compatible
query I rowsort label-7500
SELECT - MAX ( DISTINCT - - col0 ) FROM tab1
----
-91
onlyif mysql # aggregate syntax:
query I rowsort label-7501
SELECT - 70 + - 88 * - MIN( - col2 ) FROM tab0 AS cor0 WHERE + col1 BETWEEN - col0 AND NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7501
SELECT - 70 + - 88 * - MIN ( - col2 ) FROM tab0 AS cor0 WHERE + col1 BETWEEN - col0 AND NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7502
SELECT - 93 + + ( + - COUNT( * ) ) - 19 AS col1 FROM tab1 AS cor0
----
-115
skipif mysql # not compatible
query I rowsort label-7502
SELECT - 93 + + ( + - COUNT ( * ) ) - 19 AS col1 FROM tab1 AS cor0
----
-115
query III rowsort
SELECT * FROM tab1 WHERE col2 + + 13 IS NULL
----
query I rowsort
SELECT ALL - 1 + - 5 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ( - 33 ) * + + 33 + + + ( col2 ) FROM tab1 cor0
----
-1021
-1030
-993
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7506
SELECT ALL + + CAST( NULL AS SIGNED ) + + + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + + CAST ( NULL AS INTEGER ) + + + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5
onlyif mysql # aggregate syntax:
query I rowsort label-7508
SELECT - COUNT( * ) + + - 0 * - COUNT( * ) FROM tab2 AS cor0 WHERE ( NOT col0 + col0 * - + col2 <> NULL )
----
0
skipif mysql # not compatible
query I rowsort label-7508
SELECT - COUNT ( * ) + + - 0 * - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NOT col0 + col0 * - + col2 <> NULL )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7509
SELECT DISTINCT - 68 + + + COUNT( * ) FROM tab1 AS cor0
----
-65
skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - 68 + + + COUNT ( * ) FROM tab1 AS cor0
----
-65
query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
query II rowsort
SELECT - col0 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7512
SELECT ALL + ( COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) ), COUNT( - col1 ) AS col1 FROM tab0
----
0
3
skipif mysql # not compatible
query II rowsort label-7512
SELECT ALL + ( COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), COUNT ( - col1 ) AS col1 FROM tab0
----
0
3
query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1
----
-52
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7514
SELECT * FROM tab0 WHERE NOT col2 <= + - col1 / - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-7514
SELECT * FROM tab0 WHERE NOT col2 <= + - col1 / - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT ALL - col0 * + 25 AS col0 FROM tab1 AS cor0
----
-1275
-2125
-2275
onlyif mysql # DIV for integer division:
query I rowsort label-7516
SELECT DISTINCT col2 DIV col0 + - 85 * 98 + col2 FROM tab2 cor0
----
-8272
-8290
-8307
skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT col2 / col0 + - 85 * 98 + col2 FROM tab2 cor0
----
-8272
-8290
-8307
query I rowsort
SELECT - + col2 / + - col0 FROM tab0 WHERE NOT NULL IS NULL
----
query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 66 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7519
SELECT DISTINCT - - COUNT( * ) + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
89
skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT - - COUNT ( * ) + 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
89
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 24 / + col1 col0 FROM tab1 AS cor0 WHERE NOT - 17 + + 77 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab1 AS cor0 WHERE NOT - 27 + + col2 NOT BETWEEN + 89 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + + col2 + + col0 col0 FROM tab1 AS cor0
----
-1293
-210
-3105
onlyif mysql # DIV for integer division:
query I rowsort label-7524
SELECT col0 DIV col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) <= - col2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7524
SELECT col0 / col2 FROM tab1 AS cor0 WHERE NOT ( + col1 ) <= - col2
----
0
1
1
query I rowsort
SELECT ALL - ( - 33 ) FROM tab2 cor0
----
33
33
33
onlyif mysql # aggregate syntax:
query II rowsort label-7526
SELECT + 24, + COUNT( * ) col1 FROM tab0 cor0
----
24
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7526
SELECT + 24, + COUNT ( * ) col1 FROM tab0 cor0
----
24
3
query II rowsort
SELECT DISTINCT - col1, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7528
SELECT + - SUM( - col1 ) * - 0 + - MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7528
SELECT + - SUM ( - col1 ) * - 0 + - MIN ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
query II rowsort
SELECT ALL ( 90 ) AS col2, + col1 FROM tab1
----
90
14
90
47
90
5
query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 <> - col1 + 86 + + 38
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7531
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT CAST( - col0 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT CAST ( - col0 AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7532
SELECT ALL + SUM( ALL - 75 ) AS col2 FROM tab1
----
-225
skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + SUM ( ALL - 75 ) AS col2 FROM tab1
----
-225
query I rowsort
SELECT ALL + 4 + + col0 FROM tab2 AS cor0
----
50
68
79
query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-7535
SELECT ALL - COUNT( * ) + 79 FROM tab2 AS cor0
----
76
skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - COUNT ( * ) + 79 FROM tab2 AS cor0
----
76
onlyif mysql # DIV for integer division:
query I rowsort label-7536
SELECT + - col1 DIV - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7536
SELECT + - col1 / - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0
query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 2 col2 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7539
SELECT ALL COUNT( * ) * SUM( DISTINCT + + col1 ) - + - CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) FROM tab2 AS cor0
----
585
skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL COUNT ( * ) * SUM ( DISTINCT + + col1 ) - + - CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( * ) FROM tab2 AS cor0
----
585
query II rowsort
SELECT ALL + 12 AS col1, - col1 AS col2 FROM tab1
----
12
-14
12
-47
12
-5
query I rowsort
SELECT DISTINCT + col1 + - 21 AS col1 FROM tab1
----
-16
-7
26
query I rowsort
SELECT - col0 + - 52 AS col0 FROM tab1
----
-103
-137
-143
onlyif mysql # aggregate syntax:
query I rowsort label-7543
SELECT DISTINCT - + SUM( ALL + col0 ) FROM tab1 AS cor0
----
-227
skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT - + SUM ( ALL + col0 ) FROM tab1 AS cor0
----
-227
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7544
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7544
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 16 FROM tab2 AS cor0 WHERE + ( + + col0 ) * col2 - 8 BETWEEN NULL AND - + 31
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7546
SELECT DISTINCT + col1 * - - col1 FROM tab2 AS cor0 WHERE NOT + col0 + - + 18 + - col0 * + CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) * + - 70 + + col1 / 54 IS NULL
----
skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + col1 * - - col1 FROM tab2 AS cor0 WHERE NOT + col0 + - + 18 + - col0 * + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) * + - 70 + + col1 / 54 IS NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-7547
SELECT 41, + 18 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
41
15
skipif mysql # not compatible
query II rowsort label-7547
SELECT 41, + 18 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
41
15
onlyif mysql # aggregate syntax:
query I rowsort label-7548
SELECT + + MIN( DISTINCT + - 53 ) AS col1 FROM tab0 AS cor0
----
-53
skipif mysql # not compatible
query I rowsort label-7548
SELECT + + MIN ( DISTINCT + - 53 ) AS col1 FROM tab0 AS cor0
----
-53
onlyif mysql # aggregate syntax:
query I rowsort label-7549
SELECT DISTINCT + + ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3
query II rowsort
SELECT + col2, col0 + - 42 FROM tab2
----
23
4
40
22
58
33
query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----
query I rowsort
SELECT ALL ( + - col2 ) FROM tab1
----
-59
-68
-96
query I rowsort
SELECT ALL col0 * + 19 * col2 AS col2 FROM tab0
----
13395
16530
182457
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 63 NOT IN ( - + 24 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7555
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE NOT + 50 < ( + 58 )
----
0
skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 50 < ( + 58 )
----
0
query I rowsort
SELECT + ( ( + 10 ) ) AS col1 FROM tab2
----
10
10
10
onlyif mysql # aggregate syntax:
query I rowsort label-7557
SELECT - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2
----
9
skipif mysql # not compatible
query I rowsort label-7557
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-7558
SELECT - ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7558
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3
query II rowsort
SELECT + + 23 AS col1, + col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 <= - - 45
----
23
1
23
81
onlyif mysql # DIV for integer division:
query I rowsort label-7560
SELECT ALL + col1 DIV + - 5 AS col0 FROM tab1 AS cor0
----
-1
-2
-9
skipif mysql # not compatible
query I rowsort label-7560
SELECT ALL + col1 / + - 5 AS col0 FROM tab1 AS cor0
----
-1
-2
-9
query II rowsort
SELECT + col2 AS col2, - col0 * + col2 + + 79 FROM tab2 cor0
----
23
-979
40
-2481
58
-4271
query I rowsort
SELECT ALL + ( + + col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81
onlyif mysql # DIV for integer division:
query I rowsort label-7563
SELECT DISTINCT - + col2 - + + col1 DIV col1 - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 67 <= - - ( - 17 )
----
-199
-21
-95
skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - + col2 - + + col1 / col1 - col2 AS col0 FROM tab0 AS cor0 WHERE NOT 67 <= - - ( - 17 )
----
-199
-21
-95
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7564
SELECT - SUM( 41 ) + CAST( - - 84 AS SIGNED ) AS col0 FROM tab1
----
-39
skipif mysql # not compatible
query I rowsort label-7564
SELECT - SUM ( 41 ) + CAST ( - - 84 AS INTEGER ) AS col0 FROM tab1
----
-39
query I rowsort
SELECT - 24 + col2 FROM tab2
----
-1
16
34
query I rowsort
SELECT 32 + - + col1 FROM tab0 cor0
----
-49
11
31
query II rowsort
SELECT - 90 + - col1, - 34 AS col1 FROM tab2 cor0
----
-141
-34
-157
-34
-167
-34
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 8 )
----
query I rowsort
SELECT + 86 FROM tab0 AS cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT ALL + 63 AS col2 FROM tab0 cor0
----
63
63
63
query I rowsort
SELECT col2 + + - 19 * + 74 FROM tab1 WHERE - - col1 * - ( col0 ) * + 49 + col2 - + col0 = col0
----
query II rowsort
SELECT DISTINCT col1, + col2 * - + ( + - col1 ) FROM tab2
----
51
1173
67
3886
77
3080
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7573
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
query I rowsort
SELECT + ( + ( + + col1 ) ) * col2 FROM tab2
----
1173
3080
3886
onlyif mysql # DIV for integer division:
query I rowsort label-7575
SELECT DISTINCT col2 DIV - 53 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT col2 / - 53 FROM tab0
----
-1
0
query I rowsort
SELECT + ( 55 ) FROM tab1 WHERE col0 * col2 NOT BETWEEN - col1 AND NULL
----
query II rowsort
SELECT 57, col2 + + col0 AS col2 FROM tab2
----
57
104
57
133
57
69
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7578
SELECT - MAX( DISTINCT + 49 ) * + CAST( - - ( - COUNT( * ) ) AS SIGNED ) FROM tab2
----
147
skipif mysql # not compatible
query I rowsort label-7578
SELECT - MAX ( DISTINCT + 49 ) * + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) FROM tab2
----
147
query II rowsort
SELECT ALL + col1 AS col2, - 46 AS col1 FROM tab2
----
51
-46
67
-46
77
-46
query I rowsort
SELECT col1 - 56 AS col1 FROM tab1
----
-42
-51
-9
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 78 NOT BETWEEN - 69 AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7582
SELECT 79 + + col2 DIV - col2 AS col2 FROM tab2
----
78
78
78
skipif mysql # not compatible
query I rowsort label-7582
SELECT 79 + + col2 / - col2 AS col2 FROM tab2
----
78
78
78
query II rowsort
SELECT DISTINCT - 69 * - 22 + - + 66, col2 AS col0 FROM tab0 AS cor0
----
1452
10
1452
47
1452
99
query II rowsort
SELECT DISTINCT + - 41, + col0 AS col0 FROM tab1 AS cor0
----
-41
51
-41
85
-41
91
onlyif mysql # aggregate syntax:
query I rowsort label-7585
SELECT ALL COUNT( * ) - + SUM( + 35 ) AS col0 FROM tab2
----
-102
skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL COUNT ( * ) - + SUM ( + 35 ) AS col0 FROM tab2
----
-102
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7586
SELECT COUNT( ALL - col0 ) * 77 DIV + + 1 FROM tab1
----
231
skipif mysql # not compatible
query I rowsort label-7586
SELECT COUNT ( ALL - col0 ) * 77 / + + 1 FROM tab1
----
231
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL IS NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NULL ) < NULL )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7589
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7589
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * - 95 + 96 + + col1 / - + ( - 75 ) FROM tab1 AS cor0 WHERE NOT col2 > NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7591
SELECT - CAST( NULL AS SIGNED ) * - 66 AS col2, + SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
NULL
-103
skipif mysql # not compatible
query II rowsort label-7591
SELECT - CAST ( NULL AS INTEGER ) * - 66 AS col2, + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
NULL
-103
onlyif mysql # aggregate syntax:
query II rowsort label-7592
SELECT - SUM( - col2 ) AS col1, 8 FROM tab1 AS cor0
----
223
8
skipif mysql # not compatible
query II rowsort label-7592
SELECT - SUM ( - col2 ) AS col1, 8 FROM tab1 AS cor0
----
223
8
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 77 <= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7594
SELECT SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156
skipif mysql # not compatible
query I rowsort label-7594
SELECT SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7595
SELECT ALL - 54 * CAST( - col2 AS SIGNED ) FROM tab1
----
3186
3672
5184
skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - 54 * CAST ( - col2 AS INTEGER ) FROM tab1
----
3186
3672
5184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 * + 16 col0, - col0 FROM tab0 WHERE - 82 IS NOT NULL
----
-1392
-87
-1552
-97
-240
-15
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * + + 20 + col0 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7598
SELECT DISTINCT MIN( ALL - + col2 ) AS col1 FROM tab0
----
-99
skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT MIN ( ALL - + col2 ) AS col1 FROM tab0
----
-99
onlyif mysql # aggregate syntax:
query I rowsort label-7599
SELECT SUM( DISTINCT + - 48 ) FROM tab1
----
-48
skipif mysql # not compatible
query I rowsort label-7599
SELECT SUM ( DISTINCT + - 48 ) FROM tab1
----
-48
onlyif mysql # DIV for integer division:
query II rowsort label-7600
SELECT ALL 16, 66 DIV - 45 + + 92 AS col0 FROM tab0
----
16
91
16
91
16
91
skipif mysql # not compatible
query II rowsort label-7600
SELECT ALL 16, 66 / - 45 + + 92 AS col0 FROM tab0
----
16
91
16
91
16
91
query I rowsort
SELECT DISTINCT - col1 * + 81 FROM tab1
----
-1134
-3807
-405
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + 62 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7603
SELECT CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
skipif mysql # not compatible
query I rowsort label-7603
SELECT CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT - 33 <= + + 78
----
query I rowsort
SELECT + 3 * + + ( + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
141
297
30
query I rowsort
SELECT DISTINCT - ( - 97 ) AS col1 FROM tab0 cor0
----
97
query I rowsort
SELECT ( + + col0 ) FROM tab2
----
46
64
75
onlyif mysql # aggregate syntax:
query I rowsort label-7608
SELECT ALL MIN( DISTINCT + ( - + 7 ) ) * + 22 FROM tab2
----
-154
skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL MIN ( DISTINCT + ( - + 7 ) ) * + 22 FROM tab2
----
-154
onlyif mysql # aggregate syntax:
query I rowsort label-7609
SELECT MAX( - 31 ) AS col2 FROM tab0
----
-31
skipif mysql # not compatible
query I rowsort label-7609
SELECT MAX ( - 31 ) AS col2 FROM tab0
----
-31
query II rowsort
SELECT 83 AS col2, + col0 FROM tab0
----
83
15
83
87
83
97
query I rowsort
SELECT ALL + 52 FROM tab0 WHERE NULL IS NULL
----
52
52
52
query I rowsort
SELECT - 81 + 87 * - col2 * + col0 + + - col2 FROM tab2 AS cor0
----
-222841
-378589
-92150
onlyif mysql # DIV for integer division:
query I rowsort label-7613
SELECT ALL col2 * + col0 + - 94 + - + col2 * + col0 DIV - + col0 + + col2 + + col1 col2 FROM tab1 AS cor0
----
5008
5044
6277
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7613
SELECT ALL col2 * + col0 + - 94 + - + col2 * + col0 / - + col0 + + col2 + + col1 col2 FROM tab1 AS cor0
----
5008
5044
6277
onlyif mysql # DIV for integer division:
query I rowsort label-7614
SELECT DISTINCT + col1 DIV - - 58 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT + col1 / - - 58 FROM tab2
----
0
1
query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( ( NULL IS NOT NULL ) )
----
query I rowsort
SELECT + + col1 + - col1 FROM tab1 WHERE ( NOT ( NULL ) NOT BETWEEN + - col1 + + col0 AND - - 20 / + 91 + - 10 )
----
query I rowsort
SELECT + col2 FROM tab2 WHERE + col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col1 FROM tab2
----
90
90
90
query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT + 18 - + - ( - col0 ) * + + col1 * + 49 * + 37, + col1 FROM tab1 AS cor0 WHERE ( + col0 ) * + 27 IS NOT NULL
----
-1294464
14
-770507
5
-7754183
47
query I rowsort
SELECT ALL + col2 + - - col0 + + col0 + 74 FROM tab1 AS cor0
----
272
303
324
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7622
SELECT ALL - 15 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - 15 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 AS cor0 WHERE col2 / - col0 * 63 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + + col0 col1 FROM tab0 AS cor0
----
196
62
97
query I rowsort
SELECT ALL - 48 * - col0 FROM tab2
----
2208
3072
3600
onlyif mysql # aggregate syntax:
query I rowsort label-7626
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7626
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7627
SELECT DISTINCT - COUNT( * ) DIV - ( - COUNT( * ) ) AS col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-7627
SELECT DISTINCT - COUNT ( * ) / - ( - COUNT ( * ) ) AS col0 FROM tab2
----
-1
query III rowsort
SELECT + col2, + col2 * ( + + 22 ), + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7630
SELECT + + 0 * - SUM( + 23 ) - 18 FROM tab1 AS cor0
----
-18
skipif mysql # not compatible
query I rowsort label-7630
SELECT + + 0 * - SUM ( + 23 ) - 18 FROM tab1 AS cor0
----
-18
query I rowsort
SELECT - + ( 32 ) AS col2 FROM tab0 AS cor0
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 AS col1, - col0 col2 FROM tab2 AS cor0
----
45
-46
45
-64
45
-75
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query II rowsort label-7634
SELECT DISTINCT COUNT( DISTINCT ( + 48 ) ) AS col0, - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1
0
skipif mysql # not compatible
query II rowsort label-7634
SELECT DISTINCT COUNT ( DISTINCT ( + 48 ) ) AS col0, - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1
0
onlyif mysql # aggregate syntax:
query I rowsort label-7635
SELECT DISTINCT + MAX( - 41 ) FROM tab2 cor0
----
-41
skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT + MAX ( - 41 ) FROM tab2 cor0
----
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab1
----
29
29
29
onlyif mysql # aggregate syntax:
query I rowsort label-7637
SELECT DISTINCT MAX( + col2 ) FROM tab0
----
99
skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT MAX ( + col2 ) FROM tab0
----
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab0 WHERE NOT + 85 IS NULL
----
-15
-87
-97
query I rowsort
SELECT DISTINCT + + 10 * - col1 * + 89 FROM tab1 AS cor0
----
-12460
-41830
-4450
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7641
SELECT MIN( - + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7641
SELECT MIN ( - + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7642
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 63 >= NULL OR NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7644
SELECT - col2 * - col1 + - CAST( + 6 AS SIGNED ) * - col0 - + + ( col2 ) AS col0 FROM tab1 AS cor0
----
1554
3674
746
skipif mysql # not compatible
query I rowsort label-7644
SELECT - col2 * - col1 + - CAST ( + 6 AS INTEGER ) * - col0 - + + ( col2 ) AS col0 FROM tab1 AS cor0
----
1554
3674
746
query II rowsort
SELECT + 30, col0 FROM tab2 AS cor0
----
30
46
30
64
30
75
onlyif mysql # aggregate syntax:
query I rowsort label-7646
SELECT MAX( + - col0 ) FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-7646
SELECT MAX ( + - col0 ) FROM tab1 AS cor0
----
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, 11 * + col1 AS col2 FROM tab2 AS cor0
----
23
561
40
847
58
737
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 80 IS NULL
----
query I rowsort
SELECT DISTINCT + col2 + + 96 AS col2 FROM tab0 AS cor0
----
106
143
195
query I rowsort
SELECT ALL - col1 + - col2 * + 57 AS col0 FROM tab0 cor0
----
-2760
-5644
-591
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 82 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7653
SELECT ALL CAST( + col0 AS SIGNED ) + + - 99 AS col2 FROM tab2 AS cor0
----
-24
-35
-53
skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL CAST ( + col0 AS INTEGER ) + + - 99 AS col2 FROM tab2 AS cor0
----
-24
-35
-53
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 = - - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division:
query II rowsort label-7655
SELECT - col0 - CAST( NULL AS DECIMAL ) + 26 * col1 col2, - col0 DIV col1 * 40 * + + 9 FROM tab0
----
NULL
-1440
NULL
-34920
NULL
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7655
SELECT - col0 - CAST ( NULL AS REAL ) + 26 * col1 col2, - col0 / col1 * 40 * + + 9 FROM tab0
----
NULL
-1440
NULL
-34920
NULL
0
query I rowsort
SELECT 23 - 24 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + col0 / + - 37 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # DIV for integer division:
query II rowsort label-7658
SELECT ALL + 42 DIV + col2 AS col0, - col1 AS col1 FROM tab0
----
0
-1
0
-81
4
-21
skipif mysql # not compatible
query II rowsort label-7658
SELECT ALL + 42 / + col2 AS col0, - col1 AS col1 FROM tab0
----
0
-1
0
-81
4
-21
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-7659
SELECT DISTINCT + 87 AS col1, + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
87
-1
skipif mysql # not compatible
query II rowsort label-7659
SELECT DISTINCT + 87 AS col1, + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
87
-1
onlyif mysql # aggregate syntax:
query I rowsort label-7660
SELECT + ( - - COUNT( * ) ) - - - COUNT( * ) AS col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7660
SELECT + ( - - COUNT ( * ) ) - - - COUNT ( * ) AS col2 FROM tab1
----
0
query I rowsort
SELECT col2 + + 67 + + - 87 AS col0 FROM tab0
----
-10
27
79
query II rowsort
SELECT DISTINCT col0, 24 * - + col2 FROM tab1
----
51
-2304
85
-1416
91
-1632
query I rowsort
SELECT - - ( - col0 ) + - col2 + col2 * - col1 * - col2 FROM tab1 AS cor0
----
128877
17261
217169
query I rowsort
SELECT DISTINCT - col1 + - 51 * 35 * + col1 + - col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-144681
-1883
-37593
onlyif mysql # aggregate syntax:
query I rowsort label-7665
SELECT COUNT( + + 83 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7665
SELECT COUNT ( + + 83 ) FROM tab2 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7666
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NOT - col0 + col1 = - 91 * - + 80 )
----
NULL
skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NOT - col0 + col1 = - 91 * - + 80 )
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7667
SELECT - 20 - - MAX( + + 47 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27
skipif mysql # not compatible
query I rowsort label-7667
SELECT - 20 - - MAX ( + + 47 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7668
SELECT - CAST( + ( + CAST( + 13 AS SIGNED ) ) AS SIGNED ) FROM tab1
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-7668
SELECT - CAST ( + ( + CAST ( + 13 AS INTEGER ) ) AS INTEGER ) FROM tab1
----
-13
-13
-13
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT - + col2 IS NULL
----
-46
-64
-75
query I rowsort
SELECT col2 * + - col2 FROM tab1 cor0
----
-3481
-4624
-9216
query II rowsort
SELECT DISTINCT col2, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
query I rowsort
SELECT ALL col2 * 71 * col0 AS col0 FROM tab0 AS cor0
----
50055
61770
681813
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7673
SELECT DISTINCT + ( 2 ) * + 24 DIV - COUNT( * ) FROM tab2 AS cor0
----
-16
skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + ( 2 ) * + 24 / - COUNT ( * ) FROM tab2 AS cor0
----
-16
query I rowsort
SELECT DISTINCT - + 17 AS col2 FROM tab2 AS cor0
----
-17
query III rowsort
SELECT * FROM tab0 WHERE NOT - + 60 + + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-7676
SELECT COUNT( * ) AS col1, - 41 col0 FROM tab2
----
3
-41
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7676
SELECT COUNT ( * ) AS col1, - 41 col0 FROM tab2
----
3
-41
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE ( 79 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29
onlyif mysql # aggregate syntax:
query I rowsort label-7678
SELECT - COUNT( DISTINCT - col2 ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-7678
SELECT - COUNT ( DISTINCT - col2 ) AS col1 FROM tab0
----
-3
query II rowsort
SELECT DISTINCT + col0 AS col0, + col2 AS col0 FROM tab1
----
51
96
85
59
91
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # DIV for integer division:
query I rowsort label-7681
SELECT ALL + ( - 95 ) + - - col1 DIV 42 AS col0 FROM tab0
----
-94
-95
-95
skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + ( - 95 ) + - - col1 / 42 AS col0 FROM tab0
----
-94
-95
-95
onlyif mysql # DIV for integer division:
query I rowsort label-7682
SELECT + col0 DIV + - col2 + - + col1 - - col0 DIV - col2 FROM tab2 AS cor0
----
-55
-69
-79
skipif mysql # not compatible
query I rowsort label-7682
SELECT + col0 / + - col2 + - + col1 - - col0 / - col2 FROM tab2 AS cor0
----
-55
-69
-79
query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab1 AS cor0
----
138
65
90
query I rowsort
SELECT ALL + col0 + - 4 FROM tab0 AS cor0
----
11
83
93
query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE 10 IS NOT NULL
----
-15
-87
-97
query I rowsort
SELECT - 26 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col1 AND - + 73
----
-26
-26
-26
query I rowsort
SELECT + - col1 * + col2 * - - col0 + col2 AS col2 FROM tab0 AS cor0
----
-18260
-57058
-9504
query I rowsort
SELECT col1 * + ( col0 ) + col2 AS col2 FROM tab0
----
1262
1837
196
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7689
SELECT 90 * + col1 + CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7689
SELECT 90 * + col1 + CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col1 - - col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-7691
SELECT col0 DIV + 26 + col1 * - col0 FROM tab1
----
-422
-4274
-713
skipif mysql # not compatible
query I rowsort label-7691
SELECT col0 / + 26 + col1 * - col0 FROM tab1
----
-422
-4274
-713
onlyif mysql # aggregate syntax:
query I rowsort label-7692
SELECT COUNT( col0 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7692
SELECT COUNT ( col0 ) FROM tab0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab1
----
4
4
4
onlyif mysql # DIV for integer division:
query I rowsort label-7694
SELECT - col2 DIV 30 FROM tab1
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7694
SELECT - col2 / 30 FROM tab1
----
-1
-2
-3
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 * col1 + col0 * col0 ) IS NULL
----
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab1 WHERE col1 > ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7697
SELECT ALL - 95 + + SUM( col0 ) FROM tab0
----
104
skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 95 + + SUM ( col0 ) FROM tab0
----
104
query III rowsort
SELECT * FROM tab1 WHERE NOT - 19 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + + 46 col0 FROM tab2
----
94
94
94
query I rowsort
SELECT 85 * col1 AS col1 FROM tab0
----
1785
6885
85
query I rowsort
SELECT ALL 8 * + 12 AS col0 FROM tab2
----
96
96
96
query I rowsort
SELECT DISTINCT + col0 * 26 FROM tab2
----
1196
1664
1950
query I rowsort
SELECT 97 * col1 FROM tab0
----
2037
7857
97
query I rowsort
SELECT col2 FROM tab0 WHERE NOT - 87 - - 47 * - 6 IN ( 83 / col0 )
----
10
47
99
onlyif mysql # aggregate syntax:
query I rowsort label-7705
SELECT DISTINCT 98 + + COUNT( col0 ) FROM tab1
----
101
skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT 98 + + COUNT ( col0 ) FROM tab1
----
101
onlyif mysql # aggregate syntax:
query I rowsort label-7706
SELECT COUNT( * ) + - 9 FROM tab1 WHERE NOT col2 * col0 <= NULL
----
-9
skipif mysql # not compatible
query I rowsort label-7706
SELECT COUNT ( * ) + - 9 FROM tab1 WHERE NOT col2 * col0 <= NULL
----
-9
query I rowsort
SELECT + 87 - 99 FROM tab1
----
-12
-12
-12
onlyif mysql # DIV for integer division:
query I rowsort label-7708
SELECT DISTINCT - ( + 97 ) DIV 23 AS col0 FROM tab0
----
-4
skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - ( + 97 ) / 23 AS col0 FROM tab0
----
-4
query III rowsort
SELECT * FROM tab1 WHERE col1 NOT BETWEEN ( + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7710
SELECT + COUNT( * ) * 37 AS col0 FROM tab0
----
111
skipif mysql # not compatible
query I rowsort label-7710
SELECT + COUNT ( * ) * 37 AS col0 FROM tab0
----
111
query I rowsort
SELECT + 77 + col0 AS col2 FROM tab1
----
128
162
168
onlyif mysql # aggregate syntax:
query I rowsort label-7712
SELECT - SUM( DISTINCT + col1 ) + - 35 FROM tab0
----
-138
skipif mysql # not compatible
query I rowsort label-7712
SELECT - SUM ( DISTINCT + col1 ) + - 35 FROM tab0
----
-138
query III rowsort
SELECT * FROM tab0 WHERE ( ( col2 ) ) NOT IN ( ( col2 ) )
----
query I rowsort
SELECT + ( - col1 ) - col2 FROM tab1 WHERE NOT ( col1 + col0 ) NOT IN ( - col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7715
SELECT DISTINCT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT + col0 + + col0 >= NULL
----
0
skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT + col0 + + col0 >= NULL
----
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 + + col0 ) <= ( NULL )
----
query I rowsort
SELECT + col1 * col0 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
425
4277
714
onlyif mysql # aggregate syntax:
query I rowsort label-7718
SELECT + MAX( - col1 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7718
SELECT + MAX ( - col1 ) FROM tab0
----
-1
query I rowsort
SELECT col0 + + 0 FROM tab1
----
51
85
91
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > ( 47 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7721
SELECT ALL 12 * COUNT( * ) FROM tab1 AS cor0
----
36
skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL 12 * COUNT ( * ) FROM tab1 AS cor0
----
36
query I rowsort
SELECT - 26 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 AND ( + col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7723
SELECT DISTINCT - 87 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
261
skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - 87 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
261
query I rowsort
SELECT + 32 * - 30 FROM tab2 AS cor0
----
-960
-960
-960
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 34 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-7726
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) <= - col1
----
skipif mysql # not compatible
query III rowsort label-7726
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) <= - col1
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - 49
----
onlyif mysql # aggregate syntax:
query I rowsort label-7728
SELECT - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9
skipif mysql # not compatible
query I rowsort label-7728
SELECT - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7729
SELECT DISTINCT col0 * ( - col2 * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT col0 * ( - col2 * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT col0 - col0 FROM tab2 WHERE + col2 IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-7731
SELECT COUNT( ALL ( col2 ) ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-7731
SELECT COUNT ( ALL ( col2 ) ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7732
SELECT COUNT( * ) + COUNT( + 8 ) FROM tab2 WHERE NOT ( NULL ) <> ( col0 )
----
0
skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( * ) + COUNT ( + 8 ) FROM tab2 WHERE NOT ( NULL ) <> ( col0 )
----
0
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 / ( - col2 * + col2 ) + + col2 ) IN ( col1 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL + - ( col1 ) * 94 AS col0 FROM tab2 AS cor0
----
-4794
-6298
-7238
query I rowsort
SELECT DISTINCT - 66 * col0 AS col0 FROM tab2 AS cor0
----
-3036
-4224
-4950
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7736
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 53 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 53 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7738
SELECT ALL + + COUNT( * ) DIV 58 col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7738
SELECT ALL + + COUNT ( * ) / 58 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * 71 FROM tab2 AS cor0
----
-3266
-4544
-5325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + col0 col2 FROM tab1 cor0
----
3825
6375
6825
query I rowsort
SELECT + + ( ( 10 ) ) * + col0 FROM tab0 cor0
----
150
870
970
query I rowsort
SELECT - - col2 * + 60 FROM tab0 AS cor0
----
2820
5940
600
query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
51
85
91
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / - col2 < ( + col0 )
----
query I rowsort
SELECT 99 + col2 AS col2 FROM tab0 WHERE NOT + 69 * 93 > ( + col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-7746
SELECT - col2 DIV col2 * - col1 col1 FROM tab1
----
14
47
5
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7746
SELECT - col2 / col2 * - col1 col1 FROM tab1
----
14
47
5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7747
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT 6 + - CAST( + col0 AS SIGNED ) IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT 6 + - CAST ( + col0 AS INTEGER ) IS NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7748
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) * + MAX( + col0 ) FROM tab2
----
-225
skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) * + MAX ( + col0 ) FROM tab2
----
-225
query I rowsort
SELECT 8 FROM tab1 WHERE NULL <= col1 - col2
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = 35 + col2
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) <= NULL
----
query I rowsort
SELECT DISTINCT - 54 + 49 FROM tab0 AS cor0
----
-5
onlyif mysql # aggregate syntax:
query I rowsort label-7753
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9
skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( NULL ) <> 74 / col1
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7755
SELECT * FROM tab0 WHERE ( + col0 ) <> col2 * CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-7755
SELECT * FROM tab0 WHERE ( + col0 ) <> col2 * CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT DISTINCT - 22 + - col0 AS col2 FROM tab1 AS cor0
----
-107
-113
-73
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN NULL AND ( col2 )
----
query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0 WHERE - 21 * + 38 IS NOT NULL
----
-6
-6
-6
query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE col1 <> + ( + ( col0 ) )
----
-51
-67
-77
query I rowsort
SELECT ALL - - 8 - - 25 * - col1 - 62 FROM tab1 AS cor0
----
-1229
-179
-404
onlyif mysql # aggregate syntax:
query I rowsort label-7762
SELECT DISTINCT + COUNT( * ) + - + 59 AS col2 FROM tab2 cor0
----
-56
skipif mysql # not compatible
query I rowsort label-7762
SELECT DISTINCT + COUNT ( * ) + - + 59 AS col2 FROM tab2 cor0
----
-56
query I rowsort
SELECT DISTINCT + col1 * - col2 * 19 - 70 FROM tab1 cor0
----
-25606
-5675
-60794
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IS NULL
----
query I rowsort
SELECT 46 AS col2 FROM tab1 WHERE ( NULL ) < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( 30 ) col2, + col2 col2 FROM tab2
----
-30
23
-30
40
-30
58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7768
SELECT ALL + CAST( - - col2 AS SIGNED ) FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + CAST ( - - col2 AS INTEGER ) FROM tab1
----
59
68
96
query I rowsort
SELECT - 9 * - 79 AS col2 FROM tab1
----
711
711
711
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7771
SELECT col2 * - + CAST( + + col2 AS SIGNED ) FROM tab1
----
-3481
-4624
-9216
skipif mysql # not compatible
query I rowsort label-7771
SELECT col2 * - + CAST ( + + col2 AS INTEGER ) FROM tab1
----
-3481
-4624
-9216
query I rowsort
SELECT DISTINCT col1 * - + col0 FROM tab2
----
-2346
-4928
-5025
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7773
SELECT DISTINCT - COUNT( ALL col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT - COUNT ( ALL col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-7774
SELECT ALL 94 DIV + - col1 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL 94 / + - col1 AS col2 FROM tab2
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query I rowsort label-7775
SELECT DISTINCT - + 51 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
153
skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT - + 51 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
153
query I rowsort
SELECT - col1 * 2 AS col0 FROM tab2 AS cor0
----
-102
-134
-154
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 / - col1 / - 87 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7778
SELECT - - COUNT( * ) * - - 41 + - - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
132
skipif mysql # not compatible
query I rowsort label-7778
SELECT - - COUNT ( * ) * - - 41 + - - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
132
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-7780
SELECT + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7780
SELECT + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-7781
SELECT ( + - SUM( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223
skipif mysql # not compatible
query I rowsort label-7781
SELECT ( + - SUM ( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223
onlyif mysql # aggregate syntax:
query I rowsort label-7782
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col1 FROM tab0
----
81
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7784
SELECT CAST( NULL AS SIGNED ) + 43 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7784
SELECT CAST ( NULL AS INTEGER ) + 43 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab2, tab1 AS cor0
----
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * + ( - col2 ) col0 FROM tab1
----
-1248
-767
-884
onlyif mysql # DIV for integer division:
query I rowsort label-7787
SELECT DISTINCT col0 + + col0 DIV - col2 DIV + 1 AS col0 FROM tab2
----
44
63
74
skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT col0 + + col0 / - col2 / + 1 AS col0 FROM tab2
----
44
63
74
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7788
SELECT DISTINCT - 55 - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT - 55 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * 52 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab2 AS cor0
----
80
80
80
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col1 ) >= col2 * - 69
----
query I rowsort
SELECT + 51 + + col2 AS col0 FROM tab0 WHERE + + ( + col1 ) = - col1 + + 38
----
query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7794
SELECT ALL - ( - + MAX( ALL - + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL - ( - + MAX ( ALL - + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7795
SELECT ALL 18 DIV - ( + COUNT( * ) ) + COUNT( * ) - 36 * - + COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
105
skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL 18 / - ( + COUNT ( * ) ) + COUNT ( * ) - 36 * - + COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
105
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + col1 / - 28
----
onlyif mysql # aggregate syntax:
query I rowsort label-7797
SELECT ALL ( - COUNT( * ) ) * + COUNT( * ) + 49 FROM tab1 AS cor0
----
40
skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL ( - COUNT ( * ) ) * + COUNT ( * ) + 49 FROM tab1 AS cor0
----
40
query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE 83 * + + 43 IS NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-7799
SELECT DISTINCT + col2 * 75 + - col1 DIV - 7 AS col2 FROM tab1 AS cor0
----
4425
5106
7202
skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT + col2 * 75 + - col1 / - 7 AS col2 FROM tab1 AS cor0
----
4425
5106
7202
onlyif mysql # aggregate syntax:
query I rowsort label-7800
SELECT ALL + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT - ( + - 10 ) AS col0 FROM tab2
----
10
10
10
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7802
SELECT ALL col0 col2 FROM tab1 WHERE ( NULL ) < ( CAST( NULL AS SIGNED ) / + + 64 * ( - 97 ) )
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7802
SELECT ALL col0 col2 FROM tab1 WHERE ( NULL ) < ( CAST ( NULL AS INTEGER ) / + + 64 * ( - 97 ) )
----
onlyif mysql # DIV for integer division:
query II rowsort label-7803
SELECT col1, + col0 DIV + - ( - - col0 ) + + col0 FROM tab1
----
14
50
47
90
5
84
skipif mysql # not compatible
query II rowsort label-7803
SELECT col1, + col0 / + - ( - - col0 ) + + col0 FROM tab1
----
14
50
47
90
5
84
onlyif mysql # aggregate syntax:
query I rowsort label-7804
SELECT DISTINCT - MAX( DISTINCT - col1 ) AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - MAX ( DISTINCT - col1 ) AS col0 FROM tab0
----
1
query I rowsort
SELECT ( - - 67 ) * - col1 AS col2 FROM tab0
----
-1407
-5427
-67
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col0 ) OR NOT ( NULL ) BETWEEN - col1 - col0 - ( - 45 ) + + 17 * + col1 AND NULL
----
query I rowsort
SELECT 73 * - - col2 AS col1 FROM tab1
----
4307
4964
7008
query II rowsort
SELECT 92, col1 AS col2 FROM tab2
----
92
51
92
67
92
77
query I rowsort
SELECT DISTINCT 7 * + ( - 33 ) AS col0 FROM tab2
----
-231
onlyif mysql # aggregate syntax:
query I rowsort label-7810
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
query I rowsort
SELECT - col2 * - - col1 * - col0 - ( + col0 ) AS col2 FROM tab1 AS cor0
----
24990
290745
68493
onlyif mysql # aggregate syntax:
query I rowsort label-7812
SELECT ALL COUNT( * ) col2 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7812
SELECT ALL COUNT ( * ) col2 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-7813
SELECT - - SUM( ALL + 61 ) AS col2 FROM tab2 cor0
----
183
skipif mysql # not compatible
query I rowsort label-7813
SELECT - - SUM ( ALL + 61 ) AS col2 FROM tab2 cor0
----
183
query I rowsort
SELECT DISTINCT col2 * ( col1 ) * - col0 AS col1 FROM tab2
----
-197120
-291450
-53958
query I rowsort
SELECT DISTINCT + ( col0 ) + 53 FROM tab2
----
117
128
99
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-7816
SELECT + col1 + - col0 - + + CAST( NULL AS DECIMAL ) * + + 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7816
SELECT + col1 + - col0 - + + CAST ( NULL AS REAL ) * + + 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7817
SELECT - 84 * - + CAST( + col2 AS SIGNED ) + + col1 AS col2 FROM tab1 cor0
----
4961
5759
8078
skipif mysql # not compatible
query I rowsort label-7817
SELECT - 84 * - + CAST ( + col2 AS INTEGER ) + + col1 AS col2 FROM tab1 cor0
----
4961
5759
8078
query I rowsort
SELECT DISTINCT - - 84 + - col2 AS col1 FROM tab1 AS cor0
----
-12
16
25
onlyif mysql # aggregate syntax:
query I rowsort label-7819
SELECT ALL - COUNT( ALL - + 49 ) + + 34 AS col2 FROM tab0 AS cor0
----
31
skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - COUNT ( ALL - + 49 ) + + 34 AS col2 FROM tab0 AS cor0
----
31
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( col0, + col1 )
----
query I rowsort
SELECT - + col1 * + - col1 + + + col1 + + col0 + - 47 * - col2 AS col2 FROM tab0 cor0 WHERE - col1 * - col2 * - - col2 NOT BETWEEN - col0 AND NULL
----
query I rowsort
SELECT ALL - 9 * + 23 AS col2 FROM tab1 AS cor0
----
-207
-207
-207
query I rowsort
SELECT ALL + 86 + - - 86 + 6 + - + 21 + + col1 * + col1 AS col2 FROM tab1
----
182
2366
353
onlyif mysql # DIV for integer division:
query I rowsort label-7824
SELECT DISTINCT col0 * - col1 DIV - + col1 FROM tab0
----
15
87
97
skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT col0 * - col1 / - + col1 FROM tab0
----
15
87
97
query I rowsort
SELECT ALL - 53 * - 63 AS col0 FROM tab1
----
3339
3339
3339
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + 84 / - col0 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + ( + 49 ) + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-7828
SELECT ALL COUNT( ALL + col2 ) * + 1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL COUNT ( ALL + col2 ) * + 1 FROM tab2
----
3
query I rowsort
SELECT - 80 + + + col0 + + + 0 FROM tab2 WHERE - col1 < NULL
----
query I rowsort
SELECT ALL col1 + - 65 AS col0 FROM tab1
----
-18
-51
-60
onlyif mysql # DIV for integer division:
query I rowsort label-7831
SELECT col1 DIV ( - - col1 ) FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7831
SELECT col1 / ( - - col1 ) FROM tab1
----
1
1
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7832
SELECT DISTINCT + 38 + + col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-2078
-4058
-5587
skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT + 38 + + col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-2078
-4058
-5587
query I rowsort
SELECT DISTINCT - 10 * 79 + - 34 AS col2 FROM tab0 AS cor0
----
-824
query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) >= 21
----
onlyif mysql # DIV for integer division:
query I rowsort label-7835
SELECT + col1 DIV + col2 + col1 + + col1 + - - col2 AS col2 FROM tab1 AS cor0
----
124
162
69
skipif mysql # not compatible
query I rowsort label-7835
SELECT + col1 / + col2 + col1 + + col1 + - - col2 AS col2 FROM tab1 AS cor0
----
124
162
69
query I rowsort
SELECT DISTINCT + col1 + + - col2 - - 10 * + col2 AS col2 FROM tab0 AS cor0
----
111
504
892
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7837
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7837
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT ALL + 84, + col2 AS col1 FROM tab2
----
84
23
84
40
84
58
query I rowsort
SELECT ALL - - 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query III rowsort label-7840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + CAST( NULL AS SIGNED ) BETWEEN ( NULL ) AND NULL AND NOT - col2 >= + col1 * + 71 + - CAST( + col2 AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-7840
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - + CAST ( NULL AS INTEGER ) BETWEEN ( NULL ) AND NULL AND NOT - col2 >= + col1 * + 71 + - CAST ( + col2 AS REAL )
----
query II rowsort
SELECT - 60 - - col0, - col0 AS col1 FROM tab2 cor0
----
-14
-46
15
-75
4
-64
query II rowsort
SELECT DISTINCT - col1, col2 AS col0 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7843
SELECT ( 82 ) DIV MIN( - 44 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7843
SELECT ( 82 ) / MIN ( - 44 ) FROM tab0 AS cor0
----
-1
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col0 + + 53
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND + col1
----
onlyif mysql # DIV for integer division:
query II rowsort label-7846
SELECT ALL - + 56 AS col1, 14 * 8 DIV col1 AS col2 FROM tab0 AS cor0
----
-56
1
-56
112
-56
5
skipif mysql # not compatible
query II rowsort label-7846
SELECT ALL - + 56 AS col1, 14 * 8 / col1 AS col2 FROM tab0 AS cor0
----
-56
1
-56
112
-56
5
query II rowsort
SELECT DISTINCT 58 AS col0, - col0 * - - col1 + - ( - + col1 ) AS col2 FROM tab0 AS cor0
----
58
-1134
58
-1806
58
-96
onlyif mysql # aggregate syntax:
query I rowsort label-7848
SELECT ALL COUNT( * ) AS col0 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL COUNT ( * ) AS col0 FROM tab2
----
3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7849
SELECT COUNT( * ) DIV 41 - + COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-7849
SELECT COUNT ( * ) / 41 - + COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + 99 + - + col1 < NULL
----
query I rowsort
SELECT ALL - 66 AS col1 FROM tab0 cor0
----
-66
-66
-66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7852
SELECT + col0 * - + col1 * + col1 * - CAST( - + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616
skipif mysql # not compatible
query I rowsort label-7852
SELECT + col0 * - + col1 * + col1 * - CAST ( - + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-125375
-13669292
-959616
query II rowsort
SELECT 11 AS col2, - col1 FROM tab2
----
11
-51
11
-67
11
-77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7854
SELECT MIN( DISTINCT CAST( + ( col0 ) AS SIGNED ) ) FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-7854
SELECT MIN ( DISTINCT CAST ( + ( col0 ) AS INTEGER ) ) FROM tab0
----
15
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IS NULL
----
query I rowsort
SELECT DISTINCT ( 58 ) + col0 * col1 AS col1 FROM tab0 AS cor0
----
1273
155
1885
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - + 6 col2 FROM tab2 AS cor0
----
-52
-70
-81
query I rowsort
SELECT 52 * col1 AS col0 FROM tab2 AS cor0
----
2652
3484
4004
onlyif mysql # aggregate syntax:
query I rowsort label-7859
SELECT + SUM( + col2 ) FROM tab1 AS cor0 WHERE 11 NOT BETWEEN + col1 * + - 13 AND - col2
----
223
skipif mysql # not compatible
query I rowsort label-7859
SELECT + SUM ( + col2 ) FROM tab1 AS cor0 WHERE 11 NOT BETWEEN + col1 * + - 13 AND - col2
----
223
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7860
SELECT col2 + - CAST( + col2 AS SIGNED ) - col1 + + + 40 FROM tab1 AS cor0
----
-7
26
35
skipif mysql # not compatible
query I rowsort label-7860
SELECT col2 + - CAST ( + col2 AS INTEGER ) - col1 + + + 40 FROM tab1 AS cor0
----
-7
26
35
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT col1 + ( - col0 ), col0 AS col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85
onlyif mysql # aggregate syntax:
query I rowsort label-7863
SELECT ALL - SUM( DISTINCT col1 ) + - COUNT( * ) + 46 AS col2 FROM tab0 AS cor0
----
-60
skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - SUM ( DISTINCT col1 ) + - COUNT ( * ) + 46 AS col2 FROM tab0 AS cor0
----
-60
query I rowsort
SELECT + + col0 + + 6 FROM tab2 AS cor0
----
52
70
81
query I rowsort
SELECT ALL col1 * + + 46 * + col2 * - + col0 FROM tab2 AS cor0
----
-13406700
-2482068
-9067520
query I rowsort
SELECT DISTINCT ( - - col0 ) * - col2 AS col0 FROM tab2
----
-1058
-2560
-4350
onlyif mysql # DIV for integer division:
query I rowsort label-7867
SELECT ALL 35 DIV - - col1 col2 FROM tab1
----
0
2
7
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7867
SELECT ALL 35 / - - col1 col2 FROM tab1
----
0
2
7
query I rowsort
SELECT col0 + 5 AS col2 FROM tab0
----
102
20
92
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 94 <= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # DIV for integer division:
query I rowsort label-7870
SELECT - + 1 DIV + - col1 AS col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7870
SELECT - + 1 / + - col1 AS col0 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT ALL - col0 + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
-77
2
32
onlyif mysql # aggregate syntax:
query I rowsort label-7872
SELECT + - COUNT( * ) - ( + 16 ) FROM tab2 AS cor0
----
-19
skipif mysql # not compatible
query I rowsort label-7872
SELECT + - COUNT ( * ) - ( + 16 ) FROM tab2 AS cor0
----
-19
query I rowsort
SELECT DISTINCT + + 82 - + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-15
-5
67
onlyif mysql # aggregate syntax:
query I rowsort label-7874
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-7874
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT - col2 * - - 33 FROM tab2 WHERE NULL IS NULL
----
-1320
-1914
-759
query I rowsort
SELECT DISTINCT - 8 * - col0 * col1 + - 15 FROM tab1 WHERE NOT + + 31 <> NULL
----
query I rowsort
SELECT DISTINCT + - 34 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34
query II rowsort
SELECT + col2 AS col1, - col1 AS col2 FROM tab0 WHERE NOT ( - col1 BETWEEN NULL AND NULL )
----
query I rowsort
SELECT ALL + 41 AS col0 FROM tab1 WHERE NOT 7 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7880
SELECT DISTINCT - - SUM( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL OR NOT + + 48 >= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT - - SUM ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL OR NOT + + 48 >= NULL
----
NULL
query II rowsort
SELECT + + col2, col1 FROM tab0 AS cor0
----
10
21
47
81
99
1
query I rowsort
SELECT ALL col2 * - 98 AS col0 FROM tab0 AS cor0
----
-4606
-9702
-980
query I rowsort
SELECT ALL + col2 * col0 * + col2 - col1 + col2 * 25 + - col0 FROM tab0 AS cor0
----
34214
8842
953074
query II rowsort
SELECT - col2 AS col0, + col0 + - 24 FROM tab0 AS cor0
----
-10
63
-47
-9
-99
73
onlyif mysql # DIV for integer division:
query I rowsort label-7885
SELECT DISTINCT + col1 DIV - 70 + + col0 FROM tab2 AS cor0
----
46
63
75
skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT + col1 / - 70 + + col0 FROM tab2 AS cor0
----
46
63
75
query I rowsort
SELECT + + 53 * + col2 * + - col1 + + - 58 AS col1 FROM tab0 AS cor0
----
-11188
-201829
-5305
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 col1 FROM tab1 AS cor0
----
-18
-18
-18
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col0 + + col0 BETWEEN NULL AND - col1
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 IS NOT NULL
----
query II rowsort
SELECT ALL col2 AS col2, + 74 * - col2 FROM tab0
----
10
-740
47
-3478
99
-7326
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7891
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query III rowsort label-7891
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
query I rowsort
SELECT DISTINCT - col0 * - 28 * 52 AS col0 FROM tab1
----
123760
132496
74256
onlyif mysql # aggregate syntax:
query I rowsort label-7893
SELECT DISTINCT 39 + - COUNT( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
39
skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT 39 + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
39
query I rowsort
SELECT + col1 * + col2 * col1 AS col2 FROM tab0
----
308367
4410
99
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IS NOT NULL AND NULL <= + col2
----
query I rowsort
SELECT 53 AS col2 FROM tab2 AS cor0 WHERE NOT ( 38 ) IS NULL
----
53
53
53
query I rowsort
SELECT - 74 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT + col1 + + 6 FROM tab0 AS cor0
----
27
7
87
query I rowsort
SELECT ( + + col0 ) FROM tab0 cor0
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col2 + - col0 + + 44 - + col2 col1 FROM tab0 cor0 WHERE NULL <= - 61 * + 2 * + + col1
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7901
SELECT ALL + + 87 + - COUNT( + col1 ) * CAST( NULL AS SIGNED ) - + 29 col1, 16 col0 FROM tab2 AS cor0
----
NULL
16
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7901
SELECT ALL + + 87 + - COUNT ( + col1 ) * CAST ( NULL AS INTEGER ) - + 29 col1, 16 col0 FROM tab2 AS cor0
----
NULL
16
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7902
SELECT DISTINCT + col0 + ( + 25 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + col0 + ( + 25 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query II rowsort
SELECT DISTINCT col1, 49 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7904
SELECT ALL + COUNT( - col1 ) * + + 0 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL + COUNT ( - col1 ) * + + 0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE - + 85 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7906
SELECT - MAX( DISTINCT - + col0 ) AS col2 FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-7906
SELECT - MAX ( DISTINCT - + col0 ) AS col2 FROM tab2
----
46
onlyif mysql # aggregate syntax:
query I rowsort label-7907
SELECT DISTINCT 70 - - - COUNT( * ) FROM tab2
----
67
skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT 70 - - - COUNT ( * ) FROM tab2
----
67
onlyif mysql # aggregate syntax:
query I rowsort label-7908
SELECT ALL + ( - + COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + ( - + COUNT ( * ) ) FROM tab1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( - col0 ) * - col2 + col1 col1 FROM tab1
----
-4868
-5005
-6094
query III rowsort
SELECT * FROM tab2 WHERE - col2 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 36 + - + ( col0 ) + + + col2 AS col2 FROM tab0
----
-41
38
68
query I rowsort
SELECT + col2 + - ( - 65 ) FROM tab1 AS cor0
----
124
133
161
query I rowsort
SELECT - col2 + - 34 + + + col2 FROM tab0 AS cor0
----
-34
-34
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 88 + 8 + - + 71 col2 FROM tab1 AS cor0
----
25
query I rowsort
SELECT ALL 66 - col2 AS col2 FROM tab2 AS cor0
----
26
43
8
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-7916
SELECT DISTINCT - + AVG ( ALL + + CAST( NULL AS SIGNED ) ) - - ( - 30 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-7916
SELECT DISTINCT - + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) - - ( - 30 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3
onlyif mysql # aggregate syntax:
query I rowsort label-7917
SELECT ALL + COUNT( * ) FROM tab2 WHERE + col0 = - - col1
----
0
skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL + COUNT ( * ) FROM tab2 WHERE + col0 = - - col1
----
0
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 72 NOT BETWEEN NULL AND col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-7919
SELECT - + SUM( ALL - col1 ) FROM tab1 cor0
----
66
skipif mysql # not compatible
query I rowsort label-7919
SELECT - + SUM ( ALL - col1 ) FROM tab1 cor0
----
66
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7920
SELECT DISTINCT COUNT( - CAST( - 9 AS SIGNED ) ) * + 84 * ( - + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2 * + col0 / + col0
----
0
skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT COUNT ( - CAST ( - 9 AS INTEGER ) ) * + 84 * ( - + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) = + col2 * + col0 / + col0
----
0
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - ( 82 ) IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-7922
SELECT - COUNT( - - 32 ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-7922
SELECT - COUNT ( - - 32 ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7924
SELECT + 55 * + + COUNT( * ) * + SUM( ALL + 44 ) AS col2 FROM tab0
----
21780
skipif mysql # not compatible
query I rowsort label-7924
SELECT + 55 * + + COUNT ( * ) * + SUM ( ALL + 44 ) AS col2 FROM tab0
----
21780
query I rowsort
SELECT ALL ( + + 73 ) AS col0 FROM tab2
----
73
73
73
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query I rowsort label-7926
SELECT + MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7926
SELECT + MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
query I rowsort
SELECT ALL ( + 18 ) FROM tab1
----
18
18
18
query I rowsort
SELECT ALL ( - + col2 ) FROM tab0
----
-10
-47
-99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7929
SELECT DISTINCT - 48 * CAST( + - col2 AS SIGNED ) * + 33 FROM tab2
----
36432
63360
91872
skipif mysql # not compatible
query I rowsort label-7929
SELECT DISTINCT - 48 * CAST ( + - col2 AS INTEGER ) * + 33 FROM tab2
----
36432
63360
91872
query II rowsort
SELECT ALL col2 AS col2, + 14 FROM tab2
----
23
14
40
14
58
14
query I rowsort
SELECT DISTINCT col0 + - + col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + - 54 * col2 + - col2 + col2 * col2 * - + 93 AS col0 FROM tab0 AS cor0
----
-208022
-916938
-9850
query II rowsort
SELECT DISTINCT + col0, 88 FROM tab0
----
15
88
87
88
97
88
onlyif mysql # aggregate syntax:
query I rowsort label-7934
SELECT - MAX( ALL 17 ) AS col2 FROM tab2
----
-17
skipif mysql # not compatible
query I rowsort label-7934
SELECT - MAX ( ALL 17 ) AS col2 FROM tab2
----
-17
onlyif mysql # aggregate syntax:
query I rowsort label-7935
SELECT ALL SUM( - + col0 ) FROM tab0
----
-199
skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL SUM ( - + col0 ) FROM tab0
----
-199
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7936
SELECT MIN( ALL + CAST( NULL AS SIGNED ) ) * + + COUNT( + - col2 ) + COUNT( * ) col2 FROM tab1
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7936
SELECT MIN ( ALL + CAST ( NULL AS INTEGER ) ) * + + COUNT ( + - col2 ) + COUNT ( * ) col2 FROM tab1
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN col0 + + + ( + + col1 ) AND + - 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-7939
SELECT - 32 - - - COUNT( + col2 ) FROM tab0 AS cor0 WHERE 65 * 10 / 62 * + col1 IS NOT NULL
----
-35
skipif mysql # not compatible
query I rowsort label-7939
SELECT - 32 - - - COUNT ( + col2 ) FROM tab0 AS cor0 WHERE 65 * 10 / 62 * + col1 IS NOT NULL
----
-35
query I rowsort
SELECT + col1 + - 86 + col2 AS col1 FROM tab1 AS cor0
----
-22
24
29
query II rowsort
SELECT DISTINCT - col2 AS col0, 46 FROM tab0 AS cor0 WHERE col0 + - 43 * + - 45 + + + col2 <= NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7942
SELECT - + 31 * - col2 + CAST( NULL AS SIGNED ) / + 54 * col1 * + + col1 * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7942
SELECT - + 31 * - col2 + CAST ( NULL AS INTEGER ) / + 54 * col1 * + + col1 * - col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7943
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-7943
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7944
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + col1 * - + 44 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + col1 * - + 44 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL - col2 AS col0, - col0 AS col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51
query I rowsort
SELECT - col1 * - 73 + + 58 AS col1 FROM tab2
----
3781
4949
5679
query II rowsort
SELECT - 20 AS col0, col1 AS col2 FROM tab1 WHERE + - 75 + - 78 >= NULL
----
query I rowsort
SELECT DISTINCT 28 - + ( + col2 ) + 0 * 49 AS col0 FROM tab0
----
-19
-71
18
onlyif mysql # DIV for integer division:
query I rowsort label-7949
SELECT - col2 DIV + - col1 * - col1 * - 57 * - 66 * + + col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7949
SELECT - col2 / + - col1 * - col1 * - 57 * - 66 * + + col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + + col0 * - - col1 FROM tab1 AS cor0
----
425
4277
714
query I rowsort
SELECT DISTINCT col1 * col2 / + ( + + 71 ) + + col2 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + - col0
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-7952
SELECT * FROM tab0 cor0 WHERE - ( - col2 ) * + ( - ( 50 ) ) * + 76 + - ( + 86 ) * col1 + col1 * + 73 IN ( + 59, + CAST( NULL AS SIGNED ) + + 21, - + col1 * - 17 + - + 74 * - 78 / col0 + + 36 )
----
skipif mysql # not compatible
query III rowsort label-7952
SELECT * FROM tab0 cor0 WHERE - ( - col2 ) * + ( - ( 50 ) ) * + 76 + - ( + 86 ) * col1 + col1 * + 73 IN ( + 59, + CAST ( NULL AS INTEGER ) + + 21, - + col1 * - 17 + - + 74 * - 78 / col0 + + 36 )
----
query I rowsort
SELECT ALL + col2 * - - 1 FROM tab2 cor0
----
23
40
58
onlyif mysql # aggregate syntax:
query I rowsort label-7954
SELECT ALL + + MAX( DISTINCT 21 ) AS col0 FROM tab1 AS cor0
----
21
skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + + MAX ( DISTINCT 21 ) AS col0 FROM tab1 AS cor0
----
21
onlyif mysql # aggregate syntax:
query I rowsort label-7955
SELECT + ( + + COUNT( * ) ) * - COUNT( * ) FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-7955
SELECT + ( + + COUNT ( * ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( 49, 97 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 36 col2, + 41 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-36
41
query I rowsort
SELECT + 73 * + + 21 + - + 31 AS col2 FROM tab2 AS cor0
----
1502
1502
1502
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-7959
SELECT - + 14 DIV + MIN( ALL col1 ) FROM tab1 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-7959
SELECT - + 14 / + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-2
onlyif mysql # DIV for integer division:
query I rowsort label-7960
SELECT + - col1 DIV + + 58 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7960
SELECT + - col1 / + + 58 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7961
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) * 72 * - 78 col0 FROM tab2
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7961
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) * 72 * - 78 col0 FROM tab2
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7962
SELECT DISTINCT - COUNT( * ) * + - ( - COUNT( * ) ) * - - 70 AS col1 FROM tab1
----
-630
skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT - COUNT ( * ) * + - ( - COUNT ( * ) ) * - - 70 AS col1 FROM tab1
----
-630
query I rowsort
SELECT ( + + col2 ) * - - 38 FROM tab1 WHERE NOT NULL > col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-7964
SELECT - COUNT( * ) * - - COUNT( * ) FROM tab0
----
-9
skipif mysql # not compatible
query I rowsort label-7964
SELECT - COUNT ( * ) * - - COUNT ( * ) FROM tab0
----
-9
query I rowsort
SELECT ALL - col0 * - - col0 * - 17 AS col2 FROM tab0
----
128673
159953
3825
query II rowsort
SELECT ALL col0 + - 65 AS col2, + 42 * - col1 AS col2 FROM tab2
----
-1
-3234
-19
-2142
10
-2814
onlyif mysql # aggregate syntax:
query I rowsort label-7967
SELECT ( - MIN( - - col2 ) ) FROM tab0
----
-10
skipif mysql # not compatible
query I rowsort label-7967
SELECT ( - MIN ( - - col2 ) ) FROM tab0
----
-10
onlyif mysql # aggregate syntax:
query II rowsort label-7968
SELECT ALL - - COUNT( - col0 ), - 78 AS col2 FROM tab0 AS cor0
----
3
-78
skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL - - COUNT ( - col0 ), - 78 AS col2 FROM tab0 AS cor0
----
3
-78
onlyif mysql # aggregate syntax:
query I rowsort label-7969
SELECT DISTINCT + 45 * - 0 + + COUNT( * ) + + 90 + + 86 * COUNT( * ) AS col0 FROM tab1 cor0
----
351
skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT + 45 * - 0 + + COUNT ( * ) + + 90 + + 86 * COUNT ( * ) AS col0 FROM tab1 cor0
----
351
onlyif mysql # aggregate syntax:
query I rowsort label-7970
SELECT ( 57 ) + - + 14 * - COUNT( * ) AS col1 FROM tab1
----
99
skipif mysql # not compatible
query I rowsort label-7970
SELECT ( 57 ) + - + 14 * - COUNT ( * ) AS col1 FROM tab1
----
99
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7971
SELECT ALL col1 * + CAST( - col1 AS SIGNED ) * - ( - - ( + col0 ) ) * col1 AS col0 FROM tab2
----
22557225
29218112
6101946
skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL col1 * + CAST ( - col1 AS INTEGER ) * - ( - - ( + col0 ) ) * col1 AS col0 FROM tab2
----
22557225
29218112
6101946
onlyif mysql # aggregate syntax:
query I rowsort label-7972
SELECT - - MAX( DISTINCT + 65 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
65
skipif mysql # not compatible
query I rowsort label-7972
SELECT - - MAX ( DISTINCT + 65 ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
65
onlyif mysql # DIV for integer division:
query I rowsort label-7973
SELECT DISTINCT 19 DIV - col0 AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT 19 / - col0 AS col0 FROM tab1
----
0
query I rowsort
SELECT - - col1 * - + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99
query I rowsort
SELECT - ( - + 5 ) FROM tab0 AS cor0
----
5
5
5
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 88 AND 61
----
query II rowsort
SELECT ALL 35, col2 * 30 AS col2 FROM tab0 AS cor0
----
35
1410
35
2970
35
300
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 86 * + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-7979
SELECT + - MAX( col0 ) AS col0 FROM tab1 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-7979
SELECT + - MAX ( col0 ) AS col0 FROM tab1 AS cor0
----
-91
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 61 * + col2 * - + 62 <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7981
SELECT - + col1 + - CAST( + 76 AS SIGNED ) FROM tab2 AS cor0 WHERE + 46 > + 66
----
skipif mysql # not compatible
query I rowsort label-7981
SELECT - + col1 + - CAST ( + 76 AS INTEGER ) FROM tab2 AS cor0 WHERE + 46 > + 66
----
query I rowsort
SELECT ALL - 81 - + - col2 AS col2 FROM tab2
----
-23
-41
-58
onlyif mysql # aggregate syntax:
query II rowsort label-7983
SELECT ALL COUNT( * ) AS col1, - MIN( - + 10 ) FROM tab1
----
3
10
skipif mysql # not compatible
query II rowsort label-7983
SELECT ALL COUNT ( * ) AS col1, - MIN ( - + 10 ) FROM tab1
----
3
10
onlyif mysql # aggregate syntax:
query I rowsort label-7984
SELECT COUNT( * ) - + COUNT( + col1 ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7984
SELECT COUNT ( * ) - + COUNT ( + col1 ) AS col2 FROM tab0
----
0
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-7985
SELECT ALL - col1 DIV + ( ( - ( + col2 ) ) ) - + CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96
skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - col1 / + ( ( - ( + col2 ) ) ) - + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96
query I rowsort
SELECT + col1 + + 2 AS col1 FROM tab0
----
23
3
83
onlyif mysql # aggregate syntax:
query I rowsort label-7987
SELECT - 25 + + COUNT( * ) AS col2 FROM tab0
----
-22
skipif mysql # not compatible
query I rowsort label-7987
SELECT - 25 + + COUNT ( * ) AS col2 FROM tab0
----
-22
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7988
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-7989
SELECT ALL MAX( - - col1 ) col2 FROM tab0
----
81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7989
SELECT ALL MAX ( - - col1 ) col2 FROM tab0
----
81
query I rowsort
SELECT + col2 * + + col1 + - col2 * + 85 + - + 41 FROM tab1
----
-2625
-4761
-6857
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7991
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL
query I rowsort
SELECT + + 5 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) >= ( + + col1 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-7993
SELECT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7993
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + 59 AND col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-7995
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 47 AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
2773
3196
4512
onlyif mysql # aggregate syntax:
query I rowsort label-7997
SELECT - 56 * + MAX( DISTINCT - - ( - 73 ) ) FROM tab1 AS cor0
----
4088
skipif mysql # not compatible
query I rowsort label-7997
SELECT - 56 * + MAX ( DISTINCT - - ( - 73 ) ) FROM tab1 AS cor0
----
4088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, - col1 col0 FROM tab2
----
23
-51
40
-77
58
-67
query I rowsort
SELECT col1 + + + col0 FROM tab1
----
138
65
90
query III rowsort
SELECT * FROM tab1 WHERE + + col1 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8001
SELECT DISTINCT - MAX( - col1 ) col0 FROM tab2 WHERE + col1 + + 75 + + ( ( - - col2 ) ) NOT BETWEEN NULL AND + col1
----
51
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8001
SELECT DISTINCT - MAX ( - col1 ) col0 FROM tab2 WHERE + col1 + + 75 + + ( ( - - col2 ) ) NOT BETWEEN NULL AND + col1
----
51
query I rowsort
SELECT ALL col1 + + 89 AS col0 FROM tab0
----
110
170
90
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 36 IS NOT NULL
----
query I rowsort
SELECT ALL + + col2 + + - col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8005
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-8005
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) FROM tab2
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-8006
SELECT ( - MIN( DISTINCT col0 ) ) FROM tab0
----
-15
skipif mysql # not compatible
query I rowsort label-8006
SELECT ( - MIN ( DISTINCT col0 ) ) FROM tab0
----
-15
query II rowsort
SELECT DISTINCT 47 * col2 AS col1, 93 FROM tab2
----
1081
93
1880
93
2726
93
query I rowsort
SELECT ALL + col2 + + 71 + + + col0 FROM tab2
----
140
175
204
onlyif mysql # aggregate syntax:
query I rowsort label-8009
SELECT DISTINCT + 71 + - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
68
skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + 71 + - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
68
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col0 * - col2 + + - col0 * 42 * 16 * + col2 / - 78
----
query I rowsort
SELECT DISTINCT + col0 * col0 + + 15 FROM tab2 AS cor0
----
2131
4111
5640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 73 ) + 77 * + ( - col2 ) col1 FROM tab0 AS cor0
----
-3692
-7696
-843
query II rowsort
SELECT ALL 44 - + + 85, - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-41
2601
-41
4489
-41
5929
onlyif mysql # aggregate syntax:
query I rowsort label-8014
SELECT + COUNT( * ) + - + SUM( ALL + 24 ) AS col0 FROM tab0 cor0
----
-69
skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( * ) + - + SUM ( ALL + 24 ) AS col0 FROM tab0 cor0
----
-69
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8015
SELECT ALL - - col1 * 11 * + CAST( + col2 AS SIGNED ) + - - col2 + + col1 AS col2 FROM tab1 AS cor0
----
14894
3309
35271
skipif mysql # not compatible
query I rowsort label-8015
SELECT ALL - - col1 * 11 * + CAST ( + col2 AS INTEGER ) + - - col2 + + col1 AS col2 FROM tab1 AS cor0
----
14894
3309
35271
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-8016
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) ) - - 72 + + + MIN( ALL + - col2 ) DIV + - COUNT( * ) col0 FROM tab0
----
105
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8016
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) ) - - 72 + + + MIN ( ALL + - col2 ) / + - COUNT ( * ) col0 FROM tab0
----
105
query I rowsort
SELECT DISTINCT - col1 + - + col2 FROM tab0
----
-100
-128
-31
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL >= - col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND + col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-8020
SELECT 64 * 59 * + COUNT( * ) AS col2 FROM tab2
----
11328
skipif mysql # not compatible
query I rowsort label-8020
SELECT 64 * 59 * + COUNT ( * ) AS col2 FROM tab2
----
11328
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8021
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NOT - col0 - + col1 * + - CAST( NULL AS SIGNED ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + + col1 AS col0 FROM tab0 WHERE NOT - col0 - + col1 * + - CAST ( NULL AS INTEGER ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8022
SELECT COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8022
SELECT COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8023
SELECT - + 19 * COUNT( * ) FROM tab2 AS cor0
----
-57
skipif mysql # not compatible
query I rowsort label-8023
SELECT - + 19 * COUNT ( * ) FROM tab2 AS cor0
----
-57
query II rowsort
SELECT DISTINCT - 94 AS col0, col0 * + + col1 AS col0 FROM tab0
----
-94
1215
-94
1827
-94
97
onlyif mysql # aggregate syntax:
query I rowsort label-8025
SELECT - ( + ( + COUNT( * ) ) ) col1 FROM tab1
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8025
SELECT - ( + ( + COUNT ( * ) ) ) col1 FROM tab1
----
-3
query III rowsort
SELECT ALL * FROM tab2 WHERE 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT + - col2 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58
query I rowsort
SELECT - 94 * - + col0 FROM tab2
----
4324
6016
7050
onlyif mysql # aggregate syntax:
query I rowsort label-8029
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE - col2 * - + ( + col0 ) + + col1 + col0 IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE - col2 * - + ( + col0 ) + + col1 + col0 IS NOT NULL
----
3
query II rowsort
SELECT col1 * col1, + col1 FROM tab0
----
1
1
441
21
6561
81
onlyif mysql # aggregate syntax:
query I rowsort label-8031
SELECT MAX( ALL - col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8031
SELECT MAX ( ALL - col1 ) FROM tab0 AS cor0
----
-1
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query II rowsort label-8033
SELECT - 94 AS col2, COUNT( * ) col2 FROM tab0 AS cor0
----
-94
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8033
SELECT - 94 AS col2, COUNT ( * ) col2 FROM tab0 AS cor0
----
-94
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8034
SELECT 47 * 24 FROM tab1 AS cor0 WHERE NOT NULL = - CAST( NULL AS SIGNED ) * col2
----
skipif mysql # not compatible
query I rowsort label-8034
SELECT 47 * 24 FROM tab1 AS cor0 WHERE NOT NULL = - CAST ( NULL AS INTEGER ) * col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 col2, - 44 col1 FROM tab2 AS cor0
----
37
-44
37
-44
37
-44
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8037
SELECT DISTINCT MAX( + col0 ) FROM tab1 cor0
----
91
skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT MAX ( + col0 ) FROM tab1 cor0
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-8038
SELECT ALL - MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL - MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-51
query I rowsort
SELECT col0 * - col2 * - + col1 AS col2 FROM tab1 AS cor0
----
25075
290836
68544
query III rowsort
SELECT * FROM tab2 WHERE + 50 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8041
SELECT DISTINCT - SUM( 67 ) FROM tab0
----
-201
skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - SUM ( 67 ) FROM tab0
----
-201
onlyif mysql # aggregate syntax:
query I rowsort label-8042
SELECT DISTINCT - MAX( + - col2 ) FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT - MAX ( + - col2 ) FROM tab1
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-8043
SELECT + SUM( ALL + 42 ) AS col0 FROM tab1
----
126
skipif mysql # not compatible
query I rowsort label-8043
SELECT + SUM ( ALL + 42 ) AS col0 FROM tab1
----
126
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8044
SELECT 96 * - 23 * CAST( 28 AS SIGNED ) FROM tab2
----
-61824
-61824
-61824
skipif mysql # not compatible
query I rowsort label-8044
SELECT 96 * - 23 * CAST ( 28 AS INTEGER ) FROM tab2
----
-61824
-61824
-61824
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8045
SELECT + + CAST( ( + + col2 ) AS SIGNED ), ( + 47 ) AS col1 FROM tab1 AS cor0
----
59
47
68
47
96
47
skipif mysql # not compatible
query II rowsort label-8045
SELECT + + CAST ( ( + + col2 ) AS INTEGER ), ( + 47 ) AS col1 FROM tab1 AS cor0
----
59
47
68
47
96
47
query I rowsort
SELECT DISTINCT - + col2 + 1 + 44 * - col2 + - 69 AS col2 FROM tab1 AS cor0
----
-2723
-3128
-4388
onlyif mysql # aggregate syntax:
query II rowsort label-8047
SELECT DISTINCT + - 87 + + COUNT( * ) AS col2, - 88 FROM tab2 AS cor0
----
-84
-88
skipif mysql # not compatible
query II rowsort label-8047
SELECT DISTINCT + - 87 + + COUNT ( * ) AS col2, - 88 FROM tab2 AS cor0
----
-84
-88
query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE 95 IS NULL
----
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd
onlyif mysql # aggregate syntax:
query I rowsort label-8050
SELECT ALL - COUNT( * ) + + 46 AS col2 FROM tab1
----
43
skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - COUNT ( * ) + + 46 AS col2 FROM tab1
----
43
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8051
SELECT ALL - ( - + MAX( ALL col0 ) ) AS col0, - 79 * + CAST( NULL AS SIGNED ) FROM tab0
----
97
NULL
skipif mysql # not compatible
query II rowsort label-8051
SELECT ALL - ( - + MAX ( ALL col0 ) ) AS col0, - 79 * + CAST ( NULL AS INTEGER ) FROM tab0
----
97
NULL
query II rowsort
SELECT + col0, + ( - + col2 ) FROM tab1
----
51
-96
85
-59
91
-68
onlyif mysql # aggregate syntax:
query I rowsort label-8053
SELECT DISTINCT SUM( + 65 ) AS col2 FROM tab0
----
195
skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT SUM ( + 65 ) AS col2 FROM tab0
----
195
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + 26 * - + col2 * col1 * - 41 AS col1 FROM tab2 AS cor0
----
1250418
3283280
4142476
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 11 + - - col2 = + 54 * + col1
----
query II rowsort
SELECT ALL 6 AS col1, col2 FROM tab2 AS cor0
----
6
23
6
40
6
58
query II rowsort
SELECT - 49 AS col1, + 43 AS col1 FROM tab1 AS cor0
----
-49
43
-49
43
-49
43
query I rowsort
SELECT col2 * 29 AS col0 FROM tab2 AS cor0 WHERE NOT + 11 IS NOT NULL
----
query I rowsort
SELECT DISTINCT - ( - 82 ) + + col2 FROM tab1 WHERE - 76 = - col0
----
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 > - 85
----
87
21
10
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-8063
SELECT 69 * + - COUNT( * ) col2 FROM tab1
----
-207
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8063
SELECT 69 * + - COUNT ( * ) col2 FROM tab1
----
-207
onlyif mysql # aggregate syntax:
query I rowsort label-8064
SELECT - SUM( ALL + col0 ) col1 FROM tab2
----
-185
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8064
SELECT - SUM ( ALL + col0 ) col1 FROM tab2
----
-185
query III rowsort
SELECT * FROM tab0 WHERE NOT + 57 >= + + 32 / col0
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * + - col0 + ( col0 ) - - col0 < NULL
----
query I rowsort
SELECT + ( col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025
onlyif mysql # aggregate syntax:
query I rowsort label-8068
SELECT - - COUNT( ALL 9 ) * 58 AS col2 FROM tab2 AS cor0
----
174
skipif mysql # not compatible
query I rowsort label-8068
SELECT - - COUNT ( ALL 9 ) * 58 AS col2 FROM tab2 AS cor0
----
174
query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
46
64
75
onlyif mysql # DIV for integer division:
query I rowsort label-8070
SELECT DISTINCT 38 DIV - col2 FROM tab0 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT 38 / - col2 FROM tab0 AS cor0
----
-3
0
query I rowsort
SELECT DISTINCT + + col0 + - + col1 FROM tab0 AS cor0 WHERE NULL = + col0 / + col0 * - + 73 * 15
----
onlyif mysql # aggregate syntax:
query I rowsort label-8072
SELECT ALL MIN( DISTINCT + 24 ) AS col1 FROM tab2
----
24
skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL MIN ( DISTINCT + 24 ) AS col1 FROM tab2
----
24
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8073
SELECT + CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-8073
SELECT + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91
query III rowsort
SELECT * FROM tab0 WHERE NOT + 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8075
SELECT DISTINCT + 6 + - - ( + - COUNT( * ) ) + COUNT( * ) FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-8075
SELECT DISTINCT + 6 + - - ( + - COUNT ( * ) ) + COUNT ( * ) FROM tab1 AS cor0
----
6
onlyif mysql # aggregate syntax:
query I rowsort label-8076
SELECT DISTINCT COUNT( * ) FROM tab2 cor0
----
3
skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8077
SELECT DISTINCT - ( + MIN( DISTINCT + + 45 ) ) AS col2 FROM tab2 AS cor0
----
-45
skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT - ( + MIN ( DISTINCT + + 45 ) ) AS col2 FROM tab2 AS cor0
----
-45
query I rowsort
SELECT + 84 + - col0 FROM tab1 AS cor0
----
-1
-7
33
query I rowsort
SELECT DISTINCT - ( - 27 ) FROM tab0 AS cor0
----
27
query I rowsort
SELECT + col2 + - + col1 FROM tab1
----
21
54
82
query I rowsort
SELECT ALL - 11 * col2 FROM tab1
----
-1056
-649
-748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 col2, col0 FROM tab0
----
87
15
87
87
87
97
query I rowsort
SELECT - 2 * - col2 + - - col2 FROM tab1
----
177
204
288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col1 col0 FROM tab2
----
117
125
74
onlyif mysql # aggregate syntax:
query I rowsort label-8085
SELECT COUNT( DISTINCT + 93 ) + - MIN( DISTINCT - + col2 ) + - + 46 AS col0 FROM tab0
----
54
skipif mysql # not compatible
query I rowsort label-8085
SELECT COUNT ( DISTINCT + 93 ) + - MIN ( DISTINCT - + col2 ) + - + 46 AS col0 FROM tab0
----
54
query I rowsort
SELECT + 14 * - + 17 + - col0 + col1 AS col2 FROM tab2
----
-225
-233
-246
query I rowsort
SELECT ALL - + 12 AS col0 FROM tab0 WHERE NOT - 56 > col1
----
-12
-12
-12
onlyif mysql # aggregate syntax:
query I rowsort label-8088
SELECT MAX( - - col0 ) col0 FROM tab1
----
91
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8088
SELECT MAX ( - - col0 ) col0 FROM tab1
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-8089
SELECT + SUM( 40 ) FROM tab2 AS cor0
----
120
skipif mysql # not compatible
query I rowsort label-8089
SELECT + SUM ( 40 ) FROM tab2 AS cor0
----
120
query I rowsort
SELECT + 55 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 85 + - + col1 * - + col0 AND col1
----
query I rowsort
SELECT ALL + col1 + + 82 FROM tab0 AS cor0
----
103
163
83
query I rowsort
SELECT DISTINCT - + 9 AS col0 FROM tab1 AS cor0
----
-9
query I rowsort
SELECT + 95 * - col0 AS col2 FROM tab0 AS cor0
----
-1425
-8265
-9215
query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 + + col2 > + 59
----
query I rowsort
SELECT ALL + ( - col2 ) * - - col0 FROM tab2 AS cor0
----
-1058
-2560
-4350
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-8097
SELECT ALL col0 DIV - col1 + col0 FROM tab1 AS cor0
----
48
68
90
skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL col0 / - col1 + col0 FROM tab1 AS cor0
----
48
68
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col1 FROM tab0 AS cor0
----
-47
-47
-47
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8099
SELECT DISTINCT + 24 DIV + COUNT( * ) col0 FROM tab1 AS cor0
----
8
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8099
SELECT DISTINCT + 24 / + COUNT ( * ) col0 FROM tab1 AS cor0
----
8
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8100
SELECT DISTINCT - col1 / 51 / col2 AS col0 FROM tab2 cor0 WHERE - col0 BETWEEN + + CAST( 15 AS SIGNED ) AND - col1
----
skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT - col1 / 51 / col2 AS col0 FROM tab2 cor0 WHERE - col0 BETWEEN + + CAST ( 15 AS INTEGER ) AND - col1
----
query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT - - 48 AS col1 FROM tab2 WHERE - + 57 IS NULL
----
query I rowsort
SELECT ALL - col2 * - - col1 FROM tab0
----
-210
-3807
-99
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8104
SELECT * FROM tab1 WHERE NOT CAST( - 45 AS SIGNED ) <> NULL
----
skipif mysql # not compatible
query III rowsort label-8104
SELECT * FROM tab1 WHERE NOT CAST ( - 45 AS INTEGER ) <> NULL
----
query I rowsort
SELECT ALL col2 * 89 * + - col0 * + col2 FROM tab0
----
-2949015
-774300
-84612033
query I rowsort
SELECT + col1 * - - col1 FROM tab2
----
2601
4489
5929
query II rowsort
SELECT ALL + col0, col1 * - 12 AS col2 FROM tab0 AS cor0
----
15
-972
87
-252
97
-12
query II rowsort
SELECT + 21 AS col1, - col0 + col2 AS col0 FROM tab0 cor0
----
21
-77
21
2
21
32
onlyif mysql # aggregate syntax:
query I rowsort label-8109
SELECT ALL + + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9
query I rowsort
SELECT + 65 * - col2 * + + col0 + + col0 * 54 AS col2 FROM tab0
----
-45015
-51852
-618957
onlyif mysql # aggregate syntax:
query I rowsort label-8111
SELECT DISTINCT + COUNT( ALL col1 ) * 31 * + COUNT( * ) FROM tab1
----
279
skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + COUNT ( ALL col1 ) * 31 * + COUNT ( * ) FROM tab1
----
279
query I rowsort
SELECT 33 + - + col2 + col0 AS col0 FROM tab0
----
1
110
31
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + - ( - - col0 )
----
onlyif mysql # DIV for integer division:
query II rowsort label-8114
SELECT ALL + col0 * 36 AS col2, col2 DIV - 78 AS col0 FROM tab0
----
3132
0
3492
-1
540
0
skipif mysql # not compatible
query II rowsort label-8114
SELECT ALL + col0 * 36 AS col2, col2 / - 78 AS col0 FROM tab0
----
3132
0
3492
-1
540
0
query I rowsort
SELECT + col2 + - col1 + 91 FROM tab1 AS cor0
----
112
145
173
query I rowsort
SELECT ALL col0 * + - col2 + 26 FROM tab2 AS cor0
----
-1032
-2534
-4324
query I rowsort
SELECT ALL - col1 + - 80 FROM tab2 AS cor0
----
-131
-147
-157
onlyif mysql # aggregate syntax:
query I rowsort label-8118
SELECT - COUNT( - + col1 ) FROM tab2 cor0 WHERE - col0 * + col1 IS NULL
----
0
skipif mysql # not compatible
query I rowsort label-8118
SELECT - COUNT ( - + col1 ) FROM tab2 cor0 WHERE - col0 * + col1 IS NULL
----
0
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 <> - + 25
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL + ( col1 ) * col0 + + col2 FROM tab0 AS cor0 WHERE NOT col1 <= + col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8121
SELECT DISTINCT - ( - - COUNT( * ) ) + + 40 FROM tab1 AS cor0
----
37
skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - ( - - COUNT ( * ) ) + + 40 FROM tab1 AS cor0
----
37
onlyif mysql # aggregate syntax:
query I rowsort label-8122
SELECT ALL - COUNT( * ) * - 98 FROM tab1
----
294
skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL - COUNT ( * ) * - 98 FROM tab1
----
294
query I rowsort
SELECT + col2 * 47 FROM tab1
----
2773
3196
4512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab1 WHERE NOT NULL BETWEEN 93 AND + col0
----
query I rowsort
SELECT - 86 * - - col1 FROM tab0
----
-1806
-6966
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col1 + - col2 + + + col1 + - ( + col2 ) * - + 89 * + 58 col1 FROM tab0
----
10
51652
47
242729
99
510941
query I rowsort
SELECT DISTINCT 87 + + col1 * - - col2 + - + 47 FROM tab2
----
1213
3120
3926
onlyif mysql # DIV for integer division:
query II rowsort label-8128
SELECT col0 + - 71 DIV + - 59 col2, - col1 AS col0 FROM tab0
----
16
-81
88
-21
98
-1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8128
SELECT col0 + - 71 / + - 59 col2, - col1 AS col0 FROM tab0
----
16
-81
88
-21
98
-1
query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE + col2 * - col0 IS NOT NULL AND NOT ( NULL ) <> - - col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8130
SELECT - MAX( ALL - col1 ) + - + COUNT( * ) col1 FROM tab2
----
48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8130
SELECT - MAX ( ALL - col1 ) + - + COUNT ( * ) col1 FROM tab2
----
48
query I rowsort
SELECT - col0 + col0 * + 67 AS col2 FROM tab2
----
3036
4224
4950
query I rowsort
SELECT + + ( col1 ) + + col0 FROM tab1 AS cor0
----
138
65
90
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ALL + col0 - - 52 + - 76 AS col0 FROM tab2 cor0
----
22
40
51
onlyif mysql # aggregate syntax:
query I rowsort label-8135
SELECT - COUNT( - col1 ) FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8135
SELECT - COUNT ( - col1 ) FROM tab2 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * - col0 * 81 col0 FROM tab2
----
-312984
-435456
-510300
onlyif mysql # aggregate syntax:
query I rowsort label-8137
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-8137
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT - + 59 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query II rowsort
SELECT + 0 * + col0 AS col0, + col1 FROM tab0
----
0
1
0
21
0
81
query II rowsort
SELECT ALL + col0, 80 AS col1 FROM tab2 AS cor0
----
46
80
64
80
75
80
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8141
SELECT DISTINCT - CAST( - + 71 AS SIGNED ) FROM tab2 cor0
----
71
skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - CAST ( - + 71 AS INTEGER ) FROM tab2 cor0
----
71
onlyif mysql # aggregate syntax:
query II rowsort label-8142
SELECT ALL + 2 AS col2, - COUNT( * ) + - 98 col1 FROM tab1 AS cor0
----
2
-101
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8142
SELECT ALL + 2 AS col2, - COUNT ( * ) + - 98 col1 FROM tab1 AS cor0
----
2
-101
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-8144
SELECT + 71 DIV 29 * ( + col2 ) FROM tab2
----
116
46
80
skipif mysql # not compatible
query I rowsort label-8144
SELECT + 71 / 29 * ( + col2 ) FROM tab2
----
116
46
80
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > ( + + col0 ) + + 84 + 59 + col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 93 >= + + ( + + col1 )
----
onlyif mysql # aggregate syntax:
query II rowsort label-8147
SELECT MAX( ALL + col0 ) AS col1, MAX( - + col2 ) AS col0 FROM tab2
----
75
-23
skipif mysql # not compatible
query II rowsort label-8147
SELECT MAX ( ALL + col0 ) AS col1, MAX ( - + col2 ) AS col0 FROM tab2
----
75
-23
onlyif mysql # DIV for integer division:
query II rowsort label-8148
SELECT ALL + ( + col2 ) DIV + col0, col1 FROM tab1
----
0
47
0
5
1
14
skipif mysql # not compatible
query II rowsort label-8148
SELECT ALL + ( + col2 ) / + col0, col1 FROM tab1
----
0
47
0
5
1
14
onlyif mysql # aggregate syntax:
query I rowsort label-8149
SELECT DISTINCT COUNT( * ) * + 76 * + COUNT( - + 16 ) AS col0 FROM tab1
----
684
skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT COUNT ( * ) * + 76 * + COUNT ( - + 16 ) AS col0 FROM tab1
----
684
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col0 + col0 + 79 * - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT ( + 8 ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT 96 FROM tab1 cor0
----
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / + 31 * + - col1 < NULL
----
query I rowsort
SELECT + 98 * col0 AS col2 FROM tab2 AS cor0
----
4508
6272
7350
onlyif mysql # aggregate syntax:
query I rowsort label-8155
SELECT DISTINCT MAX( ALL - 36 ) * - COUNT( * ) * + 61 FROM tab2 AS cor0
----
6588
skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT MAX ( ALL - 36 ) * - COUNT ( * ) * + 61 FROM tab2 AS cor0
----
6588
query I rowsort
SELECT ALL col0 * + + 59 FROM tab1
----
3009
5015
5369
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8158
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + col1 + - 59 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + col1 + - 59 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8159
SELECT 17 DIV - 77 + - 76 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-79
skipif mysql # not compatible
query I rowsort label-8159
SELECT 17 / - 77 + - 76 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-79
query I rowsort
SELECT ALL + 78 * + - col0 * - - col1 * col1 * - col2 + 8 * 60 FROM tab2 AS cor0
----
1183903200
1523118180
214645404
onlyif mysql # aggregate syntax:
query I rowsort label-8161
SELECT MAX( + + 56 ) FROM tab1 AS cor0 WHERE + 11 * + col2 IS NOT NULL
----
56
skipif mysql # not compatible
query I rowsort label-8161
SELECT MAX ( + + 56 ) FROM tab1 AS cor0 WHERE + 11 * + col2 IS NOT NULL
----
56
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8163
SELECT + 1 / + - 27 / - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8163
SELECT + 1 / + - 27 / - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < ( - 94 )
----
query I rowsort
SELECT ALL + 58 * col1 + - - col1 + - col0 - + - col1 FROM tab0 AS cor0
----
-37
1173
4845
onlyif mysql # aggregate syntax:
query I rowsort label-8166
SELECT - COUNT( 91 ) + MAX( ALL 66 ) AS col2 FROM tab2
----
63
skipif mysql # not compatible
query I rowsort label-8166
SELECT - COUNT ( 91 ) + MAX ( ALL 66 ) AS col2 FROM tab2
----
63
query II rowsort
SELECT 87 AS col0, - ( - - col0 ) FROM tab2 WHERE - - col0 NOT BETWEEN - col0 AND - 2 * + col0
----
87
-46
87
-64
87
-75
query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IS NOT NULL OR NOT + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-8169
SELECT DISTINCT CAST( + col1 AS SIGNED ) DIV + 23 AS col0 FROM tab0
----
0
3
skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT CAST ( + col1 AS INTEGER ) / + 23 AS col0 FROM tab0
----
0
3
query I rowsort
SELECT col1 * 23 AS col1 FROM tab1 AS cor0
----
1081
115
322
query I rowsort
SELECT DISTINCT + + col0 * + + ( - 51 ) + - 21 AS col0 FROM tab0 AS cor0
----
-4458
-4968
-786
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8172
SELECT DISTINCT + - col0 + + + col1 + - col0 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8172
SELECT DISTINCT + - col0 + + + col1 + - col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8173
SELECT DISTINCT + 99 + - COUNT( * ) FROM tab2 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + 99 + - COUNT ( * ) FROM tab2 AS cor0
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-8174
SELECT + - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8174
SELECT + - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-8175
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
9
query I rowsort
SELECT - + 63 * + col1 AS col1 FROM tab0 cor0
----
-1323
-5103
-63
onlyif mysql # aggregate syntax:
query I rowsort label-8177
SELECT + MIN( ALL - 55 ) AS col1 FROM tab0 cor0
----
-55
skipif mysql # not compatible
query I rowsort label-8177
SELECT + MIN ( ALL - 55 ) AS col1 FROM tab0 cor0
----
-55
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8178
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1 + ( col1 ) + 24 - col2 + col1 * - 14 * + col1 * - + CAST( + ( col1 ) AS SIGNED ) * - col0
----
skipif mysql # not compatible
query III rowsort label-8178
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1 + ( col1 ) + 24 - col2 + col1 * - 14 * + col1 * - + CAST ( + ( col1 ) AS INTEGER ) * - col0
----
query II rowsort
SELECT col0, 44 FROM tab2 AS cor0
----
46
44
64
44
75
44
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8180
SELECT 74 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
74
NULL
74
NULL
74
NULL
skipif mysql # not compatible
query II rowsort label-8180
SELECT 74 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
74
NULL
74
NULL
74
NULL
query I rowsort
SELECT DISTINCT 4 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8183
SELECT col0, - CAST( col1 AS SIGNED ) FROM tab0
----
15
-81
87
-21
97
-1
skipif mysql # not compatible
query II rowsort label-8183
SELECT col0, - CAST ( col1 AS INTEGER ) FROM tab0
----
15
-81
87
-21
97
-1
onlyif mysql # aggregate syntax:
query I rowsort label-8184
SELECT - COUNT( * ) FROM tab2 WHERE NOT + 64 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-8184
SELECT - COUNT ( * ) FROM tab2 WHERE NOT + 64 IS NULL
----
-3
query I rowsort
SELECT DISTINCT col1 + - - col0 + col0 FROM tab2 AS cor0
----
143
205
217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 13 col2 FROM tab1 AS cor0
----
104
64
98
query I rowsort
SELECT + + ( - 92 ) FROM tab2 cor0
----
-92
-92
-92
onlyif mysql # aggregate syntax:
query I rowsort label-8188
SELECT SUM( col1 ) - 16 + + - 14 FROM tab0
----
73
skipif mysql # not compatible
query I rowsort label-8188
SELECT SUM ( col1 ) - 16 + + - 14 FROM tab0
----
73
query I rowsort
SELECT - 94 - + 52 * col0 + + 45 * col2 FROM tab2
----
-1384
-1451
-1622
query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN ( - col0 ) AND NULL
----
46
51
23
64
77
40
query I rowsort
SELECT + + 53 + + col1 / - 45 FROM tab0 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8192
SELECT MIN( ALL 17 ) - COUNT( * ) AS col2 FROM tab2
----
14
skipif mysql # not compatible
query I rowsort label-8192
SELECT MIN ( ALL 17 ) - COUNT ( * ) AS col2 FROM tab2
----
14
query I rowsort
SELECT + col1 - ( - ( + col0 ) ) AS col2 FROM tab0
----
108
96
98
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-8194
SELECT - COUNT( * ) + + COUNT( * ) DIV - + COUNT( * ) AS col1, - 52 * - + 82 FROM tab0
----
-4
4264
skipif mysql # not compatible
query II rowsort label-8194
SELECT - COUNT ( * ) + + COUNT ( * ) / - + COUNT ( * ) AS col1, - 52 * - + 82 FROM tab0
----
-4
4264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab1
----
97
97
97
query I rowsort
SELECT col0 + + col1 * - - col1 AS col2 FROM tab1
----
110
2300
247
onlyif mysql # aggregate syntax:
query I rowsort label-8197
SELECT ALL - MAX( - - col1 ) col1 FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8197
SELECT ALL - MAX ( - - col1 ) col1 FROM tab0 AS cor0
----
-81
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 47 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT ALL + col2 AS col2, - ( - 49 ) FROM tab0 cor0
----
10
49
47
49
99
49
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8200
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) * SUM( DISTINCT 64 ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) * SUM ( DISTINCT 64 ) FROM tab2 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8201
SELECT ALL + COUNT( col0 ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL + COUNT ( col0 ) FROM tab2
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8202
SELECT DISTINCT 92 * COUNT( * ) - - MIN( DISTINCT col2 ) AS col0 FROM tab2
----
299
skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT 92 * COUNT ( * ) - - MIN ( DISTINCT col2 ) AS col0 FROM tab2
----
299
onlyif mysql # aggregate syntax:
query I rowsort label-8203
SELECT ALL + COUNT( * ) + + 54 AS col2 FROM tab0
----
57
skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL + COUNT ( * ) + + 54 AS col2 FROM tab0
----
57
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab0 WHERE NULL IS NULL
----
-90
query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) NOT BETWEEN - col0 AND ( + col0 )
----
query I rowsort
SELECT - col2 + 95 * - col2 AS col2 FROM tab1
----
-5664
-6528
-9216
onlyif mysql # aggregate syntax:
query I rowsort label-8208
SELECT + COUNT( * ) + + 47 AS col2 FROM tab0
----
50
skipif mysql # not compatible
query I rowsort label-8208
SELECT + COUNT ( * ) + + 47 AS col2 FROM tab0
----
50
onlyif mysql # aggregate syntax:
query I rowsort label-8209
SELECT DISTINCT COUNT( * ) + ( + 69 ) FROM tab0
----
72
skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT COUNT ( * ) + ( + 69 ) FROM tab0
----
72
query I rowsort
SELECT ( 88 ) FROM tab2
----
88
88
88
onlyif mysql # aggregate syntax:
query I rowsort label-8211
SELECT + COUNT( - col1 ) FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-8211
SELECT + COUNT ( - col1 ) FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 * 39 ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT + 67 + - col0 * col2 FROM tab2 WHERE NOT col1 IN ( col2 )
----
-2493
-4283
-991
query I rowsort
SELECT + col0 + + 72 AS col2 FROM tab0
----
159
169
87
onlyif mysql # aggregate syntax:
query I rowsort label-8216
SELECT MIN( DISTINCT + col0 ) FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-8216
SELECT MIN ( DISTINCT + col0 ) FROM tab1
----
51
query I rowsort
SELECT DISTINCT - col0 + + 89 FROM tab2
----
14
25
43
query I rowsort
SELECT - col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 * ( col1 * ( col2 ) ) AND 19
----
onlyif mysql # aggregate syntax:
query I rowsort label-8219
SELECT ALL + 89 + + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
89
skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + 89 + + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
89
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 - col2 * + 55 AS col0 FROM tab0
----
-2585
-5445
-550
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= ( + 38 * - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + 39 * + col2 AS col2 FROM tab0 AS cor0
----
1833
3861
390
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 95 IN ( - col0 )
----
query III rowsort
SELECT * FROM tab2 cor0 WHERE 47 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8227
SELECT + ( ( 99 ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
297
skipif mysql # not compatible
query I rowsort label-8227
SELECT + ( ( 99 ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
297
query I rowsort
SELECT - ( col1 ) * 98 AS col1 FROM tab2 AS cor0
----
-4998
-6566
-7546
query I rowsort
SELECT ( - 84 ) AS col1 FROM tab1
----
-84
-84
-84
onlyif mysql # aggregate syntax:
query I rowsort label-8230
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9
skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-8231
SELECT + MIN( DISTINCT + col1 ) * 30 col0 FROM tab0
----
30
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8231
SELECT + MIN ( DISTINCT + col1 ) * 30 col0 FROM tab0
----
30
onlyif mysql # aggregate syntax:
query I rowsort label-8232
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
-9
skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab2
----
-9
query I rowsort
SELECT 14 * - col1 - + col2 AS col0 FROM tab2
----
-1118
-737
-996
onlyif mysql # aggregate syntax:
query I rowsort label-8234
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT + - 27 + - ( + col1 ) * + col0 FROM tab1 AS cor0
----
-4304
-452
-741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 9 col2 FROM tab0 AS cor0
----
106
24
96
onlyif mysql # DIV for integer division:
query I rowsort label-8237
SELECT ALL 43 DIV 93 + - 4 FROM tab2 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL 43 / 93 + - 4 FROM tab2 AS cor0
----
-4
-4
-4
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 BETWEEN col0 * col0 AND 15
----
query I rowsort
SELECT DISTINCT 4 - col0 FROM tab1 AS cor0
----
-47
-81
-87
query I rowsort
SELECT ALL - col0 + + 46 AS col2 FROM tab1 AS cor0
----
-39
-45
-5
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8241
SELECT - - CAST( COUNT( * ) AS SIGNED ) + + 51 AS col1 FROM tab2 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-8241
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) + + 51 AS col1 FROM tab2 AS cor0
----
54
query I rowsort
SELECT + 80 + col2 AS col2 FROM tab1 AS cor0
----
139
148
176
query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND + ( col2 )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 85 + + col0 IN ( 2 )
----
query I rowsort
SELECT DISTINCT + 24 + col0 * col0 FROM tab0 AS cor0
----
249
7593
9433
query I rowsort
SELECT DISTINCT - col1 - 75 AS col0 FROM tab2 AS cor0
----
-126
-142
-152
query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 62 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8249
SELECT 50 * SUM( - 46 ) AS col1 FROM tab0
----
-6900
skipif mysql # not compatible
query I rowsort label-8249
SELECT 50 * SUM ( - 46 ) AS col1 FROM tab0
----
-6900
query III rowsort
SELECT * FROM tab0 WHERE ( + 88 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 * + col2 col2 FROM tab2
----
-1520
-2204
-874
query I rowsort
SELECT col0 * 90 FROM tab2
----
4140
5760
6750
query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL < 70
----
onlyif mysql # aggregate syntax:
query I rowsort label-8254
SELECT ALL + 5 * SUM( ALL col2 ) AS col2 FROM tab1
----
1115
skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + 5 * SUM ( ALL col2 ) AS col2 FROM tab1
----
1115
query I rowsort
SELECT ( + col1 ) FROM tab2 AS cor0 WHERE NOT 4 > - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-8256
SELECT + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
103
skipif mysql # not compatible
query I rowsort label-8256
SELECT + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
103
onlyif mysql # aggregate syntax:
query I rowsort label-8257
SELECT - COUNT( col2 ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-8257
SELECT - COUNT ( col2 ) FROM tab1
----
-3
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8259
SELECT ALL * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----
skipif mysql # not compatible
query III rowsort label-8259
SELECT ALL * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8261
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - + col0 IS NULL
----
skipif mysql # not compatible
query III rowsort label-8261
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * - + col0 IS NULL
----
query I rowsort
SELECT ALL 94 * - col1 FROM tab2 cor0
----
-4794
-6298
-7238
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8263
SELECT ALL MAX( - 93 ) DIV + MAX( + col2 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL MAX ( - 93 ) / + MAX ( + col2 ) FROM tab1 AS cor0
----
0
query II rowsort
SELECT col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8265
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - - col2 AND ( NULL )
----
0
skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - - col2 AND ( NULL )
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8266
SELECT - + ( MAX( - col1 ) ) * - 35 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-8266
SELECT - + ( MAX ( - col1 ) ) * - 35 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----
NULL
query I rowsort
SELECT + ( + 60 ) * - - 53 FROM tab0 AS cor0
----
3180
3180
3180
query I rowsort
SELECT - 76 * + 11 FROM tab1 cor0
----
-836
-836
-836
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( 32 * col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8270
SELECT MIN( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-8270
SELECT MIN ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-75
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8271
SELECT 39 col0 FROM tab1 AS cor0 WHERE NOT 99 * + CAST( NULL AS SIGNED ) * 71 IS NOT NULL
----
39
39
39
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8271
SELECT 39 col0 FROM tab1 AS cor0 WHERE NOT 99 * + CAST ( NULL AS INTEGER ) * 71 IS NOT NULL
----
39
39
39
query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + 12 ) IN ( col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8274
SELECT SUM( + + col2 ) AS col2 FROM tab0
----
156
skipif mysql # not compatible
query I rowsort label-8274
SELECT SUM ( + + col2 ) AS col2 FROM tab0
----
156
onlyif mysql # DIV for integer division:
query I rowsort label-8275
SELECT ALL - 5 + + - col0 DIV + col2 FROM tab1
----
-5
-6
-6
skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL - 5 + + - col0 / + col2 FROM tab1
----
-5
-6
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab1
----
63
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8277
SELECT DISTINCT + 72 + - - CAST( MIN( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
73
skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + 72 + - - CAST ( MIN ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
73
query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab0
----
162
2
42
onlyif mysql # aggregate syntax:
query I rowsort label-8279
SELECT + - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 cor0
----
-9
skipif mysql # not compatible
query I rowsort label-8279
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 cor0
----
-9
query I rowsort
SELECT DISTINCT col2 + + + col1 FROM tab0 AS cor0
----
100
128
31
onlyif mysql # aggregate syntax:
query I rowsort label-8281
SELECT - COUNT( * ) + + COUNT( * ) + + COUNT( ALL + 33 ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8281
SELECT - COUNT ( * ) + + COUNT ( * ) + + COUNT ( ALL + 33 ) AS col2 FROM tab1 AS cor0
----
3
query I rowsort
SELECT - - 75 + - col1 FROM tab1 AS cor0
----
28
61
70
query II rowsort
SELECT DISTINCT - - 71 + + - col0 AS col0, - col1 AS col2 FROM tab1 cor0
----
-14
-5
-20
-47
20
-14
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8284
SELECT ALL + - 74 + + + CAST( + + col0 AS SIGNED ) * + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
158875
18151
9335
skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL + - 74 + + + CAST ( + + col0 AS INTEGER ) * + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
158875
18151
9335
onlyif mysql # aggregate syntax:
query I rowsort label-8285
SELECT DISTINCT + 83 - + 56 * - + SUM( col2 ) AS col0 FROM tab2
----
6859
skipif mysql # not compatible
query I rowsort label-8285
SELECT DISTINCT + 83 - + 56 * - + SUM ( col2 ) AS col0 FROM tab2
----
6859
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 98 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-8287
SELECT DISTINCT - COUNT( DISTINCT 38 ) FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT - COUNT ( DISTINCT 38 ) FROM tab0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col1 FROM tab2 WHERE NOT - col2 * col0 >= NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8289
SELECT 29 / - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8289
SELECT 29 / - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-8290
SELECT DISTINCT - - 68 + + COUNT( ALL + col2 ), + 17 AS col1 FROM tab0 AS cor0
----
71
17
skipif mysql # not compatible
query II rowsort label-8290
SELECT DISTINCT - - 68 + + COUNT ( ALL + col2 ), + 17 AS col1 FROM tab0 AS cor0
----
71
17
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 41 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * - + 44 - col0 col0 FROM tab2 AS cor0
----
-148091
-23322
-70464
query I rowsort
SELECT 48 - col0 * + 49 FROM tab1 AS cor0
----
-2451
-4117
-4411
query I rowsort
SELECT DISTINCT + + col2 - - 26 AS col1 FROM tab1 AS cor0
----
122
85
94
onlyif mysql # aggregate syntax:
query I rowsort label-8295
SELECT + COUNT( * ) AS col0 FROM tab2, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-8295
SELECT + COUNT ( * ) AS col0 FROM tab2, tab0 AS cor0
----
9
query II rowsort
SELECT DISTINCT col2, 50 FROM tab2
----
23
50
40
50
58
50
onlyif mysql # aggregate syntax:
query I rowsort label-8297
SELECT ( + COUNT( * ) ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-8297
SELECT ( + COUNT ( * ) ) AS col2 FROM tab2
----
3
query II rowsort
SELECT + col0 AS col1, - 50 AS col2 FROM tab2
----
46
-50
64
-50
75
-50
query I rowsort
SELECT - 14 * col2 FROM tab1
----
-1344
-826
-952
query II rowsort
SELECT ALL col2 AS col2, col1 + - + col1 AS col1 FROM tab1
----
59
0
68
0
96
0
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-8301
SELECT - CAST( NULL AS SIGNED ), CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * 5 + + col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL
skipif mysql # not compatible
query II rowsort label-8301
SELECT - CAST ( NULL AS INTEGER ), CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * 5 + + col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL
query I rowsort
SELECT + 30 AS col0 FROM tab0
----
30
30
30
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 63 ) NOT BETWEEN ( + 84 ) AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + col1 * - col2 * + col2 AS col0 FROM tab0
----
-178929
-2100
-9801
query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( ( + 21 + - col1 + + + col2 ) NOT IN ( 89 ) )
----
query II rowsort
SELECT - col0 AS col0, + col1 FROM tab2
----
-46
51
-64
77
-75
67
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8307
SELECT DISTINCT + col2 * - CAST( 37 AS SIGNED ) * col0 AS col1 FROM tab2
----
-160950
-39146
-94720
skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + col2 * - CAST ( 37 AS INTEGER ) * col0 AS col1 FROM tab2
----
-160950
-39146
-94720
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - col2 * + + col0 + + 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8309
SELECT DISTINCT + MAX( DISTINCT - 39 ) * + 23 AS col1 FROM tab1 cor0
----
-897
skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + MAX ( DISTINCT - 39 ) * + 23 AS col1 FROM tab1 cor0
----
-897
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
query I rowsort
SELECT ALL col0 * - 17 AS col0 FROM tab0 AS cor0 WHERE NOT - 26 * - 92 * - 63 NOT IN ( - col1 )
----
query I rowsort
SELECT 6 * 35 AS col1 FROM tab0
----
210
210
210
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 17 NOT BETWEEN 53 AND ( - 15 )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab2 cor0
----
81
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE - col1 = - - 14 * + col0 * + col0 + + + col0 * + 10
----
onlyif mysql # DIV for integer division:
query I rowsort label-8317
SELECT 59 DIV - 14 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-8317
SELECT 59 / - 14 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-4
-4
-4
query I rowsort
SELECT + col2 + - 68 FROM tab1
----
-9
0
28
query I rowsort
SELECT ALL - 71 * 5 FROM tab2
----
-355
-355
-355
query III rowsort
SELECT * FROM tab2 WHERE 92 + - + col0 < col1 * + ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab1
----
196
2209
25
query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IS NULL
----
query I rowsort
SELECT DISTINCT + col2 + - + col2 AS col2 FROM tab0
----
0
query I rowsort
SELECT + col1 + - col0 * + 82 FROM tab1
----
-4168
-6965
-7415
onlyif mysql # aggregate syntax:
query I rowsort label-8326
SELECT ALL + MAX( DISTINCT + + col0 ) + MAX( DISTINCT + 19 ) AS col0 FROM tab2
----
94
skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + MAX ( DISTINCT + + col0 ) + MAX ( DISTINCT + 19 ) AS col0 FROM tab2
----
94
query I rowsort
SELECT DISTINCT - + 78 * + col1 FROM tab2 AS cor0
----
-3978
-5226
-6006
onlyif mysql # DIV for integer division:
query I rowsort label-8328
SELECT ALL 81 DIV - col1 + ( + 19 ) AS col1 FROM tab1 cor0
----
14
18
3
skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL 81 / - col1 + ( + 19 ) AS col1 FROM tab1 cor0
----
14
18
3
onlyif mysql # aggregate syntax:
query I rowsort label-8329
SELECT + MIN( ALL + + 55 ) FROM tab0 AS cor0
----
55
skipif mysql # not compatible
query I rowsort label-8329
SELECT + MIN ( ALL + + 55 ) FROM tab0 AS cor0
----
55
onlyif mysql # aggregate syntax:
query I rowsort label-8330
SELECT - - MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-8330
SELECT - - MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8332
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT - ( - col0 ) + + col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-8332
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT - ( - col0 ) + + col0 IS NOT NULL
----
0
query I rowsort
SELECT + + 44 * - col2 AS col0 FROM tab2 cor0
----
-1012
-1760
-2552
onlyif mysql # aggregate syntax:
query I rowsort label-8334
SELECT DISTINCT + ( + 46 ) - - MAX( - ( - - ( - 57 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
103
skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT + ( + 46 ) - - MAX ( - ( - - ( - 57 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
103
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - + col2 + - + col1 - + 95 FROM tab2 AS cor0
----
-169
-212
-220
query I rowsort
SELECT DISTINCT - + 97 + + 58 * + - col1 AS col0 FROM tab1 AS cor0
----
-2823
-387
-909
onlyif mysql # aggregate syntax:
query I rowsort label-8339
SELECT - MIN( - col2 ) FROM tab2 AS cor0
----
58
skipif mysql # not compatible
query I rowsort label-8339
SELECT - MIN ( - col2 ) FROM tab2 AS cor0
----
58
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8340
SELECT + 54 DIV + 88 * - COUNT( * ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8340
SELECT + 54 / + 88 * - COUNT ( * ) FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8341
SELECT + + COUNT( * ) col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8341
SELECT + + COUNT ( * ) col0 FROM tab2 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT + 71 AS col2, col2 AS col2 FROM tab1
----
71
59
71
68
71
96
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8344
SELECT ALL - SUM( - CAST( - col2 AS SIGNED ) ) col2, COUNT( * ) AS col0 FROM tab1
----
-223
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8344
SELECT ALL - SUM ( - CAST ( - col2 AS INTEGER ) ) col2, COUNT ( * ) AS col0 FROM tab1
----
-223
3
query I rowsort
SELECT ALL 23 * 6 AS col1 FROM tab0
----
138
138
138
onlyif mysql # aggregate syntax:
query I rowsort label-8346
SELECT + COUNT( * ) * + ( - COUNT( * ) ) col0 FROM tab2
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8346
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) col0 FROM tab2
----
-9
query I rowsort
SELECT - col1 * - + col0 AS col2 FROM tab2
----
2346
4928
5025
query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT 85 * col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8349
SELECT 18 DIV - col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8349
SELECT 18 / - col2 FROM tab0
----
-1
0
0
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8350
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN NULL AND - + 43
----
skipif mysql # not compatible
query III rowsort label-8350
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN NULL AND - + 43
----
query I rowsort
SELECT ALL - col1 * - - 59 AS col0 FROM tab1
----
-2773
-295
-826
onlyif mysql # aggregate syntax:
query I rowsort label-8352
SELECT 67 + COUNT( * ) * + - 84 AS col1 FROM tab1
----
-185
skipif mysql # not compatible
query I rowsort label-8352
SELECT 67 + COUNT ( * ) * + - 84 AS col1 FROM tab1
----
-185
query I rowsort
SELECT col0 + - col1 + - col1 FROM tab2 AS cor0
----
-56
-59
-90
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col1 FROM tab0 AS cor0
----
-35
-35
-35
onlyif mysql # aggregate syntax:
query I rowsort label-8356
SELECT ALL + + MAX( DISTINCT - - 45 ) FROM tab0 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL + + MAX ( DISTINCT - - 45 ) FROM tab0 AS cor0
----
45
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8357
SELECT + CAST( + + 43 AS SIGNED ) * - 34 FROM tab0 AS cor0
----
-1462
-1462
-1462
skipif mysql # not compatible
query I rowsort label-8357
SELECT + CAST ( + + 43 AS INTEGER ) * - 34 FROM tab0 AS cor0
----
-1462
-1462
-1462
onlyif mysql # aggregate syntax:
query I rowsort label-8358
SELECT ALL - 95 + - + ( + + COUNT( * ) ) * - + 48 col2 FROM tab1 AS cor0
----
49
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT ALL - 95 + - + ( + + COUNT ( * ) ) * - + 48 col2 FROM tab1 AS cor0
----
49
query I rowsort
SELECT DISTINCT + col0 * - - col2 FROM tab2 AS cor0
----
1058
2560
4350
query II rowsort
SELECT + - col0 AS col1, col1 + 24 * col0 AS col1 FROM tab1 AS cor0
----
-51
1238
-85
2045
-91
2231
query I rowsort
SELECT DISTINCT + - 9 + - - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
6
78
88
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8362
SELECT CAST( + + col2 AS SIGNED ) * 73 * + - 45 AS col1, - 97 - col0 AS col1 FROM tab1 AS cor0
----
-193815
-182
-223380
-188
-315360
-148
skipif mysql # not compatible
query II rowsort label-8362
SELECT CAST ( + + col2 AS INTEGER ) * 73 * + - 45 AS col1, - 97 - col0 AS col1 FROM tab1 AS cor0
----
-193815
-182
-223380
-188
-315360
-148
onlyif mysql # DIV for integer division:
query I rowsort label-8363
SELECT ALL + col0 * + col2 DIV - + col2 col0 FROM tab1 AS cor0
----
-51
-85
-91
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8363
SELECT ALL + col0 * + col2 / - + col2 col0 FROM tab1 AS cor0
----
-51
-85
-91
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT DISTINCT - 62 AS col0, col2 * - - col2 AS col2 FROM tab1 AS cor0
----
-62
3481
-62
4624
-62
9216
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-8366
SELECT DISTINCT col2 + col1 col1 FROM tab0 WHERE NOT ( CAST( ( + - CAST( NULL AS SIGNED ) ) AS DECIMAL ) NOT BETWEEN - col0 AND - col0 + + col2 + - - col2 + col0 )
----
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8366
SELECT DISTINCT col2 + col1 col1 FROM tab0 WHERE NOT ( CAST ( ( + - CAST ( NULL AS INTEGER ) ) AS REAL ) NOT BETWEEN - col0 AND - col0 + + col2 + - - col2 + col0 )
----
query I rowsort
SELECT DISTINCT - - col2 + + + col0 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + 46, + 54, + + 94 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + col2
----
onlyif mysql # aggregate syntax:
query II rowsort label-8369
SELECT ( + 29 ) AS col0, COUNT( * ) AS col0 FROM tab2
----
29
3
skipif mysql # not compatible
query II rowsort label-8369
SELECT ( + 29 ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
29
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + + col1 + ( + col1 ) col1 FROM tab0 WHERE 55 NOT BETWEEN + - col1 AND ( - - 72 + 61 )
----
query III rowsort
SELECT * FROM tab0 WHERE + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT 48 * - + 63 * + col1 + col2 FROM tab0
----
-244897
-2925
-63494
query II rowsort
SELECT DISTINCT col0 * col0 * - col2, col1 AS col1 FROM tab1
----
-249696
14
-426275
5
-563108
47
query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( 60 + + col0 ) <> + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8375
SELECT + ( - 10 ) * - 90 + + COUNT( * ) AS col2 FROM tab2
----
903
skipif mysql # not compatible
query I rowsort label-8375
SELECT + ( - 10 ) * - 90 + + COUNT ( * ) AS col2 FROM tab2
----
903
onlyif mysql # DIV for integer division:
query I rowsort label-8376
SELECT DISTINCT + col2 DIV 25 DIV - + col1 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT + col2 / 25 / - + col1 AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8377
SELECT ALL - MAX( + + col0 ) FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL - MAX ( + + col0 ) FROM tab2
----
-75
query I rowsort
SELECT - col1 * + + col0 AS col2 FROM tab1
----
-425
-4277
-714
query I rowsort
SELECT DISTINCT col1 + - + col1 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-8380
SELECT ALL - 56 AS col0, + 9 + + 39 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-56
51
skipif mysql # not compatible
query II rowsort label-8380
SELECT ALL - 56 AS col0, + 9 + + 39 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-56
51
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-8381
SELECT - 27 DIV MIN( DISTINCT + + col1 ), 69 AS col2 FROM tab1 cor0
----
-5
69
skipif mysql # not compatible
query II rowsort label-8381
SELECT - 27 / MIN ( DISTINCT + + col1 ), 69 AS col2 FROM tab1 cor0
----
-5
69
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query I rowsort label-8382
SELECT + col2 / + + 23 - - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8382
SELECT + col2 / + + 23 - - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL + col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8384
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 + + - CAST( NULL AS SIGNED ) + + col2 NOT BETWEEN ( NULL ) AND ( + col0 )
----
skipif mysql # not compatible
query III rowsort label-8384
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + - col0 + + - CAST ( NULL AS INTEGER ) + + col2 NOT BETWEEN ( NULL ) AND ( + col0 )
----
query I rowsort
SELECT DISTINCT 68 FROM tab2 cor0
----
68
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + col2 * col2 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 56 / + - 93 <= NULL
----
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab1 AS cor0
----
42
onlyif mysql # aggregate syntax:
query I rowsort label-8389
SELECT ALL SUM( ALL + col0 ) FROM tab0 AS cor0
----
199
skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199
onlyif mysql # aggregate syntax:
query I rowsort label-8390
SELECT + MAX( DISTINCT + 33 ) FROM tab2 AS cor0
----
33
skipif mysql # not compatible
query I rowsort label-8390
SELECT + MAX ( DISTINCT + 33 ) FROM tab2 AS cor0
----
33
query II rowsort
SELECT 17 * 49, + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8392
SELECT ALL + COUNT( * ) * - 21 FROM tab1
----
-63
skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + COUNT ( * ) * - 21 FROM tab1
----
-63
onlyif mysql # aggregate syntax:
query I rowsort label-8393
SELECT DISTINCT - MAX( + 63 ) AS col2 FROM tab2 cor0
----
-63
skipif mysql # not compatible
query I rowsort label-8393
SELECT DISTINCT - MAX ( + 63 ) AS col2 FROM tab2 cor0
----
-63
onlyif mysql # aggregate syntax:
query I rowsort label-8394
SELECT - SUM( DISTINCT - 70 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
70
skipif mysql # not compatible
query I rowsort label-8394
SELECT - SUM ( DISTINCT - 70 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
70
onlyif mysql # aggregate syntax:
query I rowsort label-8395
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 + - + 47 + + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col2 + col2 + - col1 - + 78 AS col1 FROM tab2 cor0
----
-29
-75
-83
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col1 + - col0 + + + col2 IS NULL
----
query I rowsort
SELECT + ( - 2 ) + - - 43 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT col0 * - + 45 FROM tab2 AS cor0
----
-2070
-2880
-3375
query I rowsort
SELECT DISTINCT col1 + ( + 36 ) + 19 FROM tab0 AS cor0
----
136
56
76
onlyif mysql # DIV for integer division:
query I rowsort label-8402
SELECT ALL col0 DIV col2 * ( + col0 ) AS col2 FROM tab1
----
0
85
91
skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL col0 / col2 * ( + col0 ) AS col2 FROM tab1
----
0
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-8403
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 78 AS col2 FROM tab2
----
46
78
64
78
75
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * - 84 AS col1, col0 * + col2 col2 FROM tab0
----
3948
705
8316
9603
840
870
query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
46
64
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab2 WHERE NOT NULL < + + 80
----
onlyif mysql # aggregate syntax:
query I rowsort label-8408
SELECT ALL + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3
query I rowsort
SELECT - 42 FROM tab2 AS cor0 WHERE - 70 <= - col0 / col0
----
-42
-42
-42
query I rowsort
SELECT - 60 - + 36 - - col1 AS col1 FROM tab0 AS cor0
----
-15
-75
-95
query I rowsort
SELECT + col0 - col1 - + 87 * + col1 + + col1 AS col1 FROM tab2 cor0
----
-4391
-5754
-6635
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 + + 37 >= - col0 / - col1
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - col1 col0 FROM tab0 AS cor0
----
-108
-96
-98
onlyif mysql # DIV for integer division:
query I rowsort label-8414
SELECT ALL - col2 DIV - col2 - + col1 AS col0 FROM tab1
----
-13
-4
-46
skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL - col2 / - col2 - + col1 AS col0 FROM tab1
----
-13
-4
-46
query I rowsort
SELECT ALL col2 * + 41 AS col0 FROM tab1
----
2419
2788
3936
query I rowsort
SELECT ALL 64 FROM tab1 AS cor0 WHERE NOT col2 + + + col0 IS NOT NULL
----
query I rowsort
SELECT + - 75 AS col2 FROM tab0 AS cor0
----
-75
-75
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-1
-1
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8419
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0 * - 25 * - - CAST( NULL AS SIGNED ) + - col0
----
skipif mysql # not compatible
query III rowsort label-8419
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col0 * - 25 * - - CAST ( NULL AS INTEGER ) + - col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-8420
SELECT DISTINCT col1 DIV col0 + 75 FROM tab0 AS cor0
----
75
80
skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT col1 / col0 + 75 FROM tab0 AS cor0
----
75
80
query I rowsort
SELECT DISTINCT col2 * + 79 + col1 AS col0 FROM tab0 AS cor0
----
3794
7822
811
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8422
SELECT + - 0 * - CAST( - - 19 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8422
SELECT + - 0 * - CAST ( - - 19 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab0 AS cor0 WHERE NOT - col1 IN ( + col1 )
----
66
66
66
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 - col0 AND + + col0
----
query II rowsort
SELECT + + col2, - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
-21
47
-81
99
-1
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab2 WHERE NOT 86 IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8429
SELECT CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
NULL
59
NULL
68
NULL
96
skipif mysql # not compatible
query II rowsort label-8429
SELECT CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1 WHERE NOT + col0 IS NULL
----
NULL
59
NULL
68
NULL
96
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8430
SELECT ALL - COUNT( * ) DIV + 74 FROM tab1 WHERE NULL < - 79
----
0
skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL - COUNT ( * ) / + 74 FROM tab1 WHERE NULL < - 79
----
0
query I rowsort
SELECT col1 * - 6 AS col0 FROM tab2
----
-306
-402
-462
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 42 col1, - 39 * - col2 AS col2 FROM tab0 AS cor0
----
42
1833
42
3861
42
390
onlyif mysql # DIV for integer division:
query I rowsort label-8434
SELECT - ( + + col2 ) DIV - col2 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8434
SELECT - ( + + col2 ) / - col2 AS col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8435
SELECT DISTINCT CAST( + 4 AS SIGNED ) FROM tab0 AS cor0
----
4
skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT CAST ( + 4 AS INTEGER ) FROM tab0 AS cor0
----
4
query I rowsort
SELECT ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99
query I rowsort
SELECT DISTINCT - col1 + + + ( + + 27 ) AS col2 FROM tab0
----
-54
26
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 86 col1 FROM tab1 AS cor0
----
145
154
182
query I rowsort
SELECT DISTINCT col0 + - + 10 AS col2 FROM tab0 AS cor0
----
5
77
87
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8441
SELECT ALL - CAST( NULL AS DECIMAL ) + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - CAST ( NULL AS REAL ) + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8442
SELECT + MIN( ALL - 91 ) AS col0 FROM tab0 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-8442
SELECT + MIN ( ALL - 91 ) AS col0 FROM tab0 AS cor0
----
-91
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8443
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + - 65 - - ( 91 ) + - - 8 FROM tab1
----
294
skipif mysql # not compatible
query I rowsort label-8443
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + - 65 - - ( 91 ) + - - 8 FROM tab1
----
294
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8444
SELECT DISTINCT * FROM tab1 WHERE NOT - 83 + + CAST( NULL AS DECIMAL ) - col2 - - - col2 + 98 + + - col2 * - ( - + col2 ) * 29 > NULL
----
skipif mysql # not compatible
query III rowsort label-8444
SELECT DISTINCT * FROM tab1 WHERE NOT - 83 + + CAST ( NULL AS REAL ) - col2 - - - col2 + 98 + + - col2 * - ( - + col2 ) * 29 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 - col1 * - col2 * - col1 col0 FROM tab2
----
-237226
-260428
-59889
query I rowsort
SELECT col2 - + - 77 FROM tab0
----
124
176
87
query III rowsort
SELECT * FROM tab0 WHERE - col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8448
SELECT ALL MIN( ALL - 97 ) AS col1 FROM tab1
----
-97
skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL MIN ( ALL - 97 ) AS col1 FROM tab1
----
-97
onlyif mysql # aggregate syntax:
query I rowsort label-8449
SELECT ALL + COUNT( * ) + + - COUNT( * ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL + COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab0
----
0
query I rowsort
SELECT col0 + - 9 FROM tab1
----
42
76
82
query II rowsort
SELECT ALL col0 AS col2, 48 * - + 42 AS col2 FROM tab2
----
46
-2016
64
-2016
75
-2016
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / - col0 <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab0
----
-1
-1
-1
query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
onlyif mysql # aggregate syntax:
query II rowsort label-8456
SELECT ALL 20 col0, COUNT( 28 ) - + MIN( col0 ) AS col0 FROM tab1
----
20
-48
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8456
SELECT ALL 20 col0, COUNT ( 28 ) - + MIN ( col0 ) AS col0 FROM tab1
----
20
-48
query II rowsort
SELECT + col2 AS col1, col1 + + + col0 AS col0 FROM tab1
----
59
90
68
138
96
65
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8458
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8458
SELECT ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-8460
SELECT ALL - 32 * ( + - ( col2 ) ) DIV - - 32 + + col0 + - + col1 DIV - 98 AS col1 FROM tab2 AS cor0
----
104
133
69
skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - 32 * ( + - ( col2 ) ) / - - 32 + + col0 + - + col1 / - 98 AS col1 FROM tab2 AS cor0
----
104
133
69
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8461
SELECT ALL 2 DIV - - MIN( + + 43 ) AS col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL 2 / - - MIN ( + + 43 ) AS col2 FROM tab1 cor0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-8462
SELECT ALL 19, COUNT( * ) AS col0 FROM tab0 AS cor0
----
19
3
skipif mysql # not compatible
query II rowsort label-8462
SELECT ALL 19, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
19
3
query I rowsort
SELECT - - 56 * - ( - 85 ) * - - col0 * + 44 + + - 10 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8464
SELECT + - COUNT( col2 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8464
SELECT + - COUNT ( col2 ) FROM tab0 AS cor0
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8465
SELECT ALL - + 55 AS col0, + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-55
NULL
skipif mysql # not compatible
query II rowsort label-8465
SELECT ALL - + 55 AS col0, + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-55
NULL
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8466
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8467
SELECT + COUNT( * ) DIV + + 49 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8467
SELECT + COUNT ( * ) / + + 49 FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8468
SELECT + MIN( - col0 ) FROM tab0
----
-97
skipif mysql # not compatible
query I rowsort label-8468
SELECT + MIN ( - col0 ) FROM tab0
----
-97
onlyif mysql # aggregate syntax:
query I rowsort label-8469
SELECT ALL SUM( ALL 64 ) * - ( 60 ) FROM tab0
----
-11520
skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL SUM ( ALL 64 ) * - ( 60 ) FROM tab0
----
-11520
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 AND - + col0 + - + col0
----
query I rowsort
SELECT - col2 * + col0 + + + 92 AS col2 FROM tab1
----
-4804
-4923
-6096
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8472
SELECT CAST( col1 AS SIGNED ) + - 63 FROM tab1
----
-16
-49
-58
skipif mysql # not compatible
query I rowsort label-8472
SELECT CAST ( col1 AS INTEGER ) + - 63 FROM tab1
----
-16
-49
-58
onlyif mysql # aggregate syntax:
query I rowsort label-8473
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-8473
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8474
SELECT DISTINCT - + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-3
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - col0 IS NULL
----
-23
-40
-58
query I rowsort
SELECT 80 * - col1 AS col1 FROM tab0
----
-1680
-6480
-80
query I rowsort
SELECT ALL 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8479
SELECT MAX( DISTINCT 90 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
93
skipif mysql # not compatible
query I rowsort label-8479
SELECT MAX ( DISTINCT 90 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 * 87 + col0 + + 42 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-8481
SELECT + 65 + - MAX( DISTINCT + 43 ) FROM tab0 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-8481
SELECT + 65 + - MAX ( DISTINCT + 43 ) FROM tab0 AS cor0
----
22
query I rowsort
SELECT ALL + + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-28
-37
-9
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8483
SELECT ALL + + AVG ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * - + col2, col0 * + col1 + - CAST( ( + 36 ) AS DECIMAL ), - + 69 - + + col0, - col1, - + 81 * + 51 )
----
NULL
skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL + + AVG ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * - + col2, col0 * + col1 + - CAST ( ( + 36 ) AS REAL ), - + 69 - + + col0, - col1, - + 81 * + 51 )
----
NULL
query II rowsort
SELECT ALL + col1 + + ( - + ( + + 68 ) ), col2 FROM tab2 AS cor0
----
-1
58
-17
23
9
40
query I rowsort
SELECT DISTINCT 59 - + 70 FROM tab1 AS cor0
----
-11
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-8486
SELECT ALL 19 - COUNT( * ) * + - ( + 68 ) - + - ( 95 ) DIV - COUNT( * ), + COUNT( * ) col0 FROM tab0
----
192
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8486
SELECT ALL 19 - COUNT ( * ) * + - ( + 68 ) - + - ( 95 ) / - COUNT ( * ), + COUNT ( * ) col0 FROM tab0
----
192
3
query I rowsort
SELECT ALL - col0 - - 80 FROM tab0
----
-17
-7
65
onlyif mysql # aggregate syntax:
query I rowsort label-8488
SELECT ALL - COUNT( ALL + col1 ) FROM tab1 WHERE NOT - col1 * - + 41 <> + col2
----
0
skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - COUNT ( ALL + col1 ) FROM tab1 WHERE NOT - col1 * - + 41 <> + col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8489
SELECT DISTINCT SUM( DISTINCT - ( + col2 ) ) AS col2 FROM tab2
----
-121
skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT SUM ( DISTINCT - ( + col2 ) ) AS col2 FROM tab2
----
-121
onlyif mysql # aggregate syntax:
query I rowsort label-8490
SELECT ALL COUNT( + col0 ) + + 66 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <= - col2 * 16
----
69
skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL COUNT ( + col0 ) + + 66 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 <= - col2 * 16
----
69
query I rowsort
SELECT - - col1 * + 6 + + 71 AS col0 FROM tab0 AS cor0
----
197
557
77
query I rowsort
SELECT ALL - 95 * col2 AS col1 FROM tab0 AS cor0
----
-4465
-9405
-950
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 51 * - 18 * 76
----
onlyif mysql # aggregate syntax:
query I rowsort label-8494
SELECT + COUNT( * ) * 35 * 9 AS col1 FROM tab2 AS cor0
----
945
skipif mysql # not compatible
query I rowsort label-8494
SELECT + COUNT ( * ) * 35 * 9 AS col1 FROM tab2 AS cor0
----
945
query I rowsort
SELECT DISTINCT + + 27 AS col1 FROM tab0 AS cor0
----
27
query II rowsort
SELECT ALL - + 14 / 5, col2 - - + 54 FROM tab2 WHERE + col1 <= - col0 * col1
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8497
SELECT ( + - 74 ) AS col2 FROM tab0 WHERE NOT - 62 >= 78 / - CAST( NULL AS SIGNED ) * - col2 * + col1
----
skipif mysql # not compatible
query I rowsort label-8497
SELECT ( + - 74 ) AS col2 FROM tab0 WHERE NOT - 62 >= 78 / - CAST ( NULL AS INTEGER ) * - col2 * + col1
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * + col2 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ( 24 ) FROM tab2
----
24
24
24
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / 77 - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT col2 AS col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14
query I rowsort
SELECT - + 0 * - - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + col0 * + - 32 AS col2 FROM tab2 AS cor0
----
-1472
-2048
-2400
onlyif mysql # aggregate syntax:
query I rowsort label-8504
SELECT DISTINCT + MIN( DISTINCT + - col1 ) col1 FROM tab0 AS cor0
----
-81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8504
SELECT DISTINCT + MIN ( DISTINCT + - col1 ) col1 FROM tab0 AS cor0
----
-81
query I rowsort
SELECT + - ( - + 23 ) + - col2 FROM tab0 cor0
----
-24
-76
13
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 15 * + 8 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col0 * + 31 AS col1 FROM tab1
----
1581
2635
2821
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-8508
SELECT DISTINCT - 1 + + CAST( col0 AS SIGNED ) DIV col1 DIV - col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - 1 + + CAST ( col0 AS INTEGER ) / col1 / - col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + col2 * + col2 + + col0 + 24 AS col2 FROM tab2 AS cor0
----
1688
3463
599
query I rowsort
SELECT col1 - + 97 + - + 73 FROM tab1 cor0
----
-123
-156
-165
query I rowsort
SELECT DISTINCT - 77 - - + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-176
-287
-3884
query II rowsort
SELECT ALL - col2 - 5, + col2 AS col2 FROM tab2 AS cor0
----
-28
23
-45
40
-63
58
query I rowsort
SELECT DISTINCT 2 - + col2 FROM tab2
----
-21
-38
-56
query III rowsort
SELECT * FROM tab1 WHERE NULL > + + col2
----
query II rowsort
SELECT DISTINCT + ( + 45 ) * + col1 AS col2, + col0 AS col1 FROM tab2
----
2295
46
3015
75
3465
64
query I rowsort
SELECT + 48 + + col1 AS col1 FROM tab2
----
115
125
99
query I rowsort
SELECT 94 + - + 73 FROM tab0
----
21
21
21
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8518
SELECT CAST( + + col2 AS SIGNED ) FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-8518
SELECT CAST ( + + col2 AS INTEGER ) FROM tab1
----
59
68
96
onlyif mysql # aggregate syntax:
query I rowsort label-8519
SELECT + MIN( ALL - col0 ) FROM tab2
----
-75
skipif mysql # not compatible
query I rowsort label-8519
SELECT + MIN ( ALL - col0 ) FROM tab2
----
-75
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8520
SELECT ALL ( + - CAST( + - col0 AS SIGNED ) ) col2, + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - + 32 IS NULL
----
46
NULL
64
NULL
75
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8520
SELECT ALL ( + - CAST ( + - col0 AS INTEGER ) ) col2, + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - + 32 IS NULL
----
46
NULL
64
NULL
75
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8521
SELECT + SUM( DISTINCT + ( - - col0 ) ) * + + COUNT( * ) AS col1 FROM tab1
----
681
skipif mysql # not compatible
query I rowsort label-8521
SELECT + SUM ( DISTINCT + ( - - col0 ) ) * + + COUNT ( * ) AS col1 FROM tab1
----
681
query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab1 cor0
----
-2
query I rowsort
SELECT 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + - col0 < ( col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8525
SELECT ALL CAST( NULL AS SIGNED ) * 82 col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8525
SELECT ALL CAST ( NULL AS INTEGER ) * 82 col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96
onlyif mysql # aggregate syntax:
query I rowsort label-8526
SELECT DISTINCT 86 * SUM( ALL - + col1 ) FROM tab0
----
-8858
skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT 86 * SUM ( ALL - + col1 ) FROM tab0
----
-8858
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 + + 28 AND - - 90 - - 97 * - 42
----
query I rowsort
SELECT DISTINCT + 24 AS col1 FROM tab1 cor0
----
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab0 AS cor0
----
49
query I rowsort
SELECT DISTINCT col0 * col2 + + 64 AS col0 FROM tab2 AS cor0 WHERE NOT col0 / + col0 IS NULL
----
1122
2624
4414
onlyif mysql # aggregate syntax:
query I rowsort label-8531
SELECT - 19 * MAX( - + col1 ) FROM tab1 AS cor0
----
95
skipif mysql # not compatible
query I rowsort label-8531
SELECT - 19 * MAX ( - + col1 ) FROM tab1 AS cor0
----
95
onlyif mysql # aggregate syntax:
query I rowsort label-8532
SELECT DISTINCT + - COUNT( * ) * - 64 FROM tab1 AS cor0
----
192
skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT + - COUNT ( * ) * - 64 FROM tab1 AS cor0
----
192
query I rowsort
SELECT + col1 * - 43 FROM tab2 AS cor0
----
-2193
-2881
-3311
query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col1 FROM tab1
----
2601
7225
8281
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col2 IS NOT NULL )
----
query I rowsort
SELECT - 86 * - 82 * - col0 + col2 AS col1 FROM tab2
----
-324369
-451288
-528842
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8537
SELECT - 21 + + SUM( col2 ) DIV - 85 AS col1 FROM tab2
----
-22
skipif mysql # not compatible
query I rowsort label-8537
SELECT - 21 + + SUM ( col2 ) / - 85 AS col1 FROM tab2
----
-22
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8538
SELECT + col2 + CAST( col0 AS SIGNED ) FROM tab0
----
196
62
97
skipif mysql # not compatible
query I rowsort label-8538
SELECT + col2 + CAST ( col0 AS INTEGER ) FROM tab0
----
196
62
97
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col1 IS NULL
----
query I rowsort
SELECT + 1 + - + 27 AS col0 FROM tab1
----
-26
-26
-26
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col2 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + 10 * - col1 col0 FROM tab2 AS cor0
----
-2626
-4866
-6295
query I rowsort
SELECT DISTINCT 60 + - col0 FROM tab1 AS cor0
----
-25
-31
9
query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR 21 IS NULL
----
query I rowsort
SELECT - - col0 * + col2 * - col2 + - 55 AS col1 FROM tab1 AS cor0
----
-295940
-420839
-470071
query I rowsort
SELECT - ( + 39 ) AS col0 FROM tab1 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ALL + 1 * - 16 AS col1 FROM tab2 AS cor0
----
-16
-16
-16
query I rowsort
SELECT + - col0 * + + col1 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, ( - col0 ) FROM tab0
----
1
-97
21
-87
81
-15
query I rowsort
SELECT DISTINCT + col0 + - - 31 * - col2 + + col1 + - + col2 FROM tab1
----
-1798
-2038
-3007
query I rowsort
SELECT DISTINCT - AVG ( - 87 ) AS col1 FROM tab2 AS cor0 WHERE NULL > col1
----
NULL
onlyif mysql # CAST syntax: SIGNED type: DECIMAL type:
query II rowsort label-8552
SELECT ALL - col0 - + + CAST( - - col2 AS SIGNED ) * + CAST( NULL AS DECIMAL ) - 14 * 55 AS col0, + 73 AS col2 FROM tab2 cor0
----
NULL
73
NULL
73
NULL
73
skipif mysql # not compatible
query II rowsort label-8552
SELECT ALL - col0 - + + CAST ( - - col2 AS INTEGER ) * + CAST ( NULL AS REAL ) - 14 * 55 AS col0, + 73 AS col2 FROM tab2 cor0
----
NULL
73
NULL
73
NULL
73
query I rowsort
SELECT DISTINCT - - 84 + - - col2 - + 15 AS col1 FROM tab2 AS cor0
----
109
127
92
onlyif mysql # aggregate syntax:
query I rowsort label-8554
SELECT ( + - COUNT( * ) ) FROM tab0 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8554
SELECT ( + - COUNT ( * ) ) FROM tab0 cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-8555
SELECT DISTINCT col2 DIV 28 * + CAST( - 17 AS SIGNED ) * + - 58 * 89 - col2 FROM tab1 AS cor0
----
175440
175449
263166
skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT col2 / 28 * + CAST ( - 17 AS INTEGER ) * + - 58 * 89 - col2 FROM tab1 AS cor0
----
175440
175449
263166
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + col1 <> + col1 * - + 88 + - + 81
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8557
SELECT * FROM tab1 WHERE NOT CAST( + - col0 AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-8557
SELECT * FROM tab1 WHERE NOT CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8558
SELECT ALL MAX( ALL - + 69 ) AS col0 FROM tab1
----
-69
skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL MAX ( ALL - + 69 ) AS col0 FROM tab1
----
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * + col1 col0, col2 AS col2 FROM tab2
----
-2346
23
-4928
40
-5025
58
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8560
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col0 / + + col1, col2 * + col0, 91 / CAST( NULL AS SIGNED ) + - 44 - + col1 )
----
skipif mysql # not compatible
query III rowsort label-8560
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col0 / + + col1, col2 * + col0, 91 / CAST ( NULL AS INTEGER ) + - 44 - + col1 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( 95 ) IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 * + ( 33 ) * + - col2 BETWEEN col0 AND ( + + 81 * 63 * - - col2 + + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8563
SELECT DISTINCT SUM( ALL + col1 ) AS col0 FROM tab0
----
103
skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT SUM ( ALL + col1 ) AS col0 FROM tab0
----
103
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 IS NOT NULL
----
query I rowsort
SELECT 48 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
48
48
48
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8566
SELECT - + ( - - CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
1
21
81
skipif mysql # not compatible
query I rowsort label-8566
SELECT - + ( - - CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
1
21
81
onlyif mysql # aggregate syntax:
query I rowsort label-8567
SELECT ALL - MAX( ALL - col2 ) FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - MAX ( ALL - col2 ) FROM tab2 AS cor0
----
23
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + ( 51 ) ) NOT BETWEEN ( NULL ) AND NULL
----
query II rowsort
SELECT - 46 * - 2, + col0 * + - 94 - - 81 AS col2 FROM tab0 AS cor0
----
92
-1329
92
-8097
92
-9037
query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
54 values hashing to 375f372843089b03f23b00160007527a
query I rowsort
SELECT - - 91 * - + col2 * - - 75 * - 30 FROM tab2 AS cor0
----
11875500
4709250
8190000
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 24 + + - 52 NOT IN ( - col0 / + col0, + col2, - col2 / col2 * - + 11 / - col1, - 46, + ( + col0 ) / + 51 + + + 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + 41 * + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-120
-1836
-523
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8574
SELECT + CAST( - - 29 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST( 56 AS SIGNED ) <= + col2 + - col0 + col0 + - - ( - col0 )
----
29
29
29
skipif mysql # not compatible
query I rowsort label-8574
SELECT + CAST ( - - 29 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( 56 AS INTEGER ) <= + col2 + - col0 + col0 + - - ( - col0 )
----
29
29
29
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + ( - - col0 ) * + + 15 IS NOT NULL OR + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + + 64 + 20
----
query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8578
SELECT ALL + + COUNT( * ) FROM tab0 WHERE - - col2 <= 47
----
2
skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE - - col2 <= 47
----
2
onlyif mysql # aggregate syntax:
query I rowsort label-8579
SELECT DISTINCT 30 * - COUNT( + - col1 ) AS col1 FROM tab1
----
-90
skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT 30 * - COUNT ( + - col1 ) AS col1 FROM tab1
----
-90
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8580
SELECT 81 * - - 23 + + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8580
SELECT 81 * - - 23 + + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col1 col0 FROM tab0 AS cor0
----
-66
66
96
query I rowsort
SELECT - 45 * col1 - + 28 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 53
----
onlyif mysql # DIV for integer division:
query II rowsort label-8583
SELECT ALL col2 + col0 * + + col1 DIV - + col1, + col1 AS col1 FROM tab2 AS cor0
----
-17
67
-23
51
-24
77
skipif mysql # not compatible
query II rowsort label-8583
SELECT ALL col2 + col0 * + + col1 / - + col1, + col1 AS col1 FROM tab2 AS cor0
----
-17
67
-23
51
-24
77
query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT + col1 * + 25 FROM tab2
----
1275
1675
1925
onlyif mysql # aggregate syntax:
query I rowsort label-8586
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-8586
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * + + col2 col0 FROM tab0
----
3290
6930
700
query I rowsort
SELECT + - col2 - - ( + - ( 36 ) ) - 32 - - col1 FROM tab2 AS cor0
----
-31
-40
-59
query I rowsort
SELECT - - col0 * + - 63 AS col0 FROM tab0 cor0
----
-5481
-6111
-945
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL - 87 AS col1, - col0 AS col1 FROM tab0
----
-87
-15
-87
-87
-87
-97
query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE NOT - 45 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 47 IN ( - 15, - col2, + 6 )
----
15
81
47
query II rowsort
SELECT - col0 AS col1, - col2 FROM tab2
----
-46
-23
-64
-40
-75
-58
query II rowsort
SELECT DISTINCT + 50 AS col2, + col2 * + 2 FROM tab1
----
50
118
50
136
50
192
onlyif mysql # aggregate syntax:
query I rowsort label-8596
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + 57 * - + 51 + col0 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 * + + 57 * - + 51 + col0 IS NOT NULL
----
0
onlyif mysql # DIV for integer division:
query I rowsort label-8597
SELECT + col2 DIV + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
11
6
skipif mysql # not compatible
query I rowsort label-8597
SELECT + col2 / + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
11
6
onlyif mysql # aggregate syntax:
query I rowsort label-8598
SELECT DISTINCT ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
onlyif mysql # DIV for integer division:
query I rowsort label-8599
SELECT + 89 DIV - col2 AS col1 FROM tab2
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-8599
SELECT + 89 / - col2 AS col1 FROM tab2
----
-1
-2
-3
onlyif mysql # aggregate syntax:
query I rowsort label-8600
SELECT + COUNT( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-8600
SELECT + COUNT ( * ) FROM tab0 WHERE NOT - - col1 IS NOT NULL
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8601
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE col2 + - 97 NOT BETWEEN + col1 AND - - CAST( NULL AS SIGNED )
----
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE col2 + - 97 NOT BETWEEN + col1 AND - - CAST ( NULL AS INTEGER )
----
NULL
NULL
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8602
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 + + + col2 * - CAST( NULL AS DECIMAL )
----
skipif mysql # not compatible
query III rowsort label-8602
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 + + + col2 * - CAST ( NULL AS REAL )
----
query I rowsort
SELECT ALL - - 74 FROM tab2 cor0
----
74
74
74
query I rowsort
SELECT ALL col0 + - 66 * - col2 FROM tab2 AS cor0
----
1564
2704
3903
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( + 42 * col0, + col0 )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8606
SELECT + - COUNT( * ) + + CAST( + 1 AS SIGNED ) FROM tab1 cor0 WHERE + col1 IS NULL
----
1
skipif mysql # not compatible
query I rowsort label-8606
SELECT + - COUNT ( * ) + + CAST ( + 1 AS INTEGER ) FROM tab1 cor0 WHERE + col1 IS NULL
----
1
query I rowsort
SELECT - col2 * col2 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1587
-4160
-7714
query II rowsort
SELECT col0 + - col2 + + ( + + 26 ) AS col2, col2 AS col2 FROM tab1
----
-19
96
49
68
52
59
query I rowsort
SELECT 75 + col0 AS col1 FROM tab0
----
162
172
90
query I rowsort
SELECT + 42 * + + col2 * - 80 + 58 AS col2 FROM tab0
----
-157862
-332582
-33542
query III rowsort
SELECT * FROM tab2 WHERE col0 - - col0 IS NULL
----
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + + col2 col1 FROM tab0
----
115
26
63
onlyif mysql # DIV for integer division:
query I rowsort label-8614
SELECT ( + col2 ) * + col0 + col1 DIV + + 55 FROM tab0
----
706
870
9603
skipif mysql # not compatible
query I rowsort label-8614
SELECT ( + col2 ) * + col0 + col1 / + + 55 FROM tab0
----
706
870
9603
query II rowsort
SELECT ALL + 35 + + 0 + - col1 AS col0, col1 + + col2 AS col0 FROM tab0
----
-46
128
14
31
34
100
query I rowsort
SELECT ALL ( 14 ) + + - col1 * 33 + col1 AS col0 FROM tab2
----
-1618
-2130
-2450
query II rowsort
SELECT ALL - - 40 AS col1, - col0 FROM tab2 AS cor0
----
40
-46
40
-64
40
-75
query I rowsort
SELECT ALL + - 22 + + 49 FROM tab1 AS cor0
----
27
27
27
onlyif mysql # aggregate syntax:
query I rowsort label-8619
SELECT + COUNT( * ) AS col0 FROM tab2, tab2 cor0
----
9
skipif mysql # not compatible
query I rowsort label-8619
SELECT + COUNT ( * ) AS col0 FROM tab2, tab2 cor0
----
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 - - 30 col2 FROM tab2, tab2 AS cor0
----
82
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col0 ) * col1 - - col2 IS NULL
----
query I rowsort
SELECT + 62 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = + 66
----
query I rowsort
SELECT - 37 - - 0 AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT DISTINCT + + 18 * + - col1 AS col2 FROM tab0 cor0
----
-1458
-18
-378
query I rowsort
SELECT ALL - - col0 * col0 * - - col0 AS col0 FROM tab2 AS cor0
----
262144
421875
97336
query I rowsort
SELECT DISTINCT + ( - col0 ) * - - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025
onlyif mysql # DIV for integer division:
query II rowsort label-8628
SELECT DISTINCT + + col0 DIV - + 67 AS col0, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51
skipif mysql # not compatible
query II rowsort label-8628
SELECT DISTINCT + + col0 / - + 67 AS col0, col0 FROM tab1 AS cor0
----
-1
85
-1
91
0
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 * col1 + + 17 col0 FROM tab2 AS cor0
----
2873
3769
4329
onlyif mysql # aggregate syntax:
query I rowsort label-8630
SELECT - SUM( 37 ) AS col1 FROM tab2 AS cor0
----
-111
skipif mysql # not compatible
query I rowsort label-8630
SELECT - SUM ( 37 ) AS col1 FROM tab2 AS cor0
----
-111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 col1 FROM tab2 AS cor0
----
27
query I rowsort
SELECT ALL + ( - ( + col2 ) ) AS col2 FROM tab1
----
-59
-68
-96
query I rowsort
SELECT DISTINCT - ( + + 54 ) AS col2 FROM tab0
----
-54
query I rowsort
SELECT col0 * col2 FROM tab1 WHERE NOT + 75 >= col1 + + - col0
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 79 IS NOT NULL )
----
query I rowsort
SELECT DISTINCT + col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97
onlyif mysql # DIV for integer division:
query I rowsort label-8637
SELECT ALL col1 DIV + 1 FROM tab2 AS cor0
----
51
67
77
skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL col1 / + 1 FROM tab2 AS cor0
----
51
67
77
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8638
SELECT DISTINCT + - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT + - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( 76 ) FROM tab2 cor0
----
76
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-8640
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) AS col2, - ( col1 ) AS col1, + 30 FROM tab0
----
9 values hashing to d4f304d9f3e7375df5172a386e803649
skipif mysql # not compatible
query III rowsort label-8640
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) AS col2, - ( col1 ) AS col1, + 30 FROM tab0
----
9 values hashing to d4f304d9f3e7375df5172a386e803649
query III rowsort
SELECT col2, col2 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
9 values hashing to f4dee76e9f90f64327391a2e6f777f7e
query II rowsort
SELECT + + 66 * 70 AS col2, - 83 AS col0 FROM tab2 AS cor0
----
4620
-83
4620
-83
4620
-83
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8643
SELECT ALL - COUNT( ALL + 58 ) + + 53 + - SUM( ALL col2 ) + + - COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-164
skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL - COUNT ( ALL + 58 ) + + 53 + - SUM ( ALL col2 ) + + - COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-164
query I rowsort
SELECT DISTINCT + 3 * + col0 + - col2 FROM tab2 AS cor0
----
115
152
167
query I rowsort
SELECT DISTINCT - - ( - 12 ) FROM tab0 AS cor0
----
-12
onlyif mysql # aggregate syntax:
query I rowsort label-8646
SELECT MIN( ALL + - col0 ) FROM tab2 AS cor0
----
-75
skipif mysql # not compatible
query I rowsort label-8646
SELECT MIN ( ALL + - col0 ) FROM tab2 AS cor0
----
-75
query I rowsort
SELECT DISTINCT - + 57 FROM tab1 cor0
----
-57
query I rowsort
SELECT ALL - 73 * + col0 + + - col0 + col2 FROM tab1 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8649
SELECT ALL - ( - SUM( + col2 ) ) AS col0 FROM tab1
----
223
skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL - ( - SUM ( + col2 ) ) AS col0 FROM tab1
----
223
query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col2 FROM tab0
----
15
87
97
query I rowsort
SELECT + 89 + - 35 FROM tab2
----
54
54
54
onlyif mysql # aggregate syntax:
query I rowsort label-8652
SELECT + SUM( DISTINCT + - 51 ) * - 31 AS col2 FROM tab0, tab0 AS cor0
----
1581
skipif mysql # not compatible
query I rowsort label-8652
SELECT + SUM ( DISTINCT + - 51 ) * - 31 AS col2 FROM tab0, tab0 AS cor0
----
1581
query I rowsort
SELECT DISTINCT 77 + - - col1 * col0 FROM tab1
----
4354
502
791
query I rowsort
SELECT 22 - - col2 FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT col1 + 51 FROM tab1
----
56
65
98
query I rowsort
SELECT ALL - col0 + + - 99 + + - 88 AS col2 FROM tab0 cor0
----
-202
-274
-284
onlyif mysql # aggregate syntax:
query I rowsort label-8657
SELECT + + COUNT( * ) + - - 46 AS col1 FROM tab1 AS cor0
----
49
skipif mysql # not compatible
query I rowsort label-8657
SELECT + + COUNT ( * ) + - - 46 AS col1 FROM tab1 AS cor0
----
49
query I rowsort
SELECT DISTINCT + + col1 + + - col1 AS col1 FROM tab0 AS cor0 WHERE - col1 * + col2 IS NOT NULL
----
0
query I rowsort
SELECT ALL + + col2 * + col0 + + col0 + - - col1 FROM tab0 AS cor0
----
801
9701
978
onlyif mysql # aggregate syntax:
query I rowsort label-8660
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL = - 65 * + 39 * - - col0 * + 77
----
0
skipif mysql # not compatible
query I rowsort label-8660
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL = - 65 * + 39 * - - col0 * + 77
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-8661
SELECT COUNT( * ), - COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8661
SELECT COUNT ( * ), - COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + col0 col2 FROM tab2 AS cor0
----
2852
3968
4650
query I rowsort
SELECT ( - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 8
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * ( - 72 ) = NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8665
SELECT ALL - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
query I rowsort
SELECT - ( - - 73 ) AS col2 FROM tab1 AS cor0
----
-73
-73
-73
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) + - - 79 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT + + col2, - col1 * 1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= 59
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8670
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab1
----
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8671
SELECT ALL - - 56 AS col1 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col1
----
skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL - - 56 AS col1 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col1
----
onlyif mysql # aggregate syntax:
query I rowsort label-8672
SELECT ALL + ( + - COUNT( * ) ) * - 97 AS col1 FROM tab0
----
291
skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL + ( + - COUNT ( * ) ) * - 97 AS col1 FROM tab0
----
291
onlyif mysql # aggregate syntax:
query I rowsort label-8673
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) + - - COUNT( * ) col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8673
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) + - - COUNT ( * ) col0 FROM tab2 AS cor0
----
3
query II rowsort
SELECT DISTINCT 9 * + col1 + + col1 * + 42 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
2397
68
255
59
714
96
query I rowsort
SELECT ALL - 38 AS col1 FROM tab2 AS cor0
----
-38
-38
-38
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-8677
SELECT DISTINCT - + COUNT( * ), + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
84
skipif mysql # not compatible
query II rowsort label-8677
SELECT DISTINCT - + COUNT ( * ), + 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
84
query I rowsort
SELECT DISTINCT col2 * - + 86 FROM tab0
----
-4042
-8514
-860
onlyif mysql # aggregate syntax:
query I rowsort label-8679
SELECT ALL + - 8 + COUNT( * ) FROM tab0 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + - 8 + COUNT ( * ) FROM tab0 AS cor0
----
-5
query I rowsort
SELECT DISTINCT col2 + - 40 FROM tab2 AS cor0
----
-17
0
18
query I rowsort
SELECT DISTINCT - - col2 + 16 AS col1 FROM tab1 AS cor0
----
112
75
84
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + + col2 IS NULL
----
query I rowsort
SELECT - - ( + - 13 ) * - - ( 85 ) + - ( - - ( - col1 ) ) FROM tab0 AS cor0
----
-1024
-1084
-1104
query I rowsort
SELECT DISTINCT + 87 * - 59 + + 18 + + col1 FROM tab0 AS cor0
----
-5034
-5094
-5114
query I rowsort
SELECT col0 + + 61 FROM tab0
----
148
158
76
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-8686
SELECT + 66 * + CAST( NULL AS DECIMAL ) * + 99 * - col1 AS col0, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77
skipif mysql # not compatible
query II rowsort label-8686
SELECT + 66 * + CAST ( NULL AS REAL ) * + 99 * - col1 AS col0, + col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77
query I rowsort
SELECT col1 * 33 FROM tab1
----
1551
165
462
onlyif mysql # aggregate syntax:
query I rowsort label-8688
SELECT DISTINCT + COUNT( * ) * - + 51 FROM tab1
----
-153
skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT + COUNT ( * ) * - + 51 FROM tab1
----
-153
onlyif mysql # aggregate syntax:
query I rowsort label-8689
SELECT DISTINCT + ( - COUNT( * ) ) + 10 AS col1 FROM tab2
----
7
skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + ( - COUNT ( * ) ) + 10 AS col1 FROM tab2
----
7
query I rowsort
SELECT - 52 FROM tab1 WHERE + col2 + + col0 - - - 91 / 86 NOT BETWEEN - col2 AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT DISTINCT ( 66 ) FROM tab1 AS cor0
----
66
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-8693
SELECT col0 DIV - col1 + col0 * CAST( - - col0 AS SIGNED ) - + col1 * - + 27 col0 FROM tab2 cor0
----
3493
6175
7433
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8693
SELECT col0 / - col1 + col0 * CAST ( - - col0 AS INTEGER ) - + col1 * - + 27 col0 FROM tab2 cor0
----
3493
6175
7433
query I rowsort
SELECT + - ( - 90 ) - 51 * col1 * - 72 FROM tab1 AS cor0
----
172674
18450
51498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 17 col2, + 7 AS col2 FROM tab2 AS cor0
----
17
7
17
7
17
7
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8697
SELECT - MAX( ALL + col0 ) * - 29 AS col2 FROM tab2 AS cor0
----
2175
skipif mysql # not compatible
query I rowsort label-8697
SELECT - MAX ( ALL + col0 ) * - 29 AS col2 FROM tab2 AS cor0
----
2175
query II rowsort
SELECT + col1 * col0 AS col2, 60 AS col0 FROM tab2 AS cor0
----
2346
60
4928
60
5025
60
query I rowsort
SELECT ( + + col1 ) FROM tab1 AS cor0
----
14
47
5
query I rowsort
SELECT DISTINCT + + 17 FROM tab0 cor0
----
17
onlyif mysql # DIV for integer division:
query I rowsort label-8701
SELECT - - 82 DIV + ( + col0 ) + 87 FROM tab2 AS cor0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-8701
SELECT - - 82 / + ( + col0 ) + 87 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT col2 * + col2 * 81 * + 18 AS col0 FROM tab0 AS cor0
----
14289858
145800
3220722
query I rowsort
SELECT + 62 AS col2 FROM tab1 AS cor0
----
62
62
62
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8704
SELECT ALL - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8704
SELECT ALL - - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query II rowsort
SELECT ALL + - col1, - ( + - 57 ) * - + col0 FROM tab1 WHERE NULL <= NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8706
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 28 * - + 45 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT CAST ( NULL AS REAL ) * - 28 * - + 45 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query II rowsort label-8707
SELECT COUNT( * ), - 4 AS col2 FROM tab1
----
3
-4
skipif mysql # not compatible
query II rowsort label-8707
SELECT COUNT ( * ), - 4 AS col2 FROM tab1
----
3
-4
onlyif mysql # aggregate syntax:
query I rowsort label-8708
SELECT ALL + SUM( + 30 ) AS col2 FROM tab0
----
90
skipif mysql # not compatible
query I rowsort label-8708
SELECT ALL + SUM ( + 30 ) AS col2 FROM tab0
----
90
onlyif mysql # DIV for integer division:
query I rowsort label-8709
SELECT + 46 DIV + 29 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8709
SELECT + 46 / + 29 FROM tab2
----
1
1
1
onlyif mysql # aggregate syntax:
query I rowsort label-8710
SELECT + MAX( + 59 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-8710
SELECT + MAX ( + 59 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8711
SELECT - MIN( - + 68 ) FROM tab2
----
68
skipif mysql # not compatible
query I rowsort label-8711
SELECT - MIN ( - + 68 ) FROM tab2
----
68
onlyif mysql # aggregate syntax:
query I rowsort label-8712
SELECT DISTINCT COUNT( - ( - col0 ) ) * + - 47 * + COUNT( * ) FROM tab2
----
-423
skipif mysql # not compatible
query I rowsort label-8712
SELECT DISTINCT COUNT ( - ( - col0 ) ) * + - 47 * + COUNT ( * ) FROM tab2
----
-423
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8713
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-8713
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ALL ( - 55 ) FROM tab0
----
-55
-55
-55
query I rowsort
SELECT ALL - ( - - 22 ) FROM tab2 AS cor0
----
-22
-22
-22
onlyif mysql # aggregate syntax:
query I rowsort label-8716
SELECT 58 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-174
skipif mysql # not compatible
query I rowsort label-8716
SELECT 58 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-174
onlyif mysql # aggregate syntax:
query I rowsort label-8717
SELECT DISTINCT - - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-8717
SELECT DISTINCT - - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9
query I rowsort
SELECT col0 + + 12 FROM tab0
----
109
27
99
query I rowsort
SELECT 22 + - 25 AS col2 FROM tab2
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 74 col2 FROM tab0
----
3478
7326
740
onlyif mysql # aggregate syntax:
query I rowsort label-8721
SELECT ALL SUM( DISTINCT + 44 ) AS col2 FROM tab2
----
44
skipif mysql # not compatible
query I rowsort label-8721
SELECT ALL SUM ( DISTINCT + 44 ) AS col2 FROM tab2
----
44
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8722
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8722
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab0
----
47
query I rowsort
SELECT - 2 + - col1 FROM tab0
----
-23
-3
-83
query I rowsort
SELECT ALL 92 AS col1 FROM tab2 WHERE NOT ( 91 + - col1 ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8726
SELECT ALL + col0 - col1 AS col0 FROM tab1 WHERE NOT ( CAST( - 11 AS SIGNED ) ) IS NULL
----
37
44
80
skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + col0 - col1 AS col0 FROM tab1 WHERE NOT ( CAST ( - 11 AS INTEGER ) ) IS NULL
----
37
44
80
onlyif mysql # aggregate syntax:
query I rowsort label-8727
SELECT ALL 91 * - COUNT( * ) FROM tab1
----
-273
skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL 91 * - COUNT ( * ) FROM tab1
----
-273
query I rowsort
SELECT ALL - 98 * - col2 FROM tab1
----
5782
6664
9408
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8729
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif mysql # not compatible
query III rowsort label-8729
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8730
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT NULL <= col2
----
0
skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT NULL <= col2
----
0
query I rowsort
SELECT + col2 + - 35 * - col1 AS col1 FROM tab0
----
134
2882
745
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / col0 > col2 * col1 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8733
SELECT COUNT( * ) AS col2 FROM tab0 WHERE 88 + col1 IN ( - 72 + - 99 * + col2 )
----
0
skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE 88 + col1 IN ( - 72 + - 99 * + col2 )
----
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8734
SELECT + col2 FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) + - 9 ) < - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query I rowsort label-8734
SELECT + col2 FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) + - 9 ) < - CAST ( NULL AS INTEGER )
----
query I rowsort
SELECT ( 79 ) AS col1 FROM tab1 WHERE NOT NULL = ( col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8736
SELECT ALL - 39 * - SUM( - col0 ) AS col0 FROM tab0
----
-7761
skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - 39 * - SUM ( - col0 ) AS col0 FROM tab0
----
-7761
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8737
SELECT CAST( col0 AS SIGNED ) col2 FROM tab0
----
15
87
97
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8737
SELECT CAST ( col0 AS INTEGER ) col2 FROM tab0
----
15
87
97
query I rowsort
SELECT + 82 - + col1 AS col1 FROM tab1
----
35
68
77
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8740
SELECT DISTINCT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) < NULL
----
skipif mysql # not compatible
query III rowsort label-8740
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8741
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( col1 ) IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( col1 ) IS NOT NULL
----
3
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - col2 BETWEEN + col1 AND + col0
----
query I rowsort
SELECT 31 * ( - 0 * col0 ) FROM tab0
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8744
SELECT - 51 * ( - COUNT( DISTINCT col0 ) DIV 17 ) FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-8744
SELECT - 51 * ( - COUNT ( DISTINCT col0 ) / 17 ) FROM tab2
----
0
query I rowsort
SELECT ( ( + col1 ) ) * + col0 FROM tab1
----
425
4277
714
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8746
SELECT ALL CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
59
68
96
skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
59
68
96
query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91
onlyif mysql # aggregate syntax:
query I rowsort label-8748
SELECT ALL + MIN( + col0 ) FROM tab2 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + MIN ( + col0 ) FROM tab2 AS cor0
----
46
query I rowsort
SELECT 14 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND col1
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + 19 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-8751
SELECT ALL + 29 DIV col2 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL + 29 / col2 FROM tab2 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col2 FROM tab1 AS cor0
----
-15
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-8753
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + 34 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # aggregate syntax:
query I rowsort label-8756
SELECT - MIN( ALL + ( - 88 ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
88
skipif mysql # not compatible
query I rowsort label-8756
SELECT - MIN ( ALL + ( - 88 ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
88
onlyif mysql # aggregate syntax:
query I rowsort label-8757
SELECT COUNT( - col1 ) AS col0 FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-8757
SELECT COUNT ( - col1 ) AS col0 FROM tab0
----
3
query I rowsort
SELECT DISTINCT - 8 * - col0 AS col2 FROM tab0
----
120
696
776
query I rowsort
SELECT col1 * - 59 FROM tab2
----
-3009
-3953
-4543
onlyif mysql # aggregate syntax:
query I rowsort label-8760
SELECT DISTINCT + SUM( ALL 77 ) AS col0 FROM tab1
----
231
skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT + SUM ( ALL 77 ) AS col0 FROM tab1
----
231
query I rowsort
SELECT 2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8762
SELECT + COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT 42 * - ( - ( + col2 ) ) < col2 * - col0 + col0 * - 76
----
0
skipif mysql # not compatible
query I rowsort label-8762
SELECT + COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT 42 * - ( - ( + col2 ) ) < col2 * - col0 + col0 * - 76
----
0
query I rowsort
SELECT ALL - col0 * 53 AS col1 FROM tab0 AS cor0 WHERE - col2 / col0 NOT BETWEEN NULL AND - col0
----
-4611
-5141
-795
query I rowsort
SELECT 75 * + 24 FROM tab1 AS cor0
----
1800
1800
1800
query I rowsort
SELECT ALL + + ( + ( 96 ) ) FROM tab0 AS cor0
----
96
96
96
onlyif mysql # aggregate syntax:
query I rowsort label-8766
SELECT ALL - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8766
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 1 >= ( ( col1 ) + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 52 >= ( 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8769
SELECT ALL SUM( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL SUM ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
223
onlyif mysql # aggregate syntax:
query I rowsort label-8770
SELECT + COUNT( * ) AS col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
query I rowsort label-8770
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0
----
3
query I rowsort
SELECT - 50 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + ( - col0 ) * + col0 + - col2 * - col1 AND ( + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8772
SELECT ALL + + SUM( DISTINCT - 86 ) FROM tab2 AS cor0
----
-86
skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL + + SUM ( DISTINCT - 86 ) FROM tab2 AS cor0
----
-86
query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
query I rowsort
SELECT col0 * + + col0 * - col1 AS col2 FROM tab1
----
-36125
-36414
-389207
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( + ( col2 ) ) AND + col1 + - 48
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - col2 * col0
----
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + col2 NOT BETWEEN ( 71 ) AND ( + col1 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8778
SELECT COUNT( * ) * + + COUNT( 72 ) * MIN( - 30 ) + MAX( + col0 - + col1 ) FROM tab0
----
-174
skipif mysql # not compatible
query I rowsort label-8778
SELECT COUNT ( * ) * + + COUNT ( 72 ) * MIN ( - 30 ) + MAX ( + col0 - + col1 ) FROM tab0
----
-174
onlyif mysql # aggregate syntax:
query I rowsort label-8779
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab1
----
-6
skipif mysql # not compatible
query I rowsort label-8779
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
-6
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 47 + - col0 * col1 ) >= ( col0 )
----
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL > ( col0 * col1 )
----
query I rowsort
SELECT ALL 74 + - col2 AS col1 FROM tab2
----
16
34
51
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND + 37
----
query I rowsort
SELECT ALL 25 + - col2 AS col0 FROM tab0 AS cor0
----
-22
-74
15
onlyif mysql # aggregate syntax:
query I rowsort label-8785
SELECT ALL - + COUNT( * ) + - ( 55 ) AS col1 FROM tab2 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - + COUNT ( * ) + - ( 55 ) AS col1 FROM tab2 AS cor0
----
-58
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8786
SELECT ALL ( 76 ) * AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL ( 76 ) * AVG ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
query I rowsort
SELECT - - 9 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # aggregate syntax:
query I rowsort label-8788
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab1
----
3
query I rowsort
SELECT - - col0 + + + col2 AS col2 FROM tab1 AS cor0
----
144
147
159
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col0 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8791
SELECT DISTINCT + 51 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - - ( - col1 ) IS NULL
----
51
skipif mysql # not compatible
query I rowsort label-8791
SELECT DISTINCT + 51 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - - ( - col1 ) IS NULL
----
51
onlyif mysql # aggregate syntax:
query I rowsort label-8792
SELECT DISTINCT + 56 + + COUNT( * ) FROM tab1 cor0
----
59
skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + 56 + + COUNT ( * ) FROM tab1 cor0
----
59
query I rowsort
SELECT DISTINCT ( - 3 ) - 73 FROM tab0 AS cor0
----
-76
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 IS NULL
----
query I rowsort
SELECT col0 + col2 * 48 FROM tab2 AS cor0 WHERE - col2 <> - col1
----
1150
1984
2859
query I rowsort
SELECT DISTINCT + 15 * + ( col0 ) - ( col0 ) FROM tab2 AS cor0
----
1050
644
896
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8797
SELECT ALL + + CAST( NULL AS SIGNED ) * + col1 * + + 14 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col1 * + + 14 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8798
SELECT MIN( DISTINCT - - col0 ) FROM tab1
----
51
skipif mysql # not compatible
query I rowsort label-8798
SELECT MIN ( DISTINCT - - col0 ) FROM tab1
----
51
query I rowsort
SELECT 31 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
31
31
31
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8800
SELECT DISTINCT CAST( 51 AS SIGNED ) * + 19 - + 16 FROM tab1
----
953
skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT CAST ( 51 AS INTEGER ) * + 19 - + 16 FROM tab1
----
953
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > - - col1
----
query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1 WHERE NOT ( NULL ) <> + col2 + + 19
----
onlyif mysql # aggregate syntax:
query I rowsort label-8803
SELECT DISTINCT + COUNT( * ) * - + 76 FROM tab0 AS cor0
----
-228
skipif mysql # not compatible
query I rowsort label-8803
SELECT DISTINCT + COUNT ( * ) * - + 76 FROM tab0 AS cor0
----
-228
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8804
SELECT ALL + + CAST( - 0 AS SIGNED ) * - ( - - 46 ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + + CAST ( - 0 AS INTEGER ) * - ( - - 46 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
23
40
58
query I rowsort
SELECT DISTINCT - 2 * - col1 * - - ( - 30 ) AS col1 FROM tab1 AS cor0
----
-2820
-300
-840
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8807
SELECT SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8807
SELECT SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab0
----
-225
-7569
-9409
onlyif mysql # aggregate syntax:
query I rowsort label-8809
SELECT DISTINCT - COUNT( * ) * + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144
skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT - COUNT ( * ) * + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-144
query I rowsort
SELECT ALL + + 62 AS col0 FROM tab1 AS cor0
----
62
62
62
query II rowsort
SELECT 51 AS col0, - col0 * + col2 + - + 0 AS col0 FROM tab0 AS cor0
----
51
-705
51
-870
51
-9603
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8812
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 * + CAST( NULL AS SIGNED ) + col0 AND col1 / - col2
----
skipif mysql # not compatible
query III rowsort label-8812
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN + col0 * + CAST ( NULL AS INTEGER ) + col0 AND col1 / - col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-8813
SELECT col2 DIV + 19 + - col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 = - - 32
----
-3587
-4990
-5847
skipif mysql # not compatible
query I rowsort label-8813
SELECT col2 / + 19 + - col0 * 78 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 = - - 32
----
-3587
-4990
-5847
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE col0 >= 90 * + 47
----
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8815
SELECT ALL - 63 AS col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL
skipif mysql # not compatible
query II rowsort label-8815
SELECT ALL - 63 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-63
NULL
-63
NULL
-63
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8816
SELECT ALL + + ( + + MIN( DISTINCT + - 82 ) ) col0 FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
-82
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8816
SELECT ALL + + ( + + MIN ( DISTINCT + - 82 ) ) col0 FROM tab0 AS cor0 WHERE NOT 60 IS NULL
----
-82
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col0 ) >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8818
SELECT SUM( ALL - 32 ) FROM tab0 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-8818
SELECT SUM ( ALL - 32 ) FROM tab0 AS cor0
----
-96
query III rowsort
SELECT ALL + col1, ( 9 ) AS col2, + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 567c370e49945464caaad6a82fa8becb
query II rowsort
SELECT col1 AS col2, 7 * + - col0 AS col0 FROM tab1 AS cor0
----
14
-357
47
-637
5
-595
query I rowsort
SELECT ALL + ( - + col1 ) FROM tab2 AS cor0
----
-51
-67
-77
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( - col2 ) IS NOT NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8823
SELECT DISTINCT 30 / + CAST( NULL AS SIGNED ) * SUM( + 18 ) col1 FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8823
SELECT DISTINCT 30 / + CAST ( NULL AS INTEGER ) * SUM ( + 18 ) col1 FROM tab0, tab0 AS cor0
----
NULL
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE + 6 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
onlyif mysql # aggregate syntax:
query I rowsort label-8825
SELECT ( COUNT( - - col2 ) ) AS col2 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8825
SELECT ( COUNT ( - - col2 ) ) AS col2 FROM tab1
----
3
onlyif mysql # DIV for integer division:
query I rowsort label-8826
SELECT 30 DIV - col2 AS col0 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8826
SELECT 30 / - col2 AS col0 FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1
----
96
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8828
SELECT * FROM tab2 WHERE ( - 5 * CAST( NULL AS SIGNED ) + - 20 ) > ( 16 )
----
skipif mysql # not compatible
query III rowsort label-8828
SELECT * FROM tab2 WHERE ( - 5 * CAST ( NULL AS INTEGER ) + - 20 ) > ( 16 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 43 + col1 col1 FROM tab2
----
145
177
197
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > - 23
----
query I rowsort
SELECT DISTINCT - 98 + col1 + col2 AS col1 FROM tab2 AS cor0
----
-24
19
27
query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab1 cor0
----
16
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT * FROM tab1 WHERE - 23 * ( - col0 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - 43 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT - 90 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col0 <= + col2 * col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-8839
SELECT DISTINCT + MAX( - col1 ) * 7 AS col1 FROM tab0 AS cor0
----
-7
skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + MAX ( - col1 ) * 7 AS col1 FROM tab0 AS cor0
----
-7
query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( - + col0 ) + + + col0 AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 IN ( + col2 / + col2 * + 90 / + 1 + + - col0 + 34 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( - col0 * - 89 ) > NULL ) )
----
query II rowsort
SELECT + col1 - - col1 AS col1, - 50 FROM tab0 cor0
----
162
-50
2
-50
42
-50
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) IS NULL
----
query I rowsort
SELECT DISTINCT - 25 - + col1 FROM tab0 cor0
----
-106
-26
-46
onlyif mysql # aggregate syntax:
query I rowsort label-8846
SELECT + COUNT( ALL + 27 ) AS col1 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8846
SELECT + COUNT ( ALL + 27 ) AS col1 FROM tab1
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-8847
SELECT COUNT( * ) * - - 54 AS col0 FROM tab0
----
162
skipif mysql # not compatible
query I rowsort label-8847
SELECT COUNT ( * ) * - - 54 AS col0 FROM tab0
----
162
onlyif mysql # aggregate syntax:
query I rowsort label-8848
SELECT ALL ( COUNT( * ) ) FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL ( COUNT ( * ) ) FROM tab1
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 55 * col1 col0 FROM tab0
----
100485
5335
66825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * - - col1 col1 FROM tab0
----
1449
5589
69
onlyif mysql # aggregate syntax:
query I rowsort label-8851
SELECT DISTINCT ( ( - COUNT( * ) ) ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-8851
SELECT DISTINCT ( ( - COUNT ( * ) ) ) FROM tab2
----
-3
query I rowsort
SELECT col0 * - - col0 * - 75 AS col1 FROM tab0 AS cor0
----
-16875
-567675
-705675
query I rowsort
SELECT ALL col1 + - 70 FROM tab1 AS cor0 WHERE NOT - 41 NOT IN ( + ( - col1 ), col1, col0 )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-8855
SELECT DISTINCT + SUM( ALL - 41 ) FROM tab1 AS cor0
----
-123
skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT + SUM ( ALL - 41 ) FROM tab1 AS cor0
----
-123
query II rowsort
SELECT + - col2, - 89 AS col1 FROM tab0 AS cor0
----
-10
-89
-47
-89
-99
-89
onlyif mysql # DIV for integer division:
query I rowsort label-8857
SELECT - 9 DIV - - col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8857
SELECT - 9 / - - col0 FROM tab1
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8858
SELECT + 42 + - + col1 FROM tab1 cor0 WHERE NOT - col0 + + CAST( NULL AS SIGNED ) + - 54 IS NULL
----
skipif mysql # not compatible
query I rowsort label-8858
SELECT + 42 + - + col1 FROM tab1 cor0 WHERE NOT - col0 + + CAST ( NULL AS INTEGER ) + - 54 IS NULL
----
query I rowsort
SELECT ALL - - 40 AS col2 FROM tab1 cor0
----
40
40
40
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8860
SELECT COUNT( * ) + CAST( 54 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
57
skipif mysql # not compatible
query I rowsort label-8860
SELECT COUNT ( * ) + CAST ( 54 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
57
onlyif mysql # aggregate syntax:
query I rowsort label-8861
SELECT ALL + COUNT( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + COUNT ( DISTINCT - 65 ) AS col1 FROM tab2 AS cor0
----
1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 46 BETWEEN 53 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # DIV for integer division:
query II rowsort label-8863
SELECT + 20 DIV 24 * 68 + - - col0 + + + col2, - col1 AS col0 FROM tab2
----
104
-77
133
-67
69
-51
skipif mysql # not compatible
query II rowsort label-8863
SELECT + 20 / 24 * 68 + - - col0 + + + col2, - col1 AS col0 FROM tab2
----
104
-77
133
-67
69
-51
query I rowsort
SELECT 27 + col0 + - col0 * 3 FROM tab1
----
-143
-155
-75
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 * col1 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col0 / - + col0 + + + col2 IS NOT NULL
----
query I rowsort
SELECT 7 + 27 AS col0 FROM tab2
----
34
34
34
onlyif mysql # DIV for integer division:
query I rowsort label-8868
SELECT col2 DIV 3 FROM tab1
----
19
22
32
skipif mysql # not compatible
query I rowsort label-8868
SELECT col2 / 3 FROM tab1
----
19
22
32
onlyif mysql # aggregate syntax:
query I rowsort label-8869
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE + - col2 < NULL
----
0
skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE + - col2 < NULL
----
0
query I rowsort
SELECT ALL 10 + + 91 FROM tab1
----
101
101
101
query I rowsort
SELECT ALL + 1 * - - col1 FROM tab1
----
14
47
5
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-8872
SELECT DISTINCT + COUNT( * ) DIV - 46 FROM tab1 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-8872
SELECT DISTINCT + COUNT ( * ) / - 46 FROM tab1 WHERE NULL IS NOT NULL
----
0
query II rowsort
SELECT ALL + - col0, - col2 FROM tab0 AS cor0 WHERE NULL >= + 57
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8874
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT - ( 59 ) > NULL ) )
----
skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( ( NOT - ( 59 ) > NULL ) )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8875
SELECT + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8875
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL >= 70
----
query II rowsort
SELECT col2 * - col0 - - 67, 99 AS col2 FROM tab0 AS cor0
----
-638
99
-803
99
-9536
99
onlyif mysql # aggregate syntax:
query I rowsort label-8878
SELECT - 74 + - - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-65
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8878
SELECT - 74 + - - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-65
query I rowsort
SELECT ALL - 16 + - col2 FROM tab1 AS cor0
----
-112
-75
-84
query II rowsort
SELECT col1 AS col1, - 79 AS col2 FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - + col1, + col0 * - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8881
SELECT DISTINCT SUM( ALL - col2 ) FROM tab1 AS cor0
----
-223
skipif mysql # not compatible
query I rowsort label-8881
SELECT DISTINCT SUM ( ALL - col2 ) FROM tab1 AS cor0
----
-223
onlyif mysql # aggregate syntax:
query II rowsort label-8882
SELECT - 37 AS col0, - COUNT( * ) FROM tab2 AS cor0
----
-37
-3
skipif mysql # not compatible
query II rowsort label-8882
SELECT - 37 AS col0, - COUNT ( * ) FROM tab2 AS cor0
----
-37
-3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( + 63 )
----
query I rowsort
SELECT col0 * + col2 FROM tab2 WHERE NOT col1 NOT BETWEEN + 39 AND + col0
----
4350
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8885
SELECT col2 * - - CAST( col1 AS SIGNED ) FROM tab1
----
1344
295
3196
skipif mysql # not compatible
query I rowsort label-8885
SELECT col2 * - - CAST ( col1 AS INTEGER ) FROM tab1
----
1344
295
3196
onlyif mysql # aggregate syntax:
query I rowsort label-8886
SELECT SUM( ALL - col1 ) AS col0 FROM tab2
----
-195
skipif mysql # not compatible
query I rowsort label-8886
SELECT SUM ( ALL - col1 ) AS col0 FROM tab2
----
-195
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8887
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 86, + col0 * + - col0, - CAST( NULL AS SIGNED ) )
----
skipif mysql # not compatible
query III rowsort label-8887
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( 86, + col0 * + - col0, - CAST ( NULL AS INTEGER ) )
----
query I rowsort
SELECT 99 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8889
SELECT MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8889
SELECT MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT ALL col2 + - - 77 AS col1 FROM tab1 AS cor0
----
136
145
173
query I rowsort
SELECT - 36 * 66 FROM tab2 AS cor0
----
-2376
-2376
-2376
onlyif mysql # aggregate syntax:
query I rowsort label-8892
SELECT - SUM( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-103
skipif mysql # not compatible
query I rowsort label-8892
SELECT - SUM ( DISTINCT - - col1 ) AS col0 FROM tab0 AS cor0
----
-103
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----
query I rowsort
SELECT ALL + 34 * + + col2 AS col0 FROM tab0 AS cor0
----
1598
3366
340
onlyif mysql # aggregate syntax:
query I rowsort label-8895
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NULL
----
3
query I rowsort
SELECT DISTINCT - + col2 * 79 AS col2 FROM tab0 AS cor0
----
-3713
-7821
-790
onlyif mysql # aggregate syntax:
query II rowsort label-8897
SELECT ALL MAX( + col0 ) * + + 76 + + COUNT( * ) AS col0, COUNT( * ) FROM tab2
----
5703
3
skipif mysql # not compatible
query II rowsort label-8897
SELECT ALL MAX ( + col0 ) * + + 76 + + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2
----
5703
3
query II rowsort
SELECT DISTINCT col2 * 28 AS col1, - col2 * - col0 AS col1 FROM tab1
----
1652
5015
1904
6188
2688
4896
query II rowsort
SELECT ALL col0 + - col0 AS col0, col1 FROM tab0
----
0
1
0
21
0
81
query I rowsort
SELECT ALL - col2 * - col0 * + 57 + + 50 FROM tab2
----
145970
248000
60356
query I rowsort
SELECT ALL col0 + + 2 * col0 AS col2 FROM tab2
----
138
192
225
onlyif mysql # DIV for integer division:
query I rowsort label-8902
SELECT - col0 DIV + col0 + + ( - 14 ) + - + 74 FROM tab2 AS cor0
----
-89
-89
-89
skipif mysql # not compatible
query I rowsort label-8902
SELECT - col0 / + col0 + + ( - 14 ) + - + 74 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT col0 * + + 22 + + 89 AS col1 FROM tab1 AS cor0
----
1211
1959
2091
query I rowsort
SELECT - + 44 + - - col2 - - col2 * + col2 AS col0 FROM tab1 cor0
----
3496
4648
9268
query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-8906
SELECT + 41 + COUNT( * ) + - 3 * + COUNT( * ) FROM tab1, tab0 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-8906
SELECT + 41 + COUNT ( * ) + - 3 * + COUNT ( * ) FROM tab1, tab0 AS cor0
----
23
query I rowsort
SELECT col1 - col1 + + col0 FROM tab0
----
15
87
97
query I rowsort
SELECT ALL + + ( - - col0 ) + + col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8909
SELECT DISTINCT COUNT( ALL + + 64 ) FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT COUNT ( ALL + + 64 ) FROM tab2 AS cor0
----
3
query I rowsort
SELECT ALL 92 FROM tab1 cor0
----
92
92
92
onlyif mysql # aggregate syntax:
query I rowsort label-8911
SELECT ALL - + MIN( DISTINCT + - 60 ) AS col2 FROM tab0 AS cor0
----
60
skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL - + MIN ( DISTINCT + - 60 ) AS col2 FROM tab0 AS cor0
----
60
query I rowsort
SELECT ALL + + ( - 93 ) AS col0 FROM tab2 cor0
----
-93
-93
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + + col0 col2 FROM tab2
----
1058
2560
4350
query I rowsort
SELECT ALL + 85 AS col2 FROM tab0
----
85
85
85
onlyif mysql # aggregate syntax:
query I rowsort label-8915
SELECT MIN( + col2 ) FROM tab1
----
59
skipif mysql # not compatible
query I rowsort label-8915
SELECT MIN ( + col2 ) FROM tab1
----
59
onlyif mysql # aggregate syntax:
query I rowsort label-8916
SELECT ALL - MAX( + 15 ) AS col0 FROM tab1
----
-15
skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - MAX ( + 15 ) AS col0 FROM tab1
----
-15
query II rowsort
SELECT col1, col0 + + 62 - 49 AS col1 FROM tab1
----
14
64
47
104
5
98
query III rowsort
SELECT * FROM tab0 WHERE NOT + 6 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col2 ) + - - ( + col1 ) IS NULL
----
query I rowsort
SELECT DISTINCT - 58 * 19 AS col0 FROM tab2
----
-1102
onlyif mysql # aggregate syntax:
query I rowsort label-8921
SELECT COUNT( col2 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-8921
SELECT COUNT ( col2 ) FROM tab0
----
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-8923
SELECT DISTINCT - + COUNT( - 72 ) AS col1 FROM tab2 cor0
----
-3
skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - + COUNT ( - 72 ) AS col1 FROM tab2 cor0
----
-3
query II rowsort
SELECT + col2 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
59
85
68
91
96
51
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 64 * - col0 + + col1 + - ( - 79 ) IS NOT NULL )
----
query I rowsort
SELECT + + 69 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab1 WHERE NOT - col2 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8928
SELECT COUNT( * ) + MAX( ALL 58 ) FROM tab0 AS cor0
----
61
skipif mysql # not compatible
query I rowsort label-8928
SELECT COUNT ( * ) + MAX ( ALL 58 ) FROM tab0 AS cor0
----
61
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - col1 * + 48 - - ( - col2 )
----
query I rowsort
SELECT ALL + col1 + + - col0 FROM tab0 cor0
----
-66
-96
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8931
SELECT ALL + 66 * + col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + 66 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + 35 AS col2 FROM tab2 AS cor0
----
58
75
93
query I rowsort
SELECT ALL - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= 30
----
onlyif mysql # aggregate syntax:
query I rowsort label-8934
SELECT ALL COUNT( * ) * + 3 AS col0 FROM tab1 cor0 WHERE NOT col2 <= NULL
----
0
skipif mysql # not compatible
query I rowsort label-8934
SELECT ALL COUNT ( * ) * + 3 AS col0 FROM tab1 cor0 WHERE NOT col2 <= NULL
----
0
query III rowsort
SELECT * FROM tab1 WHERE + col1 / - col2 - 88 <= - ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8936
SELECT - col0 * - col2 + + col2 AS col1, + CAST( + 61 AS SIGNED ) AS col1 FROM tab0
----
752
61
880
61
9702
61
skipif mysql # not compatible
query II rowsort label-8936
SELECT - col0 * - col2 + + col2 AS col1, + CAST ( + 61 AS INTEGER ) AS col1 FROM tab0
----
752
61
880
61
9702
61
query I rowsort
SELECT ALL col1 * + + col0 FROM tab0
----
1215
1827
97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( - 33 * col1 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-8939
SELECT ALL SUM( DISTINCT + 94 ) FROM tab2
----
94
skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL SUM ( DISTINCT + 94 ) FROM tab2
----
94
onlyif mysql # aggregate syntax:
query I rowsort label-8940
SELECT DISTINCT - COUNT( * ) * - + 63 + + + MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
247
skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT - COUNT ( * ) * - + 63 + + + MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
247
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8941
SELECT + + CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8941
SELECT + + CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 60 + 36 AS col2 FROM tab2 AS cor0
----
96
onlyif mysql # aggregate syntax:
query I rowsort label-8943
SELECT - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
query I rowsort label-8943
SELECT - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
onlyif mysql # aggregate syntax:
query I rowsort label-8944
SELECT DISTINCT 53 * - COUNT( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7632
skipif mysql # not compatible
query I rowsort label-8944
SELECT DISTINCT 53 * - COUNT ( * ) * 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-7632
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8946
SELECT DISTINCT - ( ( - - CAST( 50 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-50
skipif mysql # not compatible
query I rowsort label-8946
SELECT DISTINCT - ( ( - - CAST ( 50 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-50
query I rowsort
SELECT ( + + col2 ) FROM tab0 AS cor0
----
10
47
99
query I rowsort
SELECT ALL ( - ( + 3 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 21 * + col0 IS NULL
----
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) FROM tab1 AS cor0
----
51
85
91
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + col0 * + col0 + col1 / - ( + + ( col2 ) ) * + + ( col1 ) IS NOT NULL
----
query I rowsort
SELECT 42 AS col0 FROM tab2 cor0
----
42
42
42
query II rowsort
SELECT + col1 * + + col2 AS col1, - col0 AS col0 FROM tab0 AS cor0
----
210
-87
3807
-15
99
-97
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + + col0 AND + ( - 48 )
----
query II rowsort
SELECT DISTINCT - col2, + col2 FROM tab2
----
-23
23
-40
40
-58
58
onlyif mysql # aggregate syntax:
query I rowsort label-8956
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 IN ( + col2 + 29, - 7 * - + col1 + + col1 + + - col0, - 68 )
----
3
skipif mysql # not compatible
query I rowsort label-8956
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 IN ( + col2 + 29, - 7 * - + col1 + + col1 + + - col0, - 68 )
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * + col0 * 37 <> - 19 * + 74
----
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN + - 13 AND + - col1 + - col0 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN NULL AND - 93
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab0
----
54
54
54
query III rowsort
SELECT ALL * FROM tab2 WHERE + 48 NOT BETWEEN ( + ( + 43 ) ) AND NULL
----
query I rowsort
SELECT ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5
query I rowsort
SELECT DISTINCT col1 + - + 60 AS col2 FROM tab2 AS cor0
----
-9
17
7
onlyif mysql # aggregate syntax:
query I rowsort label-8965
SELECT COUNT( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-8965
SELECT COUNT ( ALL - - col2 ) AS col2 FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8966
SELECT * FROM tab2 cor0 WHERE NOT - 49 <= CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-8966
SELECT * FROM tab2 cor0 WHERE NOT - 49 <= CAST ( NULL AS INTEGER )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 83 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-8968
SELECT DISTINCT 97 + - - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
106
skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 97 + - - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
106
onlyif mysql # aggregate syntax:
query I rowsort label-8969
SELECT MAX( DISTINCT col1 ) col0 FROM tab1
----
47
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8969
SELECT MAX ( DISTINCT col1 ) col0 FROM tab1
----
47
query I rowsort
SELECT - ( + 74 ) FROM tab2 AS cor0
----
-74
-74
-74
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-8971
SELECT + col2, CAST( - col1 AS SIGNED ) + 59 * - - CAST( + col1 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
23
2981
40
4506
58
3944
skipif mysql # not compatible
query II rowsort label-8971
SELECT + col2, CAST ( - col1 AS INTEGER ) + 59 * - - CAST ( + col1 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
23
2981
40
4506
58
3944
query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT ALL col1 + 3 FROM tab2 AS cor0
----
54
70
80
query I rowsort
SELECT ALL col0 - - 81 + - col2 FROM tab1 AS cor0
----
104
107
36
query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
75
onlyif mysql # aggregate syntax:
query I rowsort label-8976
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-8977
SELECT DISTINCT + - COUNT( * ) FROM tab1 AS cor0 WHERE 28 * + + col1 NOT BETWEEN col0 / + ( - - col1 ) + col1 / + col1 AND + - 60
----
-3
skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + - COUNT ( * ) FROM tab1 AS cor0 WHERE 28 * + + col1 NOT BETWEEN col0 / + ( - - col1 ) + col1 / + col1 AND + - 60
----
-3
query I rowsort
SELECT DISTINCT col0 * col2 + - + col0 - - col1 FROM tab0 cor0
----
771
804
9507
query I rowsort
SELECT DISTINCT + - 91 - - col2 + + col2 * + col2 FROM tab0 AS cor0
----
19
2165
9809
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-8980
SELECT - 18 + MIN( + 25 ) + SUM( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8980
SELECT - 18 + MIN ( + 25 ) + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
query I rowsort
SELECT + col1 + + - 42 AS col2 FROM tab1
----
-28
-37
5
query I rowsort
SELECT + 58 / + col1 AS col2 FROM tab2 WHERE col2 <= NULL
----
query II rowsort
SELECT + col2 + - col1 AS col0, col0 FROM tab1
----
21
91
54
85
82
51
query I rowsort
SELECT ALL + + col0 * 8 * + col2 AS col0 FROM tab1 WHERE NOT - 50 IS NOT NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 78, 98 + + col0 + - col0 + + + 33 / - col2, - col1, - col1 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-8986
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 93 * 72 AS col1 FROM tab1 AS cor0
----
-6696
query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-8989
SELECT DISTINCT + + 40, + COUNT( * ) * CAST( NULL AS SIGNED ) - - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
40
NULL
skipif mysql # not compatible
query II rowsort label-8989
SELECT DISTINCT + + 40, + COUNT ( * ) * CAST ( NULL AS INTEGER ) - - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
40
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-8990
SELECT DISTINCT MIN( DISTINCT + 60 ) FROM tab0
----
60
skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT MIN ( DISTINCT + 60 ) FROM tab0
----
60
query I rowsort
SELECT + col1 * + + ( 87 ) AS col2 FROM tab1
----
1218
4089
435
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-8992
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-8992
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + + CAST ( NULL AS INTEGER )
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 85 >= NULL
----
query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab1 cor0
----
-59
-68
-96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-8995
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 54 + + - col0 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-8995
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 54 + + - col0 IS NOT NULL
----
query II rowsort
SELECT DISTINCT + + col0 AS col1, - 22 AS col2 FROM tab0 AS cor0
----
15
-22
87
-22
97
-22
query I rowsort
SELECT DISTINCT 49 * - col2 FROM tab0 AS cor0
----
-2303
-4851
-490
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * col1 * + 14 IS NOT NULL
----
query I rowsort
SELECT - - 31 * - col1 * - 84 AS col0 FROM tab0 AS cor0
----
210924
2604
54684
query I rowsort
SELECT ALL - - 59 AS col0 FROM tab2 cor0
----
59
59
59
query II rowsort
SELECT DISTINCT + 60 AS col0, col1 + + 40 + + col2 AS col2 FROM tab1 AS cor0
----
60
104
60
150
60
155
onlyif mysql # aggregate syntax:
query II rowsort label-9002
SELECT DISTINCT + ( 93 ) AS col0, + COUNT( * ) FROM tab1
----
93
3
skipif mysql # not compatible
query II rowsort label-9002
SELECT DISTINCT + ( 93 ) AS col0, + COUNT ( * ) FROM tab1
----
93
3
onlyif mysql # aggregate syntax:
query I rowsort label-9003
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-9004
SELECT 41 + + COUNT( * ) FROM tab0
----
44
skipif mysql # not compatible
query I rowsort label-9004
SELECT 41 + + COUNT ( * ) FROM tab0
----
44
onlyif mysql # aggregate syntax:
query I rowsort label-9005
SELECT - COUNT( * ) + COUNT( * ) FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-9005
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1
----
0
query I rowsort
SELECT DISTINCT ( - col2 ) + + col1 FROM tab1
----
-21
-54
-82
onlyif mysql # aggregate syntax:
query I rowsort label-9007
SELECT ALL - 62 * COUNT( * ) * COUNT( DISTINCT + 41 ) FROM tab1
----
-186
skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL - 62 * COUNT ( * ) * COUNT ( DISTINCT + 41 ) FROM tab1
----
-186
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL = - - 91
----
query II rowsort
SELECT DISTINCT col2 + + - col2, col2 FROM tab0
----
0
10
0
47
0
99
onlyif mysql # DIV for integer division:
query I rowsort label-9010
SELECT 56 DIV + col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9010
SELECT 56 / + col1 FROM tab2
----
0
0
1
onlyif mysql # aggregate syntax:
query I rowsort label-9011
SELECT DISTINCT COUNT( * ) + - 51 AS col1 FROM tab2
----
-48
skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT COUNT ( * ) + - 51 AS col1 FROM tab2
----
-48
onlyif mysql # aggregate syntax:
query I rowsort label-9012
SELECT ALL + - MAX( - + col2 ) col0 FROM tab1 cor0
----
59
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9012
SELECT ALL + - MAX ( - + col2 ) col0 FROM tab1 cor0
----
59
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < ( - 47 ) + + + col1 + - col1
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + - 46 * - + 8 / + col1 IS NULL
----
query I rowsort
SELECT - 2 * + - 9 * - 29 + + + col0 FROM tab1 AS cor0
----
-431
-437
-471
query I rowsort
SELECT - col2 + - 18 + + - col1 * + + 96 FROM tab2 AS cor0
----
-4937
-6508
-7450
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * 14 IN ( col1, - col2 )
----
query II rowsort
SELECT ALL col0, + 76 FROM tab0
----
15
76
87
76
97
76
query I rowsort
SELECT DISTINCT + col1 - + + col0 AS col1 FROM tab0
----
-66
-96
66
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + col0 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9021
SELECT ALL - SUM( DISTINCT + - col2 ) col1 FROM tab1
----
223
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9021
SELECT ALL - SUM ( DISTINCT + - col2 ) col1 FROM tab1
----
223
query II rowsort
SELECT - col2 AS col1, 51 AS col1 FROM tab0
----
-10
51
-47
51
-99
51
onlyif mysql # DIV for integer division:
query I rowsort label-9023
SELECT DISTINCT - col1 - 21 DIV + col1 FROM tab1
----
-15
-47
-9
skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT - col1 - 21 / + col1 FROM tab1
----
-15
-47
-9
query I rowsort
SELECT DISTINCT - ( 39 ) FROM tab1
----
-39
query I rowsort
SELECT DISTINCT ( - - col2 ) * + + 25 FROM tab2 AS cor0
----
1000
1450
575
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN + col0 AND - col0 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query II rowsort
SELECT ALL - col1 * + col2 AS col0, - col1 - - col1 FROM tab2
----
-1173
0
-3080
0
-3886
0
onlyif mysql # aggregate syntax:
query I rowsort label-9029
SELECT DISTINCT + COUNT( * ) * 92 AS col1 FROM tab1 AS cor0
----
276
skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + COUNT ( * ) * 92 AS col1 FROM tab1 AS cor0
----
276
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9030
SELECT ALL + - COUNT( * ) DIV + - COUNT( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9030
SELECT ALL + - COUNT ( * ) / + - COUNT ( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-9031
SELECT ALL - - MIN( - col2 ) * + MAX( - col0 ) * + 83 FROM tab0 AS cor0
----
123255
skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - - MIN ( - col2 ) * + MAX ( - col0 ) * + 83 FROM tab0 AS cor0
----
123255
onlyif mysql # aggregate syntax:
query I rowsort label-9032
SELECT DISTINCT + SUM( - col0 ) * + - 20 + + 58 AS col1 FROM tab2 AS cor0
----
3758
skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + SUM ( - col0 ) * + - 20 + + 58 AS col1 FROM tab2 AS cor0
----
3758
onlyif mysql # aggregate syntax:
query II rowsort label-9033
SELECT ALL + - ( COUNT( * ) ) col1, 88 - + + 8 FROM tab1 AS cor0
----
-3
80
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9033
SELECT ALL + - ( COUNT ( * ) ) col1, 88 - + + 8 FROM tab1 AS cor0
----
-3
80
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9034
SELECT - 45 * + - CAST( NULL AS DECIMAL ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77
skipif mysql # not compatible
query II rowsort label-9034
SELECT - 45 * + - CAST ( NULL AS REAL ), + col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77
query I rowsort
SELECT DISTINCT + - col2 * + 72 AS col2 FROM tab2 AS cor0
----
-1656
-2880
-4176
query I rowsort
SELECT ALL - ( - - col2 ) AS col1 FROM tab2
----
-23
-40
-58
query I rowsort
SELECT 64 * col2 AS col0 FROM tab0
----
3008
6336
640
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 12
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 79 * + - col0 IS NULL
----
query I rowsort
SELECT ALL - 63 + + col1 FROM tab1 AS cor0
----
-16
-49
-58
query I rowsort
SELECT col1 + - + col0 + - ( + 10 ) + 3 + + + col1 AS col1 FROM tab1 AS cor0
----
-30
-4
-82
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9042
SELECT - CAST( + col0 AS SIGNED ) * - col2 + + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4992
5074
6256
skipif mysql # not compatible
query I rowsort label-9042
SELECT - CAST ( + col0 AS INTEGER ) * - col2 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4992
5074
6256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 64 col2 FROM tab1 AS cor0
----
64
onlyif mysql # aggregate syntax:
query I rowsort label-9044
SELECT ALL + COUNT( * ) col1 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9044
SELECT ALL + COUNT ( * ) col1 FROM tab1 cor0
----
3
query I rowsort
SELECT col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - - 38 AS col0 FROM tab2 AS cor0
----
38
38
38
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9047
SELECT - + CAST( - - COUNT( * ) AS SIGNED ) * + 77 AS col2 FROM tab0 AS cor0
----
-231
skipif mysql # not compatible
query I rowsort label-9047
SELECT - + CAST ( - - COUNT ( * ) AS INTEGER ) * + 77 AS col2 FROM tab0 AS cor0
----
-231
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 98 IS NOT NULL AND + col2 < + col0
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type:
query I rowsort label-9049
SELECT + COUNT( * ) - + CAST( + CAST( 72 AS DECIMAL ) AS SIGNED ) col1 FROM tab1 cor0
----
-69
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9049
SELECT + COUNT ( * ) - + CAST ( + CAST ( 72 AS REAL ) AS INTEGER ) col1 FROM tab1 cor0
----
-69
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9050
SELECT ALL + COUNT( * ) + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + COUNT ( * ) + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 31 + - col0 + col1 FROM tab0 AS cor0
----
-35
-65
97
query I rowsort
SELECT ALL col2 + - col1 + + col1 FROM tab0 AS cor0
----
10
47
99
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9053
SELECT * FROM tab2 AS cor0 WHERE - 13 <> + CAST( - - col2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-9053
SELECT * FROM tab2 AS cor0 WHERE - 13 <> + CAST ( - - col2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT - ( - col2 ) - - 74 + col2 * + - col1 * 36 FROM tab1
----
-10487
-114914
-48214
onlyif mysql # aggregate syntax:
query I rowsort label-9055
SELECT + 26 + COUNT( * ) AS col1 FROM tab2
----
29
skipif mysql # not compatible
query I rowsort label-9055
SELECT + 26 + COUNT ( * ) AS col1 FROM tab2
----
29
query II rowsort
SELECT DISTINCT + col1, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col0 col0, - col1 * 50, + - col1 AS col2 FROM tab0
----
9 values hashing to 45a2c2f5334bdf9df61286f1492ee20d
onlyif mysql # aggregate syntax:
query I rowsort label-9058
SELECT ALL COUNT( ALL col2 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL COUNT ( ALL col2 ) AS col0 FROM tab1
----
3
query I rowsort
SELECT col2 * 2 FROM tab2
----
116
46
80
query I rowsort
SELECT DISTINCT ( + + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL ) OR NOT + col1 < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9061
SELECT ALL - COUNT( * ) col1 FROM tab1 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9061
SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9062
SELECT CAST( - + 63 AS SIGNED ) AS col2 FROM tab0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-9062
SELECT CAST ( - + 63 AS INTEGER ) AS col2 FROM tab0
----
-63
-63
-63
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - 21 * col2 AND col2
----
51
14
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + col1 col2 FROM tab0 cor0
----
10
21
47
81
99
1
query I rowsort
SELECT + 91 + - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 / - 39 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-9066
SELECT DISTINCT COUNT( + - 9 ) AS col1, 37 FROM tab2 AS cor0
----
3
37
skipif mysql # not compatible
query II rowsort label-9066
SELECT DISTINCT COUNT ( + - 9 ) AS col1, 37 FROM tab2 AS cor0
----
3
37
query I rowsort
SELECT 37 * - col0 FROM tab2 AS cor0
----
-1702
-2368
-2775
query I rowsort
SELECT col2 * col1 - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
198
220
3854
query I rowsort
SELECT DISTINCT + + 94 AS col2 FROM tab1 AS cor0
----
94
onlyif mysql # aggregate syntax:
query I rowsort label-9070
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9
skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9
query I rowsort
SELECT - - 38 + + col1 AS col2 FROM tab2 cor0
----
105
115
89
query I rowsort
SELECT - col2 + + + col0 FROM tab1
----
-45
23
26
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9073
SELECT DISTINCT - ( col1 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - ( col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL 10 * + - 81 FROM tab2
----
-810
-810
-810
query I rowsort
SELECT 33 + + col1 * + col1 FROM tab0
----
34
474
6594
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9076
SELECT ALL + MIN( ALL CAST( 6 AS SIGNED ) ) FROM tab2
----
6
skipif mysql # not compatible
query I rowsort label-9076
SELECT ALL + MIN ( ALL CAST ( 6 AS INTEGER ) ) FROM tab2
----
6
query II rowsort
SELECT DISTINCT col2 * + col2 * + 7 AS col0, + ( - ( + col0 ) ) FROM tab0 WHERE NULL IS NULL
----
15463
-15
68607
-97
700
-87
query I rowsort
SELECT 41 + col1 AS col0 FROM tab2
----
108
118
92
onlyif mysql # aggregate syntax:
query I rowsort label-9079
SELECT DISTINCT SUM( DISTINCT + + col1 ) + + - 40 AS col0 FROM tab1 WHERE - + col2 BETWEEN NULL AND col0
----
NULL
skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT SUM ( DISTINCT + + col1 ) + + - 40 AS col0 FROM tab1 WHERE - + col2 BETWEEN NULL AND col0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN col0 AND col0
----
query I rowsort
SELECT ALL + 71 * + col2 - + col1 FROM tab2 AS cor0 WHERE + 26 >= - col2
----
1582
2763
4051
query I rowsort
SELECT DISTINCT + - 86 * + 4 * col2 + 15 + + - col2 AS col2 FROM tab1 cor0
----
-20340
-23445
-33105
onlyif mysql # aggregate syntax:
query I rowsort label-9083
SELECT ALL + 86 + - COUNT( * ) FROM tab2 cor0
----
83
skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + 86 + - COUNT ( * ) FROM tab2 cor0
----
83
onlyif mysql # DIV for integer division:
query I rowsort label-9084
SELECT + 7 DIV - + col0 - 26 AS col2 FROM tab1
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-9084
SELECT + 7 / - + col0 - 26 AS col2 FROM tab1
----
-26
-26
-26
onlyif mysql # DIV for integer division:
query I rowsort label-9085
SELECT ALL 85 DIV col2 col2 FROM tab0
----
0
1
8
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9085
SELECT ALL 85 / col2 col2 FROM tab0
----
0
1
8
query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9087
SELECT + 91 * MAX( - ( + - 87 ) ) + - 7 col1 FROM tab0 AS cor0
----
7910
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT + 91 * MAX ( - ( + - 87 ) ) + - 7 col1 FROM tab0 AS cor0
----
7910
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9088
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST( + col0 AS SIGNED ) * col1 * col0 * CAST( + col1 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9088
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> - - CAST ( + col0 AS INTEGER ) * col1 * col0 * CAST ( + col1 AS INTEGER )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9089
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) * - MIN( DISTINCT ( - col2 ) ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) * - MIN ( DISTINCT ( - col2 ) ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + ( - 33 ) FROM tab2 AS cor0
----
-33
-33
-33
onlyif mysql # aggregate syntax:
query I rowsort label-9091
SELECT + MAX( DISTINCT - 1 ) AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9091
SELECT + MAX ( DISTINCT - 1 ) AS col0 FROM tab2 AS cor0
----
-1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9092
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9092
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL + col2 * - - col2 FROM tab2
----
1600
3364
529
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 IN ( col0 + + col2 * col0 * + - 27 + - 81, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col2 * 89 * - + 18 - - col0 FROM tab0 WHERE NOT - ( + col1 ) - + - 20 + - ( + col1 ) IS NULL
----
158695
16107
75309
query I rowsort
SELECT + 51 * + - col1 FROM tab2 cor0
----
-2601
-3417
-3927
query I rowsort
SELECT - col1 * + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-420
-4230
-700
onlyif mysql # aggregate syntax:
query I rowsort label-9098
SELECT DISTINCT - 65 * COUNT( col2 ) AS col0 FROM tab0
----
-195
skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT - 65 * COUNT ( col2 ) AS col0 FROM tab0
----
-195
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + 17 ) < + 88 + - 75
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9100
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT + col2 IN ( - - col1, + col0 * + + col0 )
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9100
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT + col2 IN ( - - col1, + col0 * + + col0 )
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 76 + + col2 FROM tab0
----
123
175
86
query I rowsort
SELECT ALL + + 2 + + + col1 AS col0 FROM tab2 AS cor0
----
53
69
79
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9103
SELECT ALL - MAX( - ( + CAST( + col2 AS SIGNED ) ) ) AS col2 FROM tab2 AS cor0 WHERE col0 + - + col0 * - col0 + - col0 IS NOT NULL
----
23
skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - MAX ( - ( + CAST ( + col2 AS INTEGER ) ) ) AS col2 FROM tab2 AS cor0 WHERE col0 + - + col0 * - col0 + - col0 IS NOT NULL
----
23
query II rowsort
SELECT DISTINCT - col0 AS col1, + col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58
onlyif mysql # aggregate syntax:
query I rowsort label-9105
SELECT DISTINCT + COUNT( ALL 2 ) AS col1 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9105
SELECT DISTINCT + COUNT ( ALL 2 ) AS col1 FROM tab2 AS cor0
----
3
query I rowsort
SELECT DISTINCT + + col0 + + - 54 + - 6 * - col0 - - - col1 FROM tab1 AS cor0
----
289
536
onlyif mysql # aggregate syntax:
query I rowsort label-9107
SELECT DISTINCT + ( + - COUNT( * ) ) * - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
12
skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT + ( + - COUNT ( * ) ) * - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
12
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > - ( - col0 )
----
query I rowsort
SELECT 93 * + + 25 FROM tab2 AS cor0
----
2325
2325
2325
onlyif mysql # aggregate syntax:
query I rowsort label-9110
SELECT 61 * - COUNT( * ) FROM tab1
----
-183
skipif mysql # not compatible
query I rowsort label-9110
SELECT 61 * - COUNT ( * ) FROM tab1
----
-183
query III rowsort
SELECT ALL * FROM tab2 WHERE - - 11 <= - col1
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9112
SELECT * FROM tab2 WHERE ( CAST( - - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
skipif mysql # not compatible
query III rowsort label-9112
SELECT * FROM tab2 WHERE ( CAST ( - - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT col0 * - col1 + - - col2 * col1 AS col0 FROM tab2
----
-1139
-1173
-1848
query I rowsort
SELECT - col1 * + col1 + 8 FROM tab0
----
-433
-6553
7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9115
SELECT DISTINCT COUNT( * ) DIV 34 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COUNT ( * ) / 34 AS col0 FROM tab0 AS cor0
----
0
query II rowsort
SELECT ALL + + col0, 96 + + 68 + - col1 * - - col0 FROM tab2 AS cor0
----
46
-2182
64
-4764
75
-4861
query I rowsort
SELECT ALL + ( + col0 ) + - - 69 + col0 + 16 + - col1 FROM tab1
----
173
220
250
query I rowsort
SELECT - col2 - - col0 + - + 32 + + 22 FROM tab0 AS cor0
----
-12
-42
67
query I rowsort
SELECT ALL 40 AS col2 FROM tab1 AS cor0
----
40
40
40
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + 96 + - + col1 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - 90 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
111
171
91
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9123
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
3
query II rowsort
SELECT - 85 AS col1, + col0 + + + col2 AS col1 FROM tab1
----
-85
144
-85
147
-85
159
query II rowsort
SELECT ALL - col2, - col2 AS col0 FROM tab2
----
-23
-23
-40
-40
-58
-58
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9126
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9126
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT DISTINCT - col0, - ( + + 23 ) * + col2 AS col0 FROM tab1
----
-51
-2208
-85
-1357
-91
-1564
query II rowsort
SELECT ALL 3 AS col1, 78 AS col0 FROM tab0
----
3
78
3
78
3
78
onlyif mysql # aggregate syntax:
query I rowsort label-9129
SELECT DISTINCT - + MAX( + col2 ) FROM tab2 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - + MAX ( + col2 ) FROM tab2 AS cor0
----
-58
onlyif mysql # aggregate syntax:
query I rowsort label-9130
SELECT - MIN( - - col2 ) FROM tab2
----
-23
skipif mysql # not compatible
query I rowsort label-9130
SELECT - MIN ( - - col2 ) FROM tab2
----
-23
query I rowsort
SELECT DISTINCT + 54 * - col1 * + col0 FROM tab1
----
-22950
-230958
-38556
onlyif mysql # aggregate syntax:
query I rowsort label-9132
SELECT DISTINCT 31 + - 14 - - COUNT( - 65 ) FROM tab2
----
20
skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT 31 + - 14 - - COUNT ( - 65 ) FROM tab2
----
20
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 94 * - 92 * - col0 * - + 18 - + - 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----
query I rowsort
SELECT ALL 4 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT DISTINCT + col2 * + col2 + + 65 AS col2 FROM tab0 cor0
----
165
2274
9866
query I rowsort
SELECT DISTINCT - + 35 * + col2 FROM tab2 AS cor0
----
-1400
-2030
-805
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9139
SELECT * FROM tab1 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) * 27 * + + col1 BETWEEN col0 AND + - col2
----
skipif mysql # not compatible
query III rowsort label-9139
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) * 27 * + + col1 BETWEEN col0 AND + - col2
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9140
SELECT ALL + col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL + col2 + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 46 FROM tab1 AS cor0
----
46
46
46
onlyif mysql # DIV for integer division:
query I rowsort label-9142
SELECT - 51 + + ( + - col0 ) DIV col2 FROM tab2 AS cor0
----
-52
-52
-53
skipif mysql # not compatible
query I rowsort label-9142
SELECT - 51 + + ( + - col0 ) / col2 FROM tab2 AS cor0
----
-52
-52
-53
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9143
SELECT ALL - CAST( - + 21 AS SIGNED ) FROM tab1 AS cor0
----
21
21
21
skipif mysql # not compatible
query I rowsort label-9143
SELECT ALL - CAST ( - + 21 AS INTEGER ) FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT - col0 * + 16 * 84 FROM tab0
----
-116928
-130368
-20160
query II rowsort
SELECT DISTINCT col2, col1 FROM tab1
----
59
5
68
47
96
14
query III rowsort
SELECT * FROM tab0 WHERE - ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9147
SELECT ALL - 71 DIV + + COUNT( col1 ) + - 31 + - + 16 FROM tab0
----
-70
skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL - 71 / + + COUNT ( col1 ) + - 31 + - + 16 FROM tab0
----
-70
onlyif mysql # aggregate syntax:
query II rowsort label-9148
SELECT DISTINCT - COUNT( * ) + + MAX( + + 10 ) AS col0, MIN( + col1 ) FROM tab2
----
7
51
skipif mysql # not compatible
query II rowsort label-9148
SELECT DISTINCT - COUNT ( * ) + + MAX ( + + 10 ) AS col0, MIN ( + col1 ) FROM tab2
----
7
51
query I rowsort
SELECT 78 * - col1 - - + col0 * - col1 AS col2 FROM tab1 WHERE NULL BETWEEN + col1 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9150
SELECT - 2 - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-9150
SELECT - 2 - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col0 ) - - 63 col0, - ( - ( - - ( - col1 ) ) ) FROM tab0 AS cor0
----
150
-21
160
-1
78
-81
onlyif mysql # aggregate syntax:
query I rowsort label-9152
SELECT + COUNT( * ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9152
SELECT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + - - 13 IS NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * + - 38 + col0 col2 FROM tab0
----
2751
2823
2833
query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * + ( + col1 ) <> col2 + + col2 - 74 + + col2
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND - col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-9158
SELECT DISTINCT - + col2 DIV 67 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT - + col2 / 67 FROM tab1 AS cor0
----
-1
0
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col1 BETWEEN + 52 AND col2
----
51
14
96
onlyif mysql # aggregate syntax:
query I rowsort label-9160
SELECT + SUM( + - col1 ) FROM tab2 AS cor0
----
-195
skipif mysql # not compatible
query I rowsort label-9160
SELECT + SUM ( + - col1 ) FROM tab2 AS cor0
----
-195
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * col2 col2 FROM tab1 AS cor0
----
2478
2856
4032
onlyif mysql # aggregate syntax:
query II rowsort label-9162
SELECT - COUNT( * ) AS col2, 2 FROM tab0 AS cor0 WHERE NOT - 25 + + col2 IS NOT NULL
----
0
2
skipif mysql # not compatible
query II rowsort label-9162
SELECT - COUNT ( * ) AS col2, 2 FROM tab0 AS cor0 WHERE NOT - 25 + + col2 IS NOT NULL
----
0
2
onlyif mysql # aggregate syntax:
query I rowsort label-9163
SELECT - MIN( + col0 ) FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-9163
SELECT - MIN ( + col0 ) FROM tab1 AS cor0
----
-51
onlyif mysql # aggregate syntax:
query I rowsort label-9164
SELECT DISTINCT - COUNT( * ) * + - 13 AS col0 FROM tab0 AS cor0
----
39
skipif mysql # not compatible
query I rowsort label-9164
SELECT DISTINCT - COUNT ( * ) * + - 13 AS col0 FROM tab0 AS cor0
----
39
query II rowsort
SELECT DISTINCT - + 57 AS col1, - 41 AS col2 FROM tab2 AS cor0
----
-57
-41
onlyif mysql # DIV for integer division:
query II rowsort label-9166
SELECT - col0 DIV - - 64, - 65 AS col0 FROM tab1
----
-1
-65
-1
-65
0
-65
skipif mysql # not compatible
query II rowsort label-9166
SELECT - col0 / - - 64, - 65 AS col0 FROM tab1
----
-1
-65
-1
-65
0
-65
onlyif mysql # aggregate syntax:
query I rowsort label-9167
SELECT - ( MAX( DISTINCT + col2 ) ) FROM tab2
----
-58
skipif mysql # not compatible
query I rowsort label-9167
SELECT - ( MAX ( DISTINCT + col2 ) ) FROM tab2
----
-58
query I rowsort
SELECT col1 + 63 FROM tab2
----
114
130
140
onlyif mysql # aggregate syntax:
query II rowsort label-9169
SELECT COUNT( * ), - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
-3
skipif mysql # not compatible
query II rowsort label-9169
SELECT COUNT ( * ), - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
-3
query I rowsort
SELECT DISTINCT - col0 + - col0 + col2 + - col2 FROM tab1 AS cor0
----
-102
-170
-182
onlyif mysql # aggregate syntax:
query II rowsort label-9171
SELECT ( + - SUM( ( - - col0 ) ) ) AS col2, - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
-185
-3
skipif mysql # not compatible
query II rowsort label-9171
SELECT ( + - SUM ( ( - - col0 ) ) ) AS col2, - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
-185
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9172
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9173
SELECT DISTINCT - - CAST( col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
51
67
77
skipif mysql # not compatible
query I rowsort label-9173
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
51
67
77
query III rowsort
SELECT * FROM tab0 WHERE - - 29 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9175
SELECT DISTINCT ( - - MAX( 62 ) ) FROM tab0
----
62
skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT ( - - MAX ( 62 ) ) FROM tab0
----
62
onlyif mysql # aggregate syntax:
query I rowsort label-9176
SELECT ALL ( + COUNT( * ) ) FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL ( + COUNT ( * ) ) FROM tab2
----
3
query I rowsort
SELECT col0 + + 91 AS col2 FROM tab0
----
106
178
188
onlyif mysql # aggregate syntax:
query I rowsort label-9178
SELECT + MIN( - col2 ) + - MAX( - col0 ) FROM tab1
----
-45
skipif mysql # not compatible
query I rowsort label-9178
SELECT + MIN ( - col2 ) + - MAX ( - col0 ) FROM tab1
----
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col2 col2 FROM tab1
----
0
0
0
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9180
SELECT - col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9180
SELECT - col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT col0 + - 3 + + + 33 + col0 FROM tab2 AS cor0
----
122
158
180
query I rowsort
SELECT DISTINCT + 54 * + col0 AS col0 FROM tab0
----
4698
5238
810
query I rowsort
SELECT ALL + 60 * - col0 FROM tab2
----
-2760
-3840
-4500
query I rowsort
SELECT - - 35 * + 29 FROM tab0 AS cor0
----
1015
1015
1015
query I rowsort
SELECT ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5
query II rowsort
SELECT DISTINCT - - col2, - col2 AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58
query I rowsort
SELECT ALL + col2 * + 8 * + + 83 FROM tab0 cor0
----
31208
65736
6640
query I rowsort
SELECT ALL + + ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-9192
SELECT DISTINCT - 29, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-29
3
skipif mysql # not compatible
query II rowsort label-9192
SELECT DISTINCT - 29, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-29
3
query I rowsort
SELECT ALL + + 16 AS col0 FROM tab1 cor0
----
16
16
16
onlyif mysql # aggregate syntax:
query II rowsort label-9194
SELECT DISTINCT 1 AS col1, + COUNT( * ) AS col2 FROM tab2
----
1
3
skipif mysql # not compatible
query II rowsort label-9194
SELECT DISTINCT 1 AS col1, + COUNT ( * ) AS col2 FROM tab2
----
1
3
onlyif mysql # DIV for integer division:
query I rowsort label-9195
SELECT col0 DIV - + ( - 13 ) FROM tab2
----
3
4
5
skipif mysql # not compatible
query I rowsort label-9195
SELECT col0 / - + ( - 13 ) FROM tab2
----
3
4
5
query III rowsort
SELECT * FROM tab2 WHERE NOT - 39 <> - 17
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9197
SELECT ALL 19 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL 19 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 59 * + col2 AS col1 FROM tab0
----
2773
5841
590
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9199
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9199
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2, col0 * + - 46 )
----
query I rowsort
SELECT ALL - 45 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-45
-45
-45
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + - - col0 <= NULL
----
query I rowsort
SELECT ALL + col2 * + 45 + + col2 AS col1 FROM tab1 AS cor0
----
2714
3128
4416
query I rowsort
SELECT - 75 * col2 FROM tab2 AS cor0
----
-1725
-3000
-4350
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9205
SELECT DISTINCT - SUM( DISTINCT - 59 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----
NULL
skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT - SUM ( DISTINCT - 59 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----
NULL
query I rowsort
SELECT DISTINCT col0 * - - col0 AS col0 FROM tab0
----
225
7569
9409
query I rowsort
SELECT ALL - 54 * + ( - col2 ) * col2 - 53 FROM tab2
----
181603
28513
86347
query I rowsort
SELECT DISTINCT + 71 + - col1 AS col2 FROM tab1
----
24
57
66
onlyif mysql # aggregate syntax:
query I rowsort label-9209
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE col0 + 63 <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-9209
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE col0 + 63 <> NULL
----
0
query I rowsort
SELECT ALL - 92 + - + 39 FROM tab0 cor0
----
-131
-131
-131
query I rowsort
SELECT DISTINCT ( 32 ) + - col1 FROM tab2 AS cor0
----
-19
-35
-45
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9212
SELECT + COUNT( * ) * + - CAST( ( 20 ) AS SIGNED ) + - MIN( 84 ) FROM tab1 AS cor0
----
-144
skipif mysql # not compatible
query I rowsort label-9212
SELECT + COUNT ( * ) * + - CAST ( ( 20 ) AS INTEGER ) + - MIN ( 84 ) FROM tab1 AS cor0
----
-144
query I rowsort
SELECT ALL - 14 - - - col1 FROM tab2 AS cor0
----
-65
-81
-91
onlyif mysql # aggregate syntax:
query I rowsort label-9214
SELECT SUM( + col2 ) * - + COUNT( * ) + + 69 AS col2 FROM tab0
----
-399
skipif mysql # not compatible
query I rowsort label-9214
SELECT SUM ( + col2 ) * - + COUNT ( * ) + + 69 AS col2 FROM tab0
----
-399
query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 <= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab0 WHERE ( NOT + 47 * 85 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 1 * - col2 AS col1 FROM tab1 WHERE ( NOT NULL <= ( NULL ) )
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9218
SELECT ALL - - 66 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
66
-3
skipif mysql # not compatible
query II rowsort label-9218
SELECT ALL - - 66 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
66
-3
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + + ( + col1 ) BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 WHERE NOT ( + 79 / col2 ) = ( - col2 + col1 )
----
138
65
90
query I rowsort
SELECT ALL + 77 * + 44 FROM tab1 WHERE NOT 52 IS NULL
----
3388
3388
3388
onlyif mysql # aggregate syntax:
query I rowsort label-9222
SELECT DISTINCT + SUM( ALL 12 ) FROM tab0
----
36
skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT + SUM ( ALL 12 ) FROM tab0
----
36
query III rowsort
SELECT * FROM tab1 WHERE NOT 30 / col0 NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND 2 * col2
----
query I rowsort
SELECT col1 * + col0 + - col0 AS col0 FROM tab2 WHERE - 37 IS NOT NULL
----
2300
4864
4950
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 12 / - 16 AND ( + col0 + col0 )
----
query I rowsort
SELECT - col0 * 30 + 84 AS col0 FROM tab1
----
-1446
-2466
-2646
query I rowsort
SELECT + col2 * + col2 + + col2 FROM tab2
----
1640
3422
552
onlyif mysql # aggregate syntax:
query I rowsort label-9229
SELECT - COUNT( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-9229
SELECT - COUNT ( * ) FROM tab2 WHERE - col0 IS NOT NULL
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9230
SELECT ALL - COUNT( * ) - + 44 DIV 88 AS col0 FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - COUNT ( * ) - + 44 / 88 AS col0 FROM tab1
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9231
SELECT ALL + SUM( DISTINCT 7 ) + COUNT( * ) AS col2 FROM tab0
----
10
skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL + SUM ( DISTINCT 7 ) + COUNT ( * ) AS col2 FROM tab0
----
10
query III rowsort
SELECT * FROM tab2 WHERE - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9233
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9234
SELECT + MIN( + col2 ) AS col0 FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-9234
SELECT + MIN ( + col2 ) AS col0 FROM tab2
----
23
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9235
SELECT - COUNT( * ) FROM tab1 WHERE ( col1 ) < + CAST( NULL AS SIGNED ) * - col2
----
0
skipif mysql # not compatible
query I rowsort label-9235
SELECT - COUNT ( * ) FROM tab1 WHERE ( col1 ) < + CAST ( NULL AS INTEGER ) * - col2
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-9236
SELECT - COUNT( + 81 ) + - COUNT( * ) AS col2 FROM tab1
----
-6
skipif mysql # not compatible
query I rowsort label-9236
SELECT - COUNT ( + 81 ) + - COUNT ( * ) AS col2 FROM tab1
----
-6
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9237
SELECT col1 / + 99 + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9237
SELECT col1 / + 99 + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9238
SELECT DISTINCT + col1 DIV col0 + col0 AS col2 FROM tab0
----
20
87
97
skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT + col1 / col0 + col0 AS col2 FROM tab0
----
20
87
97
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9239
SELECT 23 + ( CAST( NULL AS DECIMAL ) + - col0 * + 86 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9239
SELECT 23 + ( CAST ( NULL AS REAL ) + - col0 * + 86 ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9240
SELECT ALL + CAST( NULL AS SIGNED ) * + 3 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + CAST ( NULL AS INTEGER ) * + 3 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 / + 58 col0 FROM tab2 WHERE - 23 BETWEEN NULL AND + 6 * - col2
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-9243
SELECT ALL + 94 + - COUNT( * ) FROM tab0 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + 94 + - COUNT ( * ) FROM tab0 AS cor0
----
91
query I rowsort
SELECT col2 + 33 FROM tab0 AS cor0
----
132
43
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + col2 * + col1 col1 FROM tab0 cor0
----
102
213
3810
onlyif mysql # aggregate syntax:
query I rowsort label-9246
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9
skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-9
query I rowsort
SELECT DISTINCT 93 + - 32 * col2 AS col0 FROM tab0 AS cor0
----
-1411
-227
-3075
query I rowsort
SELECT + + 58 AS col0 FROM tab1 cor0
----
58
58
58
onlyif mysql # aggregate syntax:
query I rowsort label-9249
SELECT - MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9249
SELECT - MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT ALL + 15 + 13 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT DISTINCT + 5 + + 83 FROM tab0 AS cor0
----
88
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) * + col1 NOT BETWEEN - 41 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 91 <> NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9255
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + ( 39 ) * + CAST( NULL AS SIGNED ) IS NOT NULL
----
skipif mysql # not compatible
query III rowsort label-9255
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + ( 39 ) * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9256
SELECT DISTINCT + - MAX( ALL 25 ) AS col0 FROM tab0 cor0
----
-25
skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + - MAX ( ALL 25 ) AS col0 FROM tab0 cor0
----
-25
onlyif mysql # aggregate syntax:
query I rowsort label-9257
SELECT COUNT( * ) AS col1 FROM tab1 cor0 WHERE col2 < + col2 * - 71 + + 32
----
0
skipif mysql # not compatible
query I rowsort label-9257
SELECT COUNT ( * ) AS col1 FROM tab1 cor0 WHERE col2 < + col2 * - 71 + + 32
----
0
query I rowsort
SELECT col0 FROM tab1 WHERE NULL = + col2 + + 36 * + 65
----
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( col0 ) > NULL
----
query III rowsort
SELECT * FROM tab2 WHERE + 56 BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9261
SELECT ALL - COUNT( - 98 ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL - COUNT ( - 98 ) FROM tab1
----
-3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 + + col2 >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col0 FROM tab0
----
-108
-96
-98
query I rowsort
SELECT - 54 + - 43 FROM tab1
----
-97
-97
-97
onlyif mysql # aggregate syntax:
query I rowsort label-9265
SELECT ALL MAX( 87 ) + 58 AS col0 FROM tab2
----
145
skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL MAX ( 87 ) + 58 AS col0 FROM tab2
----
145
query I rowsort
SELECT + 77 AS col0 FROM tab2 WHERE col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9267
SELECT + MIN( DISTINCT + 37 ) AS col0 FROM tab0
----
37
skipif mysql # not compatible
query I rowsort label-9267
SELECT + MIN ( DISTINCT + 37 ) AS col0 FROM tab0
----
37
query I rowsort
SELECT DISTINCT + ( + + 14 ) FROM tab1 AS cor0
----
14
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * col0 <= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE ( - ( col1 ) ) > ( col0 * 15 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + + col2 ) NOT IN ( 35 * + 67 - - 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9272
SELECT DISTINCT + 14 + 61 * - ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-535
skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + 14 + 61 * - ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-535
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9273
SELECT DISTINCT - COUNT( * ) * + CAST( NULL AS SIGNED ) + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9273
SELECT DISTINCT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 cor0 WHERE + col0 IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 40 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - + col2 * ( - 84 ) + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT ALL 20 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9279
SELECT - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9279
SELECT - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9280
SELECT + - 78 + + + COUNT( * ) DIV + 79 FROM tab2 AS cor0
----
-78
skipif mysql # not compatible
query I rowsort label-9280
SELECT + - 78 + + + COUNT ( * ) / + 79 FROM tab2 AS cor0
----
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + col0 col1 FROM tab0
----
108
96
98
query I rowsort
SELECT - ( 28 ) + - 28 FROM tab0
----
-56
-56
-56
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( 96 + 65 )
----
query I rowsort
SELECT 6 FROM tab1 WHERE NOT ( - ( - 62 ) ) IN ( + 54 )
----
6
6
6
query I rowsort
SELECT col1 + 28 AS col0 FROM tab2
----
105
79
95
query I rowsort
SELECT DISTINCT 12 * ( ( - col0 ) ) FROM tab1
----
-1020
-1092
-612
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 45 * + + 80 + - 94 * - col0 = NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9288
SELECT + 60 + + col1 DIV col1 FROM tab0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-9288
SELECT + 60 + + col1 / col1 FROM tab0
----
61
61
61
query I rowsort
SELECT + 16 * + col1 + 72 AS col1 FROM tab1
----
152
296
824
onlyif mysql # DIV for integer division:
query I rowsort label-9290
SELECT ALL + col2 + + col1 DIV - 33 AS col1 FROM tab1
----
59
67
96
skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + col2 + + col1 / - 33 AS col1 FROM tab1
----
59
67
96
query I rowsort
SELECT ALL + col2 / col1 + 38 + + 21 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
query I rowsort
SELECT - ( - 8 ) FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT - col2 * + 84 + - col0 * col2 FROM tab2 cor0
----
-2990
-5920
-9222
query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 51 + - 24 BETWEEN ( NULL ) AND NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9295
SELECT ALL + CAST( + MIN( ALL - - ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9295
SELECT ALL + CAST ( + MIN ( ALL - - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT col0 - 87 FROM tab2
----
-12
-23
-41
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9297
SELECT col0 + col1 - - CAST( 70 AS SIGNED ) + col1 FROM tab2
----
218
279
288
skipif mysql # not compatible
query I rowsort label-9297
SELECT col0 + col1 - - CAST ( 70 AS INTEGER ) + col1 FROM tab2
----
218
279
288
query I rowsort
SELECT 18 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9299
SELECT DISTINCT col1, - col2 * + CAST( NULL AS DECIMAL ) * - col1 - + 99 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
skipif mysql # not compatible
query II rowsort label-9299
SELECT DISTINCT col1, - col2 * + CAST ( NULL AS REAL ) * - col1 - + 99 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9300
SELECT DISTINCT col2 + + 78 DIV 12 + - + col1 AS col2 FROM tab1 cor0
----
27
60
88
skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT col2 + + 78 / 12 + - + col1 AS col2 FROM tab1 cor0
----
27
60
88
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9301
SELECT col0 * - - CAST( NULL AS SIGNED ) + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9301
SELECT col0 * - - CAST ( NULL AS INTEGER ) + + 75 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9302
SELECT ALL - COUNT( - + 32 ) - + 13 + + COUNT( * ) FROM tab0 AS cor0
----
-13
skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL - COUNT ( - + 32 ) - + 13 + + COUNT ( * ) FROM tab0 AS cor0
----
-13
query I rowsort
SELECT 62 AS col0 FROM tab0 cor0
----
62
62
62
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < ( - col0 * - + 28 )
----
query I rowsort
SELECT DISTINCT 56 + - + col2 FROM tab0 AS cor0
----
-43
46
9
query I rowsort
SELECT ALL - 55 - - col2 FROM tab1 AS cor0
----
13
4
41
onlyif mysql # aggregate syntax:
query I rowsort label-9307
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6
skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6
query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81
query II rowsort
SELECT col0 * 92 AS col0, - col1 AS col2 FROM tab2
----
4232
-51
5888
-77
6900
-67
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query II rowsort label-9310
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( * ) DIV - - 40 AS col2 FROM tab2
----
NULL
0
skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) / - - 40 AS col2 FROM tab2
----
NULL
0
onlyif mysql # DIV for integer division:
query I rowsort label-9311
SELECT DISTINCT + 27 DIV - 43 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9311
SELECT DISTINCT + 27 / - 43 FROM tab0
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-9312
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) FROM tab1
----
3
3
skipif mysql # not compatible
query II rowsort label-9312
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) FROM tab1
----
3
3
onlyif mysql # aggregate syntax:
query I rowsort label-9313
SELECT - 25 * + + MIN( ALL 46 ) * COUNT( col2 ) - 40 FROM tab0 WHERE NOT ( NOT 83 IS NULL )
----
NULL
skipif mysql # not compatible
query I rowsort label-9313
SELECT - 25 * + + MIN ( ALL 46 ) * COUNT ( col2 ) - 40 FROM tab0 WHERE NOT ( NOT 83 IS NULL )
----
NULL
query I rowsort
SELECT DISTINCT - 3 * 61 FROM tab0 AS cor0
----
-183
query II rowsort
SELECT + col1 AS col2, + col0 * - col0 AS col2 FROM tab0 AS cor0
----
1
-9409
21
-7569
81
-225
onlyif mysql # DIV for integer division:
query I rowsort label-9316
SELECT + 22 DIV - - col0 * col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9316
SELECT + 22 / - - col0 * col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * - - 48 AS col0 FROM tab2 AS cor0
----
2448
3216
3696
query I rowsort
SELECT 14 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT - ( + - 10 ) FROM tab1 AS cor0
----
10
query I rowsort
SELECT ALL - 31 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT DISTINCT - ( - - ( - col0 ) ) AS col1 FROM tab1
----
51
85
91
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = NULL
----
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9323
SELECT + COUNT( - + col0 ) AS col2, CAST( - MAX( DISTINCT - col0 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
46
skipif mysql # not compatible
query II rowsort label-9323
SELECT + COUNT ( - + col0 ) AS col2, CAST ( - MAX ( DISTINCT - col0 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
46
onlyif mysql # aggregate syntax:
query I rowsort label-9324
SELECT + + MAX( col0 ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-9324
SELECT + + MAX ( col0 ) FROM tab1 AS cor0
----
91
onlyif mysql # aggregate syntax:
query I rowsort label-9325
SELECT ALL - COUNT( - + 35 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL - COUNT ( - + 35 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - 67 AS col0, col2 col2 FROM tab0 AS cor0
----
-1407
10
-5427
47
-67
99
onlyif mysql # aggregate syntax:
query II rowsort label-9328
SELECT 20 AS col2, + COUNT( * ) * 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----
20
0
skipif mysql # not compatible
query II rowsort label-9328
SELECT 20 AS col2, + COUNT ( * ) * 36 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----
20
0
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN col0 / - col0 * col1 + + 98 AND NULL
----
query I rowsort
SELECT ALL - - ( 98 ) AS col0 FROM tab2 cor0 WHERE NOT 43 * - 84 IS NULL
----
98
98
98
query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9332
SELECT MIN( - 40 ) AS col2 FROM tab0 AS cor0
----
-40
skipif mysql # not compatible
query I rowsort label-9332
SELECT MIN ( - 40 ) AS col2 FROM tab0 AS cor0
----
-40
query I rowsort
SELECT ALL - + 24 AS col0 FROM tab1 AS cor0
----
-24
-24
-24
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9334
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + - + col2 - + 58 * - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif mysql # not compatible
query III rowsort label-9334
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + - + col2 - + 58 * - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col2 + + - col0, - col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9336
SELECT DISTINCT - COUNT( * ) * + 19 FROM tab0
----
-57
skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT - COUNT ( * ) * + 19 FROM tab0
----
-57
onlyif mysql # aggregate syntax:
query I rowsort label-9337
SELECT ALL MIN( DISTINCT col0 ) FROM tab2
----
46
skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL MIN ( DISTINCT col0 ) FROM tab2
----
46
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9338
SELECT DISTINCT - 3 col2, + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 64 + 25 AS col2 FROM tab1
----
-3
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9338
SELECT DISTINCT - 3 col2, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 64 + 25 AS col2 FROM tab1
----
-3
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9339
SELECT ALL col1 * col0 DIV 77 + - col1 FROM tab0
----
-66
0
2
skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL col1 * col0 / 77 + - col1 FROM tab0
----
-66
0
2
onlyif mysql # aggregate syntax:
query I rowsort label-9340
SELECT DISTINCT - 20 + COUNT( * ) FROM tab0
----
-17
skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT - 20 + COUNT ( * ) FROM tab0
----
-17
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9341
SELECT - col2 * + col2 + - CAST( NULL AS SIGNED ) + + + 34 / + col0 col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9341
SELECT - col2 * + col2 + - CAST ( NULL AS INTEGER ) + + + 34 / + col0 col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9342
SELECT ALL col0 + col1 * + 73 + + CAST( NULL AS SIGNED ), 5 AS col2 FROM tab2 cor0
----
NULL
5
NULL
5
NULL
5
skipif mysql # not compatible
query II rowsort label-9342
SELECT ALL col0 + col1 * + 73 + + CAST ( NULL AS INTEGER ), 5 AS col2 FROM tab2 cor0
----
NULL
5
NULL
5
NULL
5
query I rowsort
SELECT ALL - col2 + ( + col0 ) + + + ( + 47 ) FROM tab2 AS cor0
----
64
70
71
query I rowsort
SELECT DISTINCT - 60 + - col0 AS col2 FROM tab1 AS cor0
----
-111
-145
-151
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE 34 * - 63 * col1 IS NULL
----
query I rowsort
SELECT - + 87 + - col1 + + + 13 FROM tab1 AS cor0
----
-121
-79
-88
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - col2 * + ( + + 86 ) FROM tab1
----
-5074
-5848
-8256
onlyif mysql # DIV for integer division:
query I rowsort label-9350
SELECT 90 DIV 44 FROM tab0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-9350
SELECT 90 / 44 FROM tab0
----
2
2
2
query I rowsort
SELECT ALL - 79 AS col2 FROM tab2
----
-79
-79
-79
query I rowsort
SELECT + - col0 - + 24 + + ( col1 ) - - 35 FROM tab2 AS cor0
----
16
24
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9353
SELECT CAST( - + 19 AS SIGNED ) - - col0 FROM tab0 AS cor0
----
-4
68
78
skipif mysql # not compatible
query I rowsort label-9353
SELECT CAST ( - + 19 AS INTEGER ) - - col0 FROM tab0 AS cor0
----
-4
68
78
query I rowsort
SELECT col1 - col0 + - + 77 AS col2 FROM tab1 AS cor0
----
-114
-121
-157
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 50 IN ( col1, - col1 + + ( - col1 ), - - 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-9356
SELECT DISTINCT + SUM( DISTINCT col2 ) + 65 AS col2 FROM tab2 AS cor0
----
186
skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + SUM ( DISTINCT col2 ) + 65 AS col2 FROM tab2 AS cor0
----
186
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * 0 * + 66 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0
query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT 95 + - col2 IS NULL OR NULL IS NOT NULL
----
15
87
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( DISTINCT 69 ) / - ( - - 68 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT - col2 * + col1 * 47 AS col0 FROM tab0
----
-178929
-4653
-9870
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + + col2, + col0 + + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 88 * - col2 col0 FROM tab0
----
-194392
-862488
-8800
query II rowsort
SELECT DISTINCT 7 AS col0, - col0 FROM tab0
----
7
-15
7
-87
7
-97
query I rowsort
SELECT ALL + - 59 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-59
-59
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col0 FROM tab2
----
51
46
67
75
77
64
query I rowsort
SELECT ALL col0 * + 95 FROM tab1
----
4845
8075
8645
query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab2 WHERE NOT + 85 IS NOT NULL
----
query I rowsort
SELECT ALL ( - - col0 ) * col0 FROM tab1 AS cor0
----
2601
7225
8281
query I rowsort
SELECT - col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - col2
----
onlyif mysql # aggregate syntax:
query I rowsort label-9374
SELECT ALL SUM( - - 28 ) AS col0 FROM tab2
----
84
skipif mysql # not compatible
query I rowsort label-9374
SELECT ALL SUM ( - - 28 ) AS col0 FROM tab2
----
84
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col0
----
query I rowsort
SELECT DISTINCT + - 15 + + - col2 + - + col0 FROM tab2 cor0
----
-119
-148
-84
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9378
SELECT + ( COUNT( * ) ) * - - COUNT( DISTINCT col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-9378
SELECT + ( COUNT ( * ) ) * - - COUNT ( DISTINCT col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6
onlyif mysql # DIV for integer division:
query II rowsort label-9379
SELECT DISTINCT - - col1 AS col0, + col2 DIV col1 FROM tab2 AS cor0
----
51
0
67
0
77
0
skipif mysql # not compatible
query II rowsort label-9379
SELECT DISTINCT - - col1 AS col0, + col2 / col1 FROM tab2 AS cor0
----
51
0
67
0
77
0
query II rowsort
SELECT + 58, + col0 + - - 87 AS col1 FROM tab1 AS cor0 WHERE 9 * + col2 IS NOT NULL
----
58
138
58
172
58
178
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 52 / + col1 IS NULL
----
query I rowsort
SELECT - 25 + - col2 + 31 AS col1 FROM tab1 AS cor0
----
-53
-62
-90
query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 AS col1 FROM tab2 AS cor0
----
-46
-23
-64
-40
-75
-58
onlyif mysql # aggregate syntax:
query I rowsort label-9384
SELECT ALL - SUM( - + col1 ) AS col2 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-9384
SELECT ALL - SUM ( - + col1 ) AS col2 FROM tab1 AS cor0
----
66
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9385
SELECT ALL - + AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL - + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
query III rowsort
SELECT * FROM tab1 WHERE - col1 / col1 = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( + 5 ) col1 FROM tab2
----
18
35
53
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9388
SELECT - CAST( NULL AS SIGNED ) / + CAST( - + col1 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9388
SELECT - CAST ( NULL AS INTEGER ) / + CAST ( - + col1 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT ALL + 92 * - col2 AS col0, col2 + + 52 FROM tab0
----
-4324
99
-9108
151
-920
62
query I rowsort
SELECT DISTINCT col1 * + 41 + - col2 * - col0 * - col0 AS col2 FROM tab1
----
-249122
-426070
-561181
query I rowsort
SELECT DISTINCT + 69 - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-636
-801
-9534
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9392
SELECT - - 93 DIV COUNT( * ) * + - 43 AS col0 FROM tab2 AS cor0
----
-1333
skipif mysql # not compatible
query I rowsort label-9392
SELECT - - 93 / COUNT ( * ) * + - 43 AS col0 FROM tab2 AS cor0
----
-1333
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division:
query I rowsort label-9393
SELECT + + COUNT( * ) DIV ( - COUNT( * ) ) * + - CAST( - MAX( col1 ) AS SIGNED ) * + - COUNT( * ) AS col0 FROM tab0 cor0
----
243
skipif mysql # not compatible
query I rowsort label-9393
SELECT + + COUNT ( * ) / ( - COUNT ( * ) ) * + - CAST ( - MAX ( col1 ) AS INTEGER ) * + - COUNT ( * ) AS col0 FROM tab0 cor0
----
243
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + + 88 IS NOT NULL )
----
query II rowsort
SELECT DISTINCT - 39 * + col1 + col1 AS col0, col2 FROM tab0 AS cor0
----
-3078
47
-38
99
-798
10
onlyif mysql # aggregate syntax:
query II rowsort label-9396
SELECT DISTINCT + COUNT( * ), + COUNT( * ) * SUM( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
3
585
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9396
SELECT DISTINCT + COUNT ( * ), + COUNT ( * ) * SUM ( DISTINCT col1 ) col0 FROM tab2 AS cor0
----
3
585
onlyif mysql # aggregate syntax:
query II rowsort label-9397
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
-3
3
skipif mysql # not compatible
query II rowsort label-9397
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( ALL + 41 ) AS col2 FROM tab2 AS cor0
----
-3
3
query I rowsort
SELECT - + ( + 79 ) FROM tab0 AS cor0
----
-79
-79
-79
onlyif mysql # aggregate syntax:
query I rowsort label-9399
SELECT DISTINCT COUNT( DISTINCT + 49 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT COUNT ( DISTINCT + 49 ) FROM tab1
----
1
query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-9401
SELECT DISTINCT ( - 55 ) * + COUNT( * ) col1 FROM tab0
----
-165
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9401
SELECT DISTINCT ( - 55 ) * + COUNT ( * ) col1 FROM tab0
----
-165
query I rowsort
SELECT + col1 * + 13 AS col2 FROM tab0
----
1053
13
273
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9404
SELECT + COUNT( ALL - + col0 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9404
SELECT + COUNT ( ALL - + col0 ) FROM tab1 AS cor0
----
3
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 87 <> ( NULL )
----
query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e
query I rowsort
SELECT DISTINCT 22 FROM tab0 AS cor0 INNER JOIN tab1 cor1 ON NULL IS NULL
----
22
onlyif mysql # aggregate syntax:
query I rowsort label-9408
SELECT ALL + MAX( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + MAX ( DISTINCT - col0 ) FROM tab1 AS cor0 WHERE ( - col0 ) IS NULL
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9409
SELECT DISTINCT - + MAX( - 17 ) AS col2 FROM tab2 AS cor0
----
17
skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT - + MAX ( - 17 ) AS col2 FROM tab2 AS cor0
----
17
query I rowsort
SELECT + - 65 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-3055
-6435
-650
onlyif mysql # DIV for integer division:
query I rowsort label-9411
SELECT col1 DIV col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9411
SELECT col1 / col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0
query I rowsort
SELECT 0 * col0 * - - 22 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col1 col0 FROM tab2 AS cor0
----
-117
-125
-74
onlyif mysql # aggregate syntax:
query I rowsort label-9414
SELECT DISTINCT 12 + + COUNT( 55 ) FROM tab2 AS cor0
----
15
skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT 12 + + COUNT ( 55 ) FROM tab2 AS cor0
----
15
query II rowsort
SELECT + col2, + col1 + - 72 * 32 * - col1 FROM tab1 AS cor0
----
59
11525
68
108335
96
32270
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( + 97 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9417
SELECT + COUNT( * ) col0 FROM tab2 AS cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9417
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0
----
3
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL >= 52
----
query I rowsort
SELECT ALL - - 6 * - + col1 + - 9 / - col2 + + 23 - - col2 FROM tab1 WHERE ( NULL ) BETWEEN + 56 AND + col2 AND NOT ( NULL ) IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9420
SELECT + COUNT( * ) + 64 AS col0 FROM tab2
----
67
skipif mysql # not compatible
query I rowsort label-9420
SELECT + COUNT ( * ) + 64 AS col0 FROM tab2
----
67
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 35 AND NULL AND NOT - col2 - + 59 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9422
SELECT DISTINCT - COUNT( + col0 ) AS col1 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - COUNT ( + col0 ) AS col1 FROM tab0
----
-3
query III rowsort
SELECT * FROM tab2 WHERE - 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT 85 + + col2 AS col0 FROM tab2
----
108
125
143
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9425
SELECT CAST( - - col2 AS SIGNED ) + col0 col2 FROM tab2
----
104
133
69
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9425
SELECT CAST ( - - col2 AS INTEGER ) + col0 col2 FROM tab2
----
104
133
69
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9426
SELECT DISTINCT 29 * 22 + - CAST( NULL AS SIGNED ) + + - 9 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9426
SELECT DISTINCT 29 * 22 + - CAST ( NULL AS INTEGER ) + + - 9 AS col1 FROM tab1
----
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9427
SELECT ALL + 12 * - - COUNT( * ) DIV - 96 + + 5 AS col2 FROM tab1 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + 12 * - - COUNT ( * ) / - 96 + + 5 AS col2 FROM tab1 AS cor0
----
5
query II rowsort
SELECT - col2, col2 * - + col2 - - 33 * + - 85 AS col1 FROM tab2 AS cor0
----
-23
-3334
-40
-4405
-58
-6169
onlyif mysql # aggregate syntax:
query I rowsort label-9429
SELECT ALL - ( - - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9429
SELECT ALL - ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-3
onlyif mysql # DIV for integer division:
query I rowsort label-9430
SELECT DISTINCT + col0 * col2 DIV col0 - - col2 FROM tab1 AS cor0
----
118
136
192
skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + col0 * col2 / col0 - - col2 FROM tab1 AS cor0
----
118
136
192
onlyif mysql # aggregate syntax:
query II rowsort label-9431
SELECT - COUNT( * ) AS col1, - 64 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
-64
skipif mysql # not compatible
query II rowsort label-9431
SELECT - COUNT ( * ) AS col1, - 64 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
-64
query I rowsort
SELECT ( - col1 ) - + - 26 + + col2 FROM tab1
----
108
47
80
query III rowsort
SELECT * FROM tab2 WHERE 92 + - col2 = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IS NOT NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9435
SELECT ( + 49 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + 37 + - - ( + col1 ), + CAST( NULL AS DECIMAL ) )
----
skipif mysql # not compatible
query I rowsort label-9435
SELECT ( + 49 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col2 IN ( + 37 + - - ( + col1 ), + CAST ( NULL AS REAL ) )
----
query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT 7 IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 >= + col1
----
87
21
10
97
1
99
query II rowsort
SELECT ALL - + ( 48 ) AS col1, - col1 * - col2 + - + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-48
-1617
-48
2
-48
2592
query I rowsort
SELECT DISTINCT - ( - + 52 ) * - col1 FROM tab2 cor0
----
-2652
-3484
-4004
onlyif mysql # aggregate syntax:
query I rowsort label-9440
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23
skipif mysql # not compatible
query I rowsort label-9440
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23
query I rowsort
SELECT ALL col2 / + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9442
SELECT - ( COUNT( * ) ) FROM tab1
----
-3
skipif mysql # not compatible
query I rowsort label-9442
SELECT - ( COUNT ( * ) ) FROM tab1
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9443
SELECT * FROM tab2 WHERE NOT col2 >= - - CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9443
SELECT * FROM tab2 WHERE NOT col2 >= - - CAST ( NULL AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9444
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9445
SELECT MAX( DISTINCT + col1 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-9445
SELECT MAX ( DISTINCT + col1 ) FROM tab2
----
77
query II rowsort
SELECT ALL - col0, col1 AS col2 FROM tab1
----
-51
14
-85
5
-91
47
onlyif mysql # aggregate syntax:
query I rowsort label-9447
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) FROM tab0
----
9
skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9448
SELECT DISTINCT - MIN( + ( 82 ) ) FROM tab0
----
-82
skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT - MIN ( + ( 82 ) ) FROM tab0
----
-82
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9449
SELECT * FROM tab1 WHERE NOT NULL < + CAST( 65 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9449
SELECT * FROM tab1 WHERE NOT NULL < + CAST ( 65 AS INTEGER )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9450
SELECT + CAST( + col2 AS SIGNED ) + + 67 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( ( col2 ), - ( + + col1 ) + + col2, - - 72 )
----
skipif mysql # not compatible
query I rowsort label-9450
SELECT + CAST ( + col2 AS INTEGER ) + + 67 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( ( col2 ), - ( + + col1 ) + + col2, - - 72 )
----
query II rowsort
SELECT + col1 AS col1, + ( col1 ) + + col0 FROM tab2
----
51
97
67
142
77
141
query I rowsort
SELECT ALL col2 * - + 19 * + + col0 AS col1 FROM tab2
----
-20102
-48640
-82650
query I rowsort
SELECT ALL col1 * + - col2 FROM tab2
----
-1173
-3080
-3886
query II rowsort
SELECT DISTINCT col1 AS col2, - 90 + - col1 FROM tab1
----
14
-104
47
-137
5
-95
onlyif mysql # aggregate syntax:
query I rowsort label-9455
SELECT ALL + COUNT( * ) * MIN( col0 ) AS col1 FROM tab1
----
153
skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL + COUNT ( * ) * MIN ( col0 ) AS col1 FROM tab1
----
153
query I rowsort
SELECT 7 * - col2 AS col0 FROM tab2
----
-161
-280
-406
query I rowsort
SELECT DISTINCT + + 41 AS col2 FROM tab1 AS cor0
----
41
query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) < - 52
----
15
81
47
onlyif mysql # aggregate syntax:
query I rowsort label-9460
SELECT ALL MIN( col1 ) FROM tab1 cor0
----
5
skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL MIN ( col1 ) FROM tab1 cor0
----
5
onlyif mysql # aggregate syntax:
query I rowsort label-9461
SELECT + MAX( - col2 ) FROM tab0 AS cor0
----
-10
skipif mysql # not compatible
query I rowsort label-9461
SELECT + MAX ( - col2 ) FROM tab0 AS cor0
----
-10
onlyif mysql # aggregate syntax:
query I rowsort label-9462
SELECT ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9462
SELECT ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9463
SELECT ALL + COUNT( * ) * + - COUNT( * ) * + COUNT( * ) FROM tab2
----
-27
skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-27
query I rowsort
SELECT + 41 * + col0 AS col0 FROM tab2
----
1886
2624
3075
query I rowsort
SELECT ALL ( - 38 ) * - 57 FROM tab2
----
2166
2166
2166
onlyif mysql # aggregate syntax:
query I rowsort label-9466
SELECT + COUNT( DISTINCT + col0 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-9466
SELECT + COUNT ( DISTINCT + col0 ) FROM tab0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9467
SELECT DISTINCT MIN( - + col0 ) + + SUM( 27 ) * 20 AS col1 FROM tab0
----
1523
skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT MIN ( - + col0 ) + + SUM ( 27 ) * 20 AS col1 FROM tab0
----
1523
onlyif mysql # aggregate syntax:
query I rowsort label-9468
SELECT COUNT( DISTINCT + - col1 ) FROM tab0
----
3
skipif mysql # not compatible
query I rowsort label-9468
SELECT COUNT ( DISTINCT + - col1 ) FROM tab0
----
3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9469
SELECT DISTINCT - MIN( DISTINCT ( - CAST( - 84 AS SIGNED ) ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-84
skipif mysql # not compatible
query I rowsort label-9469
SELECT DISTINCT - MIN ( DISTINCT ( - CAST ( - 84 AS INTEGER ) ) ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-84
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col1 <= - - col1
----
1
21
81
query I rowsort
SELECT ALL 81 + + col2 AS col1 FROM tab0 AS cor0
----
128
180
91
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9472
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9472
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # DIV for integer division:
query II rowsort label-9473
SELECT + 57 + - col1 AS col0, col2 DIV + - 69 FROM tab0 AS cor0
----
-24
0
36
0
56
-1
skipif mysql # not compatible
query II rowsort label-9473
SELECT + 57 + - col1 AS col0, col2 / + - 69 FROM tab0 AS cor0
----
-24
0
36
0
56
-1
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9474
SELECT + + 35 + + col2 + - CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9474
SELECT + + 35 + + col2 + - CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - + 33 + + - 64 * - col2 + + + col2 FROM tab1 AS cor0
----
1888
2176
3072
onlyif mysql # aggregate syntax:
query I rowsort label-9476
SELECT - 62 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-59
skipif mysql # not compatible
query I rowsort label-9476
SELECT - 62 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-59
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT NULL < NULL )
----
query I rowsort
SELECT col2 * + 23 * + + ( 37 ) FROM tab2
----
19573
34040
49358
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9479
SELECT DISTINCT 26 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT 26 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 46 NOT IN ( + col2 )
----
onlyif mysql # DIV for integer division:
query I rowsort label-9481
SELECT ALL - col0 DIV 54 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9481
SELECT ALL - col0 / 54 FROM tab2
----
-1
-1
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9482
SELECT COUNT( * ) DIV + + COUNT( * ) AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9482
SELECT COUNT ( * ) / + + COUNT ( * ) AS col2 FROM tab1
----
1
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9483
SELECT ALL COUNT( * ) DIV + 14 DIV + COUNT( * ) col0 FROM tab2
----
0
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9483
SELECT ALL COUNT ( * ) / + 14 / + COUNT ( * ) col0 FROM tab2
----
0
query I rowsort
SELECT ALL + col0 + + + col2 + 18 AS col2 FROM tab0
----
115
214
80
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9485
SELECT ALL + 61 * + - CAST( NULL AS SIGNED ) + - + col0 AS col2, - ( - - col2 ) * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
1523
NULL
3297
NULL
478
skipif mysql # not compatible
query II rowsort label-9485
SELECT ALL + 61 * + - CAST ( NULL AS INTEGER ) + - + col0 AS col2, - ( - - col2 ) * - col2 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
1523
NULL
3297
NULL
478
query I rowsort
SELECT - + col0 * + - col2 - - 62 FROM tab2 AS cor0
----
1120
2622
4412
query I rowsort
SELECT DISTINCT col1 + + - col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - 75 + + - 12 + - - 35 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT ALL + - col1 + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 23 NOT BETWEEN - ( col0 ) AND + col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-9491
SELECT + + ( + 35 ) * + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
315
skipif mysql # not compatible
query I rowsort label-9491
SELECT + + ( + 35 ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
315
query I rowsort
SELECT 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + 7, - col1 * + 64 * 22, - col1 * - - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9494
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab1 cor0
----
227
skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab1 cor0
----
227
onlyif mysql # aggregate syntax:
query I rowsort label-9495
SELECT - - SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223
skipif mysql # not compatible
query I rowsort label-9495
SELECT - - SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
223
query I rowsort
SELECT + 68 * + - col1 FROM tab2 AS cor0
----
-3468
-4556
-5236
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9497
SELECT 52 + 54 * CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
skipif mysql # not compatible
query I rowsort label-9497
SELECT 52 + 54 * CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
query II rowsort
SELECT - 98 AS col1, - 46 FROM tab1 AS cor0
----
-98
-46
-98
-46
-98
-46
query II rowsort
SELECT col1 AS col0, 79 FROM tab0 AS cor0
----
1
79
21
79
81
79
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9500
SELECT CAST( NULL AS SIGNED ) * 24 * + - COUNT( * ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9500
SELECT CAST ( NULL AS INTEGER ) * 24 * + - COUNT ( * ) AS col1 FROM tab1
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9501
SELECT DISTINCT MAX( DISTINCT col1 ) FROM tab2
----
77
skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT MAX ( DISTINCT col1 ) FROM tab2
----
77
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9502
SELECT ALL + ( ( + col1 ) ) * + 42 + - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + ( ( + col1 ) ) * + 42 + - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type:
query II rowsort label-9503
SELECT DISTINCT COUNT( + col0 ) AS col1, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
3
NULL
skipif mysql # not compatible
query II rowsort label-9503
SELECT DISTINCT COUNT ( + col0 ) AS col1, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
3
NULL
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9504
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - CAST( + col2 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - CAST ( + col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9505
SELECT MIN( + - col2 ) FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-9505
SELECT MIN ( + - col2 ) FROM tab1 AS cor0
----
-96
onlyif mysql # aggregate syntax:
query II rowsort label-9506
SELECT MAX( - col0 ) AS col0, 94 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 11 AND + ( + ( + col0 ) ) * - col1 + - + col0 + - 30
----
NULL
94
skipif mysql # not compatible
query II rowsort label-9506
SELECT MAX ( - col0 ) AS col0, 94 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 11 AND + ( + ( + col0 ) ) * - col1 + - + col0 + - 30
----
NULL
94
onlyif mysql # DIV for integer division:
query II rowsort label-9507
SELECT DISTINCT + col0 * - col2 col0, + col0 DIV 68 FROM tab2 AS cor0
----
-1058
0
-2560
0
-4350
1
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9507
SELECT DISTINCT + col0 * - col2 col0, + col0 / 68 FROM tab2 AS cor0
----
-1058
0
-2560
0
-4350
1
query I rowsort
SELECT DISTINCT + col1 * - ( 58 ) AS col1 FROM tab2 AS cor0
----
-2958
-3886
-4466
query I rowsort
SELECT ALL - + 4 * + col2 AS col1 FROM tab1 AS cor0
----
-236
-272
-384
query I rowsort
SELECT ALL 91 * + + col2 AS col0 FROM tab2
----
2093
3640
5278
query II rowsort
SELECT + col2, 80 FROM tab2
----
23
80
40
80
58
80
onlyif mysql # aggregate syntax:
query I rowsort label-9512
SELECT + MAX( - col0 ) FROM tab1 AS cor0
----
-51
skipif mysql # not compatible
query I rowsort label-9512
SELECT + MAX ( - col0 ) FROM tab1 AS cor0
----
-51
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9513
SELECT DISTINCT - 61 + - col0 / CAST( NULL AS DECIMAL ) + + + col2 col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9513
SELECT DISTINCT - 61 + - col0 / CAST ( NULL AS REAL ) + + + col2 col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9514
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 + - + 15 <> NULL
----
0
skipif mysql # not compatible
query I rowsort label-9514
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 + - + 15 <> NULL
----
0
query I rowsort
SELECT + 50 * + 79 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1
----
query I rowsort
SELECT - ( + - 42 ) AS col2 FROM tab2 AS cor0
----
42
42
42
onlyif mysql # aggregate syntax:
query I rowsort label-9517
SELECT ALL 49 + - COUNT( * ) FROM tab1 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL 49 + - COUNT ( * ) FROM tab1 AS cor0
----
46
query I rowsort
SELECT DISTINCT - 98 * + col0 * col0 AS col0 FROM tab2 cor0
----
-207368
-401408
-551250
query I rowsort
SELECT ALL - col2 + - 75 FROM tab2
----
-115
-133
-98
query I rowsort
SELECT col1 * + col2 + + ( - - col2 ) * + 43 AS col2 FROM tab2
----
2162
4800
6380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 52 + + col0 AND 64
----
onlyif mysql # aggregate syntax:
query I rowsort label-9522
SELECT DISTINCT - - 18 * - COUNT( * ) FROM tab0 AS cor0
----
-54
skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - - 18 * - COUNT ( * ) FROM tab0 AS cor0
----
-54
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9523
SELECT ALL + COUNT( * ) * - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + COUNT ( * ) * - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9524
SELECT ALL - ( + - COUNT( * ) ) AS col2 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - ( + - COUNT ( * ) ) AS col2 FROM tab2
----
3
query I rowsort
SELECT 32 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # aggregate syntax:
query I rowsort label-9526
SELECT - + MAX( ALL + col1 ) FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-9526
SELECT - + MAX ( ALL + col1 ) FROM tab1 AS cor0
----
-47
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9527
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col1 * + CAST( - col0 AS SIGNED ) * - 2 * - - 83 < NULL
----
skipif mysql # not compatible
query I rowsort label-9527
SELECT + col1 FROM tab1 AS cor0 WHERE NOT col1 * + CAST ( - col0 AS INTEGER ) * - 2 * - - 83 < NULL
----
onlyif mysql # CAST syntax: DECIMAL type:
query III rowsort label-9528
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= col1 * - - col0 - + CAST( NULL AS DECIMAL ) )
----
skipif mysql # not compatible
query III rowsort label-9528
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL >= col1 * - - col0 - + CAST ( NULL AS REAL ) )
----
query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab2 cor0
----
-51
-67
-77
onlyif mysql # aggregate syntax:
query I rowsort label-9530
SELECT DISTINCT + MAX( ALL col0 ) FROM tab1 AS cor0
----
91
skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + MAX ( ALL col0 ) FROM tab1 AS cor0
----
91
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 5 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col0, col2 AS col2 FROM tab0
----
10
10
47
47
99
99
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9533
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, - ( + 74 ) - + col2 AS col1 FROM tab0
----
NULL
-121
NULL
-173
NULL
-84
skipif mysql # not compatible
query II rowsort label-9533
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, - ( + 74 ) - + col2 AS col1 FROM tab0
----
NULL
-121
NULL
-173
NULL
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 32 * col1 col0 FROM tab0
----
2673
33
693
query I rowsort
SELECT 66 * - 3 FROM tab1
----
-198
-198
-198
query II rowsort
SELECT + 92, + 16 AS col1 FROM tab1
----
92
16
92
16
92
16
query II rowsort
SELECT + col0 AS col0, col0 + - + col1 FROM tab2 cor0
----
46
-5
64
-13
75
8
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( - + col1 ) >= NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9539
SELECT - + ( + + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9539
SELECT - + ( + + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9540
SELECT ALL - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9540
SELECT ALL - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
query II rowsort
SELECT DISTINCT col0 + + col0, + col1 AS col0 FROM tab1
----
102
14
170
5
182
47
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9542
SELECT * FROM tab1 AS cor0 WHERE CAST( ( 29 ) AS SIGNED ) BETWEEN ( + 63 + - col1 ) AND - 67
----
skipif mysql # not compatible
query III rowsort label-9542
SELECT * FROM tab1 AS cor0 WHERE CAST ( ( 29 ) AS INTEGER ) BETWEEN ( + 63 + - col1 ) AND - 67
----
query II rowsort
SELECT ALL - + col1 + - 38 AS col1, + col2 AS col1 FROM tab0 cor0
----
-119
47
-39
99
-59
10
query I rowsort
SELECT + 38 + + col0 AS col1 FROM tab0 AS cor0
----
125
135
53
query I rowsort
SELECT DISTINCT - col0 + ( ( col0 ) ) + - 68 * + col1 FROM tab2 AS cor0
----
-3468
-4556
-5236
query I rowsort
SELECT ALL - col1 - 25 AS col2 FROM tab1 AS cor0
----
-30
-39
-72
query I rowsort
SELECT DISTINCT 17 + + 43 FROM tab2 AS cor0
----
60
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 47 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9549
SELECT + ( + ( MAX( ALL + + col0 ) ) ) FROM tab2 AS cor0
----
75
skipif mysql # not compatible
query I rowsort label-9549
SELECT + ( + ( MAX ( ALL + + col0 ) ) ) FROM tab2 AS cor0
----
75
query II rowsort
SELECT ALL + col1, + ( + + col1 ) FROM tab2
----
51
51
67
67
77
77
query I rowsort
SELECT col2 * + col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196
onlyif mysql # aggregate syntax:
query I rowsort label-9552
SELECT ALL 5 - - 90 + - 64 * + 32 + MAX( ALL + + 74 ) AS col0 FROM tab2
----
-1879
skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL 5 - - 90 + - 64 * + 32 + MAX ( ALL + + 74 ) AS col0 FROM tab2
----
-1879
onlyif mysql # aggregate syntax: DIV for integer division:
query II rowsort label-9553
SELECT DISTINCT - SUM( - col1 ) DIV COUNT( * ), + 48 AS col0 FROM tab0 AS cor0
----
34
48
skipif mysql # not compatible
query II rowsort label-9553
SELECT DISTINCT - SUM ( - col1 ) / COUNT ( * ), + 48 AS col0 FROM tab0 AS cor0
----
34
48
query I rowsort
SELECT - col0 * - + col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409
onlyif mysql # aggregate syntax:
query I rowsort label-9555
SELECT - AVG ( - 75 ) / COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
skipif mysql # not compatible
query I rowsort label-9555
SELECT - AVG ( - 75 ) / COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT - 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
onlyif mysql # aggregate syntax:
query I rowsort label-9558
SELECT - + COUNT( * ) * - 72 FROM tab2 AS cor0
----
216
skipif mysql # not compatible
query I rowsort label-9558
SELECT - + COUNT ( * ) * - 72 FROM tab2 AS cor0
----
216
onlyif mysql # DIV for integer division:
query I rowsort label-9559
SELECT ALL - 45 DIV + 84 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL - 45 / + 84 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-9560
SELECT DISTINCT - MAX( - - col1 ) AS col1 FROM tab1 AS cor0
----
-47
skipif mysql # not compatible
query I rowsort label-9560
SELECT DISTINCT - MAX ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-47
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9561
SELECT ALL - 76 DIV 1 DIV + 53 + + SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
-186
skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - 76 / 1 / + 53 + + SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
-186
onlyif mysql # aggregate syntax:
query I rowsort label-9562
SELECT DISTINCT COUNT( - - 89 ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT COUNT ( - - 89 ) FROM tab0 AS cor0
----
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 97 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9564
SELECT + 88 * - + COUNT( * ) AS col0 FROM tab2, tab1 AS cor0
----
-792
skipif mysql # not compatible
query I rowsort label-9564
SELECT + 88 * - + COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0
----
-792
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9565
SELECT DISTINCT 88 * + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT 88 * + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2
----
NULL
query II rowsort
SELECT DISTINCT + 94 AS col0, + ( + 34 ) FROM tab0
----
94
34
onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division:
query I rowsort label-9567
SELECT DISTINCT col0 DIV 39 FROM tab2 WHERE ( NOT ( - ( + CAST( NULL AS DECIMAL ) ) ) IS NOT NULL )
----
1
skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT col0 / 39 FROM tab2 WHERE ( NOT ( - ( + CAST ( NULL AS REAL ) ) ) IS NOT NULL )
----
1
onlyif mysql # aggregate syntax:
query I rowsort label-9568
SELECT COUNT( DISTINCT - ( + 51 ) ) FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-9568
SELECT COUNT ( DISTINCT - ( + 51 ) ) FROM tab2
----
1
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9569
SELECT + col0 + - + col0 + CAST( NULL AS SIGNED ) AS col2, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77
skipif mysql # not compatible
query II rowsort label-9569
SELECT + col0 + - + col0 + CAST ( NULL AS INTEGER ) AS col2, + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77
query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL < - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 AS col0, col0 col2 FROM tab2 AS cor0
----
23
46
40
64
58
75
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9572
SELECT 89 DIV COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
skipif mysql # not compatible
query I rowsort label-9572
SELECT 89 / COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9
query I rowsort
SELECT col0 * - col0 - col0 AS col2 FROM tab2 cor0
----
-2162
-4160
-5700
onlyif mysql # aggregate syntax:
query I rowsort label-9574
SELECT DISTINCT + - 90 + + + 36 * + ( + MIN( ALL + col1 ) ) FROM tab1 AS cor0
----
90
skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT + - 90 + + + 36 * + ( + MIN ( ALL + col1 ) ) FROM tab1 AS cor0
----
90
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 61 * col2 + + + 63 * 62 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # DIV for integer division:
query I rowsort label-9576
SELECT - 4 - - + col0 DIV - + col0 FROM tab0 AS cor0
----
-5
-5
-5
skipif mysql # not compatible
query I rowsort label-9576
SELECT - 4 - - + col0 / - + col0 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT + 18 - col2 AS col0 FROM tab1 AS cor0
----
-41
-50
-78
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN - - 85 AND - + col1
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-9579
SELECT 10 * CAST( + 92 AS SIGNED ) DIV col1 FROM tab0
----
11
43
920
skipif mysql # not compatible
query I rowsort label-9579
SELECT 10 * CAST ( + 92 AS INTEGER ) / col1 FROM tab0
----
11
43
920
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9580
SELECT ALL 31 * CAST( NULL AS SIGNED ) AS col2, + SUM( ALL + - 5 ) FROM tab1
----
NULL
-15
skipif mysql # not compatible
query II rowsort label-9580
SELECT ALL 31 * CAST ( NULL AS INTEGER ) AS col2, + SUM ( ALL + - 5 ) FROM tab1
----
NULL
-15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 97 * + + col1, - col0 * - col2 col2 FROM tab0
----
2037
870
7857
705
97
9603
query II rowsort
SELECT DISTINCT col0 * col0, col1 FROM tab0 AS cor0
----
225
81
7569
21
9409
1
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9583
SELECT ALL ( + col1 ), CAST( NULL AS DECIMAL ) + + 22 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL
skipif mysql # not compatible
query II rowsort label-9583
SELECT ALL ( + col1 ), CAST ( NULL AS REAL ) + + 22 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9584
SELECT COUNT( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9
skipif mysql # not compatible
query I rowsort label-9584
SELECT COUNT ( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9585
SELECT ALL MIN( col2 ) FROM tab2
----
23
skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL MIN ( col2 ) FROM tab2
----
23
onlyif mysql # DIV for integer division:
query I rowsort label-9586
SELECT DISTINCT 92 * + col1 + - col0 DIV + ( + 78 ) FROM tab1 AS cor0
----
1288
4323
459
skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT 92 * + col1 + - col0 / + ( + 78 ) FROM tab1 AS cor0
----
1288
4323
459
onlyif mysql # aggregate syntax:
query I rowsort label-9587
SELECT + MIN( ALL + col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9587
SELECT + MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1
query II rowsort
SELECT ALL + col2, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1
query II rowsort
SELECT DISTINCT col2, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75
query I rowsort
SELECT + ( - col1 ) * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-441
-6561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT DISTINCT + 37 FROM tab2 WHERE NOT NULL IS NOT NULL
----
37
onlyif mysql # aggregate syntax:
query I rowsort label-9593
SELECT ALL - ( + ( 85 ) ) * + + SUM( - col0 ) AS col1 FROM tab2
----
15725
skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL - ( + ( 85 ) ) * + + SUM ( - col0 ) AS col1 FROM tab2
----
15725
onlyif mysql # aggregate syntax:
query I rowsort label-9594
SELECT DISTINCT + COUNT( * ) * + + 68 FROM tab1
----
204
skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + COUNT ( * ) * + + 68 FROM tab1
----
204
query III rowsort
SELECT * FROM tab0 WHERE 38 IN ( - + ( + col0 ), - col2 - + col2, + col2 / 96 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * + + col2 * ( - 7 ) * + ( - ( + - col2 ) ) col1 FROM tab0
----
-1066947
-4733883
-48300
onlyif mysql # aggregate syntax:
query I rowsort label-9597
SELECT DISTINCT - 83 * + COUNT( * ) FROM tab1
----
-249
skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - 83 * + COUNT ( * ) FROM tab1
----
-249
onlyif mysql # aggregate syntax:
query I rowsort label-9598
SELECT ALL + 45 + - COUNT( * ) AS col1 FROM tab2
----
42
skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + 45 + - COUNT ( * ) AS col1 FROM tab2
----
42
onlyif mysql # aggregate syntax:
query I rowsort label-9599
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-9599
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9600
SELECT ALL - + col1 * + col2 + col2 + - col0, CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1299
-51
-321
-85
-3219
-91
skipif mysql # not compatible
query II rowsort label-9600
SELECT ALL - + col1 * + col2 + col2 + - col0, CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1299
-51
-321
-85
-3219
-91
query I rowsort
SELECT DISTINCT - col2 + + 37 AS col2 FROM tab2 AS cor0
----
-21
-3
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 16 * col0 * - col2 col0 FROM tab2
----
-3153920
-4663200
-863328
onlyif mysql # aggregate syntax:
query I rowsort label-9603
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
skipif mysql # not compatible
query I rowsort label-9603
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + col2 BETWEEN NULL AND + col1
----
64
77
40
75
67
58
query I rowsort
SELECT - 83 * - col0 AS col1 FROM tab0 AS cor0
----
1245
7221
8051
query I rowsort
SELECT DISTINCT - col0 - - - 31 AS col0 FROM tab0 AS cor0
----
-118
-128
-46
query I rowsort
SELECT - 54 * + + 52 AS col2 FROM tab0 AS cor0
----
-2808
-2808
-2808
query I rowsort
SELECT ALL + + col2 * - - col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9610
SELECT DISTINCT - CAST( - - 82 AS SIGNED ) / col0 * - + col0 AS col1 FROM tab0 AS cor0 WHERE + ( 57 ) IS NULL
----
skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT - CAST ( - - 82 AS INTEGER ) / col0 * - + col0 AS col1 FROM tab0 AS cor0 WHERE + ( 57 ) IS NULL
----
query II rowsort
SELECT DISTINCT + col0, ( - 88 ) FROM tab2 AS cor0
----
46
-88
64
-88
75
-88
query II rowsort
SELECT 54 AS col0, + col1 FROM tab1 AS cor0
----
54
14
54
47
54
5
onlyif mysql # aggregate syntax:
query I rowsort label-9613
SELECT COUNT( DISTINCT 5 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9613
SELECT COUNT ( DISTINCT 5 ) FROM tab0
----
1
query II rowsort
SELECT + col1 AS col0, - col2 FROM tab1
----
14
-96
47
-68
5
-59
onlyif mysql # aggregate syntax:
query I rowsort label-9615
SELECT ( COUNT( DISTINCT + col2 ) ) AS col1 FROM tab2
----
3
skipif mysql # not compatible
query I rowsort label-9615
SELECT ( COUNT ( DISTINCT + col2 ) ) AS col1 FROM tab2
----
3
query III rowsort
SELECT * FROM tab1 WHERE NOT - 16 <> NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9617
SELECT + MAX( + - col1 ) AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9617
SELECT + MAX ( + - col1 ) AS col0 FROM tab0
----
-1
onlyif mysql # aggregate syntax:
query I rowsort label-9618
SELECT DISTINCT + SUM( - + ( - 41 ) ) AS col1 FROM tab0
----
123
skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT + SUM ( - + ( - 41 ) ) AS col1 FROM tab0
----
123
query II rowsort
SELECT ALL 29 * col1 AS col2, - col0 FROM tab1 WHERE NOT - col2 + + col0 IS NULL
----
1363
-91
145
-85
406
-51
onlyif mysql # aggregate syntax:
query II rowsort label-9620
SELECT - - COUNT( * ) AS col0, - 26 FROM tab0 WHERE NOT + - col1 + col2 * - ( 31 ) * - col0 / + 48 IS NULL
----
3
-26
skipif mysql # not compatible
query II rowsort label-9620
SELECT - - COUNT ( * ) AS col0, - 26 FROM tab0 WHERE NOT + - col1 + col2 * - ( 31 ) * - col0 / + 48 IS NULL
----
3
-26
onlyif mysql # aggregate syntax:
query I rowsort label-9621
SELECT ALL SUM( ALL + 8 ) FROM tab2 AS cor0
----
24
skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL SUM ( ALL + 8 ) FROM tab2 AS cor0
----
24
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9623
SELECT - COUNT( * ) * - + 55 FROM tab0 AS cor0
----
165
skipif mysql # not compatible
query I rowsort label-9623
SELECT - COUNT ( * ) * - + 55 FROM tab0 AS cor0
----
165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) NOT BETWEEN col2 + + col0 - + 56 AND NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9626
SELECT COUNT( * ) * - + 18 * - COUNT( * ) FROM tab2 AS cor0
----
162
skipif mysql # not compatible
query I rowsort label-9626
SELECT COUNT ( * ) * - + 18 * - COUNT ( * ) FROM tab2 AS cor0
----
162
query I rowsort
SELECT + + col2 * + + col2 FROM tab2 AS cor0
----
1600
3364
529
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 87 ) > ( ( col0 ) ) * + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT DISTINCT + ( - 96 ) AS col2, - col0 FROM tab2 AS cor0
----
-96
-46
-96
-64
-96
-75
query II rowsort
SELECT DISTINCT - + col0 AS col2, 23 + - 39 + + ( + col0 ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 22
----
query I rowsort
SELECT ALL + ( col0 ) * - col1 * + - col1 + col1 FROM tab1
----
10010
201066
2130
query I rowsort
SELECT DISTINCT - col0 * + 54 AS col1 FROM tab0
----
-4698
-5238
-810
query I rowsort
SELECT ALL 98 * + + 99 AS col0 FROM tab0
----
9702
9702
9702
onlyif mysql # aggregate syntax:
query I rowsort label-9634
SELECT ALL - SUM( DISTINCT col0 ) col0 FROM tab2
----
-185
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9634
SELECT ALL - SUM ( DISTINCT col0 ) col0 FROM tab2
----
-185
query I rowsort
SELECT DISTINCT 86 + - col2 AS col0 FROM tab2
----
28
46
63
query III rowsort
SELECT * FROM tab1 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-9637
SELECT DISTINCT ( - 31 ) * + COUNT( * ) * 1 FROM tab1
----
-93
skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT ( - 31 ) * + COUNT ( * ) * 1 FROM tab1
----
-93
query II rowsort
SELECT col2 * col2 + + 67, + col0 AS col2 FROM tab1 AS cor0
----
3548
85
4691
91
9283
51
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 < - + 3
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9640
SELECT - col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9640
SELECT - col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 WHERE + 74 * + - col0 + + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9642
SELECT + 38 - - - COUNT( * ) AS col0 FROM tab0
----
35
skipif mysql # not compatible
query I rowsort label-9642
SELECT + 38 - - - COUNT ( * ) AS col0 FROM tab0
----
35
onlyif mysql # aggregate syntax:
query I rowsort label-9643
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
query I rowsort
SELECT - col1 * - col2 - col2 FROM tab0
----
0
200
3760
query I rowsort
SELECT - ( 38 ) AS col2 FROM tab2 AS cor0
----
-38
-38
-38
onlyif mysql # aggregate syntax:
query I rowsort label-9646
SELECT DISTINCT COUNT( * ) * + 51 AS col1 FROM tab2 AS cor0
----
153
skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT COUNT ( * ) * + 51 AS col1 FROM tab2 AS cor0
----
153
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND - 6
----
query I rowsort
SELECT ALL - ( - 95 ) AS col0 FROM tab1 cor0
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col1 FROM tab0
----
94
query III rowsort
SELECT ALL * FROM tab0 WHERE + 32 > + col2 + + col2 + + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9651
SELECT - col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + col0 BETWEEN NULL AND - - 85 * - col0 * - + 2 + - + col0
----
skipif mysql # not compatible
query I rowsort label-9651
SELECT - col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + col0 BETWEEN NULL AND - - 85 * - col0 * - + 2 + - + col0
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9652
SELECT ALL + CAST( - - 31 AS SIGNED ) AS col0 FROM tab1
----
31
31
31
skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + CAST ( - - 31 AS INTEGER ) AS col0 FROM tab1
----
31
31
31
query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab2
----
92
onlyif mysql # aggregate syntax:
query I rowsort label-9654
SELECT - - COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
skipif mysql # not compatible
query I rowsort label-9654
SELECT - - COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9655
SELECT - COUNT( * ) * - + SUM( DISTINCT - col0 ) FROM tab1
----
-681
skipif mysql # not compatible
query I rowsort label-9655
SELECT - COUNT ( * ) * - + SUM ( DISTINCT - col0 ) FROM tab1
----
-681
query I rowsort
SELECT 18 * - + col1 FROM tab0
----
-1458
-18
-378
onlyif mysql # aggregate syntax:
query I rowsort label-9657
SELECT - MAX( + ( col1 ) ) FROM tab1
----
-47
skipif mysql # not compatible
query I rowsort label-9657
SELECT - MAX ( + ( col1 ) ) FROM tab1
----
-47
onlyif mysql # aggregate syntax:
query I rowsort label-9658
SELECT ALL - - COUNT( - col0 ) col2 FROM tab1 cor0
----
3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9658
SELECT ALL - - COUNT ( - col0 ) col2 FROM tab1 cor0
----
3
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9660
SELECT - SUM( - 86 ) FROM tab1
----
258
skipif mysql # not compatible
query I rowsort label-9660
SELECT - SUM ( - 86 ) FROM tab1
----
258
onlyif mysql # aggregate syntax:
query I rowsort label-9661
SELECT - - 93 + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
96
skipif mysql # not compatible
query I rowsort label-9661
SELECT - - 93 + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT + col2 + + + 32 FROM tab2 AS cor0
----
55
72
90
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 90 * col0 IS NULL
----
query I rowsort
SELECT DISTINCT - 80 + 83 FROM tab1 AS cor0
----
3
onlyif mysql # aggregate syntax:
query I rowsort label-9666
SELECT ALL - + ( + - 18 ) * - + COUNT( ( col2 ) ) FROM tab0 AS cor0
----
-54
skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - + ( + - 18 ) * - + COUNT ( ( col2 ) ) FROM tab0 AS cor0
----
-54
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query II rowsort label-9667
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, ( + COUNT( * ) ) FROM tab2 AS cor0
----
NULL
3
skipif mysql # not compatible
query II rowsort label-9667
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, ( + COUNT ( * ) ) FROM tab2 AS cor0
----
NULL
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9668
SELECT + col0 * + + col1 / + + CAST( NULL AS SIGNED ) + + col0 / col0 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9668
SELECT + col0 * + + col1 / + + CAST ( NULL AS INTEGER ) + + col0 / col0 + col0 + + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( - col0 ) AS col2 FROM tab1 WHERE - col1 * + col2 + + col2 / - + 66 * - 28 * + col2 IS NOT NULL
----
-51
-85
-91
query I rowsort
SELECT col0 * ( + 26 ) FROM tab1
----
1326
2210
2366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 * - col0 col1 FROM tab1
----
-2907
-4845
-5187
query I rowsort
SELECT col1 * - 64 * + + col1 AS col1 FROM tab1
----
-12544
-141376
-1600
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9673
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - CAST( col0 AS SIGNED ), - col2 )
----
skipif mysql # not compatible
query III rowsort label-9673
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - CAST ( col0 AS INTEGER ), - col2 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9674
SELECT DISTINCT - SUM( col1 ) FROM tab0
----
-103
skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT - SUM ( col1 ) FROM tab0
----
-103
onlyif mysql # aggregate syntax:
query I rowsort label-9675
SELECT - COUNT( * ) col2 FROM tab1
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9675
SELECT - COUNT ( * ) col2 FROM tab1
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
query I rowsort
SELECT - - 20 FROM tab1 AS cor0 WHERE 6 BETWEEN + col0 AND NULL
----
query I rowsort
SELECT + + col1 - col0 AS col0 FROM tab0 AS cor0
----
-66
-96
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + + 42 AS col0, col1 + - col0 * + col0 col1 FROM tab2 cor0
----
106
-4019
117
-5558
88
-2065
onlyif mysql # aggregate syntax:
query I rowsort label-9680
SELECT - + MAX( DISTINCT + col0 ) + - 31 AS col2 FROM tab1 AS cor0
----
-122
skipif mysql # not compatible
query I rowsort label-9680
SELECT - + MAX ( DISTINCT + col0 ) + - 31 AS col2 FROM tab1 AS cor0
----
-122
onlyif mysql # aggregate syntax:
query II rowsort label-9681
SELECT - COUNT( * ) + + SUM( ALL - 75 ) AS col0, 31 AS col1 FROM tab0
----
-228
31
skipif mysql # not compatible
query II rowsort label-9681
SELECT - COUNT ( * ) + + SUM ( ALL - 75 ) AS col0, 31 AS col1 FROM tab0
----
-228
31
query III rowsort
SELECT - 59 AS col1, col2 AS col0, + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
9 values hashing to a47b0f826caccc65261d0dd01c2c615e
onlyif mysql # aggregate syntax:
query II rowsort label-9683
SELECT - - COUNT( * ), COUNT( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0
0
skipif mysql # not compatible
query II rowsort label-9683
SELECT - - COUNT ( * ), COUNT ( * ) FROM tab2 WHERE NULL IS NOT NULL
----
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 79 BETWEEN NULL AND + col2 * + col1
----
query I rowsort
SELECT + + col0 * - 56 + + 62 AS col1 FROM tab1 AS cor0
----
-2794
-4698
-5034
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - CAST( - - col0 AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + - CAST ( - - col0 AS INTEGER )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9688
SELECT + ( COUNT( * ) ) FROM tab0 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9688
SELECT + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3
query I rowsort
SELECT DISTINCT col1 * - - 14 AS col1 FROM tab1 AS cor0
----
196
658
70
query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58
onlyif mysql # DIV for integer division:
query I rowsort label-9691
SELECT ALL - 37 DIV + col2 AS col0 FROM tab0 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL - 37 / + col2 AS col0 FROM tab0 AS cor0
----
-3
0
0
onlyif mysql # aggregate syntax:
query II rowsort label-9692
SELECT - 22 AS col1, - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-22
-6
skipif mysql # not compatible
query II rowsort label-9692
SELECT - 22 AS col1, - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-22
-6
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-9694
SELECT ALL - ( - SUM( - col0 ) ) AS col2 FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - ( - SUM ( - col0 ) ) AS col2 FROM tab1
----
-227
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax:
query I rowsort label-9696
SELECT DISTINCT MIN( + col1 ) AS col0 FROM tab1
----
5
skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT MIN ( + col1 ) AS col0 FROM tab1
----
5
query I rowsort
SELECT DISTINCT ( - 41 ) FROM tab0
----
-41
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9699
SELECT ALL SUM( ALL - + ( - 77 ) ) FROM tab2
----
231
skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL SUM ( ALL - + ( - 77 ) ) FROM tab2
----
231
query I rowsort
SELECT DISTINCT 88 * - col1 AS col0 FROM tab2
----
-4488
-5896
-6776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 87 ) col0 FROM tab2
----
-87
-87
-87
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 30 + - - col1 <= NULL
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col0 * ( - col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query II rowsort
SELECT + ( + - 26 ) * + + col2 * col2 + + col2 * col1 + + col0 AS col2, col2 + - 21 + - col1 - + - col0 * 7 FROM tab2 AS cor0
----
-12535
273
-38456
390
-83503
495
query I rowsort
SELECT ALL - - ( 17 ) AS col2 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT + col0 + - col1 + + col0 * + 11 AS col1 FROM tab0 AS cor0
----
1023
1163
99
query I rowsort
SELECT + col2 + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
118
136
192
query I rowsort
SELECT + 73 + + col0 AS col0 FROM tab0 AS cor0
----
160
170
88
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9709
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST( 51 AS SIGNED ) AND col0
----
skipif mysql # not compatible
query III rowsort label-9709
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN CAST ( 51 AS INTEGER ) AND col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-9710
SELECT + 39 DIV + 4 AS col2 FROM tab2
----
9
9
9
skipif mysql # not compatible
query I rowsort label-9710
SELECT + 39 / + 4 AS col2 FROM tab2
----
9
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 26 + - col1 * - + col2 col0 FROM tab1
----
1414
3238
328
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9712
SELECT ALL + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
query II rowsort
SELECT 27 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
27
14
27
47
27
5
onlyif mysql # aggregate syntax:
query I rowsort label-9714
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
-3
skipif mysql # not compatible
query I rowsort label-9714
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE - ( - col1 ) IS NOT NULL
----
-3
onlyif mysql # aggregate syntax:
query I rowsort label-9715
SELECT SUM( DISTINCT 35 ) FROM tab2 AS cor0
----
35
skipif mysql # not compatible
query I rowsort label-9715
SELECT SUM ( DISTINCT 35 ) FROM tab2 AS cor0
----
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 1 col1 FROM tab1 AS cor0
----
-59
1
-68
1
-96
1
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9717
SELECT col2 + - ( col1 ) AS col0 FROM tab1 AS cor0 WHERE + col0 / + CAST( - - 95 AS SIGNED ) IS NOT NULL
----
21
54
82
skipif mysql # not compatible
query I rowsort label-9717
SELECT col2 + - ( col1 ) AS col0 FROM tab1 AS cor0 WHERE + col0 / + CAST ( - - 95 AS INTEGER ) IS NOT NULL
----
21
54
82
query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 88 col2, + col2 AS col0 FROM tab2
----
88
23
88
40
88
58
query II rowsort
SELECT DISTINCT - col2, col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58
query I rowsort
SELECT + col1 + + - col2 FROM tab1
----
-21
-54
-82
query I rowsort
SELECT ALL 11 AS col2 FROM tab1
----
11
11
11
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9723
SELECT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) * - col0 + - 44 BETWEEN - 59 * 6 AND + - ( + col0 )
----
skipif mysql # not compatible
query III rowsort label-9723
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) * - col0 + - 44 BETWEEN - 59 * 6 AND + - ( + col0 )
----
query I rowsort
SELECT + col2 + col0 + 18 FROM tab2
----
122
151
87
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 78 * + col1, - col2, + 58 )
----
query I rowsort
SELECT ALL - - 50 AS col2 FROM tab1 cor0
----
50
50
50
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9727
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + CAST( NULL AS SIGNED ) + - col1 + + 82
----
skipif mysql # not compatible
query III rowsort label-9727
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= + CAST ( NULL AS INTEGER ) + - col1 + + 82
----
query I rowsort
SELECT 69 * + + ( + col2 ) * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-337824
-346035
-426972
query I rowsort
SELECT ALL - + col1 * - + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 FROM tab2 cor0
----
1600
3364
529
onlyif mysql # DIV for integer division:
query I rowsort label-9731
SELECT ALL + - 49 DIV + + 34 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + - 49 / + + 34 FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # aggregate syntax:
query I rowsort label-9732
SELECT DISTINCT + ( COUNT( * ) ) FROM tab2, tab1 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab2, tab1 AS cor0
----
9
query II rowsort
SELECT ALL - col2 AS col1, col1 * + 31 * - col2 * + + col2 + + - 90 AS col0 FROM tab2
----
-23
-836439
-40
-3819290
-58
-6987118
query I rowsort
SELECT DISTINCT - 33 * + - col0 FROM tab0
----
2871
3201
495
query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 > ( + + 53 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9736
SELECT MIN( DISTINCT + 83 ) AS col1 FROM tab2
----
83
skipif mysql # not compatible
query I rowsort label-9736
SELECT MIN ( DISTINCT + 83 ) AS col1 FROM tab2
----
83
query I rowsort
SELECT DISTINCT 12 * - 18 FROM tab2
----
-216
onlyif mysql # aggregate syntax:
query I rowsort label-9738
SELECT COUNT( DISTINCT - col0 ) AS col0 FROM tab1
----
3
skipif mysql # not compatible
query I rowsort label-9738
SELECT COUNT ( DISTINCT - col0 ) AS col0 FROM tab1
----
3
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + - - 24 <= col1
----
87
21
10
97
1
99
onlyif mysql # aggregate syntax:
query I rowsort label-9740
SELECT ALL - MIN( + ( - + col1 ) ) col0 FROM tab0 cor0
----
81
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9740
SELECT ALL - MIN ( + ( - + col1 ) ) col0 FROM tab0 cor0
----
81
query I rowsort
SELECT ALL col2 + + 93 FROM tab0 AS cor0
----
103
140
192
onlyif mysql # aggregate syntax:
query I rowsort label-9742
SELECT DISTINCT - SUM( DISTINCT + col2 ) FROM tab1
----
-223
skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT - SUM ( DISTINCT + col2 ) FROM tab1
----
-223
query I rowsort
SELECT + 10 * col0 + - col1 FROM tab2
----
409
563
683
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> col1
----
query I rowsort
SELECT + col2 * + col1 + + 51 FROM tab0
----
150
261
3858
query I rowsort
SELECT 7 * 49 AS col0 FROM tab1
----
343
343
343
query III rowsort
SELECT * FROM tab0 WHERE NOT - 19 + - ( - col0 + col0 ) BETWEEN 78 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
onlyif mysql # aggregate syntax:
query I rowsort label-9748
SELECT MAX( + col2 ) AS col1 FROM tab0 WHERE - 83 >= ( - col0 )
----
99
skipif mysql # not compatible
query I rowsort label-9748
SELECT MAX ( + col2 ) AS col1 FROM tab0 WHERE - 83 >= ( - col0 )
----
99
query I rowsort
SELECT DISTINCT 86 - 69 FROM tab1
----
17
query I rowsort
SELECT 98 * 41 AS col2 FROM tab2 WHERE ( 9 ) > + 43 * col2 + + 1 * col1
----
query I rowsort
SELECT ALL + ( 19 ) AS col1 FROM tab0
----
19
19
19
query I rowsort
SELECT ALL + col1 * col0 + col2 * - col1 AS col1 FROM tab0
----
-2
-2592
1617
onlyif mysql # aggregate syntax:
query I rowsort label-9753
SELECT - COUNT( * ) * ( - 27 ) FROM tab0
----
81
skipif mysql # not compatible
query I rowsort label-9753
SELECT - COUNT ( * ) * ( - 27 ) FROM tab0
----
81
query I rowsort
SELECT - col2 + + col1 * + col2 FROM tab2
----
1150
3040
3828
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <> ( - col2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 + ( + col1 ) col0 FROM tab1
----
121
79
88
onlyif mysql # aggregate syntax:
query I rowsort label-9757
SELECT DISTINCT + ( + COUNT( * ) ) * 50 FROM tab2
----
150
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + ( + COUNT ( * ) ) * 50 FROM tab2
----
150
query I rowsort
SELECT ( - 82 ) AS col1 FROM tab0
----
-82
-82
-82
query I rowsort
SELECT - col1 + 83 AS col0 FROM tab2
----
16
32
6
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9760
SELECT ALL * FROM tab2 WHERE NOT 54 * 81 = - col0 * - col1 + CAST( NULL AS SIGNED )
----
skipif mysql # not compatible
query III rowsort label-9760
SELECT ALL * FROM tab2 WHERE NOT 54 * 81 = - col0 * - col1 + CAST ( NULL AS INTEGER )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = col1 * col0
----
onlyif mysql # DIV for integer division:
query I rowsort label-9762
SELECT DISTINCT col1 DIV 37 AS col0 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT col1 / 37 AS col0 FROM tab1
----
0
1
query III rowsort
SELECT * FROM tab0 WHERE 73 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col0 * 69 FROM tab1 WHERE NOT + col0 NOT IN ( + col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9765
SELECT ALL CAST( 83 AS SIGNED ) AS col1 FROM tab0 WHERE NOT 68 * col2 + col1 * col0 IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-9765
SELECT ALL CAST ( 83 AS INTEGER ) AS col1 FROM tab0 WHERE NOT 68 * col2 + col1 * col0 IS NOT NULL
----
query III rowsort
SELECT * FROM tab0 WHERE - col0 * col1 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9767
SELECT + COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-9767
SELECT + COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
3
query I rowsort
SELECT 25 AS col0 FROM tab2 WHERE - col0 * 96 IS NOT NULL
----
25
25
25
onlyif mysql # DIV for integer division:
query I rowsort label-9769
SELECT ALL - col0 DIV + col1 AS col1 FROM tab0
----
-4
-97
0
skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - col0 / + col1 AS col1 FROM tab0
----
-4
-97
0
onlyif mysql # aggregate syntax:
query I rowsort label-9770
SELECT DISTINCT COUNT( ALL - col2 ) FROM tab1 AS cor0
----
3
skipif mysql # not compatible
query I rowsort label-9770
SELECT DISTINCT COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9771
SELECT - col2 + - ( 40 + 44 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( - col0 AS SIGNED ) )
----
skipif mysql # not compatible
query I rowsort label-9771
SELECT - col2 + - ( 40 + 44 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( - col0 AS INTEGER ) )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 58 BETWEEN col2 AND ( NULL )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9773
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9
skipif mysql # not compatible
query I rowsort label-9773
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9774
SELECT ALL - SUM( + ( 56 ) ) FROM tab2
----
-168
skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL - SUM ( + ( 56 ) ) FROM tab2
----
-168
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9775
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
query I rowsort
SELECT DISTINCT col0 * + 86 AS col1 FROM tab2 AS cor0
----
3956
5504
6450
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col0 * + col2 AND ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT ( 11 ) IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9779
SELECT DISTINCT + 51 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + 51 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9780
SELECT DISTINCT MAX( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT NULL > ( col2 + ( col0 - ( + col0 ) ) )
----
NULL
skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT NULL > ( col2 + ( col0 - ( + col0 ) ) )
----
NULL
query I rowsort
SELECT - col2 * 96 AS col1 FROM tab2 AS cor0
----
-2208
-3840
-5568
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 52 )
----
query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 6 col2 FROM tab2 AS cor0
----
138
240
348
query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75
onlyif mysql # DIV for integer division:
query I rowsort label-9786
SELECT - - col2 DIV - 24 AS col1 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-9786
SELECT - - col2 / - 24 AS col1 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # aggregate syntax:
query I rowsort label-9787
SELECT + SUM( + col0 ) FROM tab2 AS cor0
----
185
skipif mysql # not compatible
query I rowsort label-9787
SELECT + SUM ( + col0 ) FROM tab2 AS cor0
----
185
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9788
SELECT - 20 DIV + + ( - SUM( ALL col0 ) ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9788
SELECT - 20 / + + ( - SUM ( ALL col0 ) ) FROM tab0
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT 10 - col1 BETWEEN NULL AND + col1
----
query I rowsort
SELECT ALL + col2 * + - ( - col1 ) AS col0 FROM tab0
----
210
3807
99
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col2 ) NOT IN ( - 57 + - col2 / - col0 )
----
query I rowsort
SELECT DISTINCT + col0 * 16 FROM tab2 WHERE ( - col2 ) + col0 IS NULL
----
query I rowsort
SELECT ALL 40 * + col2 * - col0 FROM tab2
----
-102400
-174000
-42320
onlyif mysql # aggregate syntax:
query I rowsort label-9794
SELECT DISTINCT + MIN( ALL + - col1 ) * - SUM( + 8 + + 9 ) AS col0 FROM tab2
----
3927
skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + MIN ( ALL + - col1 ) * - SUM ( + 8 + + 9 ) AS col0 FROM tab2
----
3927
query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
51
85
91
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 IN ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL 94 + col0 + col1 * col2 AS col0 FROM tab0
----
290
391
3916
onlyif mysql # aggregate syntax:
query I rowsort label-9798
SELECT DISTINCT COUNT( * ) + - - MAX( - col0 ) AS col0 FROM tab0
----
-12
skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT COUNT ( * ) + - - MAX ( - col0 ) AS col0 FROM tab0
----
-12
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IS NULL
----
query I rowsort
SELECT DISTINCT col0 + - 47 * - 8 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----
onlyif mysql # aggregate syntax:
query I rowsort label-9801
SELECT 51 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-9801
SELECT 51 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
54
query I rowsort
SELECT DISTINCT + + 32 * - col2 * 91 FROM tab2 AS cor0
----
-116480
-168896
-66976
query I rowsort
SELECT + + 27 + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT DISTINCT + 12 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
12
query III rowsort
SELECT * FROM tab2 WHERE - col2 IN ( col1 )
----
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9806
SELECT DISTINCT - AVG ( DISTINCT ( CAST( NULL AS DECIMAL ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT - AVG ( DISTINCT ( CAST ( NULL AS REAL ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL
query I rowsort
SELECT ALL col0 + + 99 + + col1 FROM tab0
----
195
197
207
query I rowsort
SELECT + - col0 * + + 3 * + - 74 AS col1 FROM tab1 cor0
----
11322
18870
20202
query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 cor0 WHERE ( 81 ) BETWEEN col0 * 56 AND ( NULL )
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9811
SELECT COUNT( * ) * 46 - - MAX( + col0 ) col0 FROM tab2 AS cor0
----
213
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT COUNT ( * ) * 46 - - MAX ( + col0 ) col0 FROM tab2 AS cor0
----
213
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT ALL col0 - - col2 + + 62 FROM tab2 AS cor0
----
131
166
195
onlyif mysql # aggregate syntax:
query I rowsort label-9814
SELECT + - 89 + - MIN( col2 ) AS col0 FROM tab2 cor0
----
-112
skipif mysql # not compatible
query I rowsort label-9814
SELECT + - 89 + - MIN ( col2 ) AS col0 FROM tab2 cor0
----
-112
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 45 <= 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
onlyif mysql # aggregate syntax:
query I rowsort label-9816
SELECT COUNT( * ) + + 99 AS col1 FROM tab0 AS cor0 WHERE 72 * - - 66 NOT IN ( ( + 65 ) + col1 )
----
102
skipif mysql # not compatible
query I rowsort label-9816
SELECT COUNT ( * ) + + 99 AS col1 FROM tab0 AS cor0 WHERE 72 * - - 66 NOT IN ( ( + 65 ) + col1 )
----
102
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9817
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + col0 FROM tab0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9818
SELECT ALL 13 - - + ( - - SUM( ALL + 83 ) ) AS col1 FROM tab2
----
262
skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 13 - - + ( - - SUM ( ALL + 83 ) ) AS col1 FROM tab2
----
262
query I rowsort
SELECT DISTINCT col0 - 51 AS col0 FROM tab2
----
-5
13
24
query III rowsort
SELECT * FROM tab0 WHERE ( + col1 - + col1 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9821
SELECT CAST( NULL AS SIGNED ) * + + 94 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9821
SELECT CAST ( NULL AS INTEGER ) * + + 94 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab2 WHERE + - col2 IN ( + + 55 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + ( + 56 ) AND NULL
----
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9824
SELECT COUNT( - col2 ) DIV MIN( ALL - col2 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9824
SELECT COUNT ( - col2 ) / MIN ( ALL - col2 ) FROM tab0
----
0
onlyif mysql # aggregate syntax:
query I rowsort label-9825
SELECT ALL ( + + MAX( DISTINCT col2 ) ) FROM tab2
----
58
skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL ( + + MAX ( DISTINCT col2 ) ) FROM tab2
----
58
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9826
SELECT - CAST( - - 95 AS SIGNED ), col1 col1 FROM tab2 AS cor0
----
-95
51
-95
67
-95
77
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9826
SELECT - CAST ( - - 95 AS INTEGER ), col1 col1 FROM tab2 AS cor0
----
-95
51
-95
67
-95
77
onlyif mysql # aggregate syntax:
query I rowsort label-9827
SELECT ALL ( - COUNT( * ) ) FROM tab1 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL ( - COUNT ( * ) ) FROM tab1 AS cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 col0 FROM tab2 cor0
----
-30
-30
-30
onlyif mysql # aggregate syntax:
query I rowsort label-9829
SELECT ALL + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185
skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185
onlyif mysql # aggregate syntax:
query I rowsort label-9830
SELECT ALL + COUNT( * ) * - MAX( ALL + 31 ) * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2511
skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + COUNT ( * ) * - MAX ( ALL + 31 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2511
query I rowsort
SELECT col0 * - 60 FROM tab2
----
-2760
-3840
-4500
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9832
SELECT DISTINCT CAST( - + 32 AS SIGNED ) FROM tab2 AS cor0
----
-32
skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT CAST ( - + 32 AS INTEGER ) FROM tab2 AS cor0
----
-32
query I rowsort
SELECT + + 54 * + - col1 FROM tab2 AS cor0
----
-2754
-3618
-4158
query I rowsort
SELECT ALL - - col2 * + col0 AS col2 FROM tab1 cor0
----
4896
5015
6188
query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 - + col0 NOT BETWEEN + col0 * - + 83 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT DISTINCT + col0 * ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 67 * - 78 * - 88 * - col1 * + col2 ) IS NULL
----
225
7569
9409
query I rowsort
SELECT + ( + ( - 30 ) ) + 47 FROM tab0 AS cor0 WHERE NOT ( 76 * + col0 - 89 * col1 + col1 ) > NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9839
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 87 * - - 44 + + col0 + 29 IS NULL
----
-3
skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 87 * - - 44 + + col0 + 29 IS NULL
----
-3
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9840
SELECT + 39 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9840
SELECT + 39 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # DIV for integer division:
query I rowsort label-9841
SELECT DISTINCT col0 * ( - ( + 42 ) ) DIV col0 AS col1 FROM tab1
----
-42
skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT col0 * ( - ( + 42 ) ) / col0 AS col1 FROM tab1
----
-42
query I rowsort
SELECT + 70 + - + 68 FROM tab0
----
2
2
2
onlyif mysql # DIV for integer division:
query I rowsort label-9843
SELECT - col0 DIV + + 85 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9843
SELECT - col0 / + + 85 FROM tab1
----
-1
-1
0
onlyif mysql # aggregate syntax:
query I rowsort label-9844
SELECT - COUNT( ALL + ( - col1 ) ) FROM tab2
----
-3
skipif mysql # not compatible
query I rowsort label-9844
SELECT - COUNT ( ALL + ( - col1 ) ) FROM tab2
----
-3
onlyif mysql # CAST syntax: aggregate syntax: SIGNED type:
query I rowsort label-9845
SELECT COUNT( * ) - - - CAST( NULL AS SIGNED ) / 11 * + AVG ( - col2 ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9845
SELECT COUNT ( * ) - - - CAST ( NULL AS INTEGER ) / 11 * + AVG ( - col2 ) AS col2 FROM tab0 cor0
----
NULL
onlyif mysql # aggregate syntax:
query I rowsort label-9846
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 = NULL
----
0
skipif mysql # not compatible
query I rowsort label-9846
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 = NULL
----
0
query I rowsort
SELECT 75 - + col1 AS col1 FROM tab1 AS cor0
----
28
61
70
query I rowsort
SELECT DISTINCT 62 + - + 82 AS col1 FROM tab2 AS cor0
----
-20
query I rowsort
SELECT DISTINCT - 86 - + col0 AS col2 FROM tab2 AS cor0
----
-132
-150
-161
onlyif mysql # aggregate syntax:
query I rowsort label-9850
SELECT SUM( - + 35 ) FROM tab1 AS cor0
----
-105
skipif mysql # not compatible
query I rowsort label-9850
SELECT SUM ( - + 35 ) FROM tab1 AS cor0
----
-105
query I rowsort
SELECT ALL + col0 * + 9 + - + col1 - col1 FROM tab1 AS cor0
----
431
725
755
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 25 NOT BETWEEN NULL AND - - 21 * + 93
----
onlyif mysql # DIV for integer division:
query II rowsort label-9853
SELECT col2 AS col0, col2 DIV + 62 AS col1 FROM tab1
----
59
0
68
1
96
1
skipif mysql # not compatible
query II rowsort label-9853
SELECT col2 AS col0, col2 / + 62 AS col1 FROM tab1
----
59
0
68
1
96
1
onlyif mysql # aggregate syntax:
query I rowsort label-9854
SELECT DISTINCT MIN( DISTINCT col0 ) AS col2 FROM tab0
----
15
skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT MIN ( DISTINCT col0 ) AS col2 FROM tab0
----
15
query III rowsort
SELECT * FROM tab0 WHERE NOT + 99 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + - - col0, col1 col1 FROM tab2 WHERE NOT col1 / - - col0 IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9857
SELECT 14 * MAX( - col1 ) AS col0 FROM tab2
----
-714
skipif mysql # not compatible
query I rowsort label-9857
SELECT 14 * MAX ( - col1 ) AS col0 FROM tab2
----
-714
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9858
SELECT ( + - 92 ) * - col2 AS col1, CAST( + 86 AS SIGNED ) AS col2 FROM tab0
----
4324
86
9108
86
920
86
skipif mysql # not compatible
query II rowsort label-9858
SELECT ( + - 92 ) * - col2 AS col1, CAST ( + 86 AS INTEGER ) AS col2 FROM tab0
----
4324
86
9108
86
920
86
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9859
SELECT DISTINCT + 78 * - + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
3666
7722
780
skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + 78 * - + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
3666
7722
780
onlyif mysql # aggregate syntax:
query I rowsort label-9860
SELECT COUNT( * ) * ( + 80 ) AS col1 FROM tab2 AS cor0
----
240
skipif mysql # not compatible
query I rowsort label-9860
SELECT COUNT ( * ) * ( + 80 ) AS col1 FROM tab2 AS cor0
----
240
onlyif mysql # DIV for integer division:
query II rowsort label-9861
SELECT DISTINCT + 89 DIV - col0 AS col2, - col0 FROM tab2
----
-1
-46
-1
-64
-1
-75
skipif mysql # not compatible
query II rowsort label-9861
SELECT DISTINCT + 89 / - col0 AS col2, - col0 FROM tab2
----
-1
-46
-1
-64
-1
-75
query I rowsort
SELECT ALL 29 * 11 FROM tab0 AS cor0
----
319
319
319
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 14 / + col0 NOT BETWEEN ( col1 ) AND NULL
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + 32
----
onlyif mysql # DIV for integer division:
query I rowsort label-9865
SELECT ALL - col0 + - col2 + + 84 + + col2 DIV + col2 FROM tab0 AS cor0
----
-111
-12
23
skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - col0 + - col2 + + 84 + + col2 / + col2 FROM tab0 AS cor0
----
-111
-12
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + ( + - col2 ) * - col2 col1 FROM tab1 AS cor0
----
129024
17405
217328
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col1 FROM tab0 AS cor0
----
1
21
81
onlyif mysql # DIV for integer division:
query I rowsort label-9868
SELECT 5 DIV - + col1 * + - 31 * + col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9868
SELECT 5 / - + col1 * + - 31 * + col1 FROM tab2
----
0
0
0
onlyif mysql # aggregate syntax:
query I rowsort label-9869
SELECT DISTINCT + COUNT( + 52 ) * + - MAX( ALL - + col0 ) AS col2 FROM tab2
----
138
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT + COUNT ( + 52 ) * + - MAX ( ALL - + col0 ) AS col2 FROM tab2
----
138
query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) IS NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9871
SELECT ALL - CAST( + 64 AS SIGNED ) AS col1 FROM tab1
----
-64
-64
-64
skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - CAST ( + 64 AS INTEGER ) AS col1 FROM tab1
----
-64
-64
-64
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9872
SELECT CAST( - col0 AS SIGNED ) + - col0 AS col0 FROM tab0
----
-174
-194
-30
skipif mysql # not compatible
query I rowsort label-9872
SELECT CAST ( - col0 AS INTEGER ) + - col0 AS col0 FROM tab0
----
-174
-194
-30
query I rowsort
SELECT + 48 + 94 FROM tab2
----
142
142
142
query I rowsort
SELECT DISTINCT - 11 * 60 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-660
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 77 * - 33 IS NOT NULL AND NOT col1 IN ( + col2 + + + col0, + 86 * + + col0 * 24 + col0 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49
query I rowsort
SELECT ALL - col0 - - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 10 + + col2 AS col0 FROM tab1 AS cor0
----
106
69
78
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9878
SELECT - 15 + - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9878
SELECT - 15 + - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 - + col0 col1 FROM tab0 cor0
----
-57
-67
15
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9880
SELECT ALL - CAST( - 73 AS SIGNED ) * - col2 * + 11 col2 FROM tab1 cor0
----
-47377
-54604
-77088
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT ALL - CAST ( - 73 AS INTEGER ) * - col2 * + 11 col2 FROM tab1 cor0
----
-47377
-54604
-77088
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT ALL 5 * - 48, col2 FROM tab1
----
-240
59
-240
68
-240
96
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9883
SELECT DISTINCT - CAST( - + 62 AS SIGNED ) FROM tab0
----
62
skipif mysql # not compatible
query I rowsort label-9883
SELECT DISTINCT - CAST ( - + 62 AS INTEGER ) FROM tab0
----
62
onlyif mysql # aggregate syntax:
query I rowsort label-9884
SELECT 83 * - 16 * + SUM( DISTINCT ( col0 ) ) FROM tab0
----
-264272
skipif mysql # not compatible
query I rowsort label-9884
SELECT 83 * - 16 * + SUM ( DISTINCT ( col0 ) ) FROM tab0
----
-264272
onlyif mysql # aggregate syntax:
query II rowsort label-9885
SELECT ALL MAX( ALL - col1 ) AS col1, 81 FROM tab2
----
-51
81
skipif mysql # not compatible
query II rowsort label-9885
SELECT ALL MAX ( ALL - col1 ) AS col1, 81 FROM tab2
----
-51
81
onlyif mysql # aggregate syntax:
query I rowsort label-9886
SELECT + ( SUM( DISTINCT - col0 ) ) FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-9886
SELECT + ( SUM ( DISTINCT - col0 ) ) FROM tab1
----
-227
query I rowsort
SELECT DISTINCT + 68 * - col1 * - - 35 FROM tab1
----
-111860
-11900
-33320
query I rowsort
SELECT ( 43 ) * + + col0 AS col2 FROM tab0
----
3741
4171
645
query I rowsort
SELECT 24 * - - 70 FROM tab0
----
1680
1680
1680
onlyif mysql # DIV for integer division:
query I rowsort label-9890
SELECT DISTINCT col2 DIV 9 * - col2 FROM tab0 AS cor0
----
-10
-1089
-235
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT col2 / 9 * - col2 FROM tab0 AS cor0
----
-10
-1089
-235
onlyif mysql # CAST syntax: DECIMAL type:
query I rowsort label-9891
SELECT - 11 / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9891
SELECT - 11 / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query II rowsort
SELECT ALL - - 3, + col0 * - col1 AS col2 FROM tab1 cor0
----
3
-425
3
-4277
3
-714
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9893
SELECT - 77 - + col0 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
skipif mysql # not compatible
query I rowsort label-9893
SELECT - 77 - + col0 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * + col2 / - 60 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97
onlyif mysql # aggregate syntax:
query I rowsort label-9896
SELECT ALL - SUM( + col0 ) AS col1 FROM tab1
----
-227
skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL - SUM ( + col0 ) AS col1 FROM tab1
----
-227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 col1 FROM tab1
----
-56
query I rowsort
SELECT ALL - 61 + - col2 FROM tab2
----
-101
-119
-84
query I rowsort
SELECT + col1 * + 21 AS col0 FROM tab1
----
105
294
987
onlyif mysql # DIV for integer division:
query I rowsort label-9900
SELECT - col0 * col0 DIV + col1 col2 FROM tab2
----
-41
-53
-83
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9900
SELECT - col0 * col0 / + col1 col2 FROM tab2
----
-41
-53
-83
onlyif mysql # DIV for integer division:
query I rowsort label-9901
SELECT col1 DIV + 70 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9901
SELECT col1 / + 70 FROM tab1
----
0
0
0
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9902
SELECT COUNT( * ) DIV 34 * - MIN( col0 ) * - 7 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9902
SELECT COUNT ( * ) / 34 * - MIN ( col0 ) * - 7 AS col2 FROM tab2
----
0
query I rowsort
SELECT + + col0 + - + col2 AS col2 FROM tab1 cor0 WHERE - col1 * + col0 <> + col1
----
-45
23
26
onlyif mysql # aggregate syntax:
query I rowsort label-9904
SELECT ALL SUM( DISTINCT 99 ) AS col2 FROM tab0 AS cor0
----
99
skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL SUM ( DISTINCT 99 ) AS col2 FROM tab0 AS cor0
----
99
query I rowsort
SELECT + + col0 - - 95 FROM tab2 AS cor0
----
141
159
170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( 44 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9907
SELECT 60 * - CAST( NULL AS SIGNED ) + - - 95 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9907
SELECT 60 * - CAST ( NULL AS INTEGER ) + - - 95 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9908
SELECT - COUNT( * ) + MAX( DISTINCT - col0 ) + ( + COUNT( * ) ) DIV SUM( + 96 ) AS col1 FROM tab2
----
-49
skipif mysql # not compatible
query I rowsort label-9908
SELECT - COUNT ( * ) + MAX ( DISTINCT - col0 ) + ( + COUNT ( * ) ) / SUM ( + 96 ) AS col1 FROM tab2
----
-49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col2 ) - - col2 AS col1, - 88 col0 FROM tab1
----
118
-88
136
-88
192
-88
query I rowsort
SELECT ALL 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # aggregate syntax:
query II rowsort label-9911
SELECT - COUNT( DISTINCT + col1 ) + + - 36 AS col0, - 20 FROM tab1
----
-39
-20
skipif mysql # not compatible
query II rowsort label-9911
SELECT - COUNT ( DISTINCT + col1 ) + + - 36 AS col0, - 20 FROM tab1
----
-39
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * + + 73 col1 FROM tab0
----
3212
onlyif mysql # DIV for integer division:
query I rowsort label-9913
SELECT DISTINCT 83 - + col1 - + 94 DIV 89 * + + col1 * + col1 * - col2 * - + col0 AS col2 FROM tab1
----
-125297
-13669256
-959547
skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT 83 - + col1 - + 94 / 89 * + + col1 * + col1 * - col2 * - + col0 AS col2 FROM tab1
----
-125297
-13669256
-959547
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + col0 - + 16 IS NOT NULL
----
query I rowsort
SELECT ALL + col0 * + 31 AS col0 FROM tab2 AS cor0
----
1426
1984
2325
query I rowsort
SELECT 65 * - + col2 AS col0 FROM tab2 AS cor0
----
-1495
-2600
-3770
onlyif mysql # CAST syntax: DECIMAL type:
query II rowsort label-9917
SELECT - + CAST( NULL AS DECIMAL ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
skipif mysql # not compatible
query II rowsort label-9917
SELECT - + CAST ( NULL AS REAL ) AS col0, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5
onlyif mysql # aggregate syntax:
query I rowsort label-9918
SELECT DISTINCT - SUM( - - col1 ) FROM tab1 AS cor0
----
-66
skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - SUM ( - - col1 ) FROM tab1 AS cor0
----
-66
onlyif mysql # aggregate syntax:
query II rowsort label-9919
SELECT + COUNT( * ), - 94 AS col0 FROM tab2 cor0
----
3
-94
skipif mysql # not compatible
query II rowsort label-9919
SELECT + COUNT ( * ), - 94 AS col0 FROM tab2 cor0
----
3
-94
query I rowsort
SELECT ALL + - 65 AS col2 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT DISTINCT - col2 * + + 62 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1426
-2480
-3596
onlyif mysql # aggregate syntax:
query I rowsort label-9922
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0
skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0
onlyif mysql # aggregate syntax:
query II rowsort label-9923
SELECT 93 AS col1, COUNT( + col2 ) AS col2 FROM tab0
----
93
3
skipif mysql # not compatible
query II rowsort label-9923
SELECT 93 AS col1, COUNT ( + col2 ) AS col2 FROM tab0
----
93
3
query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col0 col2, col2 FROM tab1
----
-4896
96
-5015
59
-6188
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col0 col0 FROM tab2
----
-2346
-4928
-5025
query III rowsort
SELECT * FROM tab1 WHERE NOT + 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
onlyif mysql # aggregate syntax: DIV for integer division:
query I rowsort label-9928
SELECT DISTINCT - COUNT( * ) DIV + 96 * 17 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - COUNT ( * ) / + 96 * 17 AS col2 FROM tab2
----
0
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) / 28 AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - col0
----
onlyif mysql # aggregate syntax:
query I rowsort label-9931
SELECT MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
77
skipif mysql # not compatible
query I rowsort label-9931
SELECT MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
77
onlyif mysql # aggregate syntax:
query I rowsort label-9932
SELECT - COUNT( * ) * - 14 + + COUNT( * ) + 95 AS col1 FROM tab1 AS cor0
----
140
skipif mysql # not compatible
query I rowsort label-9932
SELECT - COUNT ( * ) * - 14 + + COUNT ( * ) + 95 AS col1 FROM tab1 AS cor0
----
140
onlyif mysql # aggregate syntax:
query I rowsort label-9933
SELECT ALL - COUNT( ALL - col0 ) FROM tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL - COUNT ( ALL - col0 ) FROM tab0 AS cor0
----
-3
query I rowsort
SELECT 22 * + - col2 AS col2 FROM tab2 cor0
----
-1276
-506
-880
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
query II rowsort
SELECT + + col1 AS col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15
onlyif mysql # CAST syntax: SIGNED type:
query II rowsort label-9937
SELECT ALL - - CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96
skipif mysql # not compatible
query II rowsort label-9937
SELECT ALL - - CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96
query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # aggregate syntax:
query II rowsort label-9939
SELECT DISTINCT - ( + - COUNT( * ) ) AS col0, ( COUNT( * ) ) FROM tab0
----
3
3
skipif mysql # not compatible
query II rowsort label-9939
SELECT DISTINCT - ( + - COUNT ( * ) ) AS col0, ( COUNT ( * ) ) FROM tab0
----
3
3
query II rowsort
SELECT 31 * + + col2 AS col2, + col2 AS col1 FROM tab2
----
1240
40
1798
58
713
23
onlyif mysql # aggregate syntax:
query I rowsort label-9941
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
9
skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
9
query I rowsort
SELECT ALL ( - col1 ) * col2 + col2 - + col2 + + - ( + ( - - col1 ) ) AS col2 FROM tab1
----
-1358
-300
-3243
query I rowsort
SELECT DISTINCT - - col0 * - col0 + + col1 FROM tab0 AS cor0
----
-144
-7548
-9408
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9944
SELECT CAST( - 22 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-9944
SELECT CAST ( - 22 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-22
-22
-22
onlyif mysql # aggregate syntax:
query I rowsort label-9945
SELECT + 0 * - COUNT( * ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9945
SELECT + 0 * - COUNT ( * ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col0 * + + 75 + col0 - + 77 + + 82 + col0 - + + 9 * - col2 AS col1 FROM tab2 AS cor0
----
3754
5293
6302
query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE + col1 / + col2 * col2 IS NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9948
SELECT - COUNT( * ) col2 FROM tab0 cor0
----
-3
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9948
SELECT - COUNT ( * ) col2 FROM tab0 cor0
----
-3
query I rowsort
SELECT - 93 + + 47 FROM tab1
----
-46
-46
-46
onlyif mysql # aggregate syntax:
query II rowsort label-9950
SELECT - COUNT( * ) + - - COUNT( ALL + col2 ) AS col0, - MIN( + + 74 ) AS col0 FROM tab2
----
0
-74
skipif mysql # not compatible
query II rowsort label-9950
SELECT - COUNT ( * ) + - - COUNT ( ALL + col2 ) AS col0, - MIN ( + + 74 ) AS col0 FROM tab2
----
0
-74
query I rowsort
SELECT DISTINCT + + col1 FROM tab0 WHERE NOT NULL NOT IN ( + col1, - col0 * + - col2 / 29, + col0 + - col1 - + col2 )
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9952
SELECT DISTINCT CAST( - 44 AS SIGNED ) AS col1 FROM tab0
----
-44
skipif mysql # not compatible
query I rowsort label-9952
SELECT DISTINCT CAST ( - 44 AS INTEGER ) AS col1 FROM tab0
----
-44
query I rowsort
SELECT - - 88 * - - col0 + col0 AS col0 FROM tab1 AS cor0
----
4539
7565
8099
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad
query II rowsort
SELECT DISTINCT col1 + - + col1 * ( + col1 ) AS col1, - col0 FROM tab1 AS cor0
----
-182
-51
-20
-85
-2162
-91
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9956
SELECT * FROM tab1 WHERE + col0 / 92 + + ( - CAST( NULL AS SIGNED ) ) >= 74 - + col1
----
skipif mysql # not compatible
query III rowsort label-9956
SELECT * FROM tab1 WHERE + col0 / 92 + + ( - CAST ( NULL AS INTEGER ) ) >= 74 - + col1
----
query III rowsort
SELECT * FROM tab2 WHERE NULL < col2
----
onlyif mysql # CAST syntax: SIGNED type: DIV for integer division:
query I rowsort label-9958
SELECT - CAST( - col1 AS SIGNED ) DIV + col2 - - 55 FROM tab0 AS cor0
----
55
56
57
skipif mysql # not compatible
query I rowsort label-9958
SELECT - CAST ( - col1 AS INTEGER ) / + col2 - - 55 FROM tab0 AS cor0
----
55
56
57
onlyif mysql # DIV for integer division:
query II rowsort label-9959
SELECT - 23 DIV + col0 + + col2, + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
59
68
68
96
96
skipif mysql # not compatible
query II rowsort label-9959
SELECT - 23 / + col0 + + col2, + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
59
68
68
96
96
query I rowsort
SELECT + 74 AS col1 FROM tab0 AS cor0
----
74
74
74
onlyif mysql # aggregate syntax:
query I rowsort label-9961
SELECT ALL + MAX( - 36 ) * + + 0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + MAX ( - 36 ) * + + 0 FROM tab0
----
0
query III rowsort
SELECT * FROM tab2 WHERE NOT 35 < 84
----
query I rowsort
SELECT - col2 * + + col1 AS col1 FROM tab0
----
-210
-3807
-99
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 + - col1 AND + col2
----
query I rowsort
SELECT ALL + col2 * col2 * + + col0 - + col0 AS col1 FROM tab0 AS cor0
----
33120
8613
950600
query II rowsort
SELECT DISTINCT + 70 * - ( - 68 ), 87 AS col0 FROM tab0 AS cor0
----
4760
87
query I rowsort
SELECT ALL - 60 FROM tab1 cor0
----
-60
-60
-60
query II rowsort
SELECT DISTINCT col0 * col2 AS col2, - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1058
-46
2560
-64
4350
-75
onlyif mysql # DIV for integer division:
query I rowsort label-9969
SELECT ALL - col1 DIV - + 57 + + - col0 AS col2 FROM tab1 cor0
----
-51
-85
-91
skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - col1 / - + 57 + + - col0 AS col2 FROM tab1 cor0
----
-51
-85
-91
onlyif mysql # DIV for integer division:
query I rowsort label-9970
SELECT + col1 DIV + + ( col1 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9970
SELECT + col1 / + + ( col1 ) FROM tab2 AS cor0
----
1
1
1
query II rowsort
SELECT col2 AS col2, + 50 * - + col1 AS col2 FROM tab1
----
59
-250
68
-2350
96
-700
query II rowsort
SELECT ALL col2 AS col2, 92 FROM tab2
----
23
92
40
92
58
92
onlyif mysql # CAST syntax: SIGNED type:
query III rowsort label-9973
SELECT * FROM tab0 WHERE NULL >= col1 / - CAST( NULL AS SIGNED ) - + col0 * ( - col0 ) - - 20 + col0 + col1 * col1 + + - col0 + + + col2
----
skipif mysql # not compatible
query III rowsort label-9973
SELECT * FROM tab0 WHERE NULL >= col1 / - CAST ( NULL AS INTEGER ) - + col0 * ( - col0 ) - - 20 + col0 + col1 * col1 + + - col0 + + + col2
----
onlyif mysql # DIV for integer division:
query I rowsort label-9974
SELECT DISTINCT 18 * - col2 DIV col2 FROM tab1
----
-18
skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT 18 * - col2 / col2 FROM tab1
----
-18
onlyif mysql # aggregate syntax:
query I rowsort label-9975
SELECT + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9975
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
onlyif mysql # aggregate syntax:
query I rowsort label-9976
SELECT DISTINCT + 60 + - COUNT( * ) FROM tab1 AS cor0
----
57
skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT + 60 + - COUNT ( * ) FROM tab1 AS cor0
----
57
onlyif mysql # aggregate syntax:
query I rowsort label-9977
SELECT ALL 17 + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( - + col1 ) + + ( 86 ) BETWEEN - + col2 AND + col0
----
19
skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL 17 + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( - + col1 ) + + ( 86 ) BETWEEN - + col2 AND + col0
----
19
onlyif mysql # aggregate syntax:
query I rowsort label-9978
SELECT ALL + COUNT( * ) + COUNT( + + 98 ) FROM tab1 AS cor0
----
6
skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + COUNT ( * ) + COUNT ( + + 98 ) FROM tab1 AS cor0
----
6
query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
onlyif mysql # CAST syntax: SIGNED type:
query I rowsort label-9980
SELECT 53 + + col1 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
62
81
90
skipif mysql # not compatible
query I rowsort label-9980
SELECT 53 + + col1 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
62
81
90
query I rowsort
SELECT - - 97 + + - 40 AS col0 FROM tab0 AS cor0
----
57
57
57
query II rowsort
SELECT + - col2 AS col2, 95 - col1 * - + 91 * - 1 AS col0 FROM tab1 AS cor0
----
-59
-360
-68
-4182
-96
-1179
query I rowsort
SELECT 4 * - 26 FROM tab0 AS cor0
----
-104
-104
-104
onlyif mysql # DIV for integer division:
query II rowsort label-9984
SELECT + ( + col1 ) DIV + col0, col0 FROM tab0
----
0
87
0
97
5
15
skipif mysql # not compatible
query II rowsort label-9984
SELECT + ( + col1 ) / + col0, col0 FROM tab0
----
0
87
0
97
5
15
onlyif mysql # DIV for integer division:
query I rowsort label-9985
SELECT DISTINCT + col2 DIV + col2 AS col0 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + col2 / + col2 AS col0 FROM tab0
----
1
query I rowsort
SELECT 97 * + col0 AS col1 FROM tab1
----
4947
8245
8827
onlyif mysql # aggregate syntax:
query I rowsort label-9987
SELECT SUM( - 99 ) AS col0 FROM tab0
----
-297
skipif mysql # not compatible
query I rowsort label-9987
SELECT SUM ( - 99 ) AS col0 FROM tab0
----
-297
query I rowsort
SELECT - col1 - + + 12 FROM tab2
----
-63
-79
-89
query II rowsort
SELECT col1 + - - 4 AS col2, col1 * - col1 AS col0 FROM tab1 AS cor0
----
18
-196
51
-2209
9
-25
query I rowsort
SELECT + col0 + - 29 FROM tab2 AS cor0
----
17
35
46
onlyif mysql # CAST syntax: DECIMAL type:
query IIIIII rowsort label-9991
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + CAST( 81 AS DECIMAL ) IS NOT NULL
----
skipif mysql # not compatible
query IIIIII rowsort label-9991
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + CAST ( 81 AS REAL ) IS NOT NULL
----
onlyif mysql # aggregate syntax:
query I rowsort label-9992
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN col2 AND 94
----
0
skipif mysql # not compatible
query I rowsort label-9992
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN col2 AND 94
----
0
query I rowsort
SELECT DISTINCT - 8 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 8 col1, + 8 AS col2 FROM tab0 AS cor0
----
-8
8
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 47 * + - col0 IS NOT NULL
----
onlyif mysql # DIV for integer division:
query I rowsort label-9996
SELECT - 36 DIV + col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9996
SELECT - 36 / + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 78 * - 19 FROM tab2 AS cor0
----
1482
1482
1482
query II rowsort
SELECT + + col2 AS col0, 33 FROM tab0 AS cor0
----
10
33
47
33
99
33
onlyif mysql # aggregate syntax:
query I rowsort label-9999
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
3
skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
3