Home | History | Annotate | Download | only in test
      1 # 2008 December 23
      2 #
      3 # The author disclaims copyright to this source code.  In place of
      4 # a legal notice, here is a blessing:
      5 #
      6 #    May you do good and not evil.
      7 #    May you find forgiveness for yourself and forgive others.
      8 #    May you share freely, never taking more than you give.
      9 #
     10 #***********************************************************************
     11 # This file implements regression tests for SQLite library.  The
     12 # focus of this file is testing the multi-index OR clause optimizer.
     13 #
     14 # $Id: where7.test,v 1.9 2009/06/07 23:45:11 drh Exp $
     15 
     16 set testdir [file dirname $argv0]
     17 source $testdir/tester.tcl
     18 
     19 ifcapable !or_opt {
     20   finish_test
     21   return
     22 }
     23 
     24 # Evaluate SQL.  Return the result set followed by the
     25 # and the number of full-scan steps.
     26 #
     27 proc count_steps {sql} {
     28   set r [db eval $sql]
     29   lappend r scan [db status step] sort [db status sort]
     30 }
     31 
     32 proc count_steps_sort {sql} {
     33   set r [lsort -integer [db eval $sql]]
     34   return "$r scan [db status step] sort [db status sort]"
     35 }
     36 
     37 # Build some test data
     38 #
     39 do_test where7-1.1 {
     40   execsql {
     41     CREATE TABLE t1(a INTEGER PRIMARY KEY,b,c,d);
     42     INSERT INTO t1 VALUES(1,2,3,4);
     43     INSERT INTO t1 VALUES(2,3,4,5);
     44     INSERT INTO t1 VALUES(3,4,6,8);
     45     INSERT INTO t1 VALUES(4,5,10,15);
     46     INSERT INTO t1 VALUES(5,10,100,1000);
     47     CREATE INDEX t1b ON t1(b);
     48     CREATE INDEX t1c ON t1(c);
     49     SELECT * FROM t1;
     50   }
     51 } {1 2 3 4 2 3 4 5 3 4 6 8 4 5 10 15 5 10 100 1000}
     52 do_test where7-1.2 {
     53   count_steps {
     54     SELECT a FROM t1 WHERE b=3 OR c=6 ORDER BY a
     55   }
     56 } {2 3 scan 0 sort 1}
     57 do_test where7-1.3 {
     58   count_steps {
     59     SELECT a FROM t1 WHERE b=3 OR +c=6 ORDER BY a
     60   }
     61 } {2 3 scan 4 sort 0}
     62 do_test where7-1.4 {
     63   count_steps {
     64     SELECT a FROM t1 WHERE +b=3 OR c=6 ORDER BY 1
     65   }
     66 } {2 3 scan 4 sort 0}
     67 do_test where7-1.5 {
     68   count_steps {
     69     SELECT a FROM t1 WHERE 3=b OR c=6 ORDER BY rowid
     70   }
     71 } {2 3 scan 0 sort 1}
     72 do_test where7-1.6 {
     73   count_steps {
     74     SELECT a FROM t1 WHERE (3=b OR c=6) AND +a>0 ORDER BY a
     75   }
     76 } {2 3 scan 0 sort 1}
     77 do_test where7-1.7 {
     78   count_steps {
     79     SELECT a FROM t1 WHERE (b=3 OR c>10)
     80   }
     81 } {2 5 scan 0 sort 0}
     82 do_test where7-1.8 {
     83   count_steps {
     84     SELECT a FROM t1 WHERE (b=3 OR c>=10)
     85   }
     86 } {2 4 5 scan 0 sort 0}
     87 do_test where7-1.9 {
     88   count_steps {
     89     SELECT a FROM t1 WHERE (b=3 OR c>=10 OR c=4)
     90   }
     91 } {2 4 5 scan 0 sort 0}
     92 do_test where7-1.10 {
     93   count_steps {
     94     SELECT a FROM t1 WHERE (b=3 OR c>=10 OR c=4 OR b>10)
     95   }
     96 } {2 4 5 scan 0 sort 0}
     97 do_test where7-1.11 {
     98   count_steps {
     99     SELECT a FROM t1 WHERE (d=5 AND b=3) OR c==100 ORDER BY a;
    100   }
    101 } {2 5 scan 0 sort 1}
    102 do_test where7-1.12 {
    103   count_steps {
    104     SELECT a FROM t1 WHERE (b BETWEEN 2 AND 4) OR c=100 ORDER BY a
    105   }
    106 } {1 2 3 5 scan 0 sort 1}
    107 do_test where7-1.13 {
    108   count_steps {
    109     SELECT a FROM t1 WHERE (b BETWEEN 0 AND 2) OR (c BETWEEN 9 AND 999)
    110     ORDER BY +a DESC
    111   }
    112 } {5 4 1 scan 0 sort 1}
    113 
    114 do_test where7-1.14 {
    115   count_steps {
    116     SELECT a FROM t1 WHERE (d=8 OR c=6 OR b=4) AND +a>0
    117   }
    118 } {3 scan 4 sort 0}
    119 do_test where7-1.15 {
    120   count_steps {
    121     SELECT a FROM t1 WHERE +a>=0 AND (d=8 OR c=6 OR b=4)
    122   }
    123 } {3 scan 4 sort 0}
    124 
    125 do_test where7-1.20 {
    126   set sql "SELECT a FROM t1 WHERE a=11 OR b=11"
    127   for {set i 12} {$i<400} {incr i} {
    128     append sql " OR a=$i OR b=$i"
    129   }
    130   append sql " ORDER BY a"
    131   count_steps $sql
    132 } {scan 0 sort 1}
    133 do_test where7-1.21 {
    134   set sql "SELECT a FROM t1 WHERE b=11 OR c=11"
    135   for {set i 12} {$i<400} {incr i} {
    136     append sql " OR b=$i OR c=$i"
    137   }
    138   append sql " ORDER BY a"
    139   count_steps $sql
    140 } {5 scan 0 sort 1}
    141 do_test where7-1.22 {
    142   set sql "SELECT a FROM t1 WHERE (b=11 OR c=11"
    143   for {set i 12} {$i<400} {incr i} {
    144     append sql " OR b=$i OR c=$i"
    145   }
    146   append sql ") AND d>=0 AND d<9999 ORDER BY a"
    147   count_steps $sql
    148 } {5 scan 0 sort 1}
    149 do_test where7-1.23 {
    150   set sql "SELECT a FROM t1 WHERE (b=11 OR c=11"
    151   for {set i 12} {$i<400} {incr i} {
    152     append sql " OR (b=$i AND d!=0) OR (c=$i AND d IS NOT NULL)"
    153   }
    154   append sql ") AND d>=0 AND d<9999 ORDER BY a"
    155   count_steps $sql
    156 } {5 scan 0 sort 1}
    157 
    158 do_test where7-1.31 {
    159   set sql "SELECT a FROM t1 WHERE (a=11 AND b=11)"
    160   for {set i 12} {$i<400} {incr i} {
    161     append sql " OR (a=$i AND b=$i)"
    162   }
    163   append sql " ORDER BY a"
    164   count_steps $sql
    165 } {scan 0 sort 1}
    166 do_test where7-1.32 {
    167   set sql "SELECT a FROM t1 WHERE (b=11 AND c=11)"
    168   for {set i 12} {$i<400} {incr i} {
    169     append sql " OR (b=$i AND c=$i)"
    170   }
    171   append sql " ORDER BY a"
    172   count_steps $sql
    173 } {scan 0 sort 1}
    174 
    175 
    176 do_test where7-2.1 {
    177   db eval {
    178     CREATE TABLE t2(a INTEGER PRIMARY KEY,b,c,d,e,f TEXT,g);
    179     INSERT INTO t2 VALUES(1,11,1001,1.001,100.1,'bcdefghij','yxwvuts');
    180     INSERT INTO t2 VALUES(2,22,1001,2.002,100.1,'cdefghijk','yxwvuts');
    181     INSERT INTO t2 VALUES(3,33,1001,3.0029999999999997,100.1,'defghijkl','xwvutsr');
    182     INSERT INTO t2 VALUES(4,44,2002,4.004,200.2,'efghijklm','xwvutsr');
    183     INSERT INTO t2 VALUES(5,55,2002,5.004999999999999,200.2,'fghijklmn','xwvutsr');
    184     INSERT INTO t2 VALUES(6,66,2002,6.005999999999999,200.2,'ghijklmno','xwvutsr');
    185     INSERT INTO t2 VALUES(7,77,3003,7.007,300.29999999999995,'hijklmnop','xwvutsr');
    186     INSERT INTO t2 VALUES(8,88,3003,8.008,300.29999999999995,'ijklmnopq','wvutsrq');
    187     INSERT INTO t2 VALUES(9,99,3003,9.008999999999999,300.29999999999995,'jklmnopqr','wvutsrq');
    188     INSERT INTO t2 VALUES(10,110,4004,10.009999999999998,400.4,'klmnopqrs','wvutsrq');
    189     INSERT INTO t2 VALUES(11,121,4004,11.011,400.4,'lmnopqrst','wvutsrq');
    190     INSERT INTO t2 VALUES(12,132,4004,12.011999999999999,400.4,'mnopqrstu','wvutsrq');
    191     INSERT INTO t2 VALUES(13,143,5005,13.012999999999998,500.5,'nopqrstuv','vutsrqp');
    192     INSERT INTO t2 VALUES(14,154,5005,14.014,500.5,'opqrstuvw','vutsrqp');
    193     INSERT INTO t2 VALUES(15,165,5005,15.014999999999999,500.5,'pqrstuvwx','vutsrqp');
    194     INSERT INTO t2 VALUES(16,176,6006,16.016,600.5999999999999,'qrstuvwxy','vutsrqp');
    195     INSERT INTO t2 VALUES(17,187,6006,17.017,600.5999999999999,'rstuvwxyz','vutsrqp');
    196     INSERT INTO t2 VALUES(18,198,6006,18.017999999999997,600.5999999999999,'stuvwxyza','utsrqpo');
    197     INSERT INTO t2 VALUES(19,209,7007,19.019,700.6999999999999,'tuvwxyzab','utsrqpo');
    198     INSERT INTO t2 VALUES(20,220,7007,20.019999999999996,700.6999999999999,'uvwxyzabc','utsrqpo');
    199     INSERT INTO t2 VALUES(21,231,7007,21.020999999999997,700.6999999999999,'vwxyzabcd','utsrqpo');
    200     INSERT INTO t2 VALUES(22,242,8008,22.022,800.8,'wxyzabcde','utsrqpo');
    201     INSERT INTO t2 VALUES(23,253,8008,23.022999999999996,800.8,'xyzabcdef','tsrqpon');
    202     INSERT INTO t2 VALUES(24,264,8008,24.023999999999997,800.8,'yzabcdefg','tsrqpon');
    203     INSERT INTO t2 VALUES(25,275,9009,25.025,900.9,'zabcdefgh','tsrqpon');
    204     INSERT INTO t2 VALUES(26,286,9009,26.025999999999996,900.9,'abcdefghi','tsrqpon');
    205     INSERT INTO t2 VALUES(27,297,9009,27.026999999999997,900.9,'bcdefghij','tsrqpon');
    206     INSERT INTO t2 VALUES(28,308,10010,28.028,1001.0,'cdefghijk','srqponm');
    207     INSERT INTO t2 VALUES(29,319,10010,29.028999999999996,1001.0,'defghijkl','srqponm');
    208     INSERT INTO t2 VALUES(30,330,10010,30.029999999999998,1001.0,'efghijklm','srqponm');
    209     INSERT INTO t2 VALUES(31,341,11011,31.030999999999995,1101.1,'fghijklmn','srqponm');
    210     INSERT INTO t2 VALUES(32,352,11011,32.032,1101.1,'ghijklmno','srqponm');
    211     INSERT INTO t2 VALUES(33,363,11011,33.032999999999994,1101.1,'hijklmnop','rqponml');
    212     INSERT INTO t2 VALUES(34,374,12012,34.034,1201.1999999999998,'ijklmnopq','rqponml');
    213     INSERT INTO t2 VALUES(35,385,12012,35.035,1201.1999999999998,'jklmnopqr','rqponml');
    214     INSERT INTO t2 VALUES(36,396,12012,36.035999999999994,1201.1999999999998,'klmnopqrs','rqponml');
    215     INSERT INTO t2 VALUES(37,407,13013,37.037,1301.3,'lmnopqrst','rqponml');
    216     INSERT INTO t2 VALUES(38,418,13013,38.038,1301.3,'mnopqrstu','qponmlk');
    217     INSERT INTO t2 VALUES(39,429,13013,39.038999999999994,1301.3,'nopqrstuv','qponmlk');
    218     INSERT INTO t2 VALUES(40,440,14014,40.03999999999999,1401.3999999999999,'opqrstuvw','qponmlk');
    219     INSERT INTO t2 VALUES(41,451,14014,41.041,1401.3999999999999,'pqrstuvwx','qponmlk');
    220     INSERT INTO t2 VALUES(42,462,14014,42.041999999999994,1401.3999999999999,'qrstuvwxy','qponmlk');
    221     INSERT INTO t2 VALUES(43,473,15015,43.04299999999999,1501.5,'rstuvwxyz','ponmlkj');
    222     INSERT INTO t2 VALUES(44,484,15015,44.044,1501.5,'stuvwxyza','ponmlkj');
    223     INSERT INTO t2 VALUES(45,495,15015,45.044999999999995,1501.5,'tuvwxyzab','ponmlkj');
    224     INSERT INTO t2 VALUES(46,506,16016,46.04599999999999,1601.6,'uvwxyzabc','ponmlkj');
    225     INSERT INTO t2 VALUES(47,517,16016,47.047,1601.6,'vwxyzabcd','ponmlkj');
    226     INSERT INTO t2 VALUES(48,528,16016,48.047999999999995,1601.6,'wxyzabcde','onmlkji');
    227     INSERT INTO t2 VALUES(49,539,17017,49.04899999999999,1701.6999999999998,'xyzabcdef','onmlkji');
    228     INSERT INTO t2 VALUES(50,550,17017,50.05,1701.6999999999998,'yzabcdefg','onmlkji');
    229     INSERT INTO t2 VALUES(51,561,17017,51.050999999999995,1701.6999999999998,'zabcdefgh','onmlkji');
    230     INSERT INTO t2 VALUES(52,572,18018,52.05199999999999,1801.8,'abcdefghi','onmlkji');
    231     INSERT INTO t2 VALUES(53,583,18018,53.053,1801.8,'bcdefghij','nmlkjih');
    232     INSERT INTO t2 VALUES(54,594,18018,54.053999999999995,1801.8,'cdefghijk','nmlkjih');
    233     INSERT INTO t2 VALUES(55,605,19019,55.05499999999999,1901.8999999999999,'defghijkl','nmlkjih');
    234     INSERT INTO t2 VALUES(56,616,19019,56.056,1901.8999999999999,'efghijklm','nmlkjih');
    235     INSERT INTO t2 VALUES(57,627,19019,57.056999999999995,1901.8999999999999,'fghijklmn','nmlkjih');
    236     INSERT INTO t2 VALUES(58,638,20020,58.05799999999999,2002.0,'ghijklmno','mlkjihg');
    237     INSERT INTO t2 VALUES(59,649,20020,59.05899999999999,2002.0,'hijklmnop','mlkjihg');
    238     INSERT INTO t2 VALUES(60,660,20020,60.059999999999995,2002.0,'ijklmnopq','mlkjihg');
    239     INSERT INTO t2 VALUES(61,671,21021,61.06099999999999,2102.1,'jklmnopqr','mlkjihg');
    240     INSERT INTO t2 VALUES(62,682,21021,62.06199999999999,2102.1,'klmnopqrs','mlkjihg');
    241     INSERT INTO t2 VALUES(63,693,21021,63.062999999999995,2102.1,'lmnopqrst','lkjihgf');
    242     INSERT INTO t2 VALUES(64,704,22022,64.064,2202.2,'mnopqrstu','lkjihgf');
    243     INSERT INTO t2 VALUES(65,715,22022,65.065,2202.2,'nopqrstuv','lkjihgf');
    244     INSERT INTO t2 VALUES(66,726,22022,66.06599999999999,2202.2,'opqrstuvw','lkjihgf');
    245     INSERT INTO t2 VALUES(67,737,23023,67.067,2302.2999999999997,'pqrstuvwx','lkjihgf');
    246     INSERT INTO t2 VALUES(68,748,23023,68.068,2302.2999999999997,'qrstuvwxy','kjihgfe');
    247     INSERT INTO t2 VALUES(69,759,23023,69.06899999999999,2302.2999999999997,'rstuvwxyz','kjihgfe');
    248     INSERT INTO t2 VALUES(70,770,24024,70.07,2402.3999999999996,'stuvwxyza','kjihgfe');
    249     INSERT INTO t2 VALUES(71,781,24024,71.071,2402.3999999999996,'tuvwxyzab','kjihgfe');
    250     INSERT INTO t2 VALUES(72,792,24024,72.07199999999999,2402.3999999999996,'uvwxyzabc','kjihgfe');
    251     INSERT INTO t2 VALUES(73,803,25025,73.073,2502.5,'vwxyzabcd','jihgfed');
    252     INSERT INTO t2 VALUES(74,814,25025,74.074,2502.5,'wxyzabcde','jihgfed');
    253     INSERT INTO t2 VALUES(75,825,25025,75.07499999999999,2502.5,'xyzabcdef','jihgfed');
    254     INSERT INTO t2 VALUES(76,836,26026,76.076,2602.6,'yzabcdefg','jihgfed');
    255     INSERT INTO t2 VALUES(77,847,26026,77.077,2602.6,'zabcdefgh','jihgfed');
    256     INSERT INTO t2 VALUES(78,858,26026,78.07799999999999,2602.6,'abcdefghi','ihgfedc');
    257     INSERT INTO t2 VALUES(79,869,27027,79.079,2702.7,'bcdefghij','ihgfedc');
    258     INSERT INTO t2 VALUES(80,880,27027,80.07999999999998,2702.7,'cdefghijk','ihgfedc');
    259     INSERT INTO t2 VALUES(81,891,27027,81.08099999999999,2702.7,'defghijkl','ihgfedc');
    260     INSERT INTO t2 VALUES(82,902,28028,82.082,2802.7999999999997,'efghijklm','ihgfedc');
    261     INSERT INTO t2 VALUES(83,913,28028,83.08299999999998,2802.7999999999997,'fghijklmn','hgfedcb');
    262     INSERT INTO t2 VALUES(84,924,28028,84.08399999999999,2802.7999999999997,'ghijklmno','hgfedcb');
    263     INSERT INTO t2 VALUES(85,935,29029,85.085,2902.8999999999996,'hijklmnop','hgfedcb');
    264     INSERT INTO t2 VALUES(86,946,29029,86.08599999999998,2902.8999999999996,'ijklmnopq','hgfedcb');
    265     INSERT INTO t2 VALUES(87,957,29029,87.08699999999999,2902.8999999999996,'jklmnopqr','hgfedcb');
    266     INSERT INTO t2 VALUES(88,968,30030,88.088,3003.0,'klmnopqrs','gfedcba');
    267     INSERT INTO t2 VALUES(89,979,30030,89.08899999999998,3003.0,'lmnopqrst','gfedcba');
    268     INSERT INTO t2 VALUES(90,990,30030,90.08999999999999,3003.0,'mnopqrstu','gfedcba');
    269     INSERT INTO t2 VALUES(91,1001,31031,91.091,3103.1,'nopqrstuv','gfedcba');
    270     INSERT INTO t2 VALUES(92,1012,31031,92.09199999999998,3103.1,'opqrstuvw','gfedcba');
    271     INSERT INTO t2 VALUES(93,1023,31031,93.09299999999999,3103.1,'pqrstuvwx','fedcbaz');
    272     INSERT INTO t2 VALUES(94,1034,32032,94.094,3203.2,'qrstuvwxy','fedcbaz');
    273     INSERT INTO t2 VALUES(95,1045,32032,95.09499999999998,3203.2,'rstuvwxyz','fedcbaz');
    274     INSERT INTO t2 VALUES(96,1056,32032,96.09599999999999,3203.2,'stuvwxyza','fedcbaz');
    275     INSERT INTO t2 VALUES(97,1067,33033,97.097,3303.2999999999997,'tuvwxyzab','fedcbaz');
    276     INSERT INTO t2 VALUES(98,1078,33033,98.09799999999998,3303.2999999999997,'uvwxyzabc','edcbazy');
    277     INSERT INTO t2 VALUES(99,1089,33033,99.09899999999999,3303.2999999999997,'vwxyzabcd','edcbazy');
    278     INSERT INTO t2 VALUES(100,1100,34034,100.1,3403.3999999999996,'wxyzabcde','edcbazy');
    279     CREATE INDEX t2b ON t2(b);
    280     CREATE INDEX t2c ON t2(c);
    281     CREATE INDEX t2d ON t2(d);
    282     CREATE INDEX t2e ON t2(e);
    283     CREATE INDEX t2f ON t2(f);
    284     CREATE INDEX t2g ON t2(g);
    285     CREATE TABLE t3(a INTEGER PRIMARY KEY,b,c,d,e,f TEXT,g);
    286     INSERT INTO t3 SELECT * FROM t2;
    287     CREATE INDEX t3b ON t3(b,c);
    288     CREATE INDEX t3c ON t3(c,e);
    289     CREATE INDEX t3d ON t3(d,g);
    290     CREATE INDEX t3e ON t3(e,f,g);
    291     CREATE INDEX t3f ON t3(f,b,d,c);
    292     CREATE INDEX t3g ON t3(g,f);
    293   }
    294 } {}
    295 
    296 do_test where7-2.2.1 {
    297   count_steps_sort {
    298      SELECT a FROM t2
    299       WHERE b=1070
    300          OR (g='edcbazy' AND f GLOB 'wxyza*')
    301          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
    302          OR ((a BETWEEN 18 AND 20) AND a!=19)
    303          OR (g='qponmlk' AND f GLOB 'nopqr*')
    304          OR (g='fedcbaz' AND f GLOB 'stuvw*')
    305          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
    306   }
    307 } {6 18 20 32 39 58 84 89 96 100 scan 0 sort 0}
    308 do_test where7-2.2.2 {
    309   count_steps_sort {
    310      SELECT a FROM t3
    311       WHERE b=1070
    312          OR (g='edcbazy' AND f GLOB 'wxyza*')
    313          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
    314          OR ((a BETWEEN 18 AND 20) AND a!=19)
    315          OR (g='qponmlk' AND f GLOB 'nopqr*')
    316          OR (g='fedcbaz' AND f GLOB 'stuvw*')
    317          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
    318   }
    319 } {6 18 20 32 39 58 84 89 96 100 scan 0 sort 0}
    320 do_test where7-2.3.1 {
    321   count_steps_sort {
    322      SELECT a FROM t2
    323       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
    324          OR ((a BETWEEN 33 AND 35) AND a!=34)
    325          OR (g='edcbazy' AND f GLOB 'uvwxy*')
    326          OR b=220
    327          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
    328          OR ((a BETWEEN 67 AND 69) AND a!=68)
    329          OR (g='qponmlk' AND f GLOB 'pqrst*')
    330   }
    331 } {20 33 35 41 47 67 69 70 98 scan 0 sort 0}
    332 do_test where7-2.3.2 {
    333   count_steps_sort {
    334      SELECT a FROM t3
    335       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
    336          OR ((a BETWEEN 33 AND 35) AND a!=34)
    337          OR (g='edcbazy' AND f GLOB 'uvwxy*')
    338          OR b=220
    339          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
    340          OR ((a BETWEEN 67 AND 69) AND a!=68)
    341          OR (g='qponmlk' AND f GLOB 'pqrst*')
    342   }
    343 } {20 33 35 41 47 67 69 70 98 scan 0 sort 0}
    344 do_test where7-2.4.1 {
    345   count_steps_sort {
    346      SELECT a FROM t2
    347       WHERE b=190
    348          OR ((a BETWEEN 49 AND 51) AND a!=50)
    349          OR (g='rqponml' AND f GLOB 'hijkl*')
    350          OR b=407
    351   }
    352 } {33 37 49 51 scan 0 sort 0}
    353 do_test where7-2.4.2 {
    354   count_steps_sort {
    355      SELECT a FROM t3
    356       WHERE b=190
    357          OR ((a BETWEEN 49 AND 51) AND a!=50)
    358          OR (g='rqponml' AND f GLOB 'hijkl*')
    359          OR b=407
    360   }
    361 } {33 37 49 51 scan 0 sort 0}
    362 do_test where7-2.5.1 {
    363   count_steps_sort {
    364      SELECT a FROM t2
    365       WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
    366          OR b=795
    367          OR b=1103
    368          OR b=583
    369   }
    370 } {13 39 53 65 91 scan 0 sort 0}
    371 do_test where7-2.5.2 {
    372   count_steps_sort {
    373      SELECT a FROM t3
    374       WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
    375          OR b=795
    376          OR b=1103
    377          OR b=583
    378   }
    379 } {13 39 53 65 91 scan 0 sort 0}
    380 do_test where7-2.6.1 {
    381   count_steps_sort {
    382      SELECT a FROM t2
    383       WHERE a=74
    384          OR a=50
    385          OR (g='hgfedcb' AND f GLOB 'hijkl*')
    386          OR ((a BETWEEN 16 AND 18) AND a!=17)
    387          OR c=21021
    388          OR ((a BETWEEN 82 AND 84) AND a!=83)
    389   }
    390 } {16 18 50 61 62 63 74 82 84 85 scan 0 sort 0}
    391 do_test where7-2.6.2 {
    392   count_steps_sort {
    393      SELECT a FROM t3
    394       WHERE a=74
    395          OR a=50
    396          OR (g='hgfedcb' AND f GLOB 'hijkl*')
    397          OR ((a BETWEEN 16 AND 18) AND a!=17)
    398          OR c=21021
    399          OR ((a BETWEEN 82 AND 84) AND a!=83)
    400   }
    401 } {16 18 50 61 62 63 74 82 84 85 scan 0 sort 0}
    402 do_test where7-2.7.1 {
    403   count_steps_sort {
    404      SELECT a FROM t2
    405       WHERE ((a BETWEEN 8 AND 10) AND a!=9)
    406          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
    407          OR ((a BETWEEN 34 AND 36) AND a!=35)
    408          OR c=14014
    409          OR b=828
    410   }
    411 } {8 10 34 36 40 41 42 94 scan 0 sort 0}
    412 do_test where7-2.7.2 {
    413   count_steps_sort {
    414      SELECT a FROM t3
    415       WHERE ((a BETWEEN 8 AND 10) AND a!=9)
    416          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
    417          OR ((a BETWEEN 34 AND 36) AND a!=35)
    418          OR c=14014
    419          OR b=828
    420   }
    421 } {8 10 34 36 40 41 42 94 scan 0 sort 0}
    422 do_test where7-2.8.1 {
    423   count_steps_sort {
    424      SELECT a FROM t2
    425       WHERE 1000000<b
    426          OR b=308
    427   }
    428 } {28 scan 0 sort 0}
    429 do_test where7-2.8.2 {
    430   count_steps_sort {
    431      SELECT a FROM t3
    432       WHERE 1000000<b
    433          OR b=308
    434   }
    435 } {28 scan 0 sort 0}
    436 do_test where7-2.9.1 {
    437   count_steps_sort {
    438      SELECT a FROM t2
    439       WHERE b=949
    440          OR ((a BETWEEN 22 AND 24) AND a!=23)
    441          OR a=63
    442   }
    443 } {22 24 63 scan 0 sort 0}
    444 do_test where7-2.9.2 {
    445   count_steps_sort {
    446      SELECT a FROM t3
    447       WHERE b=949
    448          OR ((a BETWEEN 22 AND 24) AND a!=23)
    449          OR a=63
    450   }
    451 } {22 24 63 scan 0 sort 0}
    452 do_test where7-2.10.1 {
    453   count_steps_sort {
    454      SELECT a FROM t2
    455       WHERE ((a BETWEEN 49 AND 51) AND a!=50)
    456          OR b=396
    457          OR ((a BETWEEN 68 AND 70) AND a!=69)
    458   }
    459 } {36 49 51 68 70 scan 0 sort 0}
    460 do_test where7-2.10.2 {
    461   count_steps_sort {
    462      SELECT a FROM t3
    463       WHERE ((a BETWEEN 49 AND 51) AND a!=50)
    464          OR b=396
    465          OR ((a BETWEEN 68 AND 70) AND a!=69)
    466   }
    467 } {36 49 51 68 70 scan 0 sort 0}
    468 do_test where7-2.11.1 {
    469   count_steps_sort {
    470      SELECT a FROM t2
    471       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
    472          OR (g='jihgfed' AND f GLOB 'wxyza*')
    473          OR c=11011
    474          OR c=20020
    475          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
    476   }
    477 } {18 31 32 33 58 59 60 72 74 scan 0 sort 0}
    478 do_test where7-2.11.2 {
    479   count_steps_sort {
    480      SELECT a FROM t3
    481       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
    482          OR (g='jihgfed' AND f GLOB 'wxyza*')
    483          OR c=11011
    484          OR c=20020
    485          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
    486   }
    487 } {18 31 32 33 58 59 60 72 74 scan 0 sort 0}
    488 do_test where7-2.12.1 {
    489   count_steps_sort {
    490      SELECT a FROM t2
    491       WHERE (d>=50.0 AND d<51.0 AND d NOT NULL)
    492          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
    493          OR (g='vutsrqp' AND f GLOB 'rstuv*')
    494          OR b=792
    495          OR a=97
    496          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
    497          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
    498          OR b=916
    499          OR a=69
    500          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
    501          OR c=6006
    502   }
    503 } {16 17 18 31 50 69 72 81 83 87 97 scan 0 sort 0}
    504 do_test where7-2.12.2 {
    505   count_steps_sort {
    506      SELECT a FROM t3
    507       WHERE (d>=50.0 AND d<51.0 AND d NOT NULL)
    508          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
    509          OR (g='vutsrqp' AND f GLOB 'rstuv*')
    510          OR b=792
    511          OR a=97
    512          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
    513          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
    514          OR b=916
    515          OR a=69
    516          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
    517          OR c=6006
    518   }
    519 } {16 17 18 31 50 69 72 81 83 87 97 scan 0 sort 0}
    520 do_test where7-2.13.1 {
    521   count_steps_sort {
    522      SELECT a FROM t2
    523       WHERE ((a BETWEEN 50 AND 52) AND a!=51)
    524          OR c=9009
    525          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
    526          OR b=539
    527          OR b=297
    528          OR (g='wvutsrq' AND f GLOB 'klmno*')
    529          OR (g='vutsrqp' AND f GLOB 'pqrst*')
    530          OR b=957
    531          OR f='xyzabcdef'
    532          OR b=619
    533   }
    534 } {10 15 21 23 25 26 27 49 50 52 75 87 scan 0 sort 0}
    535 do_test where7-2.13.2 {
    536   count_steps_sort {
    537      SELECT a FROM t3
    538       WHERE ((a BETWEEN 50 AND 52) AND a!=51)
    539          OR c=9009
    540          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
    541          OR b=539
    542          OR b=297
    543          OR (g='wvutsrq' AND f GLOB 'klmno*')
    544          OR (g='vutsrqp' AND f GLOB 'pqrst*')
    545          OR b=957
    546          OR f='xyzabcdef'
    547          OR b=619
    548   }
    549 } {10 15 21 23 25 26 27 49 50 52 75 87 scan 0 sort 0}
    550 do_test where7-2.14.1 {
    551   count_steps_sort {
    552      SELECT a FROM t2
    553       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
    554          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
    555   }
    556 } {47 48 49 scan 0 sort 0}
    557 do_test where7-2.14.2 {
    558   count_steps_sort {
    559      SELECT a FROM t3
    560       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
    561          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
    562   }
    563 } {47 48 49 scan 0 sort 0}
    564 do_test where7-2.15.1 {
    565   count_steps_sort {
    566      SELECT a FROM t2
    567       WHERE a=20
    568          OR a=67
    569          OR b=58
    570          OR ((a BETWEEN 19 AND 21) AND a!=20)
    571   }
    572 } {19 20 21 67 scan 0 sort 0}
    573 do_test where7-2.15.2 {
    574   count_steps_sort {
    575      SELECT a FROM t3
    576       WHERE a=20
    577          OR a=67
    578          OR b=58
    579          OR ((a BETWEEN 19 AND 21) AND a!=20)
    580   }
    581 } {19 20 21 67 scan 0 sort 0}
    582 do_test where7-2.16.1 {
    583   count_steps_sort {
    584      SELECT a FROM t2
    585       WHERE b=938
    586          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
    587          OR (g='vutsrqp' AND f GLOB 'rstuv*')
    588   }
    589 } {17 67 scan 0 sort 0}
    590 do_test where7-2.16.2 {
    591   count_steps_sort {
    592      SELECT a FROM t3
    593       WHERE b=938
    594          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
    595          OR (g='vutsrqp' AND f GLOB 'rstuv*')
    596   }
    597 } {17 67 scan 0 sort 0}
    598 do_test where7-2.17.1 {
    599   count_steps_sort {
    600      SELECT a FROM t2
    601       WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
    602          OR f='zabcdefgh'
    603          OR b=308
    604          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
    605          OR (g='srqponm' AND f GLOB 'defgh*')
    606          OR ((a BETWEEN 15 AND 17) AND a!=16)
    607          OR b=443
    608          OR ((a BETWEEN 12 AND 14) AND a!=13)
    609          OR f='uvwxyzabc'
    610          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
    611   }
    612 } {12 14 15 16 17 20 24 25 28 29 46 50 51 68 72 76 77 98 scan 0 sort 0}
    613 do_test where7-2.17.2 {
    614   count_steps_sort {
    615      SELECT a FROM t3
    616       WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
    617          OR f='zabcdefgh'
    618          OR b=308
    619          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
    620          OR (g='srqponm' AND f GLOB 'defgh*')
    621          OR ((a BETWEEN 15 AND 17) AND a!=16)
    622          OR b=443
    623          OR ((a BETWEEN 12 AND 14) AND a!=13)
    624          OR f='uvwxyzabc'
    625          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
    626   }
    627 } {12 14 15 16 17 20 24 25 28 29 46 50 51 68 72 76 77 98 scan 0 sort 0}
    628 do_test where7-2.18.1 {
    629   count_steps_sort {
    630      SELECT a FROM t2
    631       WHERE (d>=46.0 AND d<47.0 AND d NOT NULL)
    632          OR b=762
    633          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
    634          OR a=19
    635   }
    636 } {19 46 56 scan 0 sort 0}
    637 do_test where7-2.18.2 {
    638   count_steps_sort {
    639      SELECT a FROM t3
    640       WHERE (d>=46.0 AND d<47.0 AND d NOT NULL)
    641          OR b=762
    642          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
    643          OR a=19
    644   }
    645 } {19 46 56 scan 0 sort 0}
    646 do_test where7-2.19.1 {
    647   count_steps_sort {
    648      SELECT a FROM t2
    649       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
    650          OR a=46
    651          OR (g='yxwvuts' AND f GLOB 'cdefg*')
    652          OR a=73
    653          OR c=20020
    654          OR ((a BETWEEN 2 AND 4) AND a!=3)
    655          OR b=267
    656          OR ((a BETWEEN 68 AND 70) AND a!=69)
    657          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
    658   }
    659 } {2 4 20 46 58 59 60 63 68 70 73 scan 0 sort 0}
    660 do_test where7-2.19.2 {
    661   count_steps_sort {
    662      SELECT a FROM t3
    663       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
    664          OR a=46
    665          OR (g='yxwvuts' AND f GLOB 'cdefg*')
    666          OR a=73
    667          OR c=20020
    668          OR ((a BETWEEN 2 AND 4) AND a!=3)
    669          OR b=267
    670          OR ((a BETWEEN 68 AND 70) AND a!=69)
    671          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
    672   }
    673 } {2 4 20 46 58 59 60 63 68 70 73 scan 0 sort 0}
    674 do_test where7-2.20.1 {
    675   count_steps_sort {
    676      SELECT a FROM t2
    677       WHERE ((a BETWEEN 27 AND 29) AND a!=28)
    678          OR (g='gfedcba' AND f GLOB 'nopqr*')
    679   }
    680 } {27 29 91 scan 0 sort 0}
    681 do_test where7-2.20.2 {
    682   count_steps_sort {
    683      SELECT a FROM t3
    684       WHERE ((a BETWEEN 27 AND 29) AND a!=28)
    685          OR (g='gfedcba' AND f GLOB 'nopqr*')
    686   }
    687 } {27 29 91 scan 0 sort 0}
    688 do_test where7-2.21.1 {
    689   count_steps_sort {
    690      SELECT a FROM t2
    691       WHERE c=13013
    692          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
    693          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
    694          OR ((a BETWEEN 87 AND 89) AND a!=88)
    695          OR f='bcdefghij'
    696          OR b=586
    697          OR (g='edcbazy' AND f GLOB 'uvwxy*')
    698          OR ((a BETWEEN 59 AND 61) AND a!=60)
    699          OR (g='mlkjihg' AND f GLOB 'ghijk*')
    700          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
    701          OR a=9
    702   }
    703 } {1 6 9 27 37 38 39 53 55 58 59 61 75 79 87 89 98 scan 0 sort 0}
    704 do_test where7-2.21.2 {
    705   count_steps_sort {
    706      SELECT a FROM t3
    707       WHERE c=13013
    708          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
    709          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
    710          OR ((a BETWEEN 87 AND 89) AND a!=88)
    711          OR f='bcdefghij'
    712          OR b=586
    713          OR (g='edcbazy' AND f GLOB 'uvwxy*')
    714          OR ((a BETWEEN 59 AND 61) AND a!=60)
    715          OR (g='mlkjihg' AND f GLOB 'ghijk*')
    716          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
    717          OR a=9
    718   }
    719 } {1 6 9 27 37 38 39 53 55 58 59 61 75 79 87 89 98 scan 0 sort 0}
    720 do_test where7-2.22.1 {
    721   count_steps_sort {
    722      SELECT a FROM t2
    723       WHERE b=399
    724          OR c=28028
    725          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
    726          OR (g='qponmlk' AND f GLOB 'qrstu*')
    727          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
    728   }
    729 } {42 82 83 84 98 scan 0 sort 0}
    730 do_test where7-2.22.2 {
    731   count_steps_sort {
    732      SELECT a FROM t3
    733       WHERE b=399
    734          OR c=28028
    735          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
    736          OR (g='qponmlk' AND f GLOB 'qrstu*')
    737          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
    738   }
    739 } {42 82 83 84 98 scan 0 sort 0}
    740 do_test where7-2.23.1 {
    741   count_steps_sort {
    742      SELECT a FROM t2
    743       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
    744          OR ((a BETWEEN 96 AND 98) AND a!=97)
    745          OR c=14014
    746          OR c=33033
    747          OR a=89
    748          OR b=770
    749          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
    750          OR a=35
    751          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
    752          OR b=253
    753          OR c=14014
    754   }
    755 } {4 19 23 30 35 40 41 42 56 70 82 89 95 96 97 98 99 scan 0 sort 0}
    756 do_test where7-2.23.2 {
    757   count_steps_sort {
    758      SELECT a FROM t3
    759       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
    760          OR ((a BETWEEN 96 AND 98) AND a!=97)
    761          OR c=14014
    762          OR c=33033
    763          OR a=89
    764          OR b=770
    765          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
    766          OR a=35
    767          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
    768          OR b=253
    769          OR c=14014
    770   }
    771 } {4 19 23 30 35 40 41 42 56 70 82 89 95 96 97 98 99 scan 0 sort 0}
    772 do_test where7-2.24.1 {
    773   count_steps_sort {
    774      SELECT a FROM t2
    775       WHERE (g='utsrqpo' AND f GLOB 'vwxyz*')
    776          OR ((a BETWEEN 32 AND 34) AND a!=33)
    777          OR b=330
    778          OR (g='xwvutsr' AND f GLOB 'ghijk*')
    779          OR a=16
    780   }
    781 } {6 16 21 30 32 34 scan 0 sort 0}
    782 do_test where7-2.24.2 {
    783   count_steps_sort {
    784      SELECT a FROM t3
    785       WHERE (g='utsrqpo' AND f GLOB 'vwxyz*')
    786          OR ((a BETWEEN 32 AND 34) AND a!=33)
    787          OR b=330
    788          OR (g='xwvutsr' AND f GLOB 'ghijk*')
    789          OR a=16
    790   }
    791 } {6 16 21 30 32 34 scan 0 sort 0}
    792 do_test where7-2.25.1 {
    793   count_steps_sort {
    794      SELECT a FROM t2
    795       WHERE c=5005
    796          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
    797          OR ((a BETWEEN 36 AND 38) AND a!=37)
    798          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
    799   }
    800 } {2 13 14 15 36 38 47 scan 0 sort 0}
    801 do_test where7-2.25.2 {
    802   count_steps_sort {
    803      SELECT a FROM t3
    804       WHERE c=5005
    805          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
    806          OR ((a BETWEEN 36 AND 38) AND a!=37)
    807          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
    808   }
    809 } {2 13 14 15 36 38 47 scan 0 sort 0}
    810 do_test where7-2.26.1 {
    811   count_steps_sort {
    812      SELECT a FROM t2
    813       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
    814          OR (g='mlkjihg' AND f GLOB 'ghijk*')
    815          OR ((a BETWEEN 64 AND 66) AND a!=65)
    816          OR (g='kjihgfe' AND f GLOB 'qrstu*')
    817          OR a=33
    818   }
    819 } {30 33 58 64 66 68 scan 0 sort 0}
    820 do_test where7-2.26.2 {
    821   count_steps_sort {
    822      SELECT a FROM t3
    823       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
    824          OR (g='mlkjihg' AND f GLOB 'ghijk*')
    825          OR ((a BETWEEN 64 AND 66) AND a!=65)
    826          OR (g='kjihgfe' AND f GLOB 'qrstu*')
    827          OR a=33
    828   }
    829 } {30 33 58 64 66 68 scan 0 sort 0}
    830 do_test where7-2.27.1 {
    831   count_steps_sort {
    832      SELECT a FROM t2
    833       WHERE b=1026
    834          OR b=410
    835   }
    836 } { scan 0 sort 0}
    837 do_test where7-2.27.2 {
    838   count_steps_sort {
    839      SELECT a FROM t3
    840       WHERE b=1026
    841          OR b=410
    842   }
    843 } { scan 0 sort 0}
    844 do_test where7-2.28.1 {
    845   count_steps_sort {
    846      SELECT a FROM t2
    847       WHERE c=18018
    848          OR a=94
    849          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
    850          OR (g='tsrqpon' AND f GLOB 'abcde*')
    851          OR b=1012
    852          OR a=3
    853          OR d>1e10
    854          OR b=905
    855          OR b=1089
    856   }
    857 } {3 15 26 41 52 53 54 67 92 93 94 99 scan 0 sort 0}
    858 do_test where7-2.28.2 {
    859   count_steps_sort {
    860      SELECT a FROM t3
    861       WHERE c=18018
    862          OR a=94
    863          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
    864          OR (g='tsrqpon' AND f GLOB 'abcde*')
    865          OR b=1012
    866          OR a=3
    867          OR d>1e10
    868          OR b=905
    869          OR b=1089
    870   }
    871 } {3 15 26 41 52 53 54 67 92 93 94 99 scan 0 sort 0}
    872 do_test where7-2.29.1 {
    873   count_steps_sort {
    874      SELECT a FROM t2
    875       WHERE a=100
    876          OR c=11011
    877          OR b=297
    878          OR a=63
    879          OR (g='hgfedcb' AND f GLOB 'ghijk*')
    880          OR a=76
    881          OR b=1026
    882          OR a=26
    883          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
    884          OR c=30030
    885   }
    886 } {24 26 27 31 32 33 50 63 76 84 88 89 90 100 scan 0 sort 0}
    887 do_test where7-2.29.2 {
    888   count_steps_sort {
    889      SELECT a FROM t3
    890       WHERE a=100
    891          OR c=11011
    892          OR b=297
    893          OR a=63
    894          OR (g='hgfedcb' AND f GLOB 'ghijk*')
    895          OR a=76
    896          OR b=1026
    897          OR a=26
    898          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
    899          OR c=30030
    900   }
    901 } {24 26 27 31 32 33 50 63 76 84 88 89 90 100 scan 0 sort 0}
    902 do_test where7-2.30.1 {
    903   count_steps_sort {
    904      SELECT a FROM t2
    905       WHERE b=561
    906          OR b=1070
    907          OR a=59
    908          OR b=715
    909          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
    910   }
    911 } {23 49 51 59 65 75 scan 0 sort 0}
    912 do_test where7-2.30.2 {
    913   count_steps_sort {
    914      SELECT a FROM t3
    915       WHERE b=561
    916          OR b=1070
    917          OR a=59
    918          OR b=715
    919          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
    920   }
    921 } {23 49 51 59 65 75 scan 0 sort 0}
    922 do_test where7-2.31.1 {
    923   count_steps_sort {
    924      SELECT a FROM t2
    925       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
    926          OR b=1056
    927          OR b=1012
    928          OR ((a BETWEEN 57 AND 59) AND a!=58)
    929          OR ((a BETWEEN 67 AND 69) AND a!=68)
    930          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
    931          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
    932   }
    933 } {19 26 52 57 59 67 69 78 92 95 96 scan 0 sort 0}
    934 do_test where7-2.31.2 {
    935   count_steps_sort {
    936      SELECT a FROM t3
    937       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
    938          OR b=1056
    939          OR b=1012
    940          OR ((a BETWEEN 57 AND 59) AND a!=58)
    941          OR ((a BETWEEN 67 AND 69) AND a!=68)
    942          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
    943          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
    944   }
    945 } {19 26 52 57 59 67 69 78 92 95 96 scan 0 sort 0}
    946 do_test where7-2.32.1 {
    947   count_steps_sort {
    948      SELECT a FROM t2
    949       WHERE f='rstuvwxyz'
    950          OR (g='jihgfed' AND f GLOB 'wxyza*')
    951          OR ((a BETWEEN 90 AND 92) AND a!=91)
    952          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
    953   }
    954 } {17 43 69 74 90 92 95 98 scan 0 sort 0}
    955 do_test where7-2.32.2 {
    956   count_steps_sort {
    957      SELECT a FROM t3
    958       WHERE f='rstuvwxyz'
    959          OR (g='jihgfed' AND f GLOB 'wxyza*')
    960          OR ((a BETWEEN 90 AND 92) AND a!=91)
    961          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
    962   }
    963 } {17 43 69 74 90 92 95 98 scan 0 sort 0}
    964 do_test where7-2.33.1 {
    965   count_steps_sort {
    966      SELECT a FROM t2
    967       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
    968          OR c=12012
    969          OR a=18
    970          OR (g='jihgfed' AND f GLOB 'yzabc*')
    971          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
    972          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
    973          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
    974   }
    975 } {9 15 17 18 26 34 35 36 41 43 52 61 67 69 76 78 87 93 95 scan 0 sort 0}
    976 do_test where7-2.33.2 {
    977   count_steps_sort {
    978      SELECT a FROM t3
    979       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
    980          OR c=12012
    981          OR a=18
    982          OR (g='jihgfed' AND f GLOB 'yzabc*')
    983          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
    984          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
    985          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
    986   }
    987 } {9 15 17 18 26 34 35 36 41 43 52 61 67 69 76 78 87 93 95 scan 0 sort 0}
    988 do_test where7-2.34.1 {
    989   count_steps_sort {
    990      SELECT a FROM t2
    991       WHERE a=77
    992          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
    993   }
    994 } {58 77 scan 0 sort 0}
    995 do_test where7-2.34.2 {
    996   count_steps_sort {
    997      SELECT a FROM t3
    998       WHERE a=77
    999          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   1000   }
   1001 } {58 77 scan 0 sort 0}
   1002 do_test where7-2.35.1 {
   1003   count_steps_sort {
   1004      SELECT a FROM t2
   1005       WHERE b=498
   1006          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   1007          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   1008          OR ((a BETWEEN 67 AND 69) AND a!=68)
   1009          OR ((a BETWEEN 67 AND 69) AND a!=68)
   1010          OR c=33033
   1011          OR b=11
   1012          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   1013          OR ((a BETWEEN 7 AND 9) AND a!=8)
   1014   }
   1015 } {1 7 9 11 27 67 69 88 97 98 99 scan 0 sort 0}
   1016 do_test where7-2.35.2 {
   1017   count_steps_sort {
   1018      SELECT a FROM t3
   1019       WHERE b=498
   1020          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   1021          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   1022          OR ((a BETWEEN 67 AND 69) AND a!=68)
   1023          OR ((a BETWEEN 67 AND 69) AND a!=68)
   1024          OR c=33033
   1025          OR b=11
   1026          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   1027          OR ((a BETWEEN 7 AND 9) AND a!=8)
   1028   }
   1029 } {1 7 9 11 27 67 69 88 97 98 99 scan 0 sort 0}
   1030 do_test where7-2.36.1 {
   1031   count_steps_sort {
   1032      SELECT a FROM t2
   1033       WHERE (d>=6.0 AND d<7.0 AND d NOT NULL)
   1034          OR ((a BETWEEN 58 AND 60) AND a!=59)
   1035   }
   1036 } {6 58 60 scan 0 sort 0}
   1037 do_test where7-2.36.2 {
   1038   count_steps_sort {
   1039      SELECT a FROM t3
   1040       WHERE (d>=6.0 AND d<7.0 AND d NOT NULL)
   1041          OR ((a BETWEEN 58 AND 60) AND a!=59)
   1042   }
   1043 } {6 58 60 scan 0 sort 0}
   1044 do_test where7-2.37.1 {
   1045   count_steps_sort {
   1046      SELECT a FROM t2
   1047       WHERE b=1059
   1048          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   1049          OR c=4004
   1050          OR b=806
   1051   }
   1052 } {10 11 12 43 scan 0 sort 0}
   1053 do_test where7-2.37.2 {
   1054   count_steps_sort {
   1055      SELECT a FROM t3
   1056       WHERE b=1059
   1057          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   1058          OR c=4004
   1059          OR b=806
   1060   }
   1061 } {10 11 12 43 scan 0 sort 0}
   1062 do_test where7-2.38.1 {
   1063   count_steps_sort {
   1064      SELECT a FROM t2
   1065       WHERE b=165
   1066          OR b=201
   1067          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   1068          OR a=32
   1069   }
   1070 } {15 32 99 scan 0 sort 0}
   1071 do_test where7-2.38.2 {
   1072   count_steps_sort {
   1073      SELECT a FROM t3
   1074       WHERE b=165
   1075          OR b=201
   1076          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   1077          OR a=32
   1078   }
   1079 } {15 32 99 scan 0 sort 0}
   1080 do_test where7-2.39.1 {
   1081   count_steps_sort {
   1082      SELECT a FROM t2
   1083       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   1084          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   1085   }
   1086 } {22 48 69 74 100 scan 0 sort 0}
   1087 do_test where7-2.39.2 {
   1088   count_steps_sort {
   1089      SELECT a FROM t3
   1090       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   1091          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   1092   }
   1093 } {22 48 69 74 100 scan 0 sort 0}
   1094 do_test where7-2.40.1 {
   1095   count_steps_sort {
   1096      SELECT a FROM t2
   1097       WHERE b=352
   1098          OR b=278
   1099          OR ((a BETWEEN 90 AND 92) AND a!=91)
   1100          OR ((a BETWEEN 28 AND 30) AND a!=29)
   1101          OR b=660
   1102          OR a=18
   1103          OR a=34
   1104          OR b=132
   1105          OR (g='gfedcba' AND f GLOB 'lmnop*')
   1106          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   1107          OR c=18018
   1108   }
   1109 } {2 12 18 28 30 32 34 52 53 54 60 80 89 90 92 scan 0 sort 0}
   1110 do_test where7-2.40.2 {
   1111   count_steps_sort {
   1112      SELECT a FROM t3
   1113       WHERE b=352
   1114          OR b=278
   1115          OR ((a BETWEEN 90 AND 92) AND a!=91)
   1116          OR ((a BETWEEN 28 AND 30) AND a!=29)
   1117          OR b=660
   1118          OR a=18
   1119          OR a=34
   1120          OR b=132
   1121          OR (g='gfedcba' AND f GLOB 'lmnop*')
   1122          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   1123          OR c=18018
   1124   }
   1125 } {2 12 18 28 30 32 34 52 53 54 60 80 89 90 92 scan 0 sort 0}
   1126 do_test where7-2.41.1 {
   1127   count_steps_sort {
   1128      SELECT a FROM t2
   1129       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   1130          OR ((a BETWEEN 5 AND 7) AND a!=6)
   1131   }
   1132 } {5 7 73 scan 0 sort 0}
   1133 do_test where7-2.41.2 {
   1134   count_steps_sort {
   1135      SELECT a FROM t3
   1136       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   1137          OR ((a BETWEEN 5 AND 7) AND a!=6)
   1138   }
   1139 } {5 7 73 scan 0 sort 0}
   1140 do_test where7-2.42.1 {
   1141   count_steps_sort {
   1142      SELECT a FROM t2
   1143       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   1144          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   1145          OR (g='hgfedcb' AND f GLOB 'fghij*')
   1146          OR b=297
   1147          OR b=113
   1148          OR b=176
   1149          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   1150          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   1151          OR a=67
   1152          OR c=26026
   1153   }
   1154 } {3 14 16 21 27 29 55 67 75 76 77 78 81 83 scan 0 sort 0}
   1155 do_test where7-2.42.2 {
   1156   count_steps_sort {
   1157      SELECT a FROM t3
   1158       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   1159          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   1160          OR (g='hgfedcb' AND f GLOB 'fghij*')
   1161          OR b=297
   1162          OR b=113
   1163          OR b=176
   1164          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   1165          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   1166          OR a=67
   1167          OR c=26026
   1168   }
   1169 } {3 14 16 21 27 29 55 67 75 76 77 78 81 83 scan 0 sort 0}
   1170 do_test where7-2.43.1 {
   1171   count_steps_sort {
   1172      SELECT a FROM t2
   1173       WHERE (d>=78.0 AND d<79.0 AND d NOT NULL)
   1174          OR ((a BETWEEN 4 AND 6) AND a!=5)
   1175          OR a=83
   1176          OR b=44
   1177          OR b=1023
   1178          OR ((a BETWEEN 11 AND 13) AND a!=12)
   1179          OR b=1023
   1180          OR f='ijklmnopq'
   1181   }
   1182 } {4 6 8 11 13 34 60 78 83 86 93 scan 0 sort 0}
   1183 do_test where7-2.43.2 {
   1184   count_steps_sort {
   1185      SELECT a FROM t3
   1186       WHERE (d>=78.0 AND d<79.0 AND d NOT NULL)
   1187          OR ((a BETWEEN 4 AND 6) AND a!=5)
   1188          OR a=83
   1189          OR b=44
   1190          OR b=1023
   1191          OR ((a BETWEEN 11 AND 13) AND a!=12)
   1192          OR b=1023
   1193          OR f='ijklmnopq'
   1194   }
   1195 } {4 6 8 11 13 34 60 78 83 86 93 scan 0 sort 0}
   1196 do_test where7-2.44.1 {
   1197   count_steps_sort {
   1198      SELECT a FROM t2
   1199       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   1200          OR b=935
   1201          OR ((a BETWEEN 32 AND 34) AND a!=33)
   1202          OR b=487
   1203          OR b=619
   1204          OR (g='qponmlk' AND f GLOB 'nopqr*')
   1205          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   1206   }
   1207 } {17 32 34 39 42 85 scan 0 sort 0}
   1208 do_test where7-2.44.2 {
   1209   count_steps_sort {
   1210      SELECT a FROM t3
   1211       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   1212          OR b=935
   1213          OR ((a BETWEEN 32 AND 34) AND a!=33)
   1214          OR b=487
   1215          OR b=619
   1216          OR (g='qponmlk' AND f GLOB 'nopqr*')
   1217          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   1218   }
   1219 } {17 32 34 39 42 85 scan 0 sort 0}
   1220 do_test where7-2.45.1 {
   1221   count_steps_sort {
   1222      SELECT a FROM t2
   1223       WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
   1224          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   1225          OR b=938
   1226          OR b=641
   1227          OR c=17017
   1228          OR a=82
   1229          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   1230          OR (g='rqponml' AND f GLOB 'lmnop*')
   1231          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1232          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   1233   }
   1234 } {37 39 49 50 51 56 58 65 68 82 94 scan 0 sort 0}
   1235 do_test where7-2.45.2 {
   1236   count_steps_sort {
   1237      SELECT a FROM t3
   1238       WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
   1239          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   1240          OR b=938
   1241          OR b=641
   1242          OR c=17017
   1243          OR a=82
   1244          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   1245          OR (g='rqponml' AND f GLOB 'lmnop*')
   1246          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1247          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   1248   }
   1249 } {37 39 49 50 51 56 58 65 68 82 94 scan 0 sort 0}
   1250 do_test where7-2.46.1 {
   1251   count_steps_sort {
   1252      SELECT a FROM t2
   1253       WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
   1254          OR c=22022
   1255   }
   1256 } {64 65 66 79 scan 0 sort 0}
   1257 do_test where7-2.46.2 {
   1258   count_steps_sort {
   1259      SELECT a FROM t3
   1260       WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
   1261          OR c=22022
   1262   }
   1263 } {64 65 66 79 scan 0 sort 0}
   1264 do_test where7-2.47.1 {
   1265   count_steps_sort {
   1266      SELECT a FROM t2
   1267       WHERE c=7007
   1268          OR b=91
   1269          OR b=212
   1270          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   1271          OR c=28028
   1272          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   1273   }
   1274 } {19 20 21 65 82 83 84 scan 0 sort 0}
   1275 do_test where7-2.47.2 {
   1276   count_steps_sort {
   1277      SELECT a FROM t3
   1278       WHERE c=7007
   1279          OR b=91
   1280          OR b=212
   1281          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   1282          OR c=28028
   1283          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   1284   }
   1285 } {19 20 21 65 82 83 84 scan 0 sort 0}
   1286 do_test where7-2.48.1 {
   1287   count_steps_sort {
   1288      SELECT a FROM t2
   1289       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   1290          OR a=51
   1291          OR ((a BETWEEN 28 AND 30) AND a!=29)
   1292   }
   1293 } {12 28 30 51 scan 0 sort 0}
   1294 do_test where7-2.48.2 {
   1295   count_steps_sort {
   1296      SELECT a FROM t3
   1297       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   1298          OR a=51
   1299          OR ((a BETWEEN 28 AND 30) AND a!=29)
   1300   }
   1301 } {12 28 30 51 scan 0 sort 0}
   1302 do_test where7-2.49.1 {
   1303   count_steps_sort {
   1304      SELECT a FROM t2
   1305       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   1306          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   1307          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   1308          OR ((a BETWEEN 0 AND 2) AND a!=1)
   1309          OR c=4004
   1310          OR b=322
   1311          OR c=13013
   1312          OR a=6
   1313   }
   1314 } {2 6 9 10 11 12 23 37 38 39 scan 0 sort 0}
   1315 do_test where7-2.49.2 {
   1316   count_steps_sort {
   1317      SELECT a FROM t3
   1318       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   1319          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   1320          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   1321          OR ((a BETWEEN 0 AND 2) AND a!=1)
   1322          OR c=4004
   1323          OR b=322
   1324          OR c=13013
   1325          OR a=6
   1326   }
   1327 } {2 6 9 10 11 12 23 37 38 39 scan 0 sort 0}
   1328 do_test where7-2.50.1 {
   1329   count_steps_sort {
   1330      SELECT a FROM t2
   1331       WHERE b=297
   1332          OR b=143
   1333          OR a=46
   1334          OR b=660
   1335          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   1336          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   1337          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   1338          OR b=355
   1339          OR a=93
   1340          OR b=297
   1341   }
   1342 } {13 17 23 27 41 46 49 60 75 93 scan 0 sort 0}
   1343 do_test where7-2.50.2 {
   1344   count_steps_sort {
   1345      SELECT a FROM t3
   1346       WHERE b=297
   1347          OR b=143
   1348          OR a=46
   1349          OR b=660
   1350          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   1351          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   1352          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   1353          OR b=355
   1354          OR a=93
   1355          OR b=297
   1356   }
   1357 } {13 17 23 27 41 46 49 60 75 93 scan 0 sort 0}
   1358 do_test where7-2.51.1 {
   1359   count_steps_sort {
   1360      SELECT a FROM t2
   1361       WHERE b=190
   1362          OR a=62
   1363          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   1364   }
   1365 } {62 99 scan 0 sort 0}
   1366 do_test where7-2.51.2 {
   1367   count_steps_sort {
   1368      SELECT a FROM t3
   1369       WHERE b=190
   1370          OR a=62
   1371          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   1372   }
   1373 } {62 99 scan 0 sort 0}
   1374 do_test where7-2.52.1 {
   1375   count_steps_sort {
   1376      SELECT a FROM t2
   1377       WHERE b=1089
   1378          OR b=102
   1379          OR a=6
   1380          OR b=608
   1381   }
   1382 } {6 99 scan 0 sort 0}
   1383 do_test where7-2.52.2 {
   1384   count_steps_sort {
   1385      SELECT a FROM t3
   1386       WHERE b=1089
   1387          OR b=102
   1388          OR a=6
   1389          OR b=608
   1390   }
   1391 } {6 99 scan 0 sort 0}
   1392 do_test where7-2.53.1 {
   1393   count_steps_sort {
   1394      SELECT a FROM t2
   1395       WHERE b=473
   1396          OR b=1100
   1397          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   1398          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   1399          OR a=20
   1400          OR b=1089
   1401          OR b=330
   1402          OR b=124
   1403          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1404   }
   1405 } {15 20 30 43 53 56 58 99 100 scan 0 sort 0}
   1406 do_test where7-2.53.2 {
   1407   count_steps_sort {
   1408      SELECT a FROM t3
   1409       WHERE b=473
   1410          OR b=1100
   1411          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   1412          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   1413          OR a=20
   1414          OR b=1089
   1415          OR b=330
   1416          OR b=124
   1417          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1418   }
   1419 } {15 20 30 43 53 56 58 99 100 scan 0 sort 0}
   1420 do_test where7-2.54.1 {
   1421   count_steps_sort {
   1422      SELECT a FROM t2
   1423       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   1424          OR b=223
   1425          OR a=12
   1426          OR b=1048
   1427          OR b=256
   1428          OR a=72
   1429          OR c>=34035
   1430          OR (g='rqponml' AND f GLOB 'jklmn*')
   1431          OR b=674
   1432          OR a=22
   1433   }
   1434 } {12 22 35 68 70 72 scan 0 sort 0}
   1435 do_test where7-2.54.2 {
   1436   count_steps_sort {
   1437      SELECT a FROM t3
   1438       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   1439          OR b=223
   1440          OR a=12
   1441          OR b=1048
   1442          OR b=256
   1443          OR a=72
   1444          OR c>=34035
   1445          OR (g='rqponml' AND f GLOB 'jklmn*')
   1446          OR b=674
   1447          OR a=22
   1448   }
   1449 } {12 22 35 68 70 72 scan 0 sort 0}
   1450 do_test where7-2.55.1 {
   1451   count_steps_sort {
   1452      SELECT a FROM t2
   1453       WHERE ((a BETWEEN 76 AND 78) AND a!=77)
   1454          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   1455          OR f='yzabcdefg'
   1456          OR c=14014
   1457          OR a=1
   1458          OR a=9
   1459          OR b=960
   1460   }
   1461 } {1 9 24 40 41 42 50 76 78 scan 0 sort 0}
   1462 do_test where7-2.55.2 {
   1463   count_steps_sort {
   1464      SELECT a FROM t3
   1465       WHERE ((a BETWEEN 76 AND 78) AND a!=77)
   1466          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   1467          OR f='yzabcdefg'
   1468          OR c=14014
   1469          OR a=1
   1470          OR a=9
   1471          OR b=960
   1472   }
   1473 } {1 9 24 40 41 42 50 76 78 scan 0 sort 0}
   1474 do_test where7-2.56.1 {
   1475   count_steps_sort {
   1476      SELECT a FROM t2
   1477       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   1478          OR ((a BETWEEN 96 AND 98) AND a!=97)
   1479          OR (g='onmlkji' AND f GLOB 'xyzab*')
   1480   }
   1481 } {19 49 96 98 scan 0 sort 0}
   1482 do_test where7-2.56.2 {
   1483   count_steps_sort {
   1484      SELECT a FROM t3
   1485       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   1486          OR ((a BETWEEN 96 AND 98) AND a!=97)
   1487          OR (g='onmlkji' AND f GLOB 'xyzab*')
   1488   }
   1489 } {19 49 96 98 scan 0 sort 0}
   1490 do_test where7-2.57.1 {
   1491   count_steps_sort {
   1492      SELECT a FROM t2
   1493       WHERE b=748
   1494          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   1495          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   1496          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   1497          OR b=630
   1498   }
   1499 } {9 20 67 68 scan 0 sort 0}
   1500 do_test where7-2.57.2 {
   1501   count_steps_sort {
   1502      SELECT a FROM t3
   1503       WHERE b=748
   1504          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   1505          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   1506          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   1507          OR b=630
   1508   }
   1509 } {9 20 67 68 scan 0 sort 0}
   1510 do_test where7-2.58.1 {
   1511   count_steps_sort {
   1512      SELECT a FROM t2
   1513       WHERE b=223
   1514          OR b=267
   1515          OR a=40
   1516          OR ((a BETWEEN 55 AND 57) AND a!=56)
   1517          OR c<=10
   1518          OR ((a BETWEEN 69 AND 71) AND a!=70)
   1519          OR b=528
   1520   }
   1521 } {40 48 55 57 69 71 scan 0 sort 0}
   1522 do_test where7-2.58.2 {
   1523   count_steps_sort {
   1524      SELECT a FROM t3
   1525       WHERE b=223
   1526          OR b=267
   1527          OR a=40
   1528          OR ((a BETWEEN 55 AND 57) AND a!=56)
   1529          OR c<=10
   1530          OR ((a BETWEEN 69 AND 71) AND a!=70)
   1531          OR b=528
   1532   }
   1533 } {40 48 55 57 69 71 scan 0 sort 0}
   1534 do_test where7-2.59.1 {
   1535   count_steps_sort {
   1536      SELECT a FROM t2
   1537       WHERE f='rstuvwxyz'
   1538          OR a=41
   1539          OR b=462
   1540          OR a=68
   1541          OR a=84
   1542          OR a=69
   1543   }
   1544 } {17 41 42 43 68 69 84 95 scan 0 sort 0}
   1545 do_test where7-2.59.2 {
   1546   count_steps_sort {
   1547      SELECT a FROM t3
   1548       WHERE f='rstuvwxyz'
   1549          OR a=41
   1550          OR b=462
   1551          OR a=68
   1552          OR a=84
   1553          OR a=69
   1554   }
   1555 } {17 41 42 43 68 69 84 95 scan 0 sort 0}
   1556 do_test where7-2.60.1 {
   1557   count_steps_sort {
   1558      SELECT a FROM t2
   1559       WHERE b=979
   1560          OR ((a BETWEEN 3 AND 5) AND a!=4)
   1561          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   1562   }
   1563 } {3 5 13 89 scan 0 sort 0}
   1564 do_test where7-2.60.2 {
   1565   count_steps_sort {
   1566      SELECT a FROM t3
   1567       WHERE b=979
   1568          OR ((a BETWEEN 3 AND 5) AND a!=4)
   1569          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   1570   }
   1571 } {3 5 13 89 scan 0 sort 0}
   1572 do_test where7-2.61.1 {
   1573   count_steps_sort {
   1574      SELECT a FROM t2
   1575       WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
   1576          OR a=8
   1577          OR a=62
   1578          OR b=726
   1579          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   1580          OR ((a BETWEEN 50 AND 52) AND a!=51)
   1581          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   1582          OR ((a BETWEEN 59 AND 61) AND a!=60)
   1583   }
   1584 } {8 9 10 14 50 52 59 61 62 66 scan 0 sort 0}
   1585 do_test where7-2.61.2 {
   1586   count_steps_sort {
   1587      SELECT a FROM t3
   1588       WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
   1589          OR a=8
   1590          OR a=62
   1591          OR b=726
   1592          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   1593          OR ((a BETWEEN 50 AND 52) AND a!=51)
   1594          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   1595          OR ((a BETWEEN 59 AND 61) AND a!=60)
   1596   }
   1597 } {8 9 10 14 50 52 59 61 62 66 scan 0 sort 0}
   1598 do_test where7-2.62.1 {
   1599   count_steps_sort {
   1600      SELECT a FROM t2
   1601       WHERE b=495
   1602          OR ((a BETWEEN 18 AND 20) AND a!=19)
   1603          OR b=924
   1604          OR c=11011
   1605          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   1606          OR b=231
   1607          OR b=872
   1608          OR (g='jihgfed' AND f GLOB 'yzabc*')
   1609   }
   1610 } {18 20 21 31 32 33 45 47 73 76 84 99 scan 0 sort 0}
   1611 do_test where7-2.62.2 {
   1612   count_steps_sort {
   1613      SELECT a FROM t3
   1614       WHERE b=495
   1615          OR ((a BETWEEN 18 AND 20) AND a!=19)
   1616          OR b=924
   1617          OR c=11011
   1618          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   1619          OR b=231
   1620          OR b=872
   1621          OR (g='jihgfed' AND f GLOB 'yzabc*')
   1622   }
   1623 } {18 20 21 31 32 33 45 47 73 76 84 99 scan 0 sort 0}
   1624 do_test where7-2.63.1 {
   1625   count_steps_sort {
   1626      SELECT a FROM t2
   1627       WHERE a=24
   1628          OR b=473
   1629          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   1630          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   1631          OR b=509
   1632          OR b=924
   1633          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   1634   }
   1635 } {21 24 43 84 86 96 scan 0 sort 0}
   1636 do_test where7-2.63.2 {
   1637   count_steps_sort {
   1638      SELECT a FROM t3
   1639       WHERE a=24
   1640          OR b=473
   1641          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   1642          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   1643          OR b=509
   1644          OR b=924
   1645          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   1646   }
   1647 } {21 24 43 84 86 96 scan 0 sort 0}
   1648 do_test where7-2.64.1 {
   1649   count_steps_sort {
   1650      SELECT a FROM t2
   1651       WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
   1652          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   1653          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   1654          OR (g='edcbazy' AND f GLOB 'wxyza*')
   1655          OR b=363
   1656          OR (g='xwvutsr' AND f GLOB 'fghij*')
   1657          OR ((a BETWEEN 23 AND 25) AND a!=24)
   1658          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1659   }
   1660 } {2 5 8 23 25 28 33 34 54 56 58 60 80 86 93 100 scan 0 sort 0}
   1661 do_test where7-2.64.2 {
   1662   count_steps_sort {
   1663      SELECT a FROM t3
   1664       WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
   1665          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   1666          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   1667          OR (g='edcbazy' AND f GLOB 'wxyza*')
   1668          OR b=363
   1669          OR (g='xwvutsr' AND f GLOB 'fghij*')
   1670          OR ((a BETWEEN 23 AND 25) AND a!=24)
   1671          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1672   }
   1673 } {2 5 8 23 25 28 33 34 54 56 58 60 80 86 93 100 scan 0 sort 0}
   1674 do_test where7-2.65.1 {
   1675   count_steps_sort {
   1676      SELECT a FROM t2
   1677       WHERE a=42
   1678          OR e IS NULL
   1679          OR b=495
   1680          OR 1000000<b
   1681          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   1682          OR a=45
   1683          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   1684          OR a=85
   1685          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   1686   }
   1687 } {20 42 45 46 65 69 72 85 98 scan 0 sort 0}
   1688 do_test where7-2.65.2 {
   1689   count_steps_sort {
   1690      SELECT a FROM t3
   1691       WHERE a=42
   1692          OR e IS NULL
   1693          OR b=495
   1694          OR 1000000<b
   1695          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   1696          OR a=45
   1697          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   1698          OR a=85
   1699          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   1700   }
   1701 } {20 42 45 46 65 69 72 85 98 scan 0 sort 0}
   1702 do_test where7-2.66.1 {
   1703   count_steps_sort {
   1704      SELECT a FROM t2
   1705       WHERE c=17017
   1706          OR f='ijklmnopq'
   1707          OR a=39
   1708   }
   1709 } {8 34 39 49 50 51 60 86 scan 0 sort 0}
   1710 do_test where7-2.66.2 {
   1711   count_steps_sort {
   1712      SELECT a FROM t3
   1713       WHERE c=17017
   1714          OR f='ijklmnopq'
   1715          OR a=39
   1716   }
   1717 } {8 34 39 49 50 51 60 86 scan 0 sort 0}
   1718 do_test where7-2.67.1 {
   1719   count_steps_sort {
   1720      SELECT a FROM t2
   1721       WHERE c>=34035
   1722          OR ((a BETWEEN 96 AND 98) AND a!=97)
   1723          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   1724          OR (g='edcbazy' AND f GLOB 'wxyza*')
   1725          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   1726          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   1727          OR a=91
   1728   }
   1729 } {11 19 27 37 63 89 91 96 98 100 scan 0 sort 0}
   1730 do_test where7-2.67.2 {
   1731   count_steps_sort {
   1732      SELECT a FROM t3
   1733       WHERE c>=34035
   1734          OR ((a BETWEEN 96 AND 98) AND a!=97)
   1735          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   1736          OR (g='edcbazy' AND f GLOB 'wxyza*')
   1737          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   1738          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   1739          OR a=91
   1740   }
   1741 } {11 19 27 37 63 89 91 96 98 100 scan 0 sort 0}
   1742 do_test where7-2.68.1 {
   1743   count_steps_sort {
   1744      SELECT a FROM t2
   1745       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   1746          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   1747          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   1748          OR b=649
   1749          OR b=231
   1750          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   1751          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   1752          OR b=58
   1753   }
   1754 } {9 21 28 29 35 48 59 61 87 91 scan 0 sort 0}
   1755 do_test where7-2.68.2 {
   1756   count_steps_sort {
   1757      SELECT a FROM t3
   1758       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   1759          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   1760          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   1761          OR b=649
   1762          OR b=231
   1763          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   1764          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   1765          OR b=58
   1766   }
   1767 } {9 21 28 29 35 48 59 61 87 91 scan 0 sort 0}
   1768 do_test where7-2.69.1 {
   1769   count_steps_sort {
   1770      SELECT a FROM t2
   1771       WHERE b=979
   1772          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   1773   }
   1774 } {78 89 scan 0 sort 0}
   1775 do_test where7-2.69.2 {
   1776   count_steps_sort {
   1777      SELECT a FROM t3
   1778       WHERE b=979
   1779          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   1780   }
   1781 } {78 89 scan 0 sort 0}
   1782 do_test where7-2.70.1 {
   1783   count_steps_sort {
   1784      SELECT a FROM t2
   1785       WHERE b=825
   1786          OR b=1004
   1787          OR ((a BETWEEN 60 AND 62) AND a!=61)
   1788          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1789   }
   1790 } {56 58 60 62 75 scan 0 sort 0}
   1791 do_test where7-2.70.2 {
   1792   count_steps_sort {
   1793      SELECT a FROM t3
   1794       WHERE b=825
   1795          OR b=1004
   1796          OR ((a BETWEEN 60 AND 62) AND a!=61)
   1797          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1798   }
   1799 } {56 58 60 62 75 scan 0 sort 0}
   1800 do_test where7-2.71.1 {
   1801   count_steps_sort {
   1802      SELECT a FROM t2
   1803       WHERE a=65
   1804          OR (g='nmlkjih' AND f GLOB 'fghij*')
   1805          OR c=22022
   1806          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   1807          OR b=671
   1808          OR (g='onmlkji' AND f GLOB 'zabcd*')
   1809          OR a=91
   1810          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   1811          OR ((a BETWEEN 47 AND 49) AND a!=48)
   1812          OR b=1004
   1813          OR b=960
   1814   }
   1815 } {5 31 47 49 51 57 61 64 65 66 83 91 98 scan 0 sort 0}
   1816 do_test where7-2.71.2 {
   1817   count_steps_sort {
   1818      SELECT a FROM t3
   1819       WHERE a=65
   1820          OR (g='nmlkjih' AND f GLOB 'fghij*')
   1821          OR c=22022
   1822          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   1823          OR b=671
   1824          OR (g='onmlkji' AND f GLOB 'zabcd*')
   1825          OR a=91
   1826          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   1827          OR ((a BETWEEN 47 AND 49) AND a!=48)
   1828          OR b=1004
   1829          OR b=960
   1830   }
   1831 } {5 31 47 49 51 57 61 64 65 66 83 91 98 scan 0 sort 0}
   1832 do_test where7-2.72.1 {
   1833   count_steps_sort {
   1834      SELECT a FROM t2
   1835       WHERE b=762
   1836          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   1837          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1838   }
   1839 } {56 58 93 scan 0 sort 0}
   1840 do_test where7-2.72.2 {
   1841   count_steps_sort {
   1842      SELECT a FROM t3
   1843       WHERE b=762
   1844          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   1845          OR ((a BETWEEN 56 AND 58) AND a!=57)
   1846   }
   1847 } {56 58 93 scan 0 sort 0}
   1848 do_test where7-2.73.1 {
   1849   count_steps_sort {
   1850      SELECT a FROM t2
   1851       WHERE (d>=11.0 AND d<12.0 AND d NOT NULL)
   1852          OR a=14
   1853          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   1854          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   1855          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   1856          OR b=212
   1857          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   1858   }
   1859 } {11 14 23 54 78 85 scan 0 sort 0}
   1860 do_test where7-2.73.2 {
   1861   count_steps_sort {
   1862      SELECT a FROM t3
   1863       WHERE (d>=11.0 AND d<12.0 AND d NOT NULL)
   1864          OR a=14
   1865          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   1866          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   1867          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   1868          OR b=212
   1869          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   1870   }
   1871 } {11 14 23 54 78 85 scan 0 sort 0}
   1872 do_test where7-2.74.1 {
   1873   count_steps_sort {
   1874      SELECT a FROM t2
   1875       WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
   1876          OR b=168
   1877          OR b=25
   1878          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   1879          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   1880   }
   1881 } {66 79 89 scan 0 sort 0}
   1882 do_test where7-2.74.2 {
   1883   count_steps_sort {
   1884      SELECT a FROM t3
   1885       WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
   1886          OR b=168
   1887          OR b=25
   1888          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   1889          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   1890   }
   1891 } {66 79 89 scan 0 sort 0}
   1892 do_test where7-2.75.1 {
   1893   count_steps_sort {
   1894      SELECT a FROM t2
   1895       WHERE c=28028
   1896          OR f='jklmnopqr'
   1897          OR b=1015
   1898   }
   1899 } {9 35 61 82 83 84 87 scan 0 sort 0}
   1900 do_test where7-2.75.2 {
   1901   count_steps_sort {
   1902      SELECT a FROM t3
   1903       WHERE c=28028
   1904          OR f='jklmnopqr'
   1905          OR b=1015
   1906   }
   1907 } {9 35 61 82 83 84 87 scan 0 sort 0}
   1908 do_test where7-2.76.1 {
   1909   count_steps_sort {
   1910      SELECT a FROM t2
   1911       WHERE c=31031
   1912          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   1913          OR ((a BETWEEN 87 AND 89) AND a!=88)
   1914          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   1915          OR a=49
   1916          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   1917          OR (g='mlkjihg' AND f GLOB 'klmno*')
   1918   }
   1919 } {15 41 49 56 62 67 87 89 91 92 93 100 scan 0 sort 0}
   1920 do_test where7-2.76.2 {
   1921   count_steps_sort {
   1922      SELECT a FROM t3
   1923       WHERE c=31031
   1924          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   1925          OR ((a BETWEEN 87 AND 89) AND a!=88)
   1926          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   1927          OR a=49
   1928          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   1929          OR (g='mlkjihg' AND f GLOB 'klmno*')
   1930   }
   1931 } {15 41 49 56 62 67 87 89 91 92 93 100 scan 0 sort 0}
   1932 do_test where7-2.77.1 {
   1933   count_steps_sort {
   1934      SELECT a FROM t2
   1935       WHERE a=80
   1936          OR ((a BETWEEN 4 AND 6) AND a!=5)
   1937          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   1938          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   1939          OR b=971
   1940          OR a=60
   1941   }
   1942 } {4 6 25 29 60 80 scan 0 sort 0}
   1943 do_test where7-2.77.2 {
   1944   count_steps_sort {
   1945      SELECT a FROM t3
   1946       WHERE a=80
   1947          OR ((a BETWEEN 4 AND 6) AND a!=5)
   1948          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   1949          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   1950          OR b=971
   1951          OR a=60
   1952   }
   1953 } {4 6 25 29 60 80 scan 0 sort 0}
   1954 do_test where7-2.78.1 {
   1955   count_steps_sort {
   1956      SELECT a FROM t2
   1957       WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
   1958          OR (g='gfedcba' AND f GLOB 'lmnop*')
   1959          OR ((a BETWEEN 30 AND 32) AND a!=31)
   1960          OR b=1089
   1961          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   1962   }
   1963 } {30 32 43 85 89 99 scan 0 sort 0}
   1964 do_test where7-2.78.2 {
   1965   count_steps_sort {
   1966      SELECT a FROM t3
   1967       WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
   1968          OR (g='gfedcba' AND f GLOB 'lmnop*')
   1969          OR ((a BETWEEN 30 AND 32) AND a!=31)
   1970          OR b=1089
   1971          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   1972   }
   1973 } {30 32 43 85 89 99 scan 0 sort 0}
   1974 do_test where7-2.79.1 {
   1975   count_steps_sort {
   1976      SELECT a FROM t2
   1977       WHERE b=399
   1978          OR ((a BETWEEN 9 AND 11) AND a!=10)
   1979          OR (g='gfedcba' AND f GLOB 'mnopq*')
   1980          OR (g='nmlkjih' AND f GLOB 'fghij*')
   1981          OR a=10
   1982          OR b=1026
   1983   }
   1984 } {9 10 11 57 90 scan 0 sort 0}
   1985 do_test where7-2.79.2 {
   1986   count_steps_sort {
   1987      SELECT a FROM t3
   1988       WHERE b=399
   1989          OR ((a BETWEEN 9 AND 11) AND a!=10)
   1990          OR (g='gfedcba' AND f GLOB 'mnopq*')
   1991          OR (g='nmlkjih' AND f GLOB 'fghij*')
   1992          OR a=10
   1993          OR b=1026
   1994   }
   1995 } {9 10 11 57 90 scan 0 sort 0}
   1996 do_test where7-2.80.1 {
   1997   count_steps_sort {
   1998      SELECT a FROM t2
   1999       WHERE (g='jihgfed' AND f GLOB 'yzabc*')
   2000          OR b=465
   2001          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   2002          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   2003          OR (g='xwvutsr' AND f GLOB 'fghij*')
   2004   }
   2005 } {5 43 65 76 scan 0 sort 0}
   2006 do_test where7-2.80.2 {
   2007   count_steps_sort {
   2008      SELECT a FROM t3
   2009       WHERE (g='jihgfed' AND f GLOB 'yzabc*')
   2010          OR b=465
   2011          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   2012          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   2013          OR (g='xwvutsr' AND f GLOB 'fghij*')
   2014   }
   2015 } {5 43 65 76 scan 0 sort 0}
   2016 do_test where7-2.81.1 {
   2017   count_steps_sort {
   2018      SELECT a FROM t2
   2019       WHERE a=25
   2020          OR b=792
   2021          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2022   }
   2023 } {19 25 45 71 72 97 scan 0 sort 0}
   2024 do_test where7-2.81.2 {
   2025   count_steps_sort {
   2026      SELECT a FROM t3
   2027       WHERE a=25
   2028          OR b=792
   2029          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2030   }
   2031 } {19 25 45 71 72 97 scan 0 sort 0}
   2032 do_test where7-2.82.1 {
   2033   count_steps_sort {
   2034      SELECT a FROM t2
   2035       WHERE b=979
   2036          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   2037          OR a=13
   2038          OR a=15
   2039          OR ((a BETWEEN 6 AND 8) AND a!=7)
   2040          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   2041          OR a=27
   2042          OR ((a BETWEEN 98 AND 100) AND a!=99)
   2043          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   2044          OR a=32
   2045          OR a=39
   2046   }
   2047 } {6 8 13 15 21 27 32 39 67 89 98 100 scan 0 sort 0}
   2048 do_test where7-2.82.2 {
   2049   count_steps_sort {
   2050      SELECT a FROM t3
   2051       WHERE b=979
   2052          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   2053          OR a=13
   2054          OR a=15
   2055          OR ((a BETWEEN 6 AND 8) AND a!=7)
   2056          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   2057          OR a=27
   2058          OR ((a BETWEEN 98 AND 100) AND a!=99)
   2059          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   2060          OR a=32
   2061          OR a=39
   2062   }
   2063 } {6 8 13 15 21 27 32 39 67 89 98 100 scan 0 sort 0}
   2064 do_test where7-2.83.1 {
   2065   count_steps_sort {
   2066      SELECT a FROM t2
   2067       WHERE f='hijklmnop'
   2068          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   2069          OR ((a BETWEEN 31 AND 33) AND a!=32)
   2070          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   2071          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   2072          OR ((a BETWEEN 77 AND 79) AND a!=78)
   2073          OR b=528
   2074          OR c=30030
   2075          OR (g='qponmlk' AND f GLOB 'qrstu*')
   2076   }
   2077 } {1 7 21 31 33 42 48 58 59 77 79 85 88 89 90 scan 0 sort 0}
   2078 do_test where7-2.83.2 {
   2079   count_steps_sort {
   2080      SELECT a FROM t3
   2081       WHERE f='hijklmnop'
   2082          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   2083          OR ((a BETWEEN 31 AND 33) AND a!=32)
   2084          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   2085          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   2086          OR ((a BETWEEN 77 AND 79) AND a!=78)
   2087          OR b=528
   2088          OR c=30030
   2089          OR (g='qponmlk' AND f GLOB 'qrstu*')
   2090   }
   2091 } {1 7 21 31 33 42 48 58 59 77 79 85 88 89 90 scan 0 sort 0}
   2092 do_test where7-2.84.1 {
   2093   count_steps_sort {
   2094      SELECT a FROM t2
   2095       WHERE b=69
   2096          OR e IS NULL
   2097          OR b=352
   2098          OR 1000000<b
   2099          OR b=289
   2100   }
   2101 } {32 scan 0 sort 0}
   2102 do_test where7-2.84.2 {
   2103   count_steps_sort {
   2104      SELECT a FROM t3
   2105       WHERE b=69
   2106          OR e IS NULL
   2107          OR b=352
   2108          OR 1000000<b
   2109          OR b=289
   2110   }
   2111 } {32 scan 0 sort 0}
   2112 do_test where7-2.85.1 {
   2113   count_steps_sort {
   2114      SELECT a FROM t2
   2115       WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
   2116          OR b=748
   2117          OR b=696
   2118          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   2119          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   2120   }
   2121 } {4 30 43 56 67 68 82 scan 0 sort 0}
   2122 do_test where7-2.85.2 {
   2123   count_steps_sort {
   2124      SELECT a FROM t3
   2125       WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
   2126          OR b=748
   2127          OR b=696
   2128          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   2129          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   2130   }
   2131 } {4 30 43 56 67 68 82 scan 0 sort 0}
   2132 do_test where7-2.86.1 {
   2133   count_steps_sort {
   2134      SELECT a FROM t2
   2135       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   2136          OR (g='qponmlk' AND f GLOB 'opqrs*')
   2137          OR a=87
   2138          OR a=80
   2139          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   2140          OR b=784
   2141          OR a=49
   2142          OR ((a BETWEEN 34 AND 36) AND a!=35)
   2143   }
   2144 } {34 36 40 49 68 71 73 80 87 scan 0 sort 0}
   2145 do_test where7-2.86.2 {
   2146   count_steps_sort {
   2147      SELECT a FROM t3
   2148       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   2149          OR (g='qponmlk' AND f GLOB 'opqrs*')
   2150          OR a=87
   2151          OR a=80
   2152          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   2153          OR b=784
   2154          OR a=49
   2155          OR ((a BETWEEN 34 AND 36) AND a!=35)
   2156   }
   2157 } {34 36 40 49 68 71 73 80 87 scan 0 sort 0}
   2158 do_test where7-2.87.1 {
   2159   count_steps_sort {
   2160      SELECT a FROM t2
   2161       WHERE ((a BETWEEN 14 AND 16) AND a!=15)
   2162          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   2163          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   2164          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   2165          OR c=1001
   2166          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   2167          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   2168          OR (g='ihgfedc' AND f GLOB 'abcde*')
   2169          OR c=33033
   2170   }
   2171 } {1 2 3 8 9 14 16 78 85 86 97 98 99 scan 0 sort 0}
   2172 do_test where7-2.87.2 {
   2173   count_steps_sort {
   2174      SELECT a FROM t3
   2175       WHERE ((a BETWEEN 14 AND 16) AND a!=15)
   2176          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   2177          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   2178          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   2179          OR c=1001
   2180          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   2181          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   2182          OR (g='ihgfedc' AND f GLOB 'abcde*')
   2183          OR c=33033
   2184   }
   2185 } {1 2 3 8 9 14 16 78 85 86 97 98 99 scan 0 sort 0}
   2186 do_test where7-2.88.1 {
   2187   count_steps_sort {
   2188      SELECT a FROM t2
   2189       WHERE b=311
   2190          OR b=1103
   2191          OR b=88
   2192   }
   2193 } {8 scan 0 sort 0}
   2194 do_test where7-2.88.2 {
   2195   count_steps_sort {
   2196      SELECT a FROM t3
   2197       WHERE b=311
   2198          OR b=1103
   2199          OR b=88
   2200   }
   2201 } {8 scan 0 sort 0}
   2202 do_test where7-2.89.1 {
   2203   count_steps_sort {
   2204      SELECT a FROM t2
   2205       WHERE ((a BETWEEN 65 AND 67) AND a!=66)
   2206          OR ((a BETWEEN 26 AND 28) AND a!=27)
   2207          OR c=5005
   2208          OR b=1045
   2209          OR c=8008
   2210          OR f='bcdefghij'
   2211   }
   2212 } {1 13 14 15 22 23 24 26 27 28 53 65 67 79 95 scan 0 sort 0}
   2213 do_test where7-2.89.2 {
   2214   count_steps_sort {
   2215      SELECT a FROM t3
   2216       WHERE ((a BETWEEN 65 AND 67) AND a!=66)
   2217          OR ((a BETWEEN 26 AND 28) AND a!=27)
   2218          OR c=5005
   2219          OR b=1045
   2220          OR c=8008
   2221          OR f='bcdefghij'
   2222   }
   2223 } {1 13 14 15 22 23 24 26 27 28 53 65 67 79 95 scan 0 sort 0}
   2224 do_test where7-2.90.1 {
   2225   count_steps_sort {
   2226      SELECT a FROM t2
   2227       WHERE b=66
   2228          OR b=553
   2229          OR a=64
   2230          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   2231          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   2232          OR a=62
   2233          OR b=1081
   2234          OR b=770
   2235          OR b=762
   2236          OR b=803
   2237          OR (g='srqponm' AND f GLOB 'efghi*')
   2238   }
   2239 } {6 17 30 62 64 70 73 93 scan 0 sort 0}
   2240 do_test where7-2.90.2 {
   2241   count_steps_sort {
   2242      SELECT a FROM t3
   2243       WHERE b=66
   2244          OR b=553
   2245          OR a=64
   2246          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   2247          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   2248          OR a=62
   2249          OR b=1081
   2250          OR b=770
   2251          OR b=762
   2252          OR b=803
   2253          OR (g='srqponm' AND f GLOB 'efghi*')
   2254   }
   2255 } {6 17 30 62 64 70 73 93 scan 0 sort 0}
   2256 do_test where7-2.91.1 {
   2257   count_steps_sort {
   2258      SELECT a FROM t2
   2259       WHERE (g='wvutsrq' AND f GLOB 'klmno*')
   2260          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2261          OR c=17017
   2262          OR b=168
   2263          OR ((a BETWEEN 77 AND 79) AND a!=78)
   2264   }
   2265 } {10 19 45 49 50 51 71 77 79 97 scan 0 sort 0}
   2266 do_test where7-2.91.2 {
   2267   count_steps_sort {
   2268      SELECT a FROM t3
   2269       WHERE (g='wvutsrq' AND f GLOB 'klmno*')
   2270          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2271          OR c=17017
   2272          OR b=168
   2273          OR ((a BETWEEN 77 AND 79) AND a!=78)
   2274   }
   2275 } {10 19 45 49 50 51 71 77 79 97 scan 0 sort 0}
   2276 do_test where7-2.92.1 {
   2277   count_steps_sort {
   2278      SELECT a FROM t2
   2279       WHERE c=34034
   2280          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   2281          OR a=44
   2282          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   2283          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   2284          OR c=31031
   2285          OR (g='ihgfedc' AND f GLOB 'abcde*')
   2286          OR b=619
   2287          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   2288          OR ((a BETWEEN 29 AND 31) AND a!=30)
   2289   }
   2290 } {3 12 23 29 31 44 55 68 78 81 91 92 93 100 scan 0 sort 0}
   2291 do_test where7-2.92.2 {
   2292   count_steps_sort {
   2293      SELECT a FROM t3
   2294       WHERE c=34034
   2295          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   2296          OR a=44
   2297          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   2298          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   2299          OR c=31031
   2300          OR (g='ihgfedc' AND f GLOB 'abcde*')
   2301          OR b=619
   2302          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   2303          OR ((a BETWEEN 29 AND 31) AND a!=30)
   2304   }
   2305 } {3 12 23 29 31 44 55 68 78 81 91 92 93 100 scan 0 sort 0}
   2306 do_test where7-2.93.1 {
   2307   count_steps_sort {
   2308      SELECT a FROM t2
   2309       WHERE a=48
   2310          OR c=15015
   2311          OR ((a BETWEEN 65 AND 67) AND a!=66)
   2312          OR ((a BETWEEN 97 AND 99) AND a!=98)
   2313          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   2314          OR b=110
   2315          OR f='klmnopqrs'
   2316          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   2317          OR (g='onmlkji' AND f GLOB 'abcde*')
   2318          OR b=674
   2319          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   2320   }
   2321 } {10 36 43 44 45 48 52 62 65 67 88 94 96 97 99 scan 0 sort 0}
   2322 do_test where7-2.93.2 {
   2323   count_steps_sort {
   2324      SELECT a FROM t3
   2325       WHERE a=48
   2326          OR c=15015
   2327          OR ((a BETWEEN 65 AND 67) AND a!=66)
   2328          OR ((a BETWEEN 97 AND 99) AND a!=98)
   2329          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   2330          OR b=110
   2331          OR f='klmnopqrs'
   2332          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   2333          OR (g='onmlkji' AND f GLOB 'abcde*')
   2334          OR b=674
   2335          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   2336   }
   2337 } {10 36 43 44 45 48 52 62 65 67 88 94 96 97 99 scan 0 sort 0}
   2338 do_test where7-2.94.1 {
   2339   count_steps_sort {
   2340      SELECT a FROM t2
   2341       WHERE a=72
   2342          OR b=913
   2343          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   2344          OR b=121
   2345          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   2346   }
   2347 } {2 11 28 72 83 scan 0 sort 0}
   2348 do_test where7-2.94.2 {
   2349   count_steps_sort {
   2350      SELECT a FROM t3
   2351       WHERE a=72
   2352          OR b=913
   2353          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   2354          OR b=121
   2355          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   2356   }
   2357 } {2 11 28 72 83 scan 0 sort 0}
   2358 do_test where7-2.95.1 {
   2359   count_steps_sort {
   2360      SELECT a FROM t2
   2361       WHERE a=18
   2362          OR b=286
   2363          OR b=1015
   2364          OR a=49
   2365          OR b=264
   2366   }
   2367 } {18 24 26 49 scan 0 sort 0}
   2368 do_test where7-2.95.2 {
   2369   count_steps_sort {
   2370      SELECT a FROM t3
   2371       WHERE a=18
   2372          OR b=286
   2373          OR b=1015
   2374          OR a=49
   2375          OR b=264
   2376   }
   2377 } {18 24 26 49 scan 0 sort 0}
   2378 do_test where7-2.96.1 {
   2379   count_steps_sort {
   2380      SELECT a FROM t2
   2381       WHERE b=69
   2382          OR a=11
   2383          OR c=1001
   2384          OR ((a BETWEEN 54 AND 56) AND a!=55)
   2385          OR a=57
   2386          OR ((a BETWEEN 48 AND 50) AND a!=49)
   2387   }
   2388 } {1 2 3 11 48 50 54 56 57 scan 0 sort 0}
   2389 do_test where7-2.96.2 {
   2390   count_steps_sort {
   2391      SELECT a FROM t3
   2392       WHERE b=69
   2393          OR a=11
   2394          OR c=1001
   2395          OR ((a BETWEEN 54 AND 56) AND a!=55)
   2396          OR a=57
   2397          OR ((a BETWEEN 48 AND 50) AND a!=49)
   2398   }
   2399 } {1 2 3 11 48 50 54 56 57 scan 0 sort 0}
   2400 do_test where7-2.97.1 {
   2401   count_steps_sort {
   2402      SELECT a FROM t2
   2403       WHERE b=231
   2404          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   2405   }
   2406 } {21 84 scan 0 sort 0}
   2407 do_test where7-2.97.2 {
   2408   count_steps_sort {
   2409      SELECT a FROM t3
   2410       WHERE b=231
   2411          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   2412   }
   2413 } {21 84 scan 0 sort 0}
   2414 do_test where7-2.98.1 {
   2415   count_steps_sort {
   2416      SELECT a FROM t2
   2417       WHERE b=25
   2418          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   2419          OR ((a BETWEEN 81 AND 83) AND a!=82)
   2420          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   2421          OR ((a BETWEEN 3 AND 5) AND a!=4)
   2422          OR b=289
   2423          OR ((a BETWEEN 85 AND 87) AND a!=86)
   2424   }
   2425 } {3 5 17 23 81 83 85 87 scan 0 sort 0}
   2426 do_test where7-2.98.2 {
   2427   count_steps_sort {
   2428      SELECT a FROM t3
   2429       WHERE b=25
   2430          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   2431          OR ((a BETWEEN 81 AND 83) AND a!=82)
   2432          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   2433          OR ((a BETWEEN 3 AND 5) AND a!=4)
   2434          OR b=289
   2435          OR ((a BETWEEN 85 AND 87) AND a!=86)
   2436   }
   2437 } {3 5 17 23 81 83 85 87 scan 0 sort 0}
   2438 do_test where7-2.99.1 {
   2439   count_steps_sort {
   2440      SELECT a FROM t2
   2441       WHERE f='defghijkl'
   2442          OR b=465
   2443          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   2444          OR c=9009
   2445          OR b=990
   2446          OR b=132
   2447          OR a=35
   2448          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   2449          OR a=81
   2450          OR ((a BETWEEN 71 AND 73) AND a!=72)
   2451   }
   2452 } {3 12 25 26 27 29 35 46 55 71 73 78 81 90 scan 0 sort 0}
   2453 do_test where7-2.99.2 {
   2454   count_steps_sort {
   2455      SELECT a FROM t3
   2456       WHERE f='defghijkl'
   2457          OR b=465
   2458          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   2459          OR c=9009
   2460          OR b=990
   2461          OR b=132
   2462          OR a=35
   2463          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   2464          OR a=81
   2465          OR ((a BETWEEN 71 AND 73) AND a!=72)
   2466   }
   2467 } {3 12 25 26 27 29 35 46 55 71 73 78 81 90 scan 0 sort 0}
   2468 do_test where7-2.100.1 {
   2469   count_steps_sort {
   2470      SELECT a FROM t2
   2471       WHERE c=26026
   2472          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   2473          OR f='lmnopqrst'
   2474          OR a=6
   2475          OR ((a BETWEEN 59 AND 61) AND a!=60)
   2476   }
   2477 } {6 9 11 37 59 61 63 76 77 78 89 scan 0 sort 0}
   2478 do_test where7-2.100.2 {
   2479   count_steps_sort {
   2480      SELECT a FROM t3
   2481       WHERE c=26026
   2482          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   2483          OR f='lmnopqrst'
   2484          OR a=6
   2485          OR ((a BETWEEN 59 AND 61) AND a!=60)
   2486   }
   2487 } {6 9 11 37 59 61 63 76 77 78 89 scan 0 sort 0}
   2488 do_test where7-2.101.1 {
   2489   count_steps_sort {
   2490      SELECT a FROM t2
   2491       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   2492          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   2493   }
   2494 } {7 98 100 scan 0 sort 0}
   2495 do_test where7-2.101.2 {
   2496   count_steps_sort {
   2497      SELECT a FROM t3
   2498       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   2499          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   2500   }
   2501 } {7 98 100 scan 0 sort 0}
   2502 do_test where7-2.102.1 {
   2503   count_steps_sort {
   2504      SELECT a FROM t2
   2505       WHERE c=11011
   2506          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   2507          OR b=630
   2508          OR c=19019
   2509          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2510          OR a=24
   2511          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   2512          OR ((a BETWEEN 51 AND 53) AND a!=52)
   2513   }
   2514 } {24 31 32 33 51 53 55 56 57 89 95 scan 0 sort 0}
   2515 do_test where7-2.102.2 {
   2516   count_steps_sort {
   2517      SELECT a FROM t3
   2518       WHERE c=11011
   2519          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   2520          OR b=630
   2521          OR c=19019
   2522          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2523          OR a=24
   2524          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   2525          OR ((a BETWEEN 51 AND 53) AND a!=52)
   2526   }
   2527 } {24 31 32 33 51 53 55 56 57 89 95 scan 0 sort 0}
   2528 do_test where7-2.103.1 {
   2529   count_steps_sort {
   2530      SELECT a FROM t2
   2531       WHERE ((a BETWEEN 91 AND 93) AND a!=92)
   2532          OR b=993
   2533          OR a=81
   2534          OR b=366
   2535          OR b=69
   2536   }
   2537 } {81 91 93 scan 0 sort 0}
   2538 do_test where7-2.103.2 {
   2539   count_steps_sort {
   2540      SELECT a FROM t3
   2541       WHERE ((a BETWEEN 91 AND 93) AND a!=92)
   2542          OR b=993
   2543          OR a=81
   2544          OR b=366
   2545          OR b=69
   2546   }
   2547 } {81 91 93 scan 0 sort 0}
   2548 do_test where7-2.104.1 {
   2549   count_steps_sort {
   2550      SELECT a FROM t2
   2551       WHERE f='stuvwxyza'
   2552          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   2553          OR ((a BETWEEN 1 AND 3) AND a!=2)
   2554          OR b=1037
   2555          OR f='zabcdefgh'
   2556          OR (g='gfedcba' AND f GLOB 'mnopq*')
   2557   }
   2558 } {1 3 18 24 25 44 50 51 70 76 77 90 96 scan 0 sort 0}
   2559 do_test where7-2.104.2 {
   2560   count_steps_sort {
   2561      SELECT a FROM t3
   2562       WHERE f='stuvwxyza'
   2563          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   2564          OR ((a BETWEEN 1 AND 3) AND a!=2)
   2565          OR b=1037
   2566          OR f='zabcdefgh'
   2567          OR (g='gfedcba' AND f GLOB 'mnopq*')
   2568   }
   2569 } {1 3 18 24 25 44 50 51 70 76 77 90 96 scan 0 sort 0}
   2570 do_test where7-2.105.1 {
   2571   count_steps_sort {
   2572      SELECT a FROM t2
   2573       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   2574          OR ((a BETWEEN 4 AND 6) AND a!=5)
   2575          OR ((a BETWEEN 30 AND 32) AND a!=31)
   2576   }
   2577 } {4 6 30 32 scan 0 sort 0}
   2578 do_test where7-2.105.2 {
   2579   count_steps_sort {
   2580      SELECT a FROM t3
   2581       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   2582          OR ((a BETWEEN 4 AND 6) AND a!=5)
   2583          OR ((a BETWEEN 30 AND 32) AND a!=31)
   2584   }
   2585 } {4 6 30 32 scan 0 sort 0}
   2586 do_test where7-2.106.1 {
   2587   count_steps_sort {
   2588      SELECT a FROM t2
   2589       WHERE b=847
   2590          OR b=190
   2591          OR ((a BETWEEN 38 AND 40) AND a!=39)
   2592          OR ((a BETWEEN 70 AND 72) AND a!=71)
   2593          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   2594          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   2595          OR b=704
   2596   }
   2597 } {9 23 35 38 40 61 64 70 72 77 87 scan 0 sort 0}
   2598 do_test where7-2.106.2 {
   2599   count_steps_sort {
   2600      SELECT a FROM t3
   2601       WHERE b=847
   2602          OR b=190
   2603          OR ((a BETWEEN 38 AND 40) AND a!=39)
   2604          OR ((a BETWEEN 70 AND 72) AND a!=71)
   2605          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   2606          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   2607          OR b=704
   2608   }
   2609 } {9 23 35 38 40 61 64 70 72 77 87 scan 0 sort 0}
   2610 do_test where7-2.107.1 {
   2611   count_steps_sort {
   2612      SELECT a FROM t2
   2613       WHERE b=88
   2614          OR f='vwxyzabcd'
   2615          OR f='fghijklmn'
   2616          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2617   }
   2618 } {5 8 21 31 47 57 73 83 89 99 scan 0 sort 0}
   2619 do_test where7-2.107.2 {
   2620   count_steps_sort {
   2621      SELECT a FROM t3
   2622       WHERE b=88
   2623          OR f='vwxyzabcd'
   2624          OR f='fghijklmn'
   2625          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2626   }
   2627 } {5 8 21 31 47 57 73 83 89 99 scan 0 sort 0}
   2628 do_test where7-2.108.1 {
   2629   count_steps_sort {
   2630      SELECT a FROM t2
   2631       WHERE b=498
   2632          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   2633          OR a=1
   2634   }
   2635 } {1 69 scan 0 sort 0}
   2636 do_test where7-2.108.2 {
   2637   count_steps_sort {
   2638      SELECT a FROM t3
   2639       WHERE b=498
   2640          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   2641          OR a=1
   2642   }
   2643 } {1 69 scan 0 sort 0}
   2644 do_test where7-2.109.1 {
   2645   count_steps_sort {
   2646      SELECT a FROM t2
   2647       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
   2648          OR a=5
   2649          OR b=179
   2650          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   2651          OR a=69
   2652   }
   2653 } {5 17 43 47 49 69 95 scan 0 sort 0}
   2654 do_test where7-2.109.2 {
   2655   count_steps_sort {
   2656      SELECT a FROM t3
   2657       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
   2658          OR a=5
   2659          OR b=179
   2660          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   2661          OR a=69
   2662   }
   2663 } {5 17 43 47 49 69 95 scan 0 sort 0}
   2664 do_test where7-2.110.1 {
   2665   count_steps_sort {
   2666      SELECT a FROM t2
   2667       WHERE b=971
   2668          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   2669          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   2670          OR b=828
   2671          OR a=81
   2672          OR ((a BETWEEN 23 AND 25) AND a!=24)
   2673          OR b=627
   2674          OR b=355
   2675          OR b=377
   2676          OR a=44
   2677   }
   2678 } {1 7 23 25 44 57 81 scan 0 sort 0}
   2679 do_test where7-2.110.2 {
   2680   count_steps_sort {
   2681      SELECT a FROM t3
   2682       WHERE b=971
   2683          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   2684          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   2685          OR b=828
   2686          OR a=81
   2687          OR ((a BETWEEN 23 AND 25) AND a!=24)
   2688          OR b=627
   2689          OR b=355
   2690          OR b=377
   2691          OR a=44
   2692   }
   2693 } {1 7 23 25 44 57 81 scan 0 sort 0}
   2694 do_test where7-2.111.1 {
   2695   count_steps_sort {
   2696      SELECT a FROM t2
   2697       WHERE b=850
   2698          OR ((a BETWEEN 6 AND 8) AND a!=7)
   2699   }
   2700 } {6 8 scan 0 sort 0}
   2701 do_test where7-2.111.2 {
   2702   count_steps_sort {
   2703      SELECT a FROM t3
   2704       WHERE b=850
   2705          OR ((a BETWEEN 6 AND 8) AND a!=7)
   2706   }
   2707 } {6 8 scan 0 sort 0}
   2708 do_test where7-2.112.1 {
   2709   count_steps_sort {
   2710      SELECT a FROM t2
   2711       WHERE (g='lkjihgf' AND f GLOB 'opqrs*')
   2712          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   2713   }
   2714 } {17 43 66 69 95 scan 0 sort 0}
   2715 do_test where7-2.112.2 {
   2716   count_steps_sort {
   2717      SELECT a FROM t3
   2718       WHERE (g='lkjihgf' AND f GLOB 'opqrs*')
   2719          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   2720   }
   2721 } {17 43 66 69 95 scan 0 sort 0}
   2722 do_test where7-2.113.1 {
   2723   count_steps_sort {
   2724      SELECT a FROM t2
   2725       WHERE b=726
   2726          OR b=740
   2727          OR a=33
   2728          OR c=8008
   2729          OR f='rstuvwxyz'
   2730          OR b=168
   2731   }
   2732 } {17 22 23 24 33 43 66 69 95 scan 0 sort 0}
   2733 do_test where7-2.113.2 {
   2734   count_steps_sort {
   2735      SELECT a FROM t3
   2736       WHERE b=726
   2737          OR b=740
   2738          OR a=33
   2739          OR c=8008
   2740          OR f='rstuvwxyz'
   2741          OR b=168
   2742   }
   2743 } {17 22 23 24 33 43 66 69 95 scan 0 sort 0}
   2744 do_test where7-2.114.1 {
   2745   count_steps_sort {
   2746      SELECT a FROM t2
   2747       WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
   2748          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   2749          OR b=396
   2750   }
   2751 } {17 19 36 scan 0 sort 0}
   2752 do_test where7-2.114.2 {
   2753   count_steps_sort {
   2754      SELECT a FROM t3
   2755       WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
   2756          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   2757          OR b=396
   2758   }
   2759 } {17 19 36 scan 0 sort 0}
   2760 do_test where7-2.115.1 {
   2761   count_steps_sort {
   2762      SELECT a FROM t2
   2763       WHERE a=77
   2764          OR ((a BETWEEN 48 AND 50) AND a!=49)
   2765          OR c<=10
   2766          OR ((a BETWEEN 5 AND 7) AND a!=6)
   2767   }
   2768 } {5 7 48 50 77 scan 0 sort 0}
   2769 do_test where7-2.115.2 {
   2770   count_steps_sort {
   2771      SELECT a FROM t3
   2772       WHERE a=77
   2773          OR ((a BETWEEN 48 AND 50) AND a!=49)
   2774          OR c<=10
   2775          OR ((a BETWEEN 5 AND 7) AND a!=6)
   2776   }
   2777 } {5 7 48 50 77 scan 0 sort 0}
   2778 do_test where7-2.116.1 {
   2779   count_steps_sort {
   2780      SELECT a FROM t2
   2781       WHERE ((a BETWEEN 12 AND 14) AND a!=13)
   2782          OR ((a BETWEEN 13 AND 15) AND a!=14)
   2783          OR b=253
   2784          OR ((a BETWEEN 20 AND 22) AND a!=21)
   2785          OR b=396
   2786          OR b=630
   2787          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   2788          OR c=3003
   2789          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   2790   }
   2791 } {1 7 8 9 12 13 14 15 20 22 23 27 36 49 53 79 scan 0 sort 0}
   2792 do_test where7-2.116.2 {
   2793   count_steps_sort {
   2794      SELECT a FROM t3
   2795       WHERE ((a BETWEEN 12 AND 14) AND a!=13)
   2796          OR ((a BETWEEN 13 AND 15) AND a!=14)
   2797          OR b=253
   2798          OR ((a BETWEEN 20 AND 22) AND a!=21)
   2799          OR b=396
   2800          OR b=630
   2801          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   2802          OR c=3003
   2803          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   2804   }
   2805 } {1 7 8 9 12 13 14 15 20 22 23 27 36 49 53 79 scan 0 sort 0}
   2806 do_test where7-2.117.1 {
   2807   count_steps_sort {
   2808      SELECT a FROM t2
   2809       WHERE b=957
   2810          OR b=242
   2811          OR b=113
   2812          OR b=957
   2813          OR b=311
   2814          OR b=143
   2815          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   2816          OR (g='onmlkji' AND f GLOB 'wxyza*')
   2817          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   2818   }
   2819 } {9 10 13 22 35 48 61 87 scan 0 sort 0}
   2820 do_test where7-2.117.2 {
   2821   count_steps_sort {
   2822      SELECT a FROM t3
   2823       WHERE b=957
   2824          OR b=242
   2825          OR b=113
   2826          OR b=957
   2827          OR b=311
   2828          OR b=143
   2829          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   2830          OR (g='onmlkji' AND f GLOB 'wxyza*')
   2831          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   2832   }
   2833 } {9 10 13 22 35 48 61 87 scan 0 sort 0}
   2834 do_test where7-2.118.1 {
   2835   count_steps_sort {
   2836      SELECT a FROM t2
   2837       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   2838          OR ((a BETWEEN 94 AND 96) AND a!=95)
   2839          OR b=451
   2840          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   2841   }
   2842 } {41 66 74 76 94 96 scan 0 sort 0}
   2843 do_test where7-2.118.2 {
   2844   count_steps_sort {
   2845      SELECT a FROM t3
   2846       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   2847          OR ((a BETWEEN 94 AND 96) AND a!=95)
   2848          OR b=451
   2849          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   2850   }
   2851 } {41 66 74 76 94 96 scan 0 sort 0}
   2852 do_test where7-2.119.1 {
   2853   count_steps_sort {
   2854      SELECT a FROM t2
   2855       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   2856          OR b=451
   2857          OR b=363
   2858          OR b=330
   2859          OR (g='srqponm' AND f GLOB 'efghi*')
   2860          OR ((a BETWEEN 52 AND 54) AND a!=53)
   2861          OR (g='xwvutsr' AND f GLOB 'defgh*')
   2862          OR ((a BETWEEN 81 AND 83) AND a!=82)
   2863          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2864   }
   2865 } {3 30 33 41 52 54 81 83 89 scan 0 sort 0}
   2866 do_test where7-2.119.2 {
   2867   count_steps_sort {
   2868      SELECT a FROM t3
   2869       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   2870          OR b=451
   2871          OR b=363
   2872          OR b=330
   2873          OR (g='srqponm' AND f GLOB 'efghi*')
   2874          OR ((a BETWEEN 52 AND 54) AND a!=53)
   2875          OR (g='xwvutsr' AND f GLOB 'defgh*')
   2876          OR ((a BETWEEN 81 AND 83) AND a!=82)
   2877          OR (g='gfedcba' AND f GLOB 'lmnop*')
   2878   }
   2879 } {3 30 33 41 52 54 81 83 89 scan 0 sort 0}
   2880 do_test where7-2.120.1 {
   2881   count_steps_sort {
   2882      SELECT a FROM t2
   2883       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   2884          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   2885          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   2886          OR e IS NULL
   2887          OR b=759
   2888   }
   2889 } {15 68 69 95 scan 0 sort 0}
   2890 do_test where7-2.120.2 {
   2891   count_steps_sort {
   2892      SELECT a FROM t3
   2893       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   2894          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   2895          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   2896          OR e IS NULL
   2897          OR b=759
   2898   }
   2899 } {15 68 69 95 scan 0 sort 0}
   2900 do_test where7-2.121.1 {
   2901   count_steps_sort {
   2902      SELECT a FROM t2
   2903       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2904          OR ((a BETWEEN 19 AND 21) AND a!=20)
   2905          OR (g='jihgfed' AND f GLOB 'wxyza*')
   2906   }
   2907 } {19 21 45 71 74 97 scan 0 sort 0}
   2908 do_test where7-2.121.2 {
   2909   count_steps_sort {
   2910      SELECT a FROM t3
   2911       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   2912          OR ((a BETWEEN 19 AND 21) AND a!=20)
   2913          OR (g='jihgfed' AND f GLOB 'wxyza*')
   2914   }
   2915 } {19 21 45 71 74 97 scan 0 sort 0}
   2916 do_test where7-2.122.1 {
   2917   count_steps_sort {
   2918      SELECT a FROM t2
   2919       WHERE b=1037
   2920          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   2921          OR ((a BETWEEN 43 AND 45) AND a!=44)
   2922          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   2923          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   2924          OR ((a BETWEEN 75 AND 77) AND a!=76)
   2925   }
   2926 } {27 43 45 47 75 77 82 scan 0 sort 0}
   2927 do_test where7-2.122.2 {
   2928   count_steps_sort {
   2929      SELECT a FROM t3
   2930       WHERE b=1037
   2931          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   2932          OR ((a BETWEEN 43 AND 45) AND a!=44)
   2933          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   2934          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   2935          OR ((a BETWEEN 75 AND 77) AND a!=76)
   2936   }
   2937 } {27 43 45 47 75 77 82 scan 0 sort 0}
   2938 do_test where7-2.123.1 {
   2939   count_steps_sort {
   2940      SELECT a FROM t2
   2941       WHERE b=1045
   2942          OR ((a BETWEEN 36 AND 38) AND a!=37)
   2943          OR ((a BETWEEN 37 AND 39) AND a!=38)
   2944          OR c=12012
   2945   }
   2946 } {34 35 36 37 38 39 95 scan 0 sort 0}
   2947 do_test where7-2.123.2 {
   2948   count_steps_sort {
   2949      SELECT a FROM t3
   2950       WHERE b=1045
   2951          OR ((a BETWEEN 36 AND 38) AND a!=37)
   2952          OR ((a BETWEEN 37 AND 39) AND a!=38)
   2953          OR c=12012
   2954   }
   2955 } {34 35 36 37 38 39 95 scan 0 sort 0}
   2956 do_test where7-2.124.1 {
   2957   count_steps_sort {
   2958      SELECT a FROM t2
   2959       WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
   2960          OR b=421
   2961          OR b=429
   2962          OR b=498
   2963          OR b=33
   2964          OR b=198
   2965          OR c=14014
   2966          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   2967   }
   2968 } {3 18 23 39 40 41 42 49 75 97 scan 0 sort 0}
   2969 do_test where7-2.124.2 {
   2970   count_steps_sort {
   2971      SELECT a FROM t3
   2972       WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
   2973          OR b=421
   2974          OR b=429
   2975          OR b=498
   2976          OR b=33
   2977          OR b=198
   2978          OR c=14014
   2979          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   2980   }
   2981 } {3 18 23 39 40 41 42 49 75 97 scan 0 sort 0}
   2982 do_test where7-2.125.1 {
   2983   count_steps_sort {
   2984      SELECT a FROM t2
   2985       WHERE b=47
   2986          OR c=31031
   2987          OR a=38
   2988          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   2989          OR (g='srqponm' AND f GLOB 'fghij*')
   2990          OR b=242
   2991          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   2992          OR b=352
   2993          OR a=49
   2994          OR (g='nmlkjih' AND f GLOB 'fghij*')
   2995   }
   2996 } {8 22 31 32 34 38 49 57 60 70 86 91 92 93 scan 0 sort 0}
   2997 do_test where7-2.125.2 {
   2998   count_steps_sort {
   2999      SELECT a FROM t3
   3000       WHERE b=47
   3001          OR c=31031
   3002          OR a=38
   3003          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   3004          OR (g='srqponm' AND f GLOB 'fghij*')
   3005          OR b=242
   3006          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   3007          OR b=352
   3008          OR a=49
   3009          OR (g='nmlkjih' AND f GLOB 'fghij*')
   3010   }
   3011 } {8 22 31 32 34 38 49 57 60 70 86 91 92 93 scan 0 sort 0}
   3012 do_test where7-2.126.1 {
   3013   count_steps_sort {
   3014      SELECT a FROM t2
   3015       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   3016          OR b=704
   3017          OR a=7
   3018          OR a=8
   3019          OR a=46
   3020          OR b=740
   3021          OR b=993
   3022          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3023   }
   3024 } {7 8 38 46 64 87 scan 0 sort 0}
   3025 do_test where7-2.126.2 {
   3026   count_steps_sort {
   3027      SELECT a FROM t3
   3028       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   3029          OR b=704
   3030          OR a=7
   3031          OR a=8
   3032          OR a=46
   3033          OR b=740
   3034          OR b=993
   3035          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3036   }
   3037 } {7 8 38 46 64 87 scan 0 sort 0}
   3038 do_test where7-2.127.1 {
   3039   count_steps_sort {
   3040      SELECT a FROM t2
   3041       WHERE ((a BETWEEN 62 AND 64) AND a!=63)
   3042          OR c=32032
   3043          OR a=76
   3044   }
   3045 } {62 64 76 94 95 96 scan 0 sort 0}
   3046 do_test where7-2.127.2 {
   3047   count_steps_sort {
   3048      SELECT a FROM t3
   3049       WHERE ((a BETWEEN 62 AND 64) AND a!=63)
   3050          OR c=32032
   3051          OR a=76
   3052   }
   3053 } {62 64 76 94 95 96 scan 0 sort 0}
   3054 do_test where7-2.128.1 {
   3055   count_steps_sort {
   3056      SELECT a FROM t2
   3057       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   3058          OR b=528
   3059          OR (g='gfedcba' AND f GLOB 'nopqr*')
   3060   }
   3061 } {19 48 91 scan 0 sort 0}
   3062 do_test where7-2.128.2 {
   3063   count_steps_sort {
   3064      SELECT a FROM t3
   3065       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   3066          OR b=528
   3067          OR (g='gfedcba' AND f GLOB 'nopqr*')
   3068   }
   3069 } {19 48 91 scan 0 sort 0}
   3070 do_test where7-2.129.1 {
   3071   count_steps_sort {
   3072      SELECT a FROM t2
   3073       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   3074          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   3075          OR a=65
   3076   }
   3077 } {26 65 97 scan 0 sort 0}
   3078 do_test where7-2.129.2 {
   3079   count_steps_sort {
   3080      SELECT a FROM t3
   3081       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   3082          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   3083          OR a=65
   3084   }
   3085 } {26 65 97 scan 0 sort 0}
   3086 do_test where7-2.130.1 {
   3087   count_steps_sort {
   3088      SELECT a FROM t2
   3089       WHERE (d>=71.0 AND d<72.0 AND d NOT NULL)
   3090          OR 1000000<b
   3091          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   3092          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   3093          OR a=24
   3094   }
   3095 } {2 24 50 71 scan 0 sort 0}
   3096 do_test where7-2.130.2 {
   3097   count_steps_sort {
   3098      SELECT a FROM t3
   3099       WHERE (d>=71.0 AND d<72.0 AND d NOT NULL)
   3100          OR 1000000<b
   3101          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   3102          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   3103          OR a=24
   3104   }
   3105 } {2 24 50 71 scan 0 sort 0}
   3106 do_test where7-2.131.1 {
   3107   count_steps_sort {
   3108      SELECT a FROM t2
   3109       WHERE a=60
   3110          OR a=39
   3111          OR ((a BETWEEN 93 AND 95) AND a!=94)
   3112          OR b=36
   3113          OR b=814
   3114          OR a=14
   3115          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   3116          OR b=440
   3117          OR (g='xwvutsr' AND f GLOB 'fghij*')
   3118          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   3119   }
   3120 } {5 14 25 39 40 51 60 61 74 77 93 95 scan 0 sort 0}
   3121 do_test where7-2.131.2 {
   3122   count_steps_sort {
   3123      SELECT a FROM t3
   3124       WHERE a=60
   3125          OR a=39
   3126          OR ((a BETWEEN 93 AND 95) AND a!=94)
   3127          OR b=36
   3128          OR b=814
   3129          OR a=14
   3130          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   3131          OR b=440
   3132          OR (g='xwvutsr' AND f GLOB 'fghij*')
   3133          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   3134   }
   3135 } {5 14 25 39 40 51 60 61 74 77 93 95 scan 0 sort 0}
   3136 do_test where7-2.132.1 {
   3137   count_steps_sort {
   3138      SELECT a FROM t2
   3139       WHERE f IS NULL
   3140          OR ((a BETWEEN 39 AND 41) AND a!=40)
   3141   }
   3142 } {39 41 scan 0 sort 0}
   3143 do_test where7-2.132.2 {
   3144   count_steps_sort {
   3145      SELECT a FROM t3
   3146       WHERE f IS NULL
   3147          OR ((a BETWEEN 39 AND 41) AND a!=40)
   3148   }
   3149 } {39 41 scan 0 sort 0}
   3150 do_test where7-2.133.1 {
   3151   count_steps_sort {
   3152      SELECT a FROM t2
   3153       WHERE b=44
   3154          OR ((a BETWEEN 17 AND 19) AND a!=18)
   3155   }
   3156 } {4 17 19 scan 0 sort 0}
   3157 do_test where7-2.133.2 {
   3158   count_steps_sort {
   3159      SELECT a FROM t3
   3160       WHERE b=44
   3161          OR ((a BETWEEN 17 AND 19) AND a!=18)
   3162   }
   3163 } {4 17 19 scan 0 sort 0}
   3164 do_test where7-2.134.1 {
   3165   count_steps_sort {
   3166      SELECT a FROM t2
   3167       WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
   3168          OR a=82
   3169   }
   3170 } {80 82 scan 0 sort 0}
   3171 do_test where7-2.134.2 {
   3172   count_steps_sort {
   3173      SELECT a FROM t3
   3174       WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
   3175          OR a=82
   3176   }
   3177 } {80 82 scan 0 sort 0}
   3178 do_test where7-2.135.1 {
   3179   count_steps_sort {
   3180      SELECT a FROM t2
   3181       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   3182          OR c=24024
   3183          OR b=946
   3184          OR a=19
   3185          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   3186   }
   3187 } {19 47 70 71 72 84 86 scan 0 sort 0}
   3188 do_test where7-2.135.2 {
   3189   count_steps_sort {
   3190      SELECT a FROM t3
   3191       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   3192          OR c=24024
   3193          OR b=946
   3194          OR a=19
   3195          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   3196   }
   3197 } {19 47 70 71 72 84 86 scan 0 sort 0}
   3198 do_test where7-2.136.1 {
   3199   count_steps_sort {
   3200      SELECT a FROM t2
   3201       WHERE a=27
   3202          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   3203          OR ((a BETWEEN 89 AND 91) AND a!=90)
   3204          OR (g='ihgfedc' AND f GLOB 'efghi*')
   3205          OR b=1045
   3206          OR a=84
   3207          OR f='qrstuvwxy'
   3208   }
   3209 } {16 19 27 42 45 68 71 82 84 89 91 94 95 97 scan 0 sort 0}
   3210 do_test where7-2.136.2 {
   3211   count_steps_sort {
   3212      SELECT a FROM t3
   3213       WHERE a=27
   3214          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   3215          OR ((a BETWEEN 89 AND 91) AND a!=90)
   3216          OR (g='ihgfedc' AND f GLOB 'efghi*')
   3217          OR b=1045
   3218          OR a=84
   3219          OR f='qrstuvwxy'
   3220   }
   3221 } {16 19 27 42 45 68 71 82 84 89 91 94 95 97 scan 0 sort 0}
   3222 do_test where7-2.137.1 {
   3223   count_steps_sort {
   3224      SELECT a FROM t2
   3225       WHERE b=704
   3226          OR b=949
   3227          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   3228          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3229          OR c=24024
   3230          OR b=553
   3231          OR a=18
   3232          OR a=92
   3233   }
   3234 } {18 22 64 70 71 72 92 scan 0 sort 0}
   3235 do_test where7-2.137.2 {
   3236   count_steps_sort {
   3237      SELECT a FROM t3
   3238       WHERE b=704
   3239          OR b=949
   3240          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   3241          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3242          OR c=24024
   3243          OR b=553
   3244          OR a=18
   3245          OR a=92
   3246   }
   3247 } {18 22 64 70 71 72 92 scan 0 sort 0}
   3248 do_test where7-2.138.1 {
   3249   count_steps_sort {
   3250      SELECT a FROM t2
   3251       WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*')
   3252          OR (g='ihgfedc' AND f GLOB 'efghi*')
   3253          OR b=902
   3254          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   3255          OR b=25
   3256          OR ((a BETWEEN 16 AND 18) AND a!=17)
   3257          OR f='zabcdefgh'
   3258          OR b=385
   3259   }
   3260 } {1 16 18 25 27 35 51 53 61 77 79 82 scan 0 sort 0}
   3261 do_test where7-2.138.2 {
   3262   count_steps_sort {
   3263      SELECT a FROM t3
   3264       WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*')
   3265          OR (g='ihgfedc' AND f GLOB 'efghi*')
   3266          OR b=902
   3267          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   3268          OR b=25
   3269          OR ((a BETWEEN 16 AND 18) AND a!=17)
   3270          OR f='zabcdefgh'
   3271          OR b=385
   3272   }
   3273 } {1 16 18 25 27 35 51 53 61 77 79 82 scan 0 sort 0}
   3274 do_test where7-2.139.1 {
   3275   count_steps_sort {
   3276      SELECT a FROM t2
   3277       WHERE a=22
   3278          OR b=36
   3279          OR ((a BETWEEN 57 AND 59) AND a!=58)
   3280          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   3281          OR ((a BETWEEN 81 AND 83) AND a!=82)
   3282   }
   3283 } {22 31 57 59 81 83 scan 0 sort 0}
   3284 do_test where7-2.139.2 {
   3285   count_steps_sort {
   3286      SELECT a FROM t3
   3287       WHERE a=22
   3288          OR b=36
   3289          OR ((a BETWEEN 57 AND 59) AND a!=58)
   3290          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   3291          OR ((a BETWEEN 81 AND 83) AND a!=82)
   3292   }
   3293 } {22 31 57 59 81 83 scan 0 sort 0}
   3294 do_test where7-2.140.1 {
   3295   count_steps_sort {
   3296      SELECT a FROM t2
   3297       WHERE b=253
   3298          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   3299   }
   3300 } {23 60 scan 0 sort 0}
   3301 do_test where7-2.140.2 {
   3302   count_steps_sort {
   3303      SELECT a FROM t3
   3304       WHERE b=253
   3305          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   3306   }
   3307 } {23 60 scan 0 sort 0}
   3308 do_test where7-2.141.1 {
   3309   count_steps_sort {
   3310      SELECT a FROM t2
   3311       WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   3312          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   3313          OR b=641
   3314          OR ((a BETWEEN 36 AND 38) AND a!=37)
   3315   }
   3316 } {1 15 27 36 38 41 53 67 79 93 scan 0 sort 0}
   3317 do_test where7-2.141.2 {
   3318   count_steps_sort {
   3319      SELECT a FROM t3
   3320       WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   3321          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   3322          OR b=641
   3323          OR ((a BETWEEN 36 AND 38) AND a!=37)
   3324   }
   3325 } {1 15 27 36 38 41 53 67 79 93 scan 0 sort 0}
   3326 do_test where7-2.142.1 {
   3327   count_steps_sort {
   3328      SELECT a FROM t2
   3329       WHERE c=30030
   3330          OR a=18
   3331          OR ((a BETWEEN 44 AND 46) AND a!=45)
   3332          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   3333          OR b=11
   3334          OR (g='qponmlk' AND f GLOB 'opqrs*')
   3335          OR a=52
   3336          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3337          OR a=13
   3338          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   3339   }
   3340 } {1 13 18 22 40 44 46 52 65 88 89 90 scan 0 sort 0}
   3341 do_test where7-2.142.2 {
   3342   count_steps_sort {
   3343      SELECT a FROM t3
   3344       WHERE c=30030
   3345          OR a=18
   3346          OR ((a BETWEEN 44 AND 46) AND a!=45)
   3347          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   3348          OR b=11
   3349          OR (g='qponmlk' AND f GLOB 'opqrs*')
   3350          OR a=52
   3351          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3352          OR a=13
   3353          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   3354   }
   3355 } {1 13 18 22 40 44 46 52 65 88 89 90 scan 0 sort 0}
   3356 do_test where7-2.143.1 {
   3357   count_steps_sort {
   3358      SELECT a FROM t2
   3359       WHERE c=23023
   3360          OR f='efghijklm'
   3361          OR ((a BETWEEN 39 AND 41) AND a!=40)
   3362          OR b=1045
   3363          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   3364          OR f='uvwxyzabc'
   3365          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   3366   }
   3367 } {4 20 24 30 39 41 46 50 56 67 68 69 72 76 82 95 98 scan 0 sort 0}
   3368 do_test where7-2.143.2 {
   3369   count_steps_sort {
   3370      SELECT a FROM t3
   3371       WHERE c=23023
   3372          OR f='efghijklm'
   3373          OR ((a BETWEEN 39 AND 41) AND a!=40)
   3374          OR b=1045
   3375          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   3376          OR f='uvwxyzabc'
   3377          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   3378   }
   3379 } {4 20 24 30 39 41 46 50 56 67 68 69 72 76 82 95 98 scan 0 sort 0}
   3380 do_test where7-2.144.1 {
   3381   count_steps_sort {
   3382      SELECT a FROM t2
   3383       WHERE b=476
   3384          OR a=11
   3385          OR a=52
   3386          OR b=858
   3387          OR b=264
   3388          OR f='wxyzabcde'
   3389          OR c=18018
   3390          OR b=597
   3391          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   3392   }
   3393 } {11 22 24 48 52 53 54 69 74 78 100 scan 0 sort 0}
   3394 do_test where7-2.144.2 {
   3395   count_steps_sort {
   3396      SELECT a FROM t3
   3397       WHERE b=476
   3398          OR a=11
   3399          OR a=52
   3400          OR b=858
   3401          OR b=264
   3402          OR f='wxyzabcde'
   3403          OR c=18018
   3404          OR b=597
   3405          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   3406   }
   3407 } {11 22 24 48 52 53 54 69 74 78 100 scan 0 sort 0}
   3408 do_test where7-2.145.1 {
   3409   count_steps_sort {
   3410      SELECT a FROM t2
   3411       WHERE b=91
   3412          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3413          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   3414          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   3415          OR ((a BETWEEN 89 AND 91) AND a!=90)
   3416          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   3417          OR b=102
   3418          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   3419          OR ((a BETWEEN 59 AND 61) AND a!=60)
   3420          OR b=784
   3421   }
   3422 } {12 21 22 36 59 61 85 89 91 scan 0 sort 0}
   3423 do_test where7-2.145.2 {
   3424   count_steps_sort {
   3425      SELECT a FROM t3
   3426       WHERE b=91
   3427          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   3428          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   3429          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   3430          OR ((a BETWEEN 89 AND 91) AND a!=90)
   3431          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   3432          OR b=102
   3433          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   3434          OR ((a BETWEEN 59 AND 61) AND a!=60)
   3435          OR b=784
   3436   }
   3437 } {12 21 22 36 59 61 85 89 91 scan 0 sort 0}
   3438 do_test where7-2.146.1 {
   3439   count_steps_sort {
   3440      SELECT a FROM t2
   3441       WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
   3442          OR (g='gfedcba' AND f GLOB 'nopqr*')
   3443          OR b=990
   3444          OR a=52
   3445          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3446   }
   3447 } {14 38 52 90 91 scan 0 sort 0}
   3448 do_test where7-2.146.2 {
   3449   count_steps_sort {
   3450      SELECT a FROM t3
   3451       WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
   3452          OR (g='gfedcba' AND f GLOB 'nopqr*')
   3453          OR b=990
   3454          OR a=52
   3455          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3456   }
   3457 } {14 38 52 90 91 scan 0 sort 0}
   3458 do_test where7-2.147.1 {
   3459   count_steps_sort {
   3460      SELECT a FROM t2
   3461       WHERE c=22022
   3462          OR b=960
   3463          OR ((a BETWEEN 43 AND 45) AND a!=44)
   3464          OR a=48
   3465          OR b=729
   3466          OR ((a BETWEEN 41 AND 43) AND a!=42)
   3467          OR a=44
   3468          OR b=773
   3469   }
   3470 } {41 43 44 45 48 64 65 66 scan 0 sort 0}
   3471 do_test where7-2.147.2 {
   3472   count_steps_sort {
   3473      SELECT a FROM t3
   3474       WHERE c=22022
   3475          OR b=960
   3476          OR ((a BETWEEN 43 AND 45) AND a!=44)
   3477          OR a=48
   3478          OR b=729
   3479          OR ((a BETWEEN 41 AND 43) AND a!=42)
   3480          OR a=44
   3481          OR b=773
   3482   }
   3483 } {41 43 44 45 48 64 65 66 scan 0 sort 0}
   3484 do_test where7-2.148.1 {
   3485   count_steps_sort {
   3486      SELECT a FROM t2
   3487       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   3488          OR b=421
   3489          OR ((a BETWEEN 22 AND 24) AND a!=23)
   3490          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   3491          OR (g='srqponm' AND f GLOB 'defgh*')
   3492          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   3493          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   3494          OR c=22022
   3495          OR b=825
   3496          OR ((a BETWEEN 17 AND 19) AND a!=18)
   3497          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   3498   }
   3499 } {2 6 17 19 22 24 29 32 58 64 65 66 68 70 75 84 89 scan 0 sort 0}
   3500 do_test where7-2.148.2 {
   3501   count_steps_sort {
   3502      SELECT a FROM t3
   3503       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   3504          OR b=421
   3505          OR ((a BETWEEN 22 AND 24) AND a!=23)
   3506          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   3507          OR (g='srqponm' AND f GLOB 'defgh*')
   3508          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   3509          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   3510          OR c=22022
   3511          OR b=825
   3512          OR ((a BETWEEN 17 AND 19) AND a!=18)
   3513          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   3514   }
   3515 } {2 6 17 19 22 24 29 32 58 64 65 66 68 70 75 84 89 scan 0 sort 0}
   3516 do_test where7-2.149.1 {
   3517   count_steps_sort {
   3518      SELECT a FROM t2
   3519       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   3520          OR b=484
   3521          OR b=1026
   3522          OR a=90
   3523          OR (g='jihgfed' AND f GLOB 'wxyza*')
   3524          OR b=608
   3525          OR a=32
   3526   }
   3527 } {32 44 74 90 scan 0 sort 0}
   3528 do_test where7-2.149.2 {
   3529   count_steps_sort {
   3530      SELECT a FROM t3
   3531       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   3532          OR b=484
   3533          OR b=1026
   3534          OR a=90
   3535          OR (g='jihgfed' AND f GLOB 'wxyza*')
   3536          OR b=608
   3537          OR a=32
   3538   }
   3539 } {32 44 74 90 scan 0 sort 0}
   3540 do_test where7-2.150.1 {
   3541   count_steps_sort {
   3542      SELECT a FROM t2
   3543       WHERE c<=10
   3544          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   3545          OR b=154
   3546          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   3547          OR b=880
   3548          OR a=55
   3549          OR b=773
   3550          OR b=319
   3551          OR (g='hgfedcb' AND f GLOB 'fghij*')
   3552   }
   3553 } {14 29 55 76 77 80 83 scan 0 sort 0}
   3554 do_test where7-2.150.2 {
   3555   count_steps_sort {
   3556      SELECT a FROM t3
   3557       WHERE c<=10
   3558          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   3559          OR b=154
   3560          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   3561          OR b=880
   3562          OR a=55
   3563          OR b=773
   3564          OR b=319
   3565          OR (g='hgfedcb' AND f GLOB 'fghij*')
   3566   }
   3567 } {14 29 55 76 77 80 83 scan 0 sort 0}
   3568 do_test where7-2.151.1 {
   3569   count_steps_sort {
   3570      SELECT a FROM t2
   3571       WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
   3572          OR f='mnopqrstu'
   3573          OR a=62
   3574   }
   3575 } {8 12 38 62 64 90 scan 0 sort 0}
   3576 do_test where7-2.151.2 {
   3577   count_steps_sort {
   3578      SELECT a FROM t3
   3579       WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
   3580          OR f='mnopqrstu'
   3581          OR a=62
   3582   }
   3583 } {8 12 38 62 64 90 scan 0 sort 0}
   3584 do_test where7-2.152.1 {
   3585   count_steps_sort {
   3586      SELECT a FROM t2
   3587       WHERE a=33
   3588          OR b=1045
   3589          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   3590          OR c=13013
   3591          OR (g='gfedcba' AND f GLOB 'mnopq*')
   3592          OR b=124
   3593          OR (g='gfedcba' AND f GLOB 'klmno*')
   3594   }
   3595 } {33 37 38 39 40 88 90 95 scan 0 sort 0}
   3596 do_test where7-2.152.2 {
   3597   count_steps_sort {
   3598      SELECT a FROM t3
   3599       WHERE a=33
   3600          OR b=1045
   3601          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   3602          OR c=13013
   3603          OR (g='gfedcba' AND f GLOB 'mnopq*')
   3604          OR b=124
   3605          OR (g='gfedcba' AND f GLOB 'klmno*')
   3606   }
   3607 } {33 37 38 39 40 88 90 95 scan 0 sort 0}
   3608 do_test where7-2.153.1 {
   3609   count_steps_sort {
   3610      SELECT a FROM t2
   3611       WHERE b=883
   3612          OR c=32032
   3613          OR f='fghijklmn'
   3614          OR ((a BETWEEN 49 AND 51) AND a!=50)
   3615          OR b=421
   3616          OR b=803
   3617          OR c=4004
   3618          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   3619   }
   3620 } {2 5 10 11 12 28 31 49 51 54 57 73 80 83 94 95 96 scan 0 sort 0}
   3621 do_test where7-2.153.2 {
   3622   count_steps_sort {
   3623      SELECT a FROM t3
   3624       WHERE b=883
   3625          OR c=32032
   3626          OR f='fghijklmn'
   3627          OR ((a BETWEEN 49 AND 51) AND a!=50)
   3628          OR b=421
   3629          OR b=803
   3630          OR c=4004
   3631          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   3632   }
   3633 } {2 5 10 11 12 28 31 49 51 54 57 73 80 83 94 95 96 scan 0 sort 0}
   3634 do_test where7-2.154.1 {
   3635   count_steps_sort {
   3636      SELECT a FROM t2
   3637       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   3638          OR b=99
   3639          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   3640   }
   3641 } {9 16 42 68 72 94 scan 0 sort 0}
   3642 do_test where7-2.154.2 {
   3643   count_steps_sort {
   3644      SELECT a FROM t3
   3645       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   3646          OR b=99
   3647          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   3648   }
   3649 } {9 16 42 68 72 94 scan 0 sort 0}
   3650 do_test where7-2.155.1 {
   3651   count_steps_sort {
   3652      SELECT a FROM t2
   3653       WHERE f='defghijkl'
   3654          OR b=308
   3655   }
   3656 } {3 28 29 55 81 scan 0 sort 0}
   3657 do_test where7-2.155.2 {
   3658   count_steps_sort {
   3659      SELECT a FROM t3
   3660       WHERE f='defghijkl'
   3661          OR b=308
   3662   }
   3663 } {3 28 29 55 81 scan 0 sort 0}
   3664 do_test where7-2.156.1 {
   3665   count_steps_sort {
   3666      SELECT a FROM t2
   3667       WHERE b=795
   3668          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   3669          OR f='jklmnopqr'
   3670          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   3671          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   3672          OR b=1056
   3673   }
   3674 } {2 9 28 35 51 54 61 80 87 96 scan 0 sort 0}
   3675 do_test where7-2.156.2 {
   3676   count_steps_sort {
   3677      SELECT a FROM t3
   3678       WHERE b=795
   3679          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   3680          OR f='jklmnopqr'
   3681          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   3682          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   3683          OR b=1056
   3684   }
   3685 } {2 9 28 35 51 54 61 80 87 96 scan 0 sort 0}
   3686 do_test where7-2.157.1 {
   3687   count_steps_sort {
   3688      SELECT a FROM t2
   3689       WHERE a=47
   3690          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   3691          OR b=410
   3692          OR b=682
   3693          OR ((a BETWEEN 98 AND 100) AND a!=99)
   3694          OR f='hijklmnop'
   3695          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   3696          OR b=168
   3697          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   3698          OR a=32
   3699          OR a=72
   3700   }
   3701 } {7 32 33 40 47 51 59 62 72 85 94 98 100 scan 0 sort 0}
   3702 do_test where7-2.157.2 {
   3703   count_steps_sort {
   3704      SELECT a FROM t3
   3705       WHERE a=47
   3706          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   3707          OR b=410
   3708          OR b=682
   3709          OR ((a BETWEEN 98 AND 100) AND a!=99)
   3710          OR f='hijklmnop'
   3711          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   3712          OR b=168
   3713          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   3714          OR a=32
   3715          OR a=72
   3716   }
   3717 } {7 32 33 40 47 51 59 62 72 85 94 98 100 scan 0 sort 0}
   3718 do_test where7-2.158.1 {
   3719   count_steps_sort {
   3720      SELECT a FROM t2
   3721       WHERE b=616
   3722          OR ((a BETWEEN 25 AND 27) AND a!=26)
   3723          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3724          OR a=96
   3725   }
   3726 } {25 27 38 56 96 scan 0 sort 0}
   3727 do_test where7-2.158.2 {
   3728   count_steps_sort {
   3729      SELECT a FROM t3
   3730       WHERE b=616
   3731          OR ((a BETWEEN 25 AND 27) AND a!=26)
   3732          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   3733          OR a=96
   3734   }
   3735 } {25 27 38 56 96 scan 0 sort 0}
   3736 do_test where7-2.159.1 {
   3737   count_steps_sort {
   3738      SELECT a FROM t2
   3739       WHERE (d>=66.0 AND d<67.0 AND d NOT NULL)
   3740          OR b=352
   3741   }
   3742 } {32 66 scan 0 sort 0}
   3743 do_test where7-2.159.2 {
   3744   count_steps_sort {
   3745      SELECT a FROM t3
   3746       WHERE (d>=66.0 AND d<67.0 AND d NOT NULL)
   3747          OR b=352
   3748   }
   3749 } {32 66 scan 0 sort 0}
   3750 do_test where7-2.160.1 {
   3751   count_steps_sort {
   3752      SELECT a FROM t2
   3753       WHERE b=795
   3754          OR c=13013
   3755          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   3756          OR b=597
   3757   }
   3758 } {28 37 38 39 scan 0 sort 0}
   3759 do_test where7-2.160.2 {
   3760   count_steps_sort {
   3761      SELECT a FROM t3
   3762       WHERE b=795
   3763          OR c=13013
   3764          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   3765          OR b=597
   3766   }
   3767 } {28 37 38 39 scan 0 sort 0}
   3768 do_test where7-2.161.1 {
   3769   count_steps_sort {
   3770      SELECT a FROM t2
   3771       WHERE a=23
   3772          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   3773          OR b=641
   3774          OR b=352
   3775          OR b=179
   3776          OR b=806
   3777          OR b=839
   3778          OR b=33
   3779   }
   3780 } {3 23 32 68 scan 0 sort 0}
   3781 do_test where7-2.161.2 {
   3782   count_steps_sort {
   3783      SELECT a FROM t3
   3784       WHERE a=23
   3785          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   3786          OR b=641
   3787          OR b=352
   3788          OR b=179
   3789          OR b=806
   3790          OR b=839
   3791          OR b=33
   3792   }
   3793 } {3 23 32 68 scan 0 sort 0}
   3794 do_test where7-2.162.1 {
   3795   count_steps_sort {
   3796      SELECT a FROM t2
   3797       WHERE b=1070
   3798          OR b=1078
   3799          OR ((a BETWEEN 11 AND 13) AND a!=12)
   3800          OR c=12012
   3801          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   3802          OR b=319
   3803          OR c=5005
   3804          OR 1000000<b
   3805          OR b=1037
   3806          OR b=234
   3807   }
   3808 } {11 13 14 15 29 34 35 36 84 98 scan 0 sort 0}
   3809 do_test where7-2.162.2 {
   3810   count_steps_sort {
   3811      SELECT a FROM t3
   3812       WHERE b=1070
   3813          OR b=1078
   3814          OR ((a BETWEEN 11 AND 13) AND a!=12)
   3815          OR c=12012
   3816          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   3817          OR b=319
   3818          OR c=5005
   3819          OR 1000000<b
   3820          OR b=1037
   3821          OR b=234
   3822   }
   3823 } {11 13 14 15 29 34 35 36 84 98 scan 0 sort 0}
   3824 do_test where7-2.163.1 {
   3825   count_steps_sort {
   3826      SELECT a FROM t2
   3827       WHERE f='cdefghijk'
   3828          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   3829          OR (g='ihgfedc' AND f GLOB 'defgh*')
   3830          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   3831   }
   3832 } {2 17 28 43 54 59 69 80 81 95 scan 0 sort 0}
   3833 do_test where7-2.163.2 {
   3834   count_steps_sort {
   3835      SELECT a FROM t3
   3836       WHERE f='cdefghijk'
   3837          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   3838          OR (g='ihgfedc' AND f GLOB 'defgh*')
   3839          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   3840   }
   3841 } {2 17 28 43 54 59 69 80 81 95 scan 0 sort 0}
   3842 do_test where7-2.164.1 {
   3843   count_steps_sort {
   3844      SELECT a FROM t2
   3845       WHERE a=65
   3846          OR c=14014
   3847          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   3848          OR a=47
   3849          OR b=220
   3850          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   3851   }
   3852 } {20 37 40 41 42 47 65 88 scan 0 sort 0}
   3853 do_test where7-2.164.2 {
   3854   count_steps_sort {
   3855      SELECT a FROM t3
   3856       WHERE a=65
   3857          OR c=14014
   3858          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   3859          OR a=47
   3860          OR b=220
   3861          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   3862   }
   3863 } {20 37 40 41 42 47 65 88 scan 0 sort 0}
   3864 do_test where7-2.165.1 {
   3865   count_steps_sort {
   3866      SELECT a FROM t2
   3867       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   3868          OR (g='rqponml' AND f GLOB 'jklmn*')
   3869          OR b=891
   3870          OR (g='nmlkjih' AND f GLOB 'fghij*')
   3871          OR b=484
   3872          OR a=62
   3873          OR (g='ihgfedc' AND f GLOB 'defgh*')
   3874   }
   3875 } {35 44 57 62 81 86 scan 0 sort 0}
   3876 do_test where7-2.165.2 {
   3877   count_steps_sort {
   3878      SELECT a FROM t3
   3879       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   3880          OR (g='rqponml' AND f GLOB 'jklmn*')
   3881          OR b=891
   3882          OR (g='nmlkjih' AND f GLOB 'fghij*')
   3883          OR b=484
   3884          OR a=62
   3885          OR (g='ihgfedc' AND f GLOB 'defgh*')
   3886   }
   3887 } {35 44 57 62 81 86 scan 0 sort 0}
   3888 do_test where7-2.166.1 {
   3889   count_steps_sort {
   3890      SELECT a FROM t2
   3891       WHERE b=363
   3892          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   3893          OR ((a BETWEEN 58 AND 60) AND a!=59)
   3894          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   3895          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   3896          OR (g='wvutsrq' AND f GLOB 'klmno*')
   3897          OR a=39
   3898          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   3899   }
   3900 } {2 10 25 33 39 46 54 58 60 scan 0 sort 0}
   3901 do_test where7-2.166.2 {
   3902   count_steps_sort {
   3903      SELECT a FROM t3
   3904       WHERE b=363
   3905          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   3906          OR ((a BETWEEN 58 AND 60) AND a!=59)
   3907          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   3908          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   3909          OR (g='wvutsrq' AND f GLOB 'klmno*')
   3910          OR a=39
   3911          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   3912   }
   3913 } {2 10 25 33 39 46 54 58 60 scan 0 sort 0}
   3914 do_test where7-2.167.1 {
   3915   count_steps_sort {
   3916      SELECT a FROM t2
   3917       WHERE c=30030
   3918          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   3919          OR b=850
   3920          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   3921   }
   3922 } {20 46 52 72 88 89 90 98 scan 0 sort 0}
   3923 do_test where7-2.167.2 {
   3924   count_steps_sort {
   3925      SELECT a FROM t3
   3926       WHERE c=30030
   3927          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   3928          OR b=850
   3929          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   3930   }
   3931 } {20 46 52 72 88 89 90 98 scan 0 sort 0}
   3932 do_test where7-2.168.1 {
   3933   count_steps_sort {
   3934      SELECT a FROM t2
   3935       WHERE (d>=23.0 AND d<24.0 AND d NOT NULL)
   3936          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   3937          OR b=80
   3938   }
   3939 } {23 91 scan 0 sort 0}
   3940 do_test where7-2.168.2 {
   3941   count_steps_sort {
   3942      SELECT a FROM t3
   3943       WHERE (d>=23.0 AND d<24.0 AND d NOT NULL)
   3944          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   3945          OR b=80
   3946   }
   3947 } {23 91 scan 0 sort 0}
   3948 do_test where7-2.169.1 {
   3949   count_steps_sort {
   3950      SELECT a FROM t2
   3951       WHERE ((a BETWEEN 59 AND 61) AND a!=60)
   3952          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   3953          OR b=462
   3954          OR a=51
   3955          OR b=344
   3956          OR b=333
   3957          OR ((a BETWEEN 61 AND 63) AND a!=62)
   3958   }
   3959 } {42 51 59 61 63 77 scan 0 sort 0}
   3960 do_test where7-2.169.2 {
   3961   count_steps_sort {
   3962      SELECT a FROM t3
   3963       WHERE ((a BETWEEN 59 AND 61) AND a!=60)
   3964          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   3965          OR b=462
   3966          OR a=51
   3967          OR b=344
   3968          OR b=333
   3969          OR ((a BETWEEN 61 AND 63) AND a!=62)
   3970   }
   3971 } {42 51 59 61 63 77 scan 0 sort 0}
   3972 do_test where7-2.170.1 {
   3973   count_steps_sort {
   3974      SELECT a FROM t2
   3975       WHERE b=586
   3976          OR a=21
   3977          OR b=638
   3978   }
   3979 } {21 58 scan 0 sort 0}
   3980 do_test where7-2.170.2 {
   3981   count_steps_sort {
   3982      SELECT a FROM t3
   3983       WHERE b=586
   3984          OR a=21
   3985          OR b=638
   3986   }
   3987 } {21 58 scan 0 sort 0}
   3988 do_test where7-2.171.1 {
   3989   count_steps_sort {
   3990      SELECT a FROM t2
   3991       WHERE b=179
   3992          OR ((a BETWEEN 2 AND 4) AND a!=3)
   3993          OR ((a BETWEEN 40 AND 42) AND a!=41)
   3994          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   3995          OR ((a BETWEEN 72 AND 74) AND a!=73)
   3996   }
   3997 } {2 4 13 40 42 72 74 scan 0 sort 0}
   3998 do_test where7-2.171.2 {
   3999   count_steps_sort {
   4000      SELECT a FROM t3
   4001       WHERE b=179
   4002          OR ((a BETWEEN 2 AND 4) AND a!=3)
   4003          OR ((a BETWEEN 40 AND 42) AND a!=41)
   4004          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   4005          OR ((a BETWEEN 72 AND 74) AND a!=73)
   4006   }
   4007 } {2 4 13 40 42 72 74 scan 0 sort 0}
   4008 do_test where7-2.172.1 {
   4009   count_steps_sort {
   4010      SELECT a FROM t2
   4011       WHERE b=333
   4012          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   4013          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   4014          OR b=407
   4015          OR a=5
   4016          OR b=817
   4017          OR b=891
   4018   }
   4019 } {5 37 53 62 81 scan 0 sort 0}
   4020 do_test where7-2.172.2 {
   4021   count_steps_sort {
   4022      SELECT a FROM t3
   4023       WHERE b=333
   4024          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   4025          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   4026          OR b=407
   4027          OR a=5
   4028          OR b=817
   4029          OR b=891
   4030   }
   4031 } {5 37 53 62 81 scan 0 sort 0}
   4032 do_test where7-2.173.1 {
   4033   count_steps_sort {
   4034      SELECT a FROM t2
   4035       WHERE b<0
   4036          OR b=352
   4037          OR b=517
   4038          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   4039          OR ((a BETWEEN 12 AND 14) AND a!=13)
   4040          OR b=1012
   4041          OR ((a BETWEEN 11 AND 13) AND a!=12)
   4042   }
   4043 } {11 12 13 14 32 47 92 97 scan 0 sort 0}
   4044 do_test where7-2.173.2 {
   4045   count_steps_sort {
   4046      SELECT a FROM t3
   4047       WHERE b<0
   4048          OR b=352
   4049          OR b=517
   4050          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   4051          OR ((a BETWEEN 12 AND 14) AND a!=13)
   4052          OR b=1012
   4053          OR ((a BETWEEN 11 AND 13) AND a!=12)
   4054   }
   4055 } {11 12 13 14 32 47 92 97 scan 0 sort 0}
   4056 do_test where7-2.174.1 {
   4057   count_steps_sort {
   4058      SELECT a FROM t2
   4059       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   4060          OR c<=10
   4061          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   4062          OR a=32
   4063          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4064          OR d<0.0
   4065   }
   4066 } {12 14 32 41 scan 0 sort 0}
   4067 do_test where7-2.174.2 {
   4068   count_steps_sort {
   4069      SELECT a FROM t3
   4070       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   4071          OR c<=10
   4072          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   4073          OR a=32
   4074          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4075          OR d<0.0
   4076   }
   4077 } {12 14 32 41 scan 0 sort 0}
   4078 do_test where7-2.175.1 {
   4079   count_steps_sort {
   4080      SELECT a FROM t2
   4081       WHERE ((a BETWEEN 20 AND 22) AND a!=21)
   4082          OR b=1045
   4083          OR (g='ihgfedc' AND f GLOB 'abcde*')
   4084          OR a=26
   4085          OR (g='gfedcba' AND f GLOB 'opqrs*')
   4086   }
   4087 } {20 22 26 78 92 95 scan 0 sort 0}
   4088 do_test where7-2.175.2 {
   4089   count_steps_sort {
   4090      SELECT a FROM t3
   4091       WHERE ((a BETWEEN 20 AND 22) AND a!=21)
   4092          OR b=1045
   4093          OR (g='ihgfedc' AND f GLOB 'abcde*')
   4094          OR a=26
   4095          OR (g='gfedcba' AND f GLOB 'opqrs*')
   4096   }
   4097 } {20 22 26 78 92 95 scan 0 sort 0}
   4098 do_test where7-2.176.1 {
   4099   count_steps_sort {
   4100      SELECT a FROM t2
   4101       WHERE a=49
   4102          OR b=58
   4103   }
   4104 } {49 scan 0 sort 0}
   4105 do_test where7-2.176.2 {
   4106   count_steps_sort {
   4107      SELECT a FROM t3
   4108       WHERE a=49
   4109          OR b=58
   4110   }
   4111 } {49 scan 0 sort 0}
   4112 do_test where7-2.177.1 {
   4113   count_steps_sort {
   4114      SELECT a FROM t2
   4115       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   4116          OR (g='jihgfed' AND f GLOB 'xyzab*')
   4117          OR c=32032
   4118          OR b=289
   4119          OR ((a BETWEEN 17 AND 19) AND a!=18)
   4120          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4121   }
   4122 } {3 14 16 17 19 75 94 95 96 scan 0 sort 0}
   4123 do_test where7-2.177.2 {
   4124   count_steps_sort {
   4125      SELECT a FROM t3
   4126       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   4127          OR (g='jihgfed' AND f GLOB 'xyzab*')
   4128          OR c=32032
   4129          OR b=289
   4130          OR ((a BETWEEN 17 AND 19) AND a!=18)
   4131          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4132   }
   4133 } {3 14 16 17 19 75 94 95 96 scan 0 sort 0}
   4134 do_test where7-2.178.1 {
   4135   count_steps_sort {
   4136      SELECT a FROM t2
   4137       WHERE ((a BETWEEN 15 AND 17) AND a!=16)
   4138          OR ((a BETWEEN 57 AND 59) AND a!=58)
   4139          OR b=33
   4140          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   4141   }
   4142 } {3 15 17 43 57 59 69 95 scan 0 sort 0}
   4143 do_test where7-2.178.2 {
   4144   count_steps_sort {
   4145      SELECT a FROM t3
   4146       WHERE ((a BETWEEN 15 AND 17) AND a!=16)
   4147          OR ((a BETWEEN 57 AND 59) AND a!=58)
   4148          OR b=33
   4149          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   4150   }
   4151 } {3 15 17 43 57 59 69 95 scan 0 sort 0}
   4152 do_test where7-2.179.1 {
   4153   count_steps_sort {
   4154      SELECT a FROM t2
   4155       WHERE b=828
   4156          OR b=341
   4157          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   4158          OR b=902
   4159          OR ((a BETWEEN 64 AND 66) AND a!=65)
   4160          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   4161          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   4162          OR b=242
   4163          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   4164          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   4165          OR (g='qponmlk' AND f GLOB 'qrstu*')
   4166   }
   4167 } {1 2 16 22 31 42 64 66 68 82 91 94 95 scan 0 sort 0}
   4168 do_test where7-2.179.2 {
   4169   count_steps_sort {
   4170      SELECT a FROM t3
   4171       WHERE b=828
   4172          OR b=341
   4173          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   4174          OR b=902
   4175          OR ((a BETWEEN 64 AND 66) AND a!=65)
   4176          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   4177          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   4178          OR b=242
   4179          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   4180          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   4181          OR (g='qponmlk' AND f GLOB 'qrstu*')
   4182   }
   4183 } {1 2 16 22 31 42 64 66 68 82 91 94 95 scan 0 sort 0}
   4184 do_test where7-2.180.1 {
   4185   count_steps_sort {
   4186      SELECT a FROM t2
   4187       WHERE (g='nmlkjih' AND f GLOB 'efghi*')
   4188          OR b=982
   4189          OR b=781
   4190          OR ((a BETWEEN 66 AND 68) AND a!=67)
   4191          OR d>1e10
   4192          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   4193   }
   4194 } {56 66 68 71 scan 0 sort 0}
   4195 do_test where7-2.180.2 {
   4196   count_steps_sort {
   4197      SELECT a FROM t3
   4198       WHERE (g='nmlkjih' AND f GLOB 'efghi*')
   4199          OR b=982
   4200          OR b=781
   4201          OR ((a BETWEEN 66 AND 68) AND a!=67)
   4202          OR d>1e10
   4203          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   4204   }
   4205 } {56 66 68 71 scan 0 sort 0}
   4206 do_test where7-2.181.1 {
   4207   count_steps_sort {
   4208      SELECT a FROM t2
   4209       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   4210          OR a=31
   4211          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   4212          OR ((a BETWEEN 57 AND 59) AND a!=58)
   4213          OR a=76
   4214          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   4215          OR (g='jihgfed' AND f GLOB 'wxyza*')
   4216          OR b=176
   4217   }
   4218 } {8 16 23 31 34 57 59 60 69 74 76 86 scan 0 sort 0}
   4219 do_test where7-2.181.2 {
   4220   count_steps_sort {
   4221      SELECT a FROM t3
   4222       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   4223          OR a=31
   4224          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   4225          OR ((a BETWEEN 57 AND 59) AND a!=58)
   4226          OR a=76
   4227          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   4228          OR (g='jihgfed' AND f GLOB 'wxyza*')
   4229          OR b=176
   4230   }
   4231 } {8 16 23 31 34 57 59 60 69 74 76 86 scan 0 sort 0}
   4232 do_test where7-2.182.1 {
   4233   count_steps_sort {
   4234      SELECT a FROM t2
   4235       WHERE (g='ponmlkj' AND f GLOB 'vwxyz*')
   4236          OR ((a BETWEEN 59 AND 61) AND a!=60)
   4237          OR (g='nmlkjih' AND f GLOB 'defgh*')
   4238          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   4239          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4240          OR b=14
   4241          OR ((a BETWEEN 88 AND 90) AND a!=89)
   4242          OR f='zabcdefgh'
   4243   }
   4244 } {12 25 47 51 55 59 60 61 77 88 90 scan 0 sort 0}
   4245 do_test where7-2.182.2 {
   4246   count_steps_sort {
   4247      SELECT a FROM t3
   4248       WHERE (g='ponmlkj' AND f GLOB 'vwxyz*')
   4249          OR ((a BETWEEN 59 AND 61) AND a!=60)
   4250          OR (g='nmlkjih' AND f GLOB 'defgh*')
   4251          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   4252          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4253          OR b=14
   4254          OR ((a BETWEEN 88 AND 90) AND a!=89)
   4255          OR f='zabcdefgh'
   4256   }
   4257 } {12 25 47 51 55 59 60 61 77 88 90 scan 0 sort 0}
   4258 do_test where7-2.183.1 {
   4259   count_steps_sort {
   4260      SELECT a FROM t2
   4261       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   4262          OR b=286
   4263          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   4264          OR b=91
   4265          OR ((a BETWEEN 43 AND 45) AND a!=44)
   4266   }
   4267 } {25 26 31 43 45 scan 0 sort 0}
   4268 do_test where7-2.183.2 {
   4269   count_steps_sort {
   4270      SELECT a FROM t3
   4271       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   4272          OR b=286
   4273          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   4274          OR b=91
   4275          OR ((a BETWEEN 43 AND 45) AND a!=44)
   4276   }
   4277 } {25 26 31 43 45 scan 0 sort 0}
   4278 do_test where7-2.184.1 {
   4279   count_steps_sort {
   4280      SELECT a FROM t2
   4281       WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
   4282          OR c=19019
   4283          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   4284          OR b=374
   4285   }
   4286 } {22 34 48 55 56 57 65 74 100 scan 0 sort 0}
   4287 do_test where7-2.184.2 {
   4288   count_steps_sort {
   4289      SELECT a FROM t3
   4290       WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
   4291          OR c=19019
   4292          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   4293          OR b=374
   4294   }
   4295 } {22 34 48 55 56 57 65 74 100 scan 0 sort 0}
   4296 do_test where7-2.185.1 {
   4297   count_steps_sort {
   4298      SELECT a FROM t2
   4299       WHERE g IS NULL
   4300          OR (g='onmlkji' AND f GLOB 'wxyza*')
   4301   }
   4302 } {48 scan 0 sort 0}
   4303 do_test where7-2.185.2 {
   4304   count_steps_sort {
   4305      SELECT a FROM t3
   4306       WHERE g IS NULL
   4307          OR (g='onmlkji' AND f GLOB 'wxyza*')
   4308   }
   4309 } {48 scan 0 sort 0}
   4310 do_test where7-2.186.1 {
   4311   count_steps_sort {
   4312      SELECT a FROM t2
   4313       WHERE a=4
   4314          OR b=407
   4315   }
   4316 } {4 37 scan 0 sort 0}
   4317 do_test where7-2.186.2 {
   4318   count_steps_sort {
   4319      SELECT a FROM t3
   4320       WHERE a=4
   4321          OR b=407
   4322   }
   4323 } {4 37 scan 0 sort 0}
   4324 do_test where7-2.187.1 {
   4325   count_steps_sort {
   4326      SELECT a FROM t2
   4327       WHERE ((a BETWEEN 66 AND 68) AND a!=67)
   4328          OR b=564
   4329          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   4330          OR b=234
   4331          OR b=641
   4332          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   4333          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4334          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   4335          OR a=98
   4336   }
   4337 } {1 5 12 13 27 39 53 65 66 68 79 91 98 scan 0 sort 0}
   4338 do_test where7-2.187.2 {
   4339   count_steps_sort {
   4340      SELECT a FROM t3
   4341       WHERE ((a BETWEEN 66 AND 68) AND a!=67)
   4342          OR b=564
   4343          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   4344          OR b=234
   4345          OR b=641
   4346          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   4347          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4348          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   4349          OR a=98
   4350   }
   4351 } {1 5 12 13 27 39 53 65 66 68 79 91 98 scan 0 sort 0}
   4352 do_test where7-2.188.1 {
   4353   count_steps_sort {
   4354      SELECT a FROM t2
   4355       WHERE a=73
   4356          OR b=44
   4357          OR b=539
   4358          OR c=11011
   4359          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   4360          OR b=69
   4361          OR b=1001
   4362          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   4363          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   4364          OR (g='ihgfedc' AND f GLOB 'defgh*')
   4365          OR ((a BETWEEN 32 AND 34) AND a!=33)
   4366   }
   4367 } {4 23 26 31 32 33 34 49 73 81 91 95 scan 0 sort 0}
   4368 do_test where7-2.188.2 {
   4369   count_steps_sort {
   4370      SELECT a FROM t3
   4371       WHERE a=73
   4372          OR b=44
   4373          OR b=539
   4374          OR c=11011
   4375          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   4376          OR b=69
   4377          OR b=1001
   4378          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   4379          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   4380          OR (g='ihgfedc' AND f GLOB 'defgh*')
   4381          OR ((a BETWEEN 32 AND 34) AND a!=33)
   4382   }
   4383 } {4 23 26 31 32 33 34 49 73 81 91 95 scan 0 sort 0}
   4384 do_test where7-2.189.1 {
   4385   count_steps_sort {
   4386      SELECT a FROM t2
   4387       WHERE b=264
   4388          OR b=143
   4389          OR a=48
   4390   }
   4391 } {13 24 48 scan 0 sort 0}
   4392 do_test where7-2.189.2 {
   4393   count_steps_sort {
   4394      SELECT a FROM t3
   4395       WHERE b=264
   4396          OR b=143
   4397          OR a=48
   4398   }
   4399 } {13 24 48 scan 0 sort 0}
   4400 do_test where7-2.190.1 {
   4401   count_steps_sort {
   4402      SELECT a FROM t2
   4403       WHERE b=1001
   4404          OR b=1070
   4405          OR ((a BETWEEN 72 AND 74) AND a!=73)
   4406          OR b=14
   4407          OR ((a BETWEEN 56 AND 58) AND a!=57)
   4408          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   4409          OR a=66
   4410   }
   4411 } {18 56 58 66 72 74 91 scan 0 sort 0}
   4412 do_test where7-2.190.2 {
   4413   count_steps_sort {
   4414      SELECT a FROM t3
   4415       WHERE b=1001
   4416          OR b=1070
   4417          OR ((a BETWEEN 72 AND 74) AND a!=73)
   4418          OR b=14
   4419          OR ((a BETWEEN 56 AND 58) AND a!=57)
   4420          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   4421          OR a=66
   4422   }
   4423 } {18 56 58 66 72 74 91 scan 0 sort 0}
   4424 do_test where7-2.191.1 {
   4425   count_steps_sort {
   4426      SELECT a FROM t2
   4427       WHERE c=23023
   4428          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   4429          OR a=66
   4430          OR (g='onmlkji' AND f GLOB 'zabcd*')
   4431          OR a=51
   4432          OR a=23
   4433          OR c=4004
   4434   }
   4435 } {10 11 12 23 51 66 67 68 69 83 scan 0 sort 0}
   4436 do_test where7-2.191.2 {
   4437   count_steps_sort {
   4438      SELECT a FROM t3
   4439       WHERE c=23023
   4440          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   4441          OR a=66
   4442          OR (g='onmlkji' AND f GLOB 'zabcd*')
   4443          OR a=51
   4444          OR a=23
   4445          OR c=4004
   4446   }
   4447 } {10 11 12 23 51 66 67 68 69 83 scan 0 sort 0}
   4448 do_test where7-2.192.1 {
   4449   count_steps_sort {
   4450      SELECT a FROM t2
   4451       WHERE b=36
   4452          OR (g='rqponml' AND f GLOB 'lmnop*')
   4453          OR a=80
   4454   }
   4455 } {37 80 scan 0 sort 0}
   4456 do_test where7-2.192.2 {
   4457   count_steps_sort {
   4458      SELECT a FROM t3
   4459       WHERE b=36
   4460          OR (g='rqponml' AND f GLOB 'lmnop*')
   4461          OR a=80
   4462   }
   4463 } {37 80 scan 0 sort 0}
   4464 do_test where7-2.193.1 {
   4465   count_steps_sort {
   4466      SELECT a FROM t2
   4467       WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   4468          OR ((a BETWEEN 37 AND 39) AND a!=38)
   4469          OR a=55
   4470          OR f='efghijklm'
   4471          OR a=8
   4472          OR a=80
   4473          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   4474          OR b=256
   4475          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   4476   }
   4477 } {4 8 30 34 37 39 55 56 60 72 80 82 86 scan 0 sort 0}
   4478 do_test where7-2.193.2 {
   4479   count_steps_sort {
   4480      SELECT a FROM t3
   4481       WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   4482          OR ((a BETWEEN 37 AND 39) AND a!=38)
   4483          OR a=55
   4484          OR f='efghijklm'
   4485          OR a=8
   4486          OR a=80
   4487          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   4488          OR b=256
   4489          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   4490   }
   4491 } {4 8 30 34 37 39 55 56 60 72 80 82 86 scan 0 sort 0}
   4492 do_test where7-2.194.1 {
   4493   count_steps_sort {
   4494      SELECT a FROM t2
   4495       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   4496          OR b=836
   4497          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   4498          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   4499          OR a=91
   4500          OR b=594
   4501          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   4502   }
   4503 } {2 8 28 47 54 76 80 87 91 scan 0 sort 0}
   4504 do_test where7-2.194.2 {
   4505   count_steps_sort {
   4506      SELECT a FROM t3
   4507       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   4508          OR b=836
   4509          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   4510          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   4511          OR a=91
   4512          OR b=594
   4513          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   4514   }
   4515 } {2 8 28 47 54 76 80 87 91 scan 0 sort 0}
   4516 do_test where7-2.195.1 {
   4517   count_steps_sort {
   4518      SELECT a FROM t2
   4519       WHERE (g='tsrqpon' AND f GLOB 'yzabc*')
   4520          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4521          OR ((a BETWEEN 62 AND 64) AND a!=63)
   4522          OR c=6006
   4523          OR ((a BETWEEN 50 AND 52) AND a!=51)
   4524          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4525          OR ((a BETWEEN 88 AND 90) AND a!=89)
   4526          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   4527   }
   4528 } {12 16 17 18 24 43 50 52 62 64 88 90 scan 0 sort 0}
   4529 do_test where7-2.195.2 {
   4530   count_steps_sort {
   4531      SELECT a FROM t3
   4532       WHERE (g='tsrqpon' AND f GLOB 'yzabc*')
   4533          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   4534          OR ((a BETWEEN 62 AND 64) AND a!=63)
   4535          OR c=6006
   4536          OR ((a BETWEEN 50 AND 52) AND a!=51)
   4537          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4538          OR ((a BETWEEN 88 AND 90) AND a!=89)
   4539          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   4540   }
   4541 } {12 16 17 18 24 43 50 52 62 64 88 90 scan 0 sort 0}
   4542 do_test where7-2.196.1 {
   4543   count_steps_sort {
   4544      SELECT a FROM t2
   4545       WHERE ((a BETWEEN 83 AND 85) AND a!=84)
   4546          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4547          OR a=13
   4548          OR b=121
   4549          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   4550          OR ((a BETWEEN 12 AND 14) AND a!=13)
   4551          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   4552          OR b=660
   4553          OR b=792
   4554          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   4555   }
   4556 } {6 11 12 13 14 16 18 44 60 72 83 85 scan 0 sort 0}
   4557 do_test where7-2.196.2 {
   4558   count_steps_sort {
   4559      SELECT a FROM t3
   4560       WHERE ((a BETWEEN 83 AND 85) AND a!=84)
   4561          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4562          OR a=13
   4563          OR b=121
   4564          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   4565          OR ((a BETWEEN 12 AND 14) AND a!=13)
   4566          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   4567          OR b=660
   4568          OR b=792
   4569          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   4570   }
   4571 } {6 11 12 13 14 16 18 44 60 72 83 85 scan 0 sort 0}
   4572 do_test where7-2.197.1 {
   4573   count_steps_sort {
   4574      SELECT a FROM t2
   4575       WHERE b=1089
   4576          OR b=495
   4577          OR b=157
   4578          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   4579          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   4580          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   4581          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   4582          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   4583          OR f='wxyzabcde'
   4584   }
   4585 } {1 7 20 22 45 46 48 59 72 74 98 99 100 scan 0 sort 0}
   4586 do_test where7-2.197.2 {
   4587   count_steps_sort {
   4588      SELECT a FROM t3
   4589       WHERE b=1089
   4590          OR b=495
   4591          OR b=157
   4592          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   4593          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   4594          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   4595          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   4596          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   4597          OR f='wxyzabcde'
   4598   }
   4599 } {1 7 20 22 45 46 48 59 72 74 98 99 100 scan 0 sort 0}
   4600 do_test where7-2.198.1 {
   4601   count_steps_sort {
   4602      SELECT a FROM t2
   4603       WHERE f='bcdefghij'
   4604          OR ((a BETWEEN 40 AND 42) AND a!=41)
   4605          OR (g='srqponm' AND f GLOB 'ghijk*')
   4606          OR b=157
   4607          OR b=267
   4608          OR c=34034
   4609   }
   4610 } {1 27 32 40 42 53 79 100 scan 0 sort 0}
   4611 do_test where7-2.198.2 {
   4612   count_steps_sort {
   4613      SELECT a FROM t3
   4614       WHERE f='bcdefghij'
   4615          OR ((a BETWEEN 40 AND 42) AND a!=41)
   4616          OR (g='srqponm' AND f GLOB 'ghijk*')
   4617          OR b=157
   4618          OR b=267
   4619          OR c=34034
   4620   }
   4621 } {1 27 32 40 42 53 79 100 scan 0 sort 0}
   4622 do_test where7-2.199.1 {
   4623   count_steps_sort {
   4624      SELECT a FROM t2
   4625       WHERE a=19
   4626          OR a=23
   4627          OR c<=10
   4628          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   4629   }
   4630 } {19 23 66 scan 0 sort 0}
   4631 do_test where7-2.199.2 {
   4632   count_steps_sort {
   4633      SELECT a FROM t3
   4634       WHERE a=19
   4635          OR a=23
   4636          OR c<=10
   4637          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   4638   }
   4639 } {19 23 66 scan 0 sort 0}
   4640 do_test where7-2.200.1 {
   4641   count_steps_sort {
   4642      SELECT a FROM t2
   4643       WHERE ((a BETWEEN 1 AND 3) AND a!=2)
   4644          OR b=792
   4645          OR b=803
   4646          OR b=36
   4647          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   4648   }
   4649 } {1 3 27 53 72 73 79 scan 0 sort 0}
   4650 do_test where7-2.200.2 {
   4651   count_steps_sort {
   4652      SELECT a FROM t3
   4653       WHERE ((a BETWEEN 1 AND 3) AND a!=2)
   4654          OR b=792
   4655          OR b=803
   4656          OR b=36
   4657          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   4658   }
   4659 } {1 3 27 53 72 73 79 scan 0 sort 0}
   4660 do_test where7-2.201.1 {
   4661   count_steps_sort {
   4662      SELECT a FROM t2
   4663       WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
   4664          OR ((a BETWEEN 71 AND 73) AND a!=72)
   4665          OR ((a BETWEEN 76 AND 78) AND a!=77)
   4666          OR f='jklmnopqr'
   4667          OR (g='onmlkji' AND f GLOB 'yzabc*')
   4668          OR b=891
   4669          OR a=40
   4670          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   4671   }
   4672 } {9 20 35 40 50 61 67 71 73 76 78 81 87 scan 0 sort 0}
   4673 do_test where7-2.201.2 {
   4674   count_steps_sort {
   4675      SELECT a FROM t3
   4676       WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
   4677          OR ((a BETWEEN 71 AND 73) AND a!=72)
   4678          OR ((a BETWEEN 76 AND 78) AND a!=77)
   4679          OR f='jklmnopqr'
   4680          OR (g='onmlkji' AND f GLOB 'yzabc*')
   4681          OR b=891
   4682          OR a=40
   4683          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   4684   }
   4685 } {9 20 35 40 50 61 67 71 73 76 78 81 87 scan 0 sort 0}
   4686 do_test where7-2.202.1 {
   4687   count_steps_sort {
   4688      SELECT a FROM t2
   4689       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   4690          OR a=32
   4691          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   4692          OR a=95
   4693          OR d>1e10
   4694          OR b=429
   4695          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   4696          OR (g='jihgfed' AND f GLOB 'yzabc*')
   4697          OR c=10010
   4698          OR ((a BETWEEN 83 AND 85) AND a!=84)
   4699   }
   4700 } {15 28 29 30 32 39 54 76 83 85 88 95 scan 0 sort 0}
   4701 do_test where7-2.202.2 {
   4702   count_steps_sort {
   4703      SELECT a FROM t3
   4704       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   4705          OR a=32
   4706          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   4707          OR a=95
   4708          OR d>1e10
   4709          OR b=429
   4710          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   4711          OR (g='jihgfed' AND f GLOB 'yzabc*')
   4712          OR c=10010
   4713          OR ((a BETWEEN 83 AND 85) AND a!=84)
   4714   }
   4715 } {15 28 29 30 32 39 54 76 83 85 88 95 scan 0 sort 0}
   4716 do_test where7-2.203.1 {
   4717   count_steps_sort {
   4718      SELECT a FROM t2
   4719       WHERE (g='xwvutsr' AND f GLOB 'defgh*')
   4720          OR a=22
   4721          OR a=26
   4722          OR a=81
   4723          OR a=53
   4724          OR ((a BETWEEN 92 AND 94) AND a!=93)
   4725          OR c=30030
   4726          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   4727          OR a=82
   4728          OR b=594
   4729   }
   4730 } {3 8 22 26 53 54 81 82 88 89 90 92 94 scan 0 sort 0}
   4731 do_test where7-2.203.2 {
   4732   count_steps_sort {
   4733      SELECT a FROM t3
   4734       WHERE (g='xwvutsr' AND f GLOB 'defgh*')
   4735          OR a=22
   4736          OR a=26
   4737          OR a=81
   4738          OR a=53
   4739          OR ((a BETWEEN 92 AND 94) AND a!=93)
   4740          OR c=30030
   4741          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   4742          OR a=82
   4743          OR b=594
   4744   }
   4745 } {3 8 22 26 53 54 81 82 88 89 90 92 94 scan 0 sort 0}
   4746 do_test where7-2.204.1 {
   4747   count_steps_sort {
   4748      SELECT a FROM t2
   4749       WHERE ((a BETWEEN 34 AND 36) AND a!=35)
   4750          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   4751          OR (g='srqponm' AND f GLOB 'efghi*')
   4752          OR a=83
   4753          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   4754          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   4755          OR ((a BETWEEN 99 AND 101) AND a!=100)
   4756          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4757          OR b=1092
   4758          OR (g='srqponm' AND f GLOB 'efghi*')
   4759          OR b=25
   4760   }
   4761 } {12 30 34 36 57 68 83 86 99 scan 0 sort 0}
   4762 do_test where7-2.204.2 {
   4763   count_steps_sort {
   4764      SELECT a FROM t3
   4765       WHERE ((a BETWEEN 34 AND 36) AND a!=35)
   4766          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   4767          OR (g='srqponm' AND f GLOB 'efghi*')
   4768          OR a=83
   4769          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   4770          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   4771          OR ((a BETWEEN 99 AND 101) AND a!=100)
   4772          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   4773          OR b=1092
   4774          OR (g='srqponm' AND f GLOB 'efghi*')
   4775          OR b=25
   4776   }
   4777 } {12 30 34 36 57 68 83 86 99 scan 0 sort 0}
   4778 do_test where7-2.205.1 {
   4779   count_steps_sort {
   4780      SELECT a FROM t2
   4781       WHERE a=20
   4782          OR b=421
   4783          OR (g='xwvutsr' AND f GLOB 'fghij*')
   4784          OR a=50
   4785          OR (g='qponmlk' AND f GLOB 'opqrs*')
   4786          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   4787   }
   4788 } {5 20 40 50 53 scan 0 sort 0}
   4789 do_test where7-2.205.2 {
   4790   count_steps_sort {
   4791      SELECT a FROM t3
   4792       WHERE a=20
   4793          OR b=421
   4794          OR (g='xwvutsr' AND f GLOB 'fghij*')
   4795          OR a=50
   4796          OR (g='qponmlk' AND f GLOB 'opqrs*')
   4797          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   4798   }
   4799 } {5 20 40 50 53 scan 0 sort 0}
   4800 do_test where7-2.206.1 {
   4801   count_steps_sort {
   4802      SELECT a FROM t2
   4803       WHERE b=960
   4804          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   4805   }
   4806 } {13 39 65 91 scan 0 sort 0}
   4807 do_test where7-2.206.2 {
   4808   count_steps_sort {
   4809      SELECT a FROM t3
   4810       WHERE b=960
   4811          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   4812   }
   4813 } {13 39 65 91 scan 0 sort 0}
   4814 do_test where7-2.207.1 {
   4815   count_steps_sort {
   4816      SELECT a FROM t2
   4817       WHERE b=891
   4818          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   4819          OR f='nopqrstuv'
   4820   }
   4821 } {13 31 39 65 81 91 scan 0 sort 0}
   4822 do_test where7-2.207.2 {
   4823   count_steps_sort {
   4824      SELECT a FROM t3
   4825       WHERE b=891
   4826          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   4827          OR f='nopqrstuv'
   4828   }
   4829 } {13 31 39 65 81 91 scan 0 sort 0}
   4830 do_test where7-2.208.1 {
   4831   count_steps_sort {
   4832      SELECT a FROM t2
   4833       WHERE b=157
   4834          OR b=289
   4835          OR ((a BETWEEN 32 AND 34) AND a!=33)
   4836          OR b=1001
   4837          OR b=707
   4838   }
   4839 } {32 34 91 scan 0 sort 0}
   4840 do_test where7-2.208.2 {
   4841   count_steps_sort {
   4842      SELECT a FROM t3
   4843       WHERE b=157
   4844          OR b=289
   4845          OR ((a BETWEEN 32 AND 34) AND a!=33)
   4846          OR b=1001
   4847          OR b=707
   4848   }
   4849 } {32 34 91 scan 0 sort 0}
   4850 do_test where7-2.209.1 {
   4851   count_steps_sort {
   4852      SELECT a FROM t2
   4853       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   4854          OR b=957
   4855          OR ((a BETWEEN 48 AND 50) AND a!=49)
   4856   }
   4857 } {48 50 87 100 scan 0 sort 0}
   4858 do_test where7-2.209.2 {
   4859   count_steps_sort {
   4860      SELECT a FROM t3
   4861       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   4862          OR b=957
   4863          OR ((a BETWEEN 48 AND 50) AND a!=49)
   4864   }
   4865 } {48 50 87 100 scan 0 sort 0}
   4866 do_test where7-2.210.1 {
   4867   count_steps_sort {
   4868      SELECT a FROM t2
   4869       WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
   4870          OR a=77
   4871          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   4872   }
   4873 } {40 77 85 scan 0 sort 0}
   4874 do_test where7-2.210.2 {
   4875   count_steps_sort {
   4876      SELECT a FROM t3
   4877       WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
   4878          OR a=77
   4879          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   4880   }
   4881 } {40 77 85 scan 0 sort 0}
   4882 do_test where7-2.211.1 {
   4883   count_steps_sort {
   4884      SELECT a FROM t2
   4885       WHERE (d>=66.0 AND d<67.0 AND d NOT NULL)
   4886          OR b=11
   4887          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   4888          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4889          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   4890          OR a=99
   4891   }
   4892 } {1 14 16 38 66 96 99 scan 0 sort 0}
   4893 do_test where7-2.211.2 {
   4894   count_steps_sort {
   4895      SELECT a FROM t3
   4896       WHERE (d>=66.0 AND d<67.0 AND d NOT NULL)
   4897          OR b=11
   4898          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   4899          OR ((a BETWEEN 14 AND 16) AND a!=15)
   4900          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   4901          OR a=99
   4902   }
   4903 } {1 14 16 38 66 96 99 scan 0 sort 0}
   4904 do_test where7-2.212.1 {
   4905   count_steps_sort {
   4906      SELECT a FROM t2
   4907       WHERE f='fghijklmn'
   4908          OR a=16
   4909          OR (g='xwvutsr' AND f GLOB 'defgh*')
   4910          OR ((a BETWEEN 60 AND 62) AND a!=61)
   4911          OR ((a BETWEEN 90 AND 92) AND a!=91)
   4912          OR ((a BETWEEN 9 AND 11) AND a!=10)
   4913          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   4914          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   4915          OR b=80
   4916   }
   4917 } {3 5 9 11 16 31 52 57 60 62 71 83 90 92 scan 0 sort 0}
   4918 do_test where7-2.212.2 {
   4919   count_steps_sort {
   4920      SELECT a FROM t3
   4921       WHERE f='fghijklmn'
   4922          OR a=16
   4923          OR (g='xwvutsr' AND f GLOB 'defgh*')
   4924          OR ((a BETWEEN 60 AND 62) AND a!=61)
   4925          OR ((a BETWEEN 90 AND 92) AND a!=91)
   4926          OR ((a BETWEEN 9 AND 11) AND a!=10)
   4927          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   4928          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   4929          OR b=80
   4930   }
   4931 } {3 5 9 11 16 31 52 57 60 62 71 83 90 92 scan 0 sort 0}
   4932 do_test where7-2.213.1 {
   4933   count_steps_sort {
   4934      SELECT a FROM t2
   4935       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   4936          OR a=44
   4937          OR a=43
   4938          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   4939          OR b=25
   4940   }
   4941 } {12 43 44 66 scan 0 sort 0}
   4942 do_test where7-2.213.2 {
   4943   count_steps_sort {
   4944      SELECT a FROM t3
   4945       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   4946          OR a=44
   4947          OR a=43
   4948          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   4949          OR b=25
   4950   }
   4951 } {12 43 44 66 scan 0 sort 0}
   4952 do_test where7-2.214.1 {
   4953   count_steps_sort {
   4954      SELECT a FROM t2
   4955       WHERE f='vwxyzabcd'
   4956          OR a=73
   4957          OR b=597
   4958   }
   4959 } {21 47 73 99 scan 0 sort 0}
   4960 do_test where7-2.214.2 {
   4961   count_steps_sort {
   4962      SELECT a FROM t3
   4963       WHERE f='vwxyzabcd'
   4964          OR a=73
   4965          OR b=597
   4966   }
   4967 } {21 47 73 99 scan 0 sort 0}
   4968 do_test where7-2.215.1 {
   4969   count_steps_sort {
   4970      SELECT a FROM t2
   4971       WHERE b=22
   4972          OR ((a BETWEEN 61 AND 63) AND a!=62)
   4973          OR e IS NULL
   4974          OR a=1
   4975   }
   4976 } {1 2 61 63 scan 0 sort 0}
   4977 do_test where7-2.215.2 {
   4978   count_steps_sort {
   4979      SELECT a FROM t3
   4980       WHERE b=22
   4981          OR ((a BETWEEN 61 AND 63) AND a!=62)
   4982          OR e IS NULL
   4983          OR a=1
   4984   }
   4985 } {1 2 61 63 scan 0 sort 0}
   4986 do_test where7-2.216.1 {
   4987   count_steps_sort {
   4988      SELECT a FROM t2
   4989       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   4990          OR (g='gfedcba' AND f GLOB 'opqrs*')
   4991          OR b=1015
   4992          OR c=16016
   4993          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   4994          OR f='abcdefghi'
   4995          OR b=605
   4996          OR a=63
   4997   }
   4998 } {3 19 26 45 46 47 48 52 55 63 71 78 92 97 scan 0 sort 0}
   4999 do_test where7-2.216.2 {
   5000   count_steps_sort {
   5001      SELECT a FROM t3
   5002       WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
   5003          OR (g='gfedcba' AND f GLOB 'opqrs*')
   5004          OR b=1015
   5005          OR c=16016
   5006          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   5007          OR f='abcdefghi'
   5008          OR b=605
   5009          OR a=63
   5010   }
   5011 } {3 19 26 45 46 47 48 52 55 63 71 78 92 97 scan 0 sort 0}
   5012 do_test where7-2.217.1 {
   5013   count_steps_sort {
   5014      SELECT a FROM t2
   5015       WHERE (g='yxwvuts' AND f GLOB 'bcdef*')
   5016          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   5017          OR b=641
   5018          OR b=795
   5019   }
   5020 } {1 44 scan 0 sort 0}
   5021 do_test where7-2.217.2 {
   5022   count_steps_sort {
   5023      SELECT a FROM t3
   5024       WHERE (g='yxwvuts' AND f GLOB 'bcdef*')
   5025          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   5026          OR b=641
   5027          OR b=795
   5028   }
   5029 } {1 44 scan 0 sort 0}
   5030 do_test where7-2.218.1 {
   5031   count_steps_sort {
   5032      SELECT a FROM t2
   5033       WHERE f='fghijklmn'
   5034          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   5035          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   5036   }
   5037 } {5 15 31 44 57 83 scan 0 sort 0}
   5038 do_test where7-2.218.2 {
   5039   count_steps_sort {
   5040      SELECT a FROM t3
   5041       WHERE f='fghijklmn'
   5042          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   5043          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   5044   }
   5045 } {5 15 31 44 57 83 scan 0 sort 0}
   5046 do_test where7-2.219.1 {
   5047   count_steps_sort {
   5048      SELECT a FROM t2
   5049       WHERE ((a BETWEEN 99 AND 101) AND a!=100)
   5050          OR ((a BETWEEN 72 AND 74) AND a!=73)
   5051          OR ((a BETWEEN 85 AND 87) AND a!=86)
   5052          OR a=92
   5053          OR b=1100
   5054          OR ((a BETWEEN 98 AND 100) AND a!=99)
   5055          OR ((a BETWEEN 30 AND 32) AND a!=31)
   5056   }
   5057 } {30 32 72 74 85 87 92 98 99 100 scan 0 sort 0}
   5058 do_test where7-2.219.2 {
   5059   count_steps_sort {
   5060      SELECT a FROM t3
   5061       WHERE ((a BETWEEN 99 AND 101) AND a!=100)
   5062          OR ((a BETWEEN 72 AND 74) AND a!=73)
   5063          OR ((a BETWEEN 85 AND 87) AND a!=86)
   5064          OR a=92
   5065          OR b=1100
   5066          OR ((a BETWEEN 98 AND 100) AND a!=99)
   5067          OR ((a BETWEEN 30 AND 32) AND a!=31)
   5068   }
   5069 } {30 32 72 74 85 87 92 98 99 100 scan 0 sort 0}
   5070 do_test where7-2.220.1 {
   5071   count_steps_sort {
   5072      SELECT a FROM t2
   5073       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   5074          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   5075          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   5076          OR b=880
   5077          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5078          OR b=1089
   5079          OR ((a BETWEEN 69 AND 71) AND a!=70)
   5080          OR f IS NULL
   5081          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   5082   }
   5083 } {5 12 16 31 57 69 71 80 83 86 97 99 scan 0 sort 0}
   5084 do_test where7-2.220.2 {
   5085   count_steps_sort {
   5086      SELECT a FROM t3
   5087       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   5088          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   5089          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   5090          OR b=880
   5091          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5092          OR b=1089
   5093          OR ((a BETWEEN 69 AND 71) AND a!=70)
   5094          OR f IS NULL
   5095          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   5096   }
   5097 } {5 12 16 31 57 69 71 80 83 86 97 99 scan 0 sort 0}
   5098 do_test where7-2.221.1 {
   5099   count_steps_sort {
   5100      SELECT a FROM t2
   5101       WHERE b=1026
   5102          OR b=407
   5103          OR (g='srqponm' AND f GLOB 'fghij*')
   5104          OR b=564
   5105          OR c=23023
   5106          OR b=891
   5107          OR c=22022
   5108          OR ((a BETWEEN 22 AND 24) AND a!=23)
   5109          OR ((a BETWEEN 9 AND 11) AND a!=10)
   5110          OR (g='rqponml' AND f GLOB 'ijklm*')
   5111          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   5112   }
   5113 } {9 11 21 22 24 31 34 37 64 65 66 67 68 69 81 scan 0 sort 0}
   5114 do_test where7-2.221.2 {
   5115   count_steps_sort {
   5116      SELECT a FROM t3
   5117       WHERE b=1026
   5118          OR b=407
   5119          OR (g='srqponm' AND f GLOB 'fghij*')
   5120          OR b=564
   5121          OR c=23023
   5122          OR b=891
   5123          OR c=22022
   5124          OR ((a BETWEEN 22 AND 24) AND a!=23)
   5125          OR ((a BETWEEN 9 AND 11) AND a!=10)
   5126          OR (g='rqponml' AND f GLOB 'ijklm*')
   5127          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   5128   }
   5129 } {9 11 21 22 24 31 34 37 64 65 66 67 68 69 81 scan 0 sort 0}
   5130 do_test where7-2.222.1 {
   5131   count_steps_sort {
   5132      SELECT a FROM t2
   5133       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   5134          OR a=72
   5135          OR a=43
   5136   }
   5137 } {43 71 72 73 scan 0 sort 0}
   5138 do_test where7-2.222.2 {
   5139   count_steps_sort {
   5140      SELECT a FROM t3
   5141       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   5142          OR a=72
   5143          OR a=43
   5144   }
   5145 } {43 71 72 73 scan 0 sort 0}
   5146 do_test where7-2.223.1 {
   5147   count_steps_sort {
   5148      SELECT a FROM t2
   5149       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   5150          OR ((a BETWEEN 79 AND 81) AND a!=80)
   5151          OR c=18018
   5152          OR b=792
   5153          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   5154          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   5155          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   5156          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   5157          OR f='uvwxyzabc'
   5158          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   5159   }
   5160 } {8 20 46 52 53 54 61 67 69 72 74 77 79 81 91 98 scan 0 sort 0}
   5161 do_test where7-2.223.2 {
   5162   count_steps_sort {
   5163      SELECT a FROM t3
   5164       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   5165          OR ((a BETWEEN 79 AND 81) AND a!=80)
   5166          OR c=18018
   5167          OR b=792
   5168          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   5169          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   5170          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   5171          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   5172          OR f='uvwxyzabc'
   5173          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   5174   }
   5175 } {8 20 46 52 53 54 61 67 69 72 74 77 79 81 91 98 scan 0 sort 0}
   5176 do_test where7-2.224.1 {
   5177   count_steps_sort {
   5178      SELECT a FROM t2
   5179       WHERE b=429
   5180          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   5181          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   5182          OR (g='qponmlk' AND f GLOB 'opqrs*')
   5183          OR b=1070
   5184          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   5185   }
   5186 } {4 17 30 33 39 40 56 82 scan 0 sort 0}
   5187 do_test where7-2.224.2 {
   5188   count_steps_sort {
   5189      SELECT a FROM t3
   5190       WHERE b=429
   5191          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   5192          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   5193          OR (g='qponmlk' AND f GLOB 'opqrs*')
   5194          OR b=1070
   5195          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   5196   }
   5197 } {4 17 30 33 39 40 56 82 scan 0 sort 0}
   5198 do_test where7-2.225.1 {
   5199   count_steps_sort {
   5200      SELECT a FROM t2
   5201       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   5202          OR b=572
   5203   }
   5204 } {52 61 scan 0 sort 0}
   5205 do_test where7-2.225.2 {
   5206   count_steps_sort {
   5207      SELECT a FROM t3
   5208       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   5209          OR b=572
   5210   }
   5211 } {52 61 scan 0 sort 0}
   5212 do_test where7-2.226.1 {
   5213   count_steps_sort {
   5214      SELECT a FROM t2
   5215       WHERE ((a BETWEEN 62 AND 64) AND a!=63)
   5216          OR f='abcdefghi'
   5217          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   5218   }
   5219 } {8 26 52 62 64 78 scan 0 sort 0}
   5220 do_test where7-2.226.2 {
   5221   count_steps_sort {
   5222      SELECT a FROM t3
   5223       WHERE ((a BETWEEN 62 AND 64) AND a!=63)
   5224          OR f='abcdefghi'
   5225          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   5226   }
   5227 } {8 26 52 62 64 78 scan 0 sort 0}
   5228 do_test where7-2.227.1 {
   5229   count_steps_sort {
   5230      SELECT a FROM t2
   5231       WHERE a=40
   5232          OR ((a BETWEEN 85 AND 87) AND a!=86)
   5233   }
   5234 } {40 85 87 scan 0 sort 0}
   5235 do_test where7-2.227.2 {
   5236   count_steps_sort {
   5237      SELECT a FROM t3
   5238       WHERE a=40
   5239          OR ((a BETWEEN 85 AND 87) AND a!=86)
   5240   }
   5241 } {40 85 87 scan 0 sort 0}
   5242 do_test where7-2.228.1 {
   5243   count_steps_sort {
   5244      SELECT a FROM t2
   5245       WHERE a=43
   5246          OR ((a BETWEEN 44 AND 46) AND a!=45)
   5247          OR a=1
   5248          OR ((a BETWEEN 75 AND 77) AND a!=76)
   5249          OR a=75
   5250          OR (g='hgfedcb' AND f GLOB 'fghij*')
   5251          OR ((a BETWEEN 59 AND 61) AND a!=60)
   5252   }
   5253 } {1 43 44 46 59 61 75 77 83 scan 0 sort 0}
   5254 do_test where7-2.228.2 {
   5255   count_steps_sort {
   5256      SELECT a FROM t3
   5257       WHERE a=43
   5258          OR ((a BETWEEN 44 AND 46) AND a!=45)
   5259          OR a=1
   5260          OR ((a BETWEEN 75 AND 77) AND a!=76)
   5261          OR a=75
   5262          OR (g='hgfedcb' AND f GLOB 'fghij*')
   5263          OR ((a BETWEEN 59 AND 61) AND a!=60)
   5264   }
   5265 } {1 43 44 46 59 61 75 77 83 scan 0 sort 0}
   5266 do_test where7-2.229.1 {
   5267   count_steps_sort {
   5268      SELECT a FROM t2
   5269       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   5270          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   5271          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   5272          OR b=231
   5273          OR a=87
   5274   }
   5275 } {8 21 34 60 86 87 91 scan 0 sort 0}
   5276 do_test where7-2.229.2 {
   5277   count_steps_sort {
   5278      SELECT a FROM t3
   5279       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   5280          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   5281          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   5282          OR b=231
   5283          OR a=87
   5284   }
   5285 } {8 21 34 60 86 87 91 scan 0 sort 0}
   5286 do_test where7-2.230.1 {
   5287   count_steps_sort {
   5288      SELECT a FROM t2
   5289       WHERE a=77
   5290          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5291          OR (g='rqponml' AND f GLOB 'hijkl*')
   5292          OR c=24024
   5293          OR c=5005
   5294   }
   5295 } {13 14 15 33 65 70 71 72 77 scan 0 sort 0}
   5296 do_test where7-2.230.2 {
   5297   count_steps_sort {
   5298      SELECT a FROM t3
   5299       WHERE a=77
   5300          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5301          OR (g='rqponml' AND f GLOB 'hijkl*')
   5302          OR c=24024
   5303          OR c=5005
   5304   }
   5305 } {13 14 15 33 65 70 71 72 77 scan 0 sort 0}
   5306 do_test where7-2.231.1 {
   5307   count_steps_sort {
   5308      SELECT a FROM t2
   5309       WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
   5310          OR ((a BETWEEN 89 AND 91) AND a!=90)
   5311          OR (g='srqponm' AND f GLOB 'defgh*')
   5312          OR ((a BETWEEN 64 AND 66) AND a!=65)
   5313          OR b=682
   5314          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   5315          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5316          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   5317   }
   5318 } {22 29 34 60 62 64 65 66 89 91 scan 0 sort 0}
   5319 do_test where7-2.231.2 {
   5320   count_steps_sort {
   5321      SELECT a FROM t3
   5322       WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
   5323          OR ((a BETWEEN 89 AND 91) AND a!=90)
   5324          OR (g='srqponm' AND f GLOB 'defgh*')
   5325          OR ((a BETWEEN 64 AND 66) AND a!=65)
   5326          OR b=682
   5327          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   5328          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5329          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   5330   }
   5331 } {22 29 34 60 62 64 65 66 89 91 scan 0 sort 0}
   5332 do_test where7-2.232.1 {
   5333   count_steps_sort {
   5334      SELECT a FROM t2
   5335       WHERE b=212
   5336          OR b=121
   5337          OR c=2002
   5338          OR ((a BETWEEN 84 AND 86) AND a!=85)
   5339          OR (g='jihgfed' AND f GLOB 'xyzab*')
   5340   }
   5341 } {4 5 6 11 75 84 86 scan 0 sort 0}
   5342 do_test where7-2.232.2 {
   5343   count_steps_sort {
   5344      SELECT a FROM t3
   5345       WHERE b=212
   5346          OR b=121
   5347          OR c=2002
   5348          OR ((a BETWEEN 84 AND 86) AND a!=85)
   5349          OR (g='jihgfed' AND f GLOB 'xyzab*')
   5350   }
   5351 } {4 5 6 11 75 84 86 scan 0 sort 0}
   5352 do_test where7-2.233.1 {
   5353   count_steps_sort {
   5354      SELECT a FROM t2
   5355       WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
   5356          OR f='abcdefghi'
   5357          OR b=267
   5358          OR (g='ihgfedc' AND f GLOB 'abcde*')
   5359          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   5360          OR a=82
   5361          OR a=54
   5362          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   5363          OR b=1078
   5364   }
   5365 } {16 20 26 52 54 55 78 82 98 scan 0 sort 0}
   5366 do_test where7-2.233.2 {
   5367   count_steps_sort {
   5368      SELECT a FROM t3
   5369       WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
   5370          OR f='abcdefghi'
   5371          OR b=267
   5372          OR (g='ihgfedc' AND f GLOB 'abcde*')
   5373          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   5374          OR a=82
   5375          OR a=54
   5376          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   5377          OR b=1078
   5378   }
   5379 } {16 20 26 52 54 55 78 82 98 scan 0 sort 0}
   5380 do_test where7-2.234.1 {
   5381   count_steps_sort {
   5382      SELECT a FROM t2
   5383       WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
   5384          OR f='hijklmnop'
   5385          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   5386   }
   5387 } {7 33 34 59 85 93 scan 0 sort 0}
   5388 do_test where7-2.234.2 {
   5389   count_steps_sort {
   5390      SELECT a FROM t3
   5391       WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
   5392          OR f='hijklmnop'
   5393          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   5394   }
   5395 } {7 33 34 59 85 93 scan 0 sort 0}
   5396 do_test where7-2.235.1 {
   5397   count_steps_sort {
   5398      SELECT a FROM t2
   5399       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   5400          OR ((a BETWEEN 51 AND 53) AND a!=52)
   5401          OR a=18
   5402          OR ((a BETWEEN 31 AND 33) AND a!=32)
   5403          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   5404          OR 1000000<b
   5405          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   5406          OR (g='rqponml' AND f GLOB 'lmnop*')
   5407          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   5408   }
   5409 } {7 14 18 31 33 37 40 51 53 59 66 85 92 94 98 100 scan 0 sort 0}
   5410 do_test where7-2.235.2 {
   5411   count_steps_sort {
   5412      SELECT a FROM t3
   5413       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   5414          OR ((a BETWEEN 51 AND 53) AND a!=52)
   5415          OR a=18
   5416          OR ((a BETWEEN 31 AND 33) AND a!=32)
   5417          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   5418          OR 1000000<b
   5419          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   5420          OR (g='rqponml' AND f GLOB 'lmnop*')
   5421          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   5422   }
   5423 } {7 14 18 31 33 37 40 51 53 59 66 85 92 94 98 100 scan 0 sort 0}
   5424 do_test where7-2.236.1 {
   5425   count_steps_sort {
   5426      SELECT a FROM t2
   5427       WHERE b=1001
   5428          OR b=168
   5429          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   5430          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   5431   }
   5432 } {7 33 59 85 89 91 scan 0 sort 0}
   5433 do_test where7-2.236.2 {
   5434   count_steps_sort {
   5435      SELECT a FROM t3
   5436       WHERE b=1001
   5437          OR b=168
   5438          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   5439          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   5440   }
   5441 } {7 33 59 85 89 91 scan 0 sort 0}
   5442 do_test where7-2.237.1 {
   5443   count_steps_sort {
   5444      SELECT a FROM t2
   5445       WHERE a=51
   5446          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   5447          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   5448          OR b=330
   5449   }
   5450 } {30 51 96 98 scan 0 sort 0}
   5451 do_test where7-2.237.2 {
   5452   count_steps_sort {
   5453      SELECT a FROM t3
   5454       WHERE a=51
   5455          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   5456          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   5457          OR b=330
   5458   }
   5459 } {30 51 96 98 scan 0 sort 0}
   5460 do_test where7-2.238.1 {
   5461   count_steps_sort {
   5462      SELECT a FROM t2
   5463       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   5464          OR b=704
   5465          OR a=62
   5466          OR f='pqrstuvwx'
   5467          OR b=495
   5468          OR c=26026
   5469          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   5470          OR b<0
   5471          OR b=597
   5472   }
   5473 } {15 41 45 62 64 67 68 71 76 77 78 93 scan 0 sort 0}
   5474 do_test where7-2.238.2 {
   5475   count_steps_sort {
   5476      SELECT a FROM t3
   5477       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   5478          OR b=704
   5479          OR a=62
   5480          OR f='pqrstuvwx'
   5481          OR b=495
   5482          OR c=26026
   5483          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   5484          OR b<0
   5485          OR b=597
   5486   }
   5487 } {15 41 45 62 64 67 68 71 76 77 78 93 scan 0 sort 0}
   5488 do_test where7-2.239.1 {
   5489   count_steps_sort {
   5490      SELECT a FROM t2
   5491       WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
   5492          OR ((a BETWEEN 87 AND 89) AND a!=88)
   5493          OR b=520
   5494          OR ((a BETWEEN 47 AND 49) AND a!=48)
   5495          OR f IS NULL
   5496   }
   5497 } {2 47 49 87 89 scan 0 sort 0}
   5498 do_test where7-2.239.2 {
   5499   count_steps_sort {
   5500      SELECT a FROM t3
   5501       WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
   5502          OR ((a BETWEEN 87 AND 89) AND a!=88)
   5503          OR b=520
   5504          OR ((a BETWEEN 47 AND 49) AND a!=48)
   5505          OR f IS NULL
   5506   }
   5507 } {2 47 49 87 89 scan 0 sort 0}
   5508 do_test where7-2.240.1 {
   5509   count_steps_sort {
   5510      SELECT a FROM t2
   5511       WHERE c=14014
   5512          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   5513          OR b=572
   5514          OR c=15015
   5515   }
   5516 } {40 41 42 43 44 45 52 95 scan 0 sort 0}
   5517 do_test where7-2.240.2 {
   5518   count_steps_sort {
   5519      SELECT a FROM t3
   5520       WHERE c=14014
   5521          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   5522          OR b=572
   5523          OR c=15015
   5524   }
   5525 } {40 41 42 43 44 45 52 95 scan 0 sort 0}
   5526 do_test where7-2.241.1 {
   5527   count_steps_sort {
   5528      SELECT a FROM t2
   5529       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   5530          OR b=850
   5531          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5532          OR ((a BETWEEN 15 AND 17) AND a!=16)
   5533          OR b=88
   5534          OR f='hijklmnop'
   5535          OR b=806
   5536          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   5537          OR b=88
   5538   }
   5539 } {3 7 8 15 17 29 33 46 55 59 65 81 85 scan 0 sort 0}
   5540 do_test where7-2.241.2 {
   5541   count_steps_sort {
   5542      SELECT a FROM t3
   5543       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   5544          OR b=850
   5545          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   5546          OR ((a BETWEEN 15 AND 17) AND a!=16)
   5547          OR b=88
   5548          OR f='hijklmnop'
   5549          OR b=806
   5550          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   5551          OR b=88
   5552   }
   5553 } {3 7 8 15 17 29 33 46 55 59 65 81 85 scan 0 sort 0}
   5554 do_test where7-2.242.1 {
   5555   count_steps_sort {
   5556      SELECT a FROM t2
   5557       WHERE b=817
   5558          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   5559          OR a=36
   5560          OR b=960
   5561          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   5562          OR b=374
   5563          OR b=938
   5564          OR b=773
   5565          OR (g='jihgfed' AND f GLOB 'zabcd*')
   5566          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   5567   }
   5568 } {34 36 55 58 63 77 scan 0 sort 0}
   5569 do_test where7-2.242.2 {
   5570   count_steps_sort {
   5571      SELECT a FROM t3
   5572       WHERE b=817
   5573          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   5574          OR a=36
   5575          OR b=960
   5576          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   5577          OR b=374
   5578          OR b=938
   5579          OR b=773
   5580          OR (g='jihgfed' AND f GLOB 'zabcd*')
   5581          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   5582   }
   5583 } {34 36 55 58 63 77 scan 0 sort 0}
   5584 do_test where7-2.243.1 {
   5585   count_steps_sort {
   5586      SELECT a FROM t2
   5587       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   5588          OR b=146
   5589   }
   5590 } {69 scan 0 sort 0}
   5591 do_test where7-2.243.2 {
   5592   count_steps_sort {
   5593      SELECT a FROM t3
   5594       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   5595          OR b=146
   5596   }
   5597 } {69 scan 0 sort 0}
   5598 do_test where7-2.244.1 {
   5599   count_steps_sort {
   5600      SELECT a FROM t2
   5601       WHERE f='pqrstuvwx'
   5602          OR ((a BETWEEN 6 AND 8) AND a!=7)
   5603          OR ((a BETWEEN 76 AND 78) AND a!=77)
   5604          OR b=704
   5605          OR a=18
   5606   }
   5607 } {6 8 15 18 41 64 67 76 78 93 scan 0 sort 0}
   5608 do_test where7-2.244.2 {
   5609   count_steps_sort {
   5610      SELECT a FROM t3
   5611       WHERE f='pqrstuvwx'
   5612          OR ((a BETWEEN 6 AND 8) AND a!=7)
   5613          OR ((a BETWEEN 76 AND 78) AND a!=77)
   5614          OR b=704
   5615          OR a=18
   5616   }
   5617 } {6 8 15 18 41 64 67 76 78 93 scan 0 sort 0}
   5618 do_test where7-2.245.1 {
   5619   count_steps_sort {
   5620      SELECT a FROM t2
   5621       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   5622          OR b=399
   5623          OR b=1004
   5624          OR c=16016
   5625          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   5626          OR b=671
   5627          OR a=25
   5628          OR a=30
   5629          OR a=8
   5630          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   5631   }
   5632 } {5 8 19 25 30 31 45 46 47 48 61 71 97 scan 0 sort 0}
   5633 do_test where7-2.245.2 {
   5634   count_steps_sort {
   5635      SELECT a FROM t3
   5636       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   5637          OR b=399
   5638          OR b=1004
   5639          OR c=16016
   5640          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   5641          OR b=671
   5642          OR a=25
   5643          OR a=30
   5644          OR a=8
   5645          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   5646   }
   5647 } {5 8 19 25 30 31 45 46 47 48 61 71 97 scan 0 sort 0}
   5648 do_test where7-2.246.1 {
   5649   count_steps_sort {
   5650      SELECT a FROM t2
   5651       WHERE b=561
   5652          OR ((a BETWEEN 28 AND 30) AND a!=29)
   5653          OR b=594
   5654          OR ((a BETWEEN 39 AND 41) AND a!=40)
   5655          OR b=861
   5656          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   5657          OR b=949
   5658          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   5659          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   5660   }
   5661 } {18 28 30 39 41 51 54 90 scan 0 sort 0}
   5662 do_test where7-2.246.2 {
   5663   count_steps_sort {
   5664      SELECT a FROM t3
   5665       WHERE b=561
   5666          OR ((a BETWEEN 28 AND 30) AND a!=29)
   5667          OR b=594
   5668          OR ((a BETWEEN 39 AND 41) AND a!=40)
   5669          OR b=861
   5670          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   5671          OR b=949
   5672          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   5673          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   5674   }
   5675 } {18 28 30 39 41 51 54 90 scan 0 sort 0}
   5676 do_test where7-2.247.1 {
   5677   count_steps_sort {
   5678      SELECT a FROM t2
   5679       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   5680          OR a=83
   5681          OR c=26026
   5682          OR a=49
   5683          OR a=57
   5684          OR c=23023
   5685          OR f='uvwxyzabc'
   5686   }
   5687 } {7 20 46 49 57 67 68 69 72 76 77 78 83 98 scan 0 sort 0}
   5688 do_test where7-2.247.2 {
   5689   count_steps_sort {
   5690      SELECT a FROM t3
   5691       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   5692          OR a=83
   5693          OR c=26026
   5694          OR a=49
   5695          OR a=57
   5696          OR c=23023
   5697          OR f='uvwxyzabc'
   5698   }
   5699 } {7 20 46 49 57 67 68 69 72 76 77 78 83 98 scan 0 sort 0}
   5700 do_test where7-2.248.1 {
   5701   count_steps_sort {
   5702      SELECT a FROM t2
   5703       WHERE d>1e10
   5704          OR b=355
   5705          OR f='stuvwxyza'
   5706          OR b=22
   5707   }
   5708 } {2 18 44 70 96 scan 0 sort 0}
   5709 do_test where7-2.248.2 {
   5710   count_steps_sort {
   5711      SELECT a FROM t3
   5712       WHERE d>1e10
   5713          OR b=355
   5714          OR f='stuvwxyza'
   5715          OR b=22
   5716   }
   5717 } {2 18 44 70 96 scan 0 sort 0}
   5718 do_test where7-2.249.1 {
   5719   count_steps_sort {
   5720      SELECT a FROM t2
   5721       WHERE b=451
   5722          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   5723   }
   5724 } {8 34 41 60 86 scan 0 sort 0}
   5725 do_test where7-2.249.2 {
   5726   count_steps_sort {
   5727      SELECT a FROM t3
   5728       WHERE b=451
   5729          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   5730   }
   5731 } {8 34 41 60 86 scan 0 sort 0}
   5732 do_test where7-2.250.1 {
   5733   count_steps_sort {
   5734      SELECT a FROM t2
   5735       WHERE b=47
   5736          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   5737   }
   5738 } {1 27 53 79 scan 0 sort 0}
   5739 do_test where7-2.250.2 {
   5740   count_steps_sort {
   5741      SELECT a FROM t3
   5742       WHERE b=47
   5743          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   5744   }
   5745 } {1 27 53 79 scan 0 sort 0}
   5746 do_test where7-2.251.1 {
   5747   count_steps_sort {
   5748      SELECT a FROM t2
   5749       WHERE b=1037
   5750          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   5751          OR ((a BETWEEN 66 AND 68) AND a!=67)
   5752          OR b=344
   5753          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5754   }
   5755 } {12 66 68 86 scan 0 sort 0}
   5756 do_test where7-2.251.2 {
   5757   count_steps_sort {
   5758      SELECT a FROM t3
   5759       WHERE b=1037
   5760          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   5761          OR ((a BETWEEN 66 AND 68) AND a!=67)
   5762          OR b=344
   5763          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5764   }
   5765 } {12 66 68 86 scan 0 sort 0}
   5766 do_test where7-2.252.1 {
   5767   count_steps_sort {
   5768      SELECT a FROM t2
   5769       WHERE b=506
   5770          OR ((a BETWEEN 20 AND 22) AND a!=21)
   5771          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   5772          OR b=429
   5773          OR b=275
   5774   }
   5775 } {20 22 25 39 46 86 scan 0 sort 0}
   5776 do_test where7-2.252.2 {
   5777   count_steps_sort {
   5778      SELECT a FROM t3
   5779       WHERE b=506
   5780          OR ((a BETWEEN 20 AND 22) AND a!=21)
   5781          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   5782          OR b=429
   5783          OR b=275
   5784   }
   5785 } {20 22 25 39 46 86 scan 0 sort 0}
   5786 do_test where7-2.253.1 {
   5787   count_steps_sort {
   5788      SELECT a FROM t2
   5789       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   5790          OR a=28
   5791          OR b=443
   5792          OR b=363
   5793          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   5794          OR a=60
   5795          OR b=80
   5796          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   5797          OR b=616
   5798   }
   5799 } {28 33 47 56 60 62 scan 0 sort 0}
   5800 do_test where7-2.253.2 {
   5801   count_steps_sort {
   5802      SELECT a FROM t3
   5803       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   5804          OR a=28
   5805          OR b=443
   5806          OR b=363
   5807          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   5808          OR a=60
   5809          OR b=80
   5810          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   5811          OR b=616
   5812   }
   5813 } {28 33 47 56 60 62 scan 0 sort 0}
   5814 do_test where7-2.254.1 {
   5815   count_steps_sort {
   5816      SELECT a FROM t2
   5817       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   5818          OR b=660
   5819   }
   5820 } {33 60 scan 0 sort 0}
   5821 do_test where7-2.254.2 {
   5822   count_steps_sort {
   5823      SELECT a FROM t3
   5824       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   5825          OR b=660
   5826   }
   5827 } {33 60 scan 0 sort 0}
   5828 do_test where7-2.255.1 {
   5829   count_steps_sort {
   5830      SELECT a FROM t2
   5831       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   5832          OR a=43
   5833          OR ((a BETWEEN 64 AND 66) AND a!=65)
   5834          OR b=586
   5835          OR c=17017
   5836          OR (g='onmlkji' AND f GLOB 'yzabc*')
   5837          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   5838          OR a=87
   5839          OR b=968
   5840   }
   5841 } {7 21 43 47 49 50 51 64 66 73 87 88 99 scan 0 sort 0}
   5842 do_test where7-2.255.2 {
   5843   count_steps_sort {
   5844      SELECT a FROM t3
   5845       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   5846          OR a=43
   5847          OR ((a BETWEEN 64 AND 66) AND a!=65)
   5848          OR b=586
   5849          OR c=17017
   5850          OR (g='onmlkji' AND f GLOB 'yzabc*')
   5851          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   5852          OR a=87
   5853          OR b=968
   5854   }
   5855 } {7 21 43 47 49 50 51 64 66 73 87 88 99 scan 0 sort 0}
   5856 do_test where7-2.256.1 {
   5857   count_steps_sort {
   5858      SELECT a FROM t2
   5859       WHERE f='klmnopqrs'
   5860          OR b=982
   5861          OR b=575
   5862          OR b=110
   5863          OR b=99
   5864   }
   5865 } {9 10 36 62 88 scan 0 sort 0}
   5866 do_test where7-2.256.2 {
   5867   count_steps_sort {
   5868      SELECT a FROM t3
   5869       WHERE f='klmnopqrs'
   5870          OR b=982
   5871          OR b=575
   5872          OR b=110
   5873          OR b=99
   5874   }
   5875 } {9 10 36 62 88 scan 0 sort 0}
   5876 do_test where7-2.257.1 {
   5877   count_steps_sort {
   5878      SELECT a FROM t2
   5879       WHERE (g='rqponml' AND f GLOB 'jklmn*')
   5880          OR (g='xwvutsr' AND f GLOB 'efghi*')
   5881          OR c>=34035
   5882          OR b=850
   5883          OR ((a BETWEEN 32 AND 34) AND a!=33)
   5884          OR b=924
   5885          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   5886          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   5887          OR b=355
   5888          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   5889          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5890   }
   5891 } {4 32 34 35 37 56 78 84 86 scan 0 sort 0}
   5892 do_test where7-2.257.2 {
   5893   count_steps_sort {
   5894      SELECT a FROM t3
   5895       WHERE (g='rqponml' AND f GLOB 'jklmn*')
   5896          OR (g='xwvutsr' AND f GLOB 'efghi*')
   5897          OR c>=34035
   5898          OR b=850
   5899          OR ((a BETWEEN 32 AND 34) AND a!=33)
   5900          OR b=924
   5901          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   5902          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   5903          OR b=355
   5904          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   5905          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   5906   }
   5907 } {4 32 34 35 37 56 78 84 86 scan 0 sort 0}
   5908 do_test where7-2.258.1 {
   5909   count_steps_sort {
   5910      SELECT a FROM t2
   5911       WHERE (d>=46.0 AND d<47.0 AND d NOT NULL)
   5912          OR b=982
   5913          OR ((a BETWEEN 81 AND 83) AND a!=82)
   5914          OR b=374
   5915   }
   5916 } {34 46 81 83 scan 0 sort 0}
   5917 do_test where7-2.258.2 {
   5918   count_steps_sort {
   5919      SELECT a FROM t3
   5920       WHERE (d>=46.0 AND d<47.0 AND d NOT NULL)
   5921          OR b=982
   5922          OR ((a BETWEEN 81 AND 83) AND a!=82)
   5923          OR b=374
   5924   }
   5925 } {34 46 81 83 scan 0 sort 0}
   5926 do_test where7-2.259.1 {
   5927   count_steps_sort {
   5928      SELECT a FROM t2
   5929       WHERE ((a BETWEEN 87 AND 89) AND a!=88)
   5930          OR b=814
   5931          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   5932   }
   5933 } {19 74 87 89 scan 0 sort 0}
   5934 do_test where7-2.259.2 {
   5935   count_steps_sort {
   5936      SELECT a FROM t3
   5937       WHERE ((a BETWEEN 87 AND 89) AND a!=88)
   5938          OR b=814
   5939          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   5940   }
   5941 } {19 74 87 89 scan 0 sort 0}
   5942 do_test where7-2.260.1 {
   5943   count_steps_sort {
   5944      SELECT a FROM t2
   5945       WHERE (g='qponmlk' AND f GLOB 'nopqr*')
   5946          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   5947          OR b=993
   5948   }
   5949 } {12 39 scan 0 sort 0}
   5950 do_test where7-2.260.2 {
   5951   count_steps_sort {
   5952      SELECT a FROM t3
   5953       WHERE (g='qponmlk' AND f GLOB 'nopqr*')
   5954          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   5955          OR b=993
   5956   }
   5957 } {12 39 scan 0 sort 0}
   5958 do_test where7-2.261.1 {
   5959   count_steps_sort {
   5960      SELECT a FROM t2
   5961       WHERE b=234
   5962          OR a=22
   5963          OR b=289
   5964          OR b=795
   5965          OR (g='gfedcba' AND f GLOB 'nopqr*')
   5966          OR b=242
   5967          OR a=59
   5968          OR b=1045
   5969          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   5970   }
   5971 } {8 22 59 91 95 scan 0 sort 0}
   5972 do_test where7-2.261.2 {
   5973   count_steps_sort {
   5974      SELECT a FROM t3
   5975       WHERE b=234
   5976          OR a=22
   5977          OR b=289
   5978          OR b=795
   5979          OR (g='gfedcba' AND f GLOB 'nopqr*')
   5980          OR b=242
   5981          OR a=59
   5982          OR b=1045
   5983          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   5984   }
   5985 } {8 22 59 91 95 scan 0 sort 0}
   5986 do_test where7-2.262.1 {
   5987   count_steps_sort {
   5988      SELECT a FROM t2
   5989       WHERE b=245
   5990          OR (g='wvutsrq' AND f GLOB 'klmno*')
   5991          OR c=3003
   5992          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   5993          OR ((a BETWEEN 68 AND 70) AND a!=69)
   5994          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   5995          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   5996          OR ((a BETWEEN 71 AND 73) AND a!=72)
   5997   }
   5998 } {1 7 8 9 10 26 33 52 68 70 71 73 78 scan 0 sort 0}
   5999 do_test where7-2.262.2 {
   6000   count_steps_sort {
   6001      SELECT a FROM t3
   6002       WHERE b=245
   6003          OR (g='wvutsrq' AND f GLOB 'klmno*')
   6004          OR c=3003
   6005          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   6006          OR ((a BETWEEN 68 AND 70) AND a!=69)
   6007          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   6008          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   6009          OR ((a BETWEEN 71 AND 73) AND a!=72)
   6010   }
   6011 } {1 7 8 9 10 26 33 52 68 70 71 73 78 scan 0 sort 0}
   6012 do_test where7-2.263.1 {
   6013   count_steps_sort {
   6014      SELECT a FROM t2
   6015       WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
   6016          OR b=220
   6017          OR b=443
   6018          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6019          OR a=62
   6020          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6021          OR b=1023
   6022          OR a=100
   6023          OR (g='nmlkjih' AND f GLOB 'defgh*')
   6024          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   6025   }
   6026 } {18 20 44 55 62 70 87 93 96 97 100 scan 0 sort 0}
   6027 do_test where7-2.263.2 {
   6028   count_steps_sort {
   6029      SELECT a FROM t3
   6030       WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
   6031          OR b=220
   6032          OR b=443
   6033          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6034          OR a=62
   6035          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6036          OR b=1023
   6037          OR a=100
   6038          OR (g='nmlkjih' AND f GLOB 'defgh*')
   6039          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   6040   }
   6041 } {18 20 44 55 62 70 87 93 96 97 100 scan 0 sort 0}
   6042 do_test where7-2.264.1 {
   6043   count_steps_sort {
   6044      SELECT a FROM t2
   6045       WHERE c=11011
   6046          OR f='tuvwxyzab'
   6047          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   6048          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   6049   }
   6050 } {19 31 32 33 45 47 71 84 97 scan 0 sort 0}
   6051 do_test where7-2.264.2 {
   6052   count_steps_sort {
   6053      SELECT a FROM t3
   6054       WHERE c=11011
   6055          OR f='tuvwxyzab'
   6056          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   6057          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   6058   }
   6059 } {19 31 32 33 45 47 71 84 97 scan 0 sort 0}
   6060 do_test where7-2.265.1 {
   6061   count_steps_sort {
   6062      SELECT a FROM t2
   6063       WHERE ((a BETWEEN 93 AND 95) AND a!=94)
   6064          OR a=79
   6065          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   6066          OR b=462
   6067   }
   6068 } {39 42 79 93 95 scan 0 sort 0}
   6069 do_test where7-2.265.2 {
   6070   count_steps_sort {
   6071      SELECT a FROM t3
   6072       WHERE ((a BETWEEN 93 AND 95) AND a!=94)
   6073          OR a=79
   6074          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   6075          OR b=462
   6076   }
   6077 } {39 42 79 93 95 scan 0 sort 0}
   6078 do_test where7-2.266.1 {
   6079   count_steps_sort {
   6080      SELECT a FROM t2
   6081       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   6082          OR b=146
   6083          OR 1000000<b
   6084          OR b=99
   6085          OR ((a BETWEEN 75 AND 77) AND a!=76)
   6086   }
   6087 } {9 33 75 77 scan 0 sort 0}
   6088 do_test where7-2.266.2 {
   6089   count_steps_sort {
   6090      SELECT a FROM t3
   6091       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   6092          OR b=146
   6093          OR 1000000<b
   6094          OR b=99
   6095          OR ((a BETWEEN 75 AND 77) AND a!=76)
   6096   }
   6097 } {9 33 75 77 scan 0 sort 0}
   6098 do_test where7-2.267.1 {
   6099   count_steps_sort {
   6100      SELECT a FROM t2
   6101       WHERE b=935
   6102          OR b=473
   6103          OR a=28
   6104          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   6105          OR ((a BETWEEN 62 AND 64) AND a!=63)
   6106          OR a=62
   6107          OR b=619
   6108          OR a=82
   6109          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   6110          OR c=14014
   6111          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   6112   }
   6113 } {20 28 40 41 42 43 62 64 67 82 85 scan 0 sort 0}
   6114 do_test where7-2.267.2 {
   6115   count_steps_sort {
   6116      SELECT a FROM t3
   6117       WHERE b=935
   6118          OR b=473
   6119          OR a=28
   6120          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   6121          OR ((a BETWEEN 62 AND 64) AND a!=63)
   6122          OR a=62
   6123          OR b=619
   6124          OR a=82
   6125          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   6126          OR c=14014
   6127          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   6128   }
   6129 } {20 28 40 41 42 43 62 64 67 82 85 scan 0 sort 0}
   6130 do_test where7-2.268.1 {
   6131   count_steps_sort {
   6132      SELECT a FROM t2
   6133       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   6134          OR b=443
   6135          OR b=33
   6136          OR b=762
   6137          OR b=575
   6138          OR c=16016
   6139          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   6140          OR ((a BETWEEN 41 AND 43) AND a!=42)
   6141          OR (g='qponmlk' AND f GLOB 'opqrs*')
   6142          OR b=1092
   6143   }
   6144 } {3 40 41 43 46 47 48 72 scan 0 sort 0}
   6145 do_test where7-2.268.2 {
   6146   count_steps_sort {
   6147      SELECT a FROM t3
   6148       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   6149          OR b=443
   6150          OR b=33
   6151          OR b=762
   6152          OR b=575
   6153          OR c=16016
   6154          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   6155          OR ((a BETWEEN 41 AND 43) AND a!=42)
   6156          OR (g='qponmlk' AND f GLOB 'opqrs*')
   6157          OR b=1092
   6158   }
   6159 } {3 40 41 43 46 47 48 72 scan 0 sort 0}
   6160 do_test where7-2.269.1 {
   6161   count_steps_sort {
   6162      SELECT a FROM t2
   6163       WHERE b=806
   6164          OR b=872
   6165          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   6166          OR f='uvwxyzabc'
   6167          OR b=748
   6168          OR b=586
   6169          OR ((a BETWEEN 15 AND 17) AND a!=16)
   6170          OR (g='gfedcba' AND f GLOB 'klmno*')
   6171          OR ((a BETWEEN 32 AND 34) AND a!=33)
   6172          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   6173          OR b=891
   6174   }
   6175 } {15 17 20 32 34 46 68 72 80 81 88 98 scan 0 sort 0}
   6176 do_test where7-2.269.2 {
   6177   count_steps_sort {
   6178      SELECT a FROM t3
   6179       WHERE b=806
   6180          OR b=872
   6181          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   6182          OR f='uvwxyzabc'
   6183          OR b=748
   6184          OR b=586
   6185          OR ((a BETWEEN 15 AND 17) AND a!=16)
   6186          OR (g='gfedcba' AND f GLOB 'klmno*')
   6187          OR ((a BETWEEN 32 AND 34) AND a!=33)
   6188          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   6189          OR b=891
   6190   }
   6191 } {15 17 20 32 34 46 68 72 80 81 88 98 scan 0 sort 0}
   6192 do_test where7-2.270.1 {
   6193   count_steps_sort {
   6194      SELECT a FROM t2
   6195       WHERE b=693
   6196          OR f='fghijklmn'
   6197          OR (g='rqponml' AND f GLOB 'hijkl*')
   6198          OR (g='qponmlk' AND f GLOB 'nopqr*')
   6199          OR ((a BETWEEN 71 AND 73) AND a!=72)
   6200          OR a=96
   6201   }
   6202 } {5 31 33 39 57 63 71 73 83 96 scan 0 sort 0}
   6203 do_test where7-2.270.2 {
   6204   count_steps_sort {
   6205      SELECT a FROM t3
   6206       WHERE b=693
   6207          OR f='fghijklmn'
   6208          OR (g='rqponml' AND f GLOB 'hijkl*')
   6209          OR (g='qponmlk' AND f GLOB 'nopqr*')
   6210          OR ((a BETWEEN 71 AND 73) AND a!=72)
   6211          OR a=96
   6212   }
   6213 } {5 31 33 39 57 63 71 73 83 96 scan 0 sort 0}
   6214 do_test where7-2.271.1 {
   6215   count_steps_sort {
   6216      SELECT a FROM t2
   6217       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   6218          OR b=451
   6219          OR ((a BETWEEN 96 AND 98) AND a!=97)
   6220          OR ((a BETWEEN 97 AND 99) AND a!=98)
   6221          OR a=84
   6222   }
   6223 } {41 84 86 96 97 98 99 scan 0 sort 0}
   6224 do_test where7-2.271.2 {
   6225   count_steps_sort {
   6226      SELECT a FROM t3
   6227       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   6228          OR b=451
   6229          OR ((a BETWEEN 96 AND 98) AND a!=97)
   6230          OR ((a BETWEEN 97 AND 99) AND a!=98)
   6231          OR a=84
   6232   }
   6233 } {41 84 86 96 97 98 99 scan 0 sort 0}
   6234 do_test where7-2.272.1 {
   6235   count_steps_sort {
   6236      SELECT a FROM t2
   6237       WHERE (g='nmlkjih' AND f GLOB 'bcdef*')
   6238          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   6239          OR a=75
   6240          OR b=960
   6241          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   6242          OR b=616
   6243          OR b=330
   6244          OR ((a BETWEEN 16 AND 18) AND a!=17)
   6245          OR a=26
   6246          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   6247   }
   6248 } {16 18 24 26 30 53 56 63 72 75 scan 0 sort 0}
   6249 do_test where7-2.272.2 {
   6250   count_steps_sort {
   6251      SELECT a FROM t3
   6252       WHERE (g='nmlkjih' AND f GLOB 'bcdef*')
   6253          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   6254          OR a=75
   6255          OR b=960
   6256          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   6257          OR b=616
   6258          OR b=330
   6259          OR ((a BETWEEN 16 AND 18) AND a!=17)
   6260          OR a=26
   6261          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   6262   }
   6263 } {16 18 24 26 30 53 56 63 72 75 scan 0 sort 0}
   6264 do_test where7-2.273.1 {
   6265   count_steps_sort {
   6266      SELECT a FROM t2
   6267       WHERE b=762
   6268          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   6269   }
   6270 } {53 scan 0 sort 0}
   6271 do_test where7-2.273.2 {
   6272   count_steps_sort {
   6273      SELECT a FROM t3
   6274       WHERE b=762
   6275          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   6276   }
   6277 } {53 scan 0 sort 0}
   6278 do_test where7-2.274.1 {
   6279   count_steps_sort {
   6280      SELECT a FROM t2
   6281       WHERE b=14
   6282          OR a=23
   6283          OR b=748
   6284          OR b=407
   6285          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6286          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   6287          OR b=979
   6288          OR ((a BETWEEN 15 AND 17) AND a!=16)
   6289   }
   6290 } {4 15 17 23 37 68 87 89 scan 0 sort 0}
   6291 do_test where7-2.274.2 {
   6292   count_steps_sort {
   6293      SELECT a FROM t3
   6294       WHERE b=14
   6295          OR a=23
   6296          OR b=748
   6297          OR b=407
   6298          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6299          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   6300          OR b=979
   6301          OR ((a BETWEEN 15 AND 17) AND a!=16)
   6302   }
   6303 } {4 15 17 23 37 68 87 89 scan 0 sort 0}
   6304 do_test where7-2.275.1 {
   6305   count_steps_sort {
   6306      SELECT a FROM t2
   6307       WHERE ((a BETWEEN 36 AND 38) AND a!=37)
   6308          OR a=92
   6309   }
   6310 } {36 38 92 scan 0 sort 0}
   6311 do_test where7-2.275.2 {
   6312   count_steps_sort {
   6313      SELECT a FROM t3
   6314       WHERE ((a BETWEEN 36 AND 38) AND a!=37)
   6315          OR a=92
   6316   }
   6317 } {36 38 92 scan 0 sort 0}
   6318 do_test where7-2.276.1 {
   6319   count_steps_sort {
   6320      SELECT a FROM t2
   6321       WHERE c=14014
   6322          OR b=927
   6323          OR b=176
   6324          OR ((a BETWEEN 34 AND 36) AND a!=35)
   6325          OR b=220
   6326          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   6327          OR a=4
   6328   }
   6329 } {4 16 20 24 34 36 40 41 42 scan 0 sort 0}
   6330 do_test where7-2.276.2 {
   6331   count_steps_sort {
   6332      SELECT a FROM t3
   6333       WHERE c=14014
   6334          OR b=927
   6335          OR b=176
   6336          OR ((a BETWEEN 34 AND 36) AND a!=35)
   6337          OR b=220
   6338          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   6339          OR a=4
   6340   }
   6341 } {4 16 20 24 34 36 40 41 42 scan 0 sort 0}
   6342 do_test where7-2.277.1 {
   6343   count_steps_sort {
   6344      SELECT a FROM t2
   6345       WHERE a=29
   6346          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   6347          OR b=979
   6348          OR b=275
   6349          OR ((a BETWEEN 56 AND 58) AND a!=57)
   6350          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   6351          OR b=539
   6352          OR a=87
   6353   }
   6354 } {19 25 29 41 49 56 58 87 89 scan 0 sort 0}
   6355 do_test where7-2.277.2 {
   6356   count_steps_sort {
   6357      SELECT a FROM t3
   6358       WHERE a=29
   6359          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   6360          OR b=979
   6361          OR b=275
   6362          OR ((a BETWEEN 56 AND 58) AND a!=57)
   6363          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   6364          OR b=539
   6365          OR a=87
   6366   }
   6367 } {19 25 29 41 49 56 58 87 89 scan 0 sort 0}
   6368 do_test where7-2.278.1 {
   6369   count_steps_sort {
   6370      SELECT a FROM t2
   6371       WHERE ((a BETWEEN 43 AND 45) AND a!=44)
   6372          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   6373          OR (g='nmlkjih' AND f GLOB 'fghij*')
   6374          OR ((a BETWEEN 57 AND 59) AND a!=58)
   6375          OR f='fghijklmn'
   6376          OR (g='rqponml' AND f GLOB 'klmno*')
   6377          OR ((a BETWEEN 4 AND 6) AND a!=5)
   6378          OR a=74
   6379          OR ((a BETWEEN 7 AND 9) AND a!=8)
   6380   }
   6381 } {4 5 6 7 9 31 36 43 45 57 59 69 74 83 scan 0 sort 0}
   6382 do_test where7-2.278.2 {
   6383   count_steps_sort {
   6384      SELECT a FROM t3
   6385       WHERE ((a BETWEEN 43 AND 45) AND a!=44)
   6386          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   6387          OR (g='nmlkjih' AND f GLOB 'fghij*')
   6388          OR ((a BETWEEN 57 AND 59) AND a!=58)
   6389          OR f='fghijklmn'
   6390          OR (g='rqponml' AND f GLOB 'klmno*')
   6391          OR ((a BETWEEN 4 AND 6) AND a!=5)
   6392          OR a=74
   6393          OR ((a BETWEEN 7 AND 9) AND a!=8)
   6394   }
   6395 } {4 5 6 7 9 31 36 43 45 57 59 69 74 83 scan 0 sort 0}
   6396 do_test where7-2.279.1 {
   6397   count_steps_sort {
   6398      SELECT a FROM t2
   6399       WHERE ((a BETWEEN 80 AND 82) AND a!=81)
   6400          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   6401          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   6402          OR ((a BETWEEN 49 AND 51) AND a!=50)
   6403          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   6404   }
   6405 } {8 34 42 49 51 60 79 80 82 86 scan 0 sort 0}
   6406 do_test where7-2.279.2 {
   6407   count_steps_sort {
   6408      SELECT a FROM t3
   6409       WHERE ((a BETWEEN 80 AND 82) AND a!=81)
   6410          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   6411          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   6412          OR ((a BETWEEN 49 AND 51) AND a!=50)
   6413          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   6414   }
   6415 } {8 34 42 49 51 60 79 80 82 86 scan 0 sort 0}
   6416 do_test where7-2.280.1 {
   6417   count_steps_sort {
   6418      SELECT a FROM t2
   6419       WHERE ((a BETWEEN 58 AND 60) AND a!=59)
   6420          OR b=696
   6421          OR f='tuvwxyzab'
   6422          OR b=374
   6423          OR b=110
   6424          OR a=90
   6425   }
   6426 } {10 19 34 45 58 60 71 90 97 scan 0 sort 0}
   6427 do_test where7-2.280.2 {
   6428   count_steps_sort {
   6429      SELECT a FROM t3
   6430       WHERE ((a BETWEEN 58 AND 60) AND a!=59)
   6431          OR b=696
   6432          OR f='tuvwxyzab'
   6433          OR b=374
   6434          OR b=110
   6435          OR a=90
   6436   }
   6437 } {10 19 34 45 58 60 71 90 97 scan 0 sort 0}
   6438 do_test where7-2.281.1 {
   6439   count_steps_sort {
   6440      SELECT a FROM t2
   6441       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   6442          OR c=23023
   6443          OR b=377
   6444          OR b=858
   6445          OR (g='nmlkjih' AND f GLOB 'fghij*')
   6446   }
   6447 } {6 57 67 68 69 78 scan 0 sort 0}
   6448 do_test where7-2.281.2 {
   6449   count_steps_sort {
   6450      SELECT a FROM t3
   6451       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   6452          OR c=23023
   6453          OR b=377
   6454          OR b=858
   6455          OR (g='nmlkjih' AND f GLOB 'fghij*')
   6456   }
   6457 } {6 57 67 68 69 78 scan 0 sort 0}
   6458 do_test where7-2.282.1 {
   6459   count_steps_sort {
   6460      SELECT a FROM t2
   6461       WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
   6462          OR b=322
   6463          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   6464          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   6465          OR (g='onmlkji' AND f GLOB 'wxyza*')
   6466          OR b=432
   6467          OR b=55
   6468          OR a=53
   6469          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   6470          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   6471          OR b=25
   6472   }
   6473 } {5 7 19 33 38 48 53 59 74 85 93 scan 0 sort 0}
   6474 do_test where7-2.282.2 {
   6475   count_steps_sort {
   6476      SELECT a FROM t3
   6477       WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
   6478          OR b=322
   6479          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   6480          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   6481          OR (g='onmlkji' AND f GLOB 'wxyza*')
   6482          OR b=432
   6483          OR b=55
   6484          OR a=53
   6485          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   6486          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   6487          OR b=25
   6488   }
   6489 } {5 7 19 33 38 48 53 59 74 85 93 scan 0 sort 0}
   6490 do_test where7-2.283.1 {
   6491   count_steps_sort {
   6492      SELECT a FROM t2
   6493       WHERE b=484
   6494          OR (g='jihgfed' AND f GLOB 'wxyza*')
   6495          OR b=616
   6496          OR c=5005
   6497          OR ((a BETWEEN 27 AND 29) AND a!=28)
   6498   }
   6499 } {13 14 15 27 29 44 56 74 scan 0 sort 0}
   6500 do_test where7-2.283.2 {
   6501   count_steps_sort {
   6502      SELECT a FROM t3
   6503       WHERE b=484
   6504          OR (g='jihgfed' AND f GLOB 'wxyza*')
   6505          OR b=616
   6506          OR c=5005
   6507          OR ((a BETWEEN 27 AND 29) AND a!=28)
   6508   }
   6509 } {13 14 15 27 29 44 56 74 scan 0 sort 0}
   6510 do_test where7-2.284.1 {
   6511   count_steps_sort {
   6512      SELECT a FROM t2
   6513       WHERE b=916
   6514          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   6515          OR b=1048
   6516          OR c=6006
   6517          OR b=762
   6518          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   6519          OR ((a BETWEEN 59 AND 61) AND a!=60)
   6520          OR b=751
   6521          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   6522   }
   6523 } {13 14 16 17 18 39 40 59 61 65 66 73 91 92 scan 0 sort 0}
   6524 do_test where7-2.284.2 {
   6525   count_steps_sort {
   6526      SELECT a FROM t3
   6527       WHERE b=916
   6528          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   6529          OR b=1048
   6530          OR c=6006
   6531          OR b=762
   6532          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   6533          OR ((a BETWEEN 59 AND 61) AND a!=60)
   6534          OR b=751
   6535          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   6536   }
   6537 } {13 14 16 17 18 39 40 59 61 65 66 73 91 92 scan 0 sort 0}
   6538 do_test where7-2.285.1 {
   6539   count_steps_sort {
   6540      SELECT a FROM t2
   6541       WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
   6542          OR b=927
   6543          OR b=275
   6544          OR b=396
   6545          OR c=4004
   6546          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   6547          OR b=319
   6548          OR ((a BETWEEN 83 AND 85) AND a!=84)
   6549          OR a=3
   6550          OR ((a BETWEEN 73 AND 75) AND a!=74)
   6551   }
   6552 } {3 10 11 12 14 25 29 32 36 73 75 83 85 scan 0 sort 0}
   6553 do_test where7-2.285.2 {
   6554   count_steps_sort {
   6555      SELECT a FROM t3
   6556       WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
   6557          OR b=927
   6558          OR b=275
   6559          OR b=396
   6560          OR c=4004
   6561          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   6562          OR b=319
   6563          OR ((a BETWEEN 83 AND 85) AND a!=84)
   6564          OR a=3
   6565          OR ((a BETWEEN 73 AND 75) AND a!=74)
   6566   }
   6567 } {3 10 11 12 14 25 29 32 36 73 75 83 85 scan 0 sort 0}
   6568 do_test where7-2.286.1 {
   6569   count_steps_sort {
   6570      SELECT a FROM t2
   6571       WHERE (g='wvutsrq' AND f GLOB 'lmnop*')
   6572          OR b=718
   6573          OR f='vwxyzabcd'
   6574          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   6575          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   6576          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   6577          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   6578          OR ((a BETWEEN 66 AND 68) AND a!=67)
   6579          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   6580          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   6581          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   6582   }
   6583 } {9 11 19 21 22 35 45 47 61 66 68 71 73 87 97 98 99 scan 0 sort 0}
   6584 do_test where7-2.286.2 {
   6585   count_steps_sort {
   6586      SELECT a FROM t3
   6587       WHERE (g='wvutsrq' AND f GLOB 'lmnop*')
   6588          OR b=718
   6589          OR f='vwxyzabcd'
   6590          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   6591          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   6592          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   6593          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   6594          OR ((a BETWEEN 66 AND 68) AND a!=67)
   6595          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   6596          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   6597          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   6598   }
   6599 } {9 11 19 21 22 35 45 47 61 66 68 71 73 87 97 98 99 scan 0 sort 0}
   6600 do_test where7-2.287.1 {
   6601   count_steps_sort {
   6602      SELECT a FROM t2
   6603       WHERE b=187
   6604          OR b=1056
   6605          OR b=861
   6606          OR b=1081
   6607          OR b=572
   6608          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6609          OR a=11
   6610          OR ((a BETWEEN 99 AND 101) AND a!=100)
   6611          OR a=89
   6612          OR b=421
   6613   }
   6614 } {4 11 17 52 89 96 99 scan 0 sort 0}
   6615 do_test where7-2.287.2 {
   6616   count_steps_sort {
   6617      SELECT a FROM t3
   6618       WHERE b=187
   6619          OR b=1056
   6620          OR b=861
   6621          OR b=1081
   6622          OR b=572
   6623          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6624          OR a=11
   6625          OR ((a BETWEEN 99 AND 101) AND a!=100)
   6626          OR a=89
   6627          OR b=421
   6628   }
   6629 } {4 11 17 52 89 96 99 scan 0 sort 0}
   6630 do_test where7-2.288.1 {
   6631   count_steps_sort {
   6632      SELECT a FROM t2
   6633       WHERE b=231
   6634          OR b=388
   6635          OR d<0.0
   6636          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   6637          OR b=1045
   6638          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   6639   }
   6640 } {12 21 39 95 scan 0 sort 0}
   6641 do_test where7-2.288.2 {
   6642   count_steps_sort {
   6643      SELECT a FROM t3
   6644       WHERE b=231
   6645          OR b=388
   6646          OR d<0.0
   6647          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   6648          OR b=1045
   6649          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   6650   }
   6651 } {12 21 39 95 scan 0 sort 0}
   6652 do_test where7-2.289.1 {
   6653   count_steps_sort {
   6654      SELECT a FROM t2
   6655       WHERE b=528
   6656          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   6657          OR b=762
   6658   }
   6659 } {48 53 scan 0 sort 0}
   6660 do_test where7-2.289.2 {
   6661   count_steps_sort {
   6662      SELECT a FROM t3
   6663       WHERE b=528
   6664          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   6665          OR b=762
   6666   }
   6667 } {48 53 scan 0 sort 0}
   6668 do_test where7-2.290.1 {
   6669   count_steps_sort {
   6670      SELECT a FROM t2
   6671       WHERE f='stuvwxyza'
   6672          OR ((a BETWEEN 90 AND 92) AND a!=91)
   6673          OR b=916
   6674   }
   6675 } {18 44 70 90 92 96 scan 0 sort 0}
   6676 do_test where7-2.290.2 {
   6677   count_steps_sort {
   6678      SELECT a FROM t3
   6679       WHERE f='stuvwxyza'
   6680          OR ((a BETWEEN 90 AND 92) AND a!=91)
   6681          OR b=916
   6682   }
   6683 } {18 44 70 90 92 96 scan 0 sort 0}
   6684 do_test where7-2.291.1 {
   6685   count_steps_sort {
   6686      SELECT a FROM t2
   6687       WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
   6688          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   6689          OR ((a BETWEEN 96 AND 98) AND a!=97)
   6690          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   6691          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6692   }
   6693 } {4 19 52 76 96 98 scan 0 sort 0}
   6694 do_test where7-2.291.2 {
   6695   count_steps_sort {
   6696      SELECT a FROM t3
   6697       WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
   6698          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   6699          OR ((a BETWEEN 96 AND 98) AND a!=97)
   6700          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   6701          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   6702   }
   6703 } {4 19 52 76 96 98 scan 0 sort 0}
   6704 do_test where7-2.292.1 {
   6705   count_steps_sort {
   6706      SELECT a FROM t2
   6707       WHERE b=102
   6708          OR c=6006
   6709          OR b=231
   6710          OR b=212
   6711          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   6712          OR (g='gfedcba' AND f GLOB 'klmno*')
   6713          OR c=30030
   6714          OR (g='onmlkji' AND f GLOB 'abcde*')
   6715   }
   6716 } {16 17 18 21 36 52 88 89 90 scan 0 sort 0}
   6717 do_test where7-2.292.2 {
   6718   count_steps_sort {
   6719      SELECT a FROM t3
   6720       WHERE b=102
   6721          OR c=6006
   6722          OR b=231
   6723          OR b=212
   6724          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   6725          OR (g='gfedcba' AND f GLOB 'klmno*')
   6726          OR c=30030
   6727          OR (g='onmlkji' AND f GLOB 'abcde*')
   6728   }
   6729 } {16 17 18 21 36 52 88 89 90 scan 0 sort 0}
   6730 do_test where7-2.293.1 {
   6731   count_steps_sort {
   6732      SELECT a FROM t2
   6733       WHERE a=47
   6734          OR a=82
   6735          OR c=25025
   6736          OR ((a BETWEEN 40 AND 42) AND a!=41)
   6737          OR f='qrstuvwxy'
   6738          OR a=5
   6739   }
   6740 } {5 16 40 42 47 68 73 74 75 82 94 scan 0 sort 0}
   6741 do_test where7-2.293.2 {
   6742   count_steps_sort {
   6743      SELECT a FROM t3
   6744       WHERE a=47
   6745          OR a=82
   6746          OR c=25025
   6747          OR ((a BETWEEN 40 AND 42) AND a!=41)
   6748          OR f='qrstuvwxy'
   6749          OR a=5
   6750   }
   6751 } {5 16 40 42 47 68 73 74 75 82 94 scan 0 sort 0}
   6752 do_test where7-2.294.1 {
   6753   count_steps_sort {
   6754      SELECT a FROM t2
   6755       WHERE b=429
   6756          OR a=30
   6757          OR f='vwxyzabcd'
   6758          OR b=762
   6759          OR a=60
   6760          OR (g='srqponm' AND f GLOB 'efghi*')
   6761          OR (g='xwvutsr' AND f GLOB 'efghi*')
   6762   }
   6763 } {4 21 30 39 47 60 73 99 scan 0 sort 0}
   6764 do_test where7-2.294.2 {
   6765   count_steps_sort {
   6766      SELECT a FROM t3
   6767       WHERE b=429
   6768          OR a=30
   6769          OR f='vwxyzabcd'
   6770          OR b=762
   6771          OR a=60
   6772          OR (g='srqponm' AND f GLOB 'efghi*')
   6773          OR (g='xwvutsr' AND f GLOB 'efghi*')
   6774   }
   6775 } {4 21 30 39 47 60 73 99 scan 0 sort 0}
   6776 do_test where7-2.295.1 {
   6777   count_steps_sort {
   6778      SELECT a FROM t2
   6779       WHERE (g='mlkjihg' AND f GLOB 'ghijk*')
   6780          OR a=3
   6781          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   6782          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   6783          OR b=498
   6784          OR a=100
   6785          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   6786          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   6787          OR a=69
   6788   }
   6789 } {3 13 31 39 58 63 65 69 91 100 scan 0 sort 0}
   6790 do_test where7-2.295.2 {
   6791   count_steps_sort {
   6792      SELECT a FROM t3
   6793       WHERE (g='mlkjihg' AND f GLOB 'ghijk*')
   6794          OR a=3
   6795          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   6796          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   6797          OR b=498
   6798          OR a=100
   6799          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   6800          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   6801          OR a=69
   6802   }
   6803 } {3 13 31 39 58 63 65 69 91 100 scan 0 sort 0}
   6804 do_test where7-2.296.1 {
   6805   count_steps_sort {
   6806      SELECT a FROM t2
   6807       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   6808          OR b=300
   6809          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   6810          OR b=58
   6811          OR ((a BETWEEN 55 AND 57) AND a!=56)
   6812          OR (g='nmlkjih' AND f GLOB 'defgh*')
   6813          OR b=286
   6814          OR b=234
   6815          OR ((a BETWEEN 43 AND 45) AND a!=44)
   6816          OR f='ghijklmno'
   6817          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   6818   }
   6819 } {6 7 26 32 43 45 55 57 58 82 84 scan 0 sort 0}
   6820 do_test where7-2.296.2 {
   6821   count_steps_sort {
   6822      SELECT a FROM t3
   6823       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   6824          OR b=300
   6825          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   6826          OR b=58
   6827          OR ((a BETWEEN 55 AND 57) AND a!=56)
   6828          OR (g='nmlkjih' AND f GLOB 'defgh*')
   6829          OR b=286
   6830          OR b=234
   6831          OR ((a BETWEEN 43 AND 45) AND a!=44)
   6832          OR f='ghijklmno'
   6833          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   6834   }
   6835 } {6 7 26 32 43 45 55 57 58 82 84 scan 0 sort 0}
   6836 do_test where7-2.297.1 {
   6837   count_steps_sort {
   6838      SELECT a FROM t2
   6839       WHERE a=95
   6840          OR ((a BETWEEN 72 AND 74) AND a!=73)
   6841          OR ((a BETWEEN 23 AND 25) AND a!=24)
   6842          OR b=594
   6843          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   6844          OR ((a BETWEEN 37 AND 39) AND a!=38)
   6845          OR ((a BETWEEN 56 AND 58) AND a!=57)
   6846          OR ((a BETWEEN 18 AND 20) AND a!=19)
   6847          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   6848          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   6849          OR ((a BETWEEN 53 AND 55) AND a!=54)
   6850   }
   6851 } {5 7 18 20 23 25 31 33 37 39 45 53 54 55 56 57 58 59 72 74 83 85 95 scan 0 sort 0}
   6852 do_test where7-2.297.2 {
   6853   count_steps_sort {
   6854      SELECT a FROM t3
   6855       WHERE a=95
   6856          OR ((a BETWEEN 72 AND 74) AND a!=73)
   6857          OR ((a BETWEEN 23 AND 25) AND a!=24)
   6858          OR b=594
   6859          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   6860          OR ((a BETWEEN 37 AND 39) AND a!=38)
   6861          OR ((a BETWEEN 56 AND 58) AND a!=57)
   6862          OR ((a BETWEEN 18 AND 20) AND a!=19)
   6863          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   6864          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   6865          OR ((a BETWEEN 53 AND 55) AND a!=54)
   6866   }
   6867 } {5 7 18 20 23 25 31 33 37 39 45 53 54 55 56 57 58 59 72 74 83 85 95 scan 0 sort 0}
   6868 do_test where7-2.298.1 {
   6869   count_steps_sort {
   6870      SELECT a FROM t2
   6871       WHERE b=949
   6872          OR (g='xwvutsr' AND f GLOB 'fghij*')
   6873          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   6874   }
   6875 } {5 14 scan 0 sort 0}
   6876 do_test where7-2.298.2 {
   6877   count_steps_sort {
   6878      SELECT a FROM t3
   6879       WHERE b=949
   6880          OR (g='xwvutsr' AND f GLOB 'fghij*')
   6881          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   6882   }
   6883 } {5 14 scan 0 sort 0}
   6884 do_test where7-2.299.1 {
   6885   count_steps_sort {
   6886      SELECT a FROM t2
   6887       WHERE b=960
   6888          OR a=44
   6889          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   6890          OR a=39
   6891          OR b=828
   6892          OR ((a BETWEEN 3 AND 5) AND a!=4)
   6893          OR d<0.0
   6894          OR b=770
   6895          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6896          OR b=594
   6897          OR ((a BETWEEN 89 AND 91) AND a!=90)
   6898   }
   6899 } {3 5 6 18 39 44 54 70 89 91 96 scan 0 sort 0}
   6900 do_test where7-2.299.2 {
   6901   count_steps_sort {
   6902      SELECT a FROM t3
   6903       WHERE b=960
   6904          OR a=44
   6905          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   6906          OR a=39
   6907          OR b=828
   6908          OR ((a BETWEEN 3 AND 5) AND a!=4)
   6909          OR d<0.0
   6910          OR b=770
   6911          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6912          OR b=594
   6913          OR ((a BETWEEN 89 AND 91) AND a!=90)
   6914   }
   6915 } {3 5 6 18 39 44 54 70 89 91 96 scan 0 sort 0}
   6916 do_test where7-2.300.1 {
   6917   count_steps_sort {
   6918      SELECT a FROM t2
   6919       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   6920          OR b=198
   6921          OR a=51
   6922          OR b=1056
   6923          OR b=748
   6924          OR ((a BETWEEN 9 AND 11) AND a!=10)
   6925   }
   6926 } {9 11 18 40 42 51 68 96 scan 0 sort 0}
   6927 do_test where7-2.300.2 {
   6928   count_steps_sort {
   6929      SELECT a FROM t3
   6930       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   6931          OR b=198
   6932          OR a=51
   6933          OR b=1056
   6934          OR b=748
   6935          OR ((a BETWEEN 9 AND 11) AND a!=10)
   6936   }
   6937 } {9 11 18 40 42 51 68 96 scan 0 sort 0}
   6938 do_test where7-2.301.1 {
   6939   count_steps_sort {
   6940      SELECT a FROM t2
   6941       WHERE b=1081
   6942          OR ((a BETWEEN 66 AND 68) AND a!=67)
   6943          OR b=1004
   6944          OR (g='gfedcba' AND f GLOB 'nopqr*')
   6945          OR ((a BETWEEN 29 AND 31) AND a!=30)
   6946          OR b=660
   6947          OR b=957
   6948          OR b=869
   6949   }
   6950 } {29 31 60 66 68 79 87 91 scan 0 sort 0}
   6951 do_test where7-2.301.2 {
   6952   count_steps_sort {
   6953      SELECT a FROM t3
   6954       WHERE b=1081
   6955          OR ((a BETWEEN 66 AND 68) AND a!=67)
   6956          OR b=1004
   6957          OR (g='gfedcba' AND f GLOB 'nopqr*')
   6958          OR ((a BETWEEN 29 AND 31) AND a!=30)
   6959          OR b=660
   6960          OR b=957
   6961          OR b=869
   6962   }
   6963 } {29 31 60 66 68 79 87 91 scan 0 sort 0}
   6964 do_test where7-2.302.1 {
   6965   count_steps_sort {
   6966      SELECT a FROM t2
   6967       WHERE b=927
   6968          OR c=12012
   6969          OR f='yzabcdefg'
   6970          OR b=880
   6971          OR a=63
   6972          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   6973          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   6974          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   6975   }
   6976 } {24 34 35 36 44 50 58 63 76 80 86 scan 0 sort 0}
   6977 do_test where7-2.302.2 {
   6978   count_steps_sort {
   6979      SELECT a FROM t3
   6980       WHERE b=927
   6981          OR c=12012
   6982          OR f='yzabcdefg'
   6983          OR b=880
   6984          OR a=63
   6985          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   6986          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   6987          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   6988   }
   6989 } {24 34 35 36 44 50 58 63 76 80 86 scan 0 sort 0}
   6990 do_test where7-2.303.1 {
   6991   count_steps_sort {
   6992      SELECT a FROM t2
   6993       WHERE a=69
   6994          OR b=1103
   6995          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   6996          OR f='wxyzabcde'
   6997          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   6998          OR (g='gfedcba' AND f GLOB 'klmno*')
   6999          OR f='pqrstuvwx'
   7000          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   7001          OR a=59
   7002          OR b=946
   7003   }
   7004 } {15 18 22 26 41 44 48 52 59 67 69 70 73 74 78 86 88 93 96 100 scan 0 sort 0}
   7005 do_test where7-2.303.2 {
   7006   count_steps_sort {
   7007      SELECT a FROM t3
   7008       WHERE a=69
   7009          OR b=1103
   7010          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   7011          OR f='wxyzabcde'
   7012          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   7013          OR (g='gfedcba' AND f GLOB 'klmno*')
   7014          OR f='pqrstuvwx'
   7015          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   7016          OR a=59
   7017          OR b=946
   7018   }
   7019 } {15 18 22 26 41 44 48 52 59 67 69 70 73 74 78 86 88 93 96 100 scan 0 sort 0}
   7020 do_test where7-2.304.1 {
   7021   count_steps_sort {
   7022      SELECT a FROM t2
   7023       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   7024          OR (g='jihgfed' AND f GLOB 'xyzab*')
   7025          OR a=68
   7026          OR ((a BETWEEN 14 AND 16) AND a!=15)
   7027   }
   7028 } {14 16 47 68 75 scan 0 sort 0}
   7029 do_test where7-2.304.2 {
   7030   count_steps_sort {
   7031      SELECT a FROM t3
   7032       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   7033          OR (g='jihgfed' AND f GLOB 'xyzab*')
   7034          OR a=68
   7035          OR ((a BETWEEN 14 AND 16) AND a!=15)
   7036   }
   7037 } {14 16 47 68 75 scan 0 sort 0}
   7038 do_test where7-2.305.1 {
   7039   count_steps_sort {
   7040      SELECT a FROM t2
   7041       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   7042          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   7043   }
   7044 } {10 63 scan 0 sort 0}
   7045 do_test where7-2.305.2 {
   7046   count_steps_sort {
   7047      SELECT a FROM t3
   7048       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   7049          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   7050   }
   7051 } {10 63 scan 0 sort 0}
   7052 do_test where7-2.306.1 {
   7053   count_steps_sort {
   7054      SELECT a FROM t2
   7055       WHERE a=32
   7056          OR ((a BETWEEN 15 AND 17) AND a!=16)
   7057          OR ((a BETWEEN 92 AND 94) AND a!=93)
   7058          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   7059          OR c=7007
   7060          OR b=968
   7061          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   7062   }
   7063 } {15 17 18 19 20 21 32 86 88 92 94 scan 0 sort 0}
   7064 do_test where7-2.306.2 {
   7065   count_steps_sort {
   7066      SELECT a FROM t3
   7067       WHERE a=32
   7068          OR ((a BETWEEN 15 AND 17) AND a!=16)
   7069          OR ((a BETWEEN 92 AND 94) AND a!=93)
   7070          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   7071          OR c=7007
   7072          OR b=968
   7073          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   7074   }
   7075 } {15 17 18 19 20 21 32 86 88 92 94 scan 0 sort 0}
   7076 do_test where7-2.307.1 {
   7077   count_steps_sort {
   7078      SELECT a FROM t2
   7079       WHERE f='cdefghijk'
   7080          OR b=1103
   7081   }
   7082 } {2 28 54 80 scan 0 sort 0}
   7083 do_test where7-2.307.2 {
   7084   count_steps_sort {
   7085      SELECT a FROM t3
   7086       WHERE f='cdefghijk'
   7087          OR b=1103
   7088   }
   7089 } {2 28 54 80 scan 0 sort 0}
   7090 do_test where7-2.308.1 {
   7091   count_steps_sort {
   7092      SELECT a FROM t2
   7093       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   7094          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   7095          OR c=14014
   7096          OR b=990
   7097          OR (g='nmlkjih' AND f GLOB 'efghi*')
   7098          OR c=14014
   7099          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   7100          OR b=740
   7101          OR c=3003
   7102   }
   7103 } {7 8 9 13 14 21 23 40 41 42 56 90 scan 0 sort 0}
   7104 do_test where7-2.308.2 {
   7105   count_steps_sort {
   7106      SELECT a FROM t3
   7107       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   7108          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   7109          OR c=14014
   7110          OR b=990
   7111          OR (g='nmlkjih' AND f GLOB 'efghi*')
   7112          OR c=14014
   7113          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   7114          OR b=740
   7115          OR c=3003
   7116   }
   7117 } {7 8 9 13 14 21 23 40 41 42 56 90 scan 0 sort 0}
   7118 do_test where7-2.309.1 {
   7119   count_steps_sort {
   7120      SELECT a FROM t2
   7121       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   7122          OR a=67
   7123          OR b=135
   7124          OR f='bcdefghij'
   7125          OR b=924
   7126          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   7127   }
   7128 } {1 22 27 53 60 67 79 84 scan 0 sort 0}
   7129 do_test where7-2.309.2 {
   7130   count_steps_sort {
   7131      SELECT a FROM t3
   7132       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   7133          OR a=67
   7134          OR b=135
   7135          OR f='bcdefghij'
   7136          OR b=924
   7137          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   7138   }
   7139 } {1 22 27 53 60 67 79 84 scan 0 sort 0}
   7140 do_test where7-2.310.1 {
   7141   count_steps_sort {
   7142      SELECT a FROM t2
   7143       WHERE a=96
   7144          OR a=13
   7145   }
   7146 } {13 96 scan 0 sort 0}
   7147 do_test where7-2.310.2 {
   7148   count_steps_sort {
   7149      SELECT a FROM t3
   7150       WHERE a=96
   7151          OR a=13
   7152   }
   7153 } {13 96 scan 0 sort 0}
   7154 do_test where7-2.311.1 {
   7155   count_steps_sort {
   7156      SELECT a FROM t2
   7157       WHERE ((a BETWEEN 34 AND 36) AND a!=35)
   7158          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   7159          OR ((a BETWEEN 35 AND 37) AND a!=36)
   7160          OR a=49
   7161          OR a=38
   7162          OR b=157
   7163          OR a=4
   7164          OR b=311
   7165          OR ((a BETWEEN 97 AND 99) AND a!=98)
   7166          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   7167          OR b=396
   7168   }
   7169 } {4 27 34 35 36 37 38 49 50 97 99 scan 0 sort 0}
   7170 do_test where7-2.311.2 {
   7171   count_steps_sort {
   7172      SELECT a FROM t3
   7173       WHERE ((a BETWEEN 34 AND 36) AND a!=35)
   7174          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   7175          OR ((a BETWEEN 35 AND 37) AND a!=36)
   7176          OR a=49
   7177          OR a=38
   7178          OR b=157
   7179          OR a=4
   7180          OR b=311
   7181          OR ((a BETWEEN 97 AND 99) AND a!=98)
   7182          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   7183          OR b=396
   7184   }
   7185 } {4 27 34 35 36 37 38 49 50 97 99 scan 0 sort 0}
   7186 do_test where7-2.312.1 {
   7187   count_steps_sort {
   7188      SELECT a FROM t2
   7189       WHERE a=82
   7190          OR b=333
   7191          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   7192          OR b=99
   7193          OR a=63
   7194          OR a=35
   7195          OR b=176
   7196   }
   7197 } {9 16 22 35 48 63 74 82 100 scan 0 sort 0}
   7198 do_test where7-2.312.2 {
   7199   count_steps_sort {
   7200      SELECT a FROM t3
   7201       WHERE a=82
   7202          OR b=333
   7203          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   7204          OR b=99
   7205          OR a=63
   7206          OR a=35
   7207          OR b=176
   7208   }
   7209 } {9 16 22 35 48 63 74 82 100 scan 0 sort 0}
   7210 do_test where7-2.313.1 {
   7211   count_steps_sort {
   7212      SELECT a FROM t2
   7213       WHERE a=90
   7214          OR a=81
   7215          OR ((a BETWEEN 51 AND 53) AND a!=52)
   7216          OR f='mnopqrstu'
   7217          OR b=927
   7218          OR b=311
   7219          OR a=34
   7220          OR b=715
   7221          OR f='rstuvwxyz'
   7222   }
   7223 } {12 17 34 38 43 51 53 64 65 69 81 90 95 scan 0 sort 0}
   7224 do_test where7-2.313.2 {
   7225   count_steps_sort {
   7226      SELECT a FROM t3
   7227       WHERE a=90
   7228          OR a=81
   7229          OR ((a BETWEEN 51 AND 53) AND a!=52)
   7230          OR f='mnopqrstu'
   7231          OR b=927
   7232          OR b=311
   7233          OR a=34
   7234          OR b=715
   7235          OR f='rstuvwxyz'
   7236   }
   7237 } {12 17 34 38 43 51 53 64 65 69 81 90 95 scan 0 sort 0}
   7238 do_test where7-2.314.1 {
   7239   count_steps_sort {
   7240      SELECT a FROM t2
   7241       WHERE b=484
   7242          OR ((a BETWEEN 10 AND 12) AND a!=11)
   7243          OR f='lmnopqrst'
   7244          OR ((a BETWEEN 37 AND 39) AND a!=38)
   7245          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   7246          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   7247          OR b<0
   7248          OR b=231
   7249          OR a=14
   7250   }
   7251 } {7 10 11 12 14 21 37 39 44 63 64 89 scan 0 sort 0}
   7252 do_test where7-2.314.2 {
   7253   count_steps_sort {
   7254      SELECT a FROM t3
   7255       WHERE b=484
   7256          OR ((a BETWEEN 10 AND 12) AND a!=11)
   7257          OR f='lmnopqrst'
   7258          OR ((a BETWEEN 37 AND 39) AND a!=38)
   7259          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   7260          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   7261          OR b<0
   7262          OR b=231
   7263          OR a=14
   7264   }
   7265 } {7 10 11 12 14 21 37 39 44 63 64 89 scan 0 sort 0}
   7266 do_test where7-2.315.1 {
   7267   count_steps_sort {
   7268      SELECT a FROM t2
   7269       WHERE b=905
   7270          OR f='hijklmnop'
   7271          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7272          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   7273          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7274          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   7275          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   7276          OR b=817
   7277          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   7278   }
   7279 } {7 11 20 22 26 33 37 45 59 63 80 85 89 scan 0 sort 0}
   7280 do_test where7-2.315.2 {
   7281   count_steps_sort {
   7282      SELECT a FROM t3
   7283       WHERE b=905
   7284          OR f='hijklmnop'
   7285          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7286          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   7287          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7288          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   7289          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   7290          OR b=817
   7291          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   7292   }
   7293 } {7 11 20 22 26 33 37 45 59 63 80 85 89 scan 0 sort 0}
   7294 do_test where7-2.316.1 {
   7295   count_steps_sort {
   7296      SELECT a FROM t2
   7297       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   7298          OR b=311
   7299          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   7300          OR a=48
   7301          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   7302          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   7303          OR c=32032
   7304          OR f='opqrstuvw'
   7305          OR b=300
   7306          OR b=1001
   7307          OR ((a BETWEEN 94 AND 96) AND a!=95)
   7308   }
   7309 } {14 40 43 47 48 61 66 85 91 92 94 95 96 scan 0 sort 0}
   7310 do_test where7-2.316.2 {
   7311   count_steps_sort {
   7312      SELECT a FROM t3
   7313       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   7314          OR b=311
   7315          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   7316          OR a=48
   7317          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   7318          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   7319          OR c=32032
   7320          OR f='opqrstuvw'
   7321          OR b=300
   7322          OR b=1001
   7323          OR ((a BETWEEN 94 AND 96) AND a!=95)
   7324   }
   7325 } {14 40 43 47 48 61 66 85 91 92 94 95 96 scan 0 sort 0}
   7326 do_test where7-2.317.1 {
   7327   count_steps_sort {
   7328      SELECT a FROM t2
   7329       WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
   7330          OR b=1070
   7331          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   7332          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7333          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   7334          OR a=22
   7335          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   7336          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   7337          OR f='tuvwxyzab'
   7338          OR a=72
   7339          OR ((a BETWEEN 53 AND 55) AND a!=54)
   7340   }
   7341 } {11 19 22 45 53 55 61 71 72 95 97 99 scan 0 sort 0}
   7342 do_test where7-2.317.2 {
   7343   count_steps_sort {
   7344      SELECT a FROM t3
   7345       WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
   7346          OR b=1070
   7347          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   7348          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7349          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   7350          OR a=22
   7351          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   7352          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   7353          OR f='tuvwxyzab'
   7354          OR a=72
   7355          OR ((a BETWEEN 53 AND 55) AND a!=54)
   7356   }
   7357 } {11 19 22 45 53 55 61 71 72 95 97 99 scan 0 sort 0}
   7358 do_test where7-2.318.1 {
   7359   count_steps_sort {
   7360      SELECT a FROM t2
   7361       WHERE (d>=8.0 AND d<9.0 AND d NOT NULL)
   7362          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   7363          OR a=21
   7364          OR b=1026
   7365          OR ((a BETWEEN 34 AND 36) AND a!=35)
   7366          OR b=473
   7367   }
   7368 } {8 16 21 34 36 43 scan 0 sort 0}
   7369 do_test where7-2.318.2 {
   7370   count_steps_sort {
   7371      SELECT a FROM t3
   7372       WHERE (d>=8.0 AND d<9.0 AND d NOT NULL)
   7373          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   7374          OR a=21
   7375          OR b=1026
   7376          OR ((a BETWEEN 34 AND 36) AND a!=35)
   7377          OR b=473
   7378   }
   7379 } {8 16 21 34 36 43 scan 0 sort 0}
   7380 do_test where7-2.319.1 {
   7381   count_steps_sort {
   7382      SELECT a FROM t2
   7383       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   7384          OR ((a BETWEEN 43 AND 45) AND a!=44)
   7385          OR a=100
   7386          OR a=29
   7387          OR c=15015
   7388          OR a=87
   7389          OR (g='gfedcba' AND f GLOB 'klmno*')
   7390   }
   7391 } {29 43 44 45 71 73 87 88 100 scan 0 sort 0}
   7392 do_test where7-2.319.2 {
   7393   count_steps_sort {
   7394      SELECT a FROM t3
   7395       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   7396          OR ((a BETWEEN 43 AND 45) AND a!=44)
   7397          OR a=100
   7398          OR a=29
   7399          OR c=15015
   7400          OR a=87
   7401          OR (g='gfedcba' AND f GLOB 'klmno*')
   7402   }
   7403 } {29 43 44 45 71 73 87 88 100 scan 0 sort 0}
   7404 do_test where7-2.320.1 {
   7405   count_steps_sort {
   7406      SELECT a FROM t2
   7407       WHERE (d>=1.0 AND d<2.0 AND d NOT NULL)
   7408          OR b=542
   7409          OR b=638
   7410   }
   7411 } {1 58 scan 0 sort 0}
   7412 do_test where7-2.320.2 {
   7413   count_steps_sort {
   7414      SELECT a FROM t3
   7415       WHERE (d>=1.0 AND d<2.0 AND d NOT NULL)
   7416          OR b=542
   7417          OR b=638
   7418   }
   7419 } {1 58 scan 0 sort 0}
   7420 do_test where7-2.321.1 {
   7421   count_steps_sort {
   7422      SELECT a FROM t2
   7423       WHERE ((a BETWEEN 5 AND 7) AND a!=6)
   7424          OR b=1070
   7425          OR a=91
   7426          OR b=1015
   7427          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   7428          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7429          OR ((a BETWEEN 91 AND 93) AND a!=92)
   7430   }
   7431 } {5 7 12 80 91 93 scan 0 sort 0}
   7432 do_test where7-2.321.2 {
   7433   count_steps_sort {
   7434      SELECT a FROM t3
   7435       WHERE ((a BETWEEN 5 AND 7) AND a!=6)
   7436          OR b=1070
   7437          OR a=91
   7438          OR b=1015
   7439          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   7440          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7441          OR ((a BETWEEN 91 AND 93) AND a!=92)
   7442   }
   7443 } {5 7 12 80 91 93 scan 0 sort 0}
   7444 do_test where7-2.322.1 {
   7445   count_steps_sort {
   7446      SELECT a FROM t2
   7447       WHERE a=7
   7448          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   7449          OR b=1015
   7450          OR b=839
   7451          OR (g='rqponml' AND f GLOB 'klmno*')
   7452          OR b=410
   7453          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   7454          OR a=71
   7455   }
   7456 } {1 2 7 28 36 54 71 80 scan 0 sort 0}
   7457 do_test where7-2.322.2 {
   7458   count_steps_sort {
   7459      SELECT a FROM t3
   7460       WHERE a=7
   7461          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   7462          OR b=1015
   7463          OR b=839
   7464          OR (g='rqponml' AND f GLOB 'klmno*')
   7465          OR b=410
   7466          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   7467          OR a=71
   7468   }
   7469 } {1 2 7 28 36 54 71 80 scan 0 sort 0}
   7470 do_test where7-2.323.1 {
   7471   count_steps_sort {
   7472      SELECT a FROM t2
   7473       WHERE b=880
   7474          OR b=982
   7475          OR a=52
   7476          OR (g='onmlkji' AND f GLOB 'abcde*')
   7477          OR a=24
   7478          OR ((a BETWEEN 47 AND 49) AND a!=48)
   7479          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   7480          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7481          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   7482   }
   7483 } {24 47 49 50 52 60 76 80 scan 0 sort 0}
   7484 do_test where7-2.323.2 {
   7485   count_steps_sort {
   7486      SELECT a FROM t3
   7487       WHERE b=880
   7488          OR b=982
   7489          OR a=52
   7490          OR (g='onmlkji' AND f GLOB 'abcde*')
   7491          OR a=24
   7492          OR ((a BETWEEN 47 AND 49) AND a!=48)
   7493          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   7494          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   7495          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   7496   }
   7497 } {24 47 49 50 52 60 76 80 scan 0 sort 0}
   7498 do_test where7-2.324.1 {
   7499   count_steps_sort {
   7500      SELECT a FROM t2
   7501       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   7502          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   7503          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   7504          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   7505   }
   7506 } {5 22 31 57 67 69 83 scan 0 sort 0}
   7507 do_test where7-2.324.2 {
   7508   count_steps_sort {
   7509      SELECT a FROM t3
   7510       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   7511          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   7512          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   7513          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   7514   }
   7515 } {5 22 31 57 67 69 83 scan 0 sort 0}
   7516 do_test where7-2.325.1 {
   7517   count_steps_sort {
   7518      SELECT a FROM t2
   7519       WHERE f='abcdefghi'
   7520          OR a=5
   7521          OR b=124
   7522          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   7523          OR b=432
   7524          OR 1000000<b
   7525          OR a=58
   7526          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7527          OR b=77
   7528          OR b=605
   7529   }
   7530 } {5 7 26 45 52 55 58 69 78 scan 0 sort 0}
   7531 do_test where7-2.325.2 {
   7532   count_steps_sort {
   7533      SELECT a FROM t3
   7534       WHERE f='abcdefghi'
   7535          OR a=5
   7536          OR b=124
   7537          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   7538          OR b=432
   7539          OR 1000000<b
   7540          OR a=58
   7541          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   7542          OR b=77
   7543          OR b=605
   7544   }
   7545 } {5 7 26 45 52 55 58 69 78 scan 0 sort 0}
   7546 do_test where7-2.326.1 {
   7547   count_steps_sort {
   7548      SELECT a FROM t2
   7549       WHERE (d>=89.0 AND d<90.0 AND d NOT NULL)
   7550          OR b=583
   7551          OR a=62
   7552   }
   7553 } {53 62 89 scan 0 sort 0}
   7554 do_test where7-2.326.2 {
   7555   count_steps_sort {
   7556      SELECT a FROM t3
   7557       WHERE (d>=89.0 AND d<90.0 AND d NOT NULL)
   7558          OR b=583
   7559          OR a=62
   7560   }
   7561 } {53 62 89 scan 0 sort 0}
   7562 do_test where7-2.327.1 {
   7563   count_steps_sort {
   7564      SELECT a FROM t2
   7565       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   7566          OR f='pqrstuvwx'
   7567          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   7568          OR b=278
   7569          OR a=10
   7570          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   7571          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   7572          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7573          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   7574          OR f='uvwxyzabc'
   7575   }
   7576 } {5 10 15 20 28 41 46 54 63 65 67 68 72 84 86 93 98 scan 0 sort 0}
   7577 do_test where7-2.327.2 {
   7578   count_steps_sort {
   7579      SELECT a FROM t3
   7580       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   7581          OR f='pqrstuvwx'
   7582          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   7583          OR b=278
   7584          OR a=10
   7585          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   7586          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   7587          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7588          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   7589          OR f='uvwxyzabc'
   7590   }
   7591 } {5 10 15 20 28 41 46 54 63 65 67 68 72 84 86 93 98 scan 0 sort 0}
   7592 do_test where7-2.328.1 {
   7593   count_steps_sort {
   7594      SELECT a FROM t2
   7595       WHERE ((a BETWEEN 57 AND 59) AND a!=58)
   7596          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   7597          OR b=564
   7598          OR (g='gfedcba' AND f GLOB 'mnopq*')
   7599          OR ((a BETWEEN 56 AND 58) AND a!=57)
   7600          OR b=77
   7601          OR (g='nmlkjih' AND f GLOB 'efghi*')
   7602          OR b=968
   7603          OR b=847
   7604          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   7605          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   7606   }
   7607 } {7 14 40 56 57 58 59 66 77 85 88 90 92 scan 0 sort 0}
   7608 do_test where7-2.328.2 {
   7609   count_steps_sort {
   7610      SELECT a FROM t3
   7611       WHERE ((a BETWEEN 57 AND 59) AND a!=58)
   7612          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   7613          OR b=564
   7614          OR (g='gfedcba' AND f GLOB 'mnopq*')
   7615          OR ((a BETWEEN 56 AND 58) AND a!=57)
   7616          OR b=77
   7617          OR (g='nmlkjih' AND f GLOB 'efghi*')
   7618          OR b=968
   7619          OR b=847
   7620          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   7621          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   7622   }
   7623 } {7 14 40 56 57 58 59 66 77 85 88 90 92 scan 0 sort 0}
   7624 do_test where7-2.329.1 {
   7625   count_steps_sort {
   7626      SELECT a FROM t2
   7627       WHERE b=539
   7628          OR b=594
   7629          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7630          OR f='abcdefghi'
   7631          OR a=6
   7632          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   7633          OR b=762
   7634   }
   7635 } {6 17 26 49 52 54 63 65 78 scan 0 sort 0}
   7636 do_test where7-2.329.2 {
   7637   count_steps_sort {
   7638      SELECT a FROM t3
   7639       WHERE b=539
   7640          OR b=594
   7641          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7642          OR f='abcdefghi'
   7643          OR a=6
   7644          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   7645          OR b=762
   7646   }
   7647 } {6 17 26 49 52 54 63 65 78 scan 0 sort 0}
   7648 do_test where7-2.330.1 {
   7649   count_steps_sort {
   7650      SELECT a FROM t2
   7651       WHERE b=869
   7652          OR b=630
   7653   }
   7654 } {79 scan 0 sort 0}
   7655 do_test where7-2.330.2 {
   7656   count_steps_sort {
   7657      SELECT a FROM t3
   7658       WHERE b=869
   7659          OR b=630
   7660   }
   7661 } {79 scan 0 sort 0}
   7662 do_test where7-2.331.1 {
   7663   count_steps_sort {
   7664      SELECT a FROM t2
   7665       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
   7666          OR b=693
   7667          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   7668          OR b=968
   7669          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7670          OR b=132
   7671          OR f='nopqrstuv'
   7672          OR ((a BETWEEN 28 AND 30) AND a!=29)
   7673   }
   7674 } {12 13 28 30 39 63 65 72 86 88 91 scan 0 sort 0}
   7675 do_test where7-2.331.2 {
   7676   count_steps_sort {
   7677      SELECT a FROM t3
   7678       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
   7679          OR b=693
   7680          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   7681          OR b=968
   7682          OR ((a BETWEEN 63 AND 65) AND a!=64)
   7683          OR b=132
   7684          OR f='nopqrstuv'
   7685          OR ((a BETWEEN 28 AND 30) AND a!=29)
   7686   }
   7687 } {12 13 28 30 39 63 65 72 86 88 91 scan 0 sort 0}
   7688 do_test where7-2.332.1 {
   7689   count_steps_sort {
   7690      SELECT a FROM t2
   7691       WHERE c=32032
   7692          OR b=814
   7693          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   7694          OR b=814
   7695          OR a=78
   7696          OR a=37
   7697   }
   7698 } {37 74 78 90 94 95 96 scan 0 sort 0}
   7699 do_test where7-2.332.2 {
   7700   count_steps_sort {
   7701      SELECT a FROM t3
   7702       WHERE c=32032
   7703          OR b=814
   7704          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   7705          OR b=814
   7706          OR a=78
   7707          OR a=37
   7708   }
   7709 } {37 74 78 90 94 95 96 scan 0 sort 0}
   7710 do_test where7-2.333.1 {
   7711   count_steps_sort {
   7712      SELECT a FROM t2
   7713       WHERE b=190
   7714          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   7715          OR b=924
   7716          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   7717          OR b=759
   7718          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   7719   }
   7720 } {1 40 59 69 84 scan 0 sort 0}
   7721 do_test where7-2.333.2 {
   7722   count_steps_sort {
   7723      SELECT a FROM t3
   7724       WHERE b=190
   7725          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   7726          OR b=924
   7727          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   7728          OR b=759
   7729          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   7730   }
   7731 } {1 40 59 69 84 scan 0 sort 0}
   7732 do_test where7-2.334.1 {
   7733   count_steps_sort {
   7734      SELECT a FROM t2
   7735       WHERE a=97
   7736          OR b=201
   7737          OR b=597
   7738          OR a=6
   7739          OR f='cdefghijk'
   7740          OR ((a BETWEEN 74 AND 76) AND a!=75)
   7741          OR b=300
   7742          OR b=693
   7743          OR b=333
   7744          OR b=740
   7745   }
   7746 } {2 6 28 54 63 74 76 80 97 scan 0 sort 0}
   7747 do_test where7-2.334.2 {
   7748   count_steps_sort {
   7749      SELECT a FROM t3
   7750       WHERE a=97
   7751          OR b=201
   7752          OR b=597
   7753          OR a=6
   7754          OR f='cdefghijk'
   7755          OR ((a BETWEEN 74 AND 76) AND a!=75)
   7756          OR b=300
   7757          OR b=693
   7758          OR b=333
   7759          OR b=740
   7760   }
   7761 } {2 6 28 54 63 74 76 80 97 scan 0 sort 0}
   7762 do_test where7-2.335.1 {
   7763   count_steps_sort {
   7764      SELECT a FROM t2
   7765       WHERE c=26026
   7766          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   7767          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   7768          OR c=17017
   7769          OR (g='jihgfed' AND f GLOB 'wxyza*')
   7770          OR (g='srqponm' AND f GLOB 'ghijk*')
   7771          OR (g='jihgfed' AND f GLOB 'zabcd*')
   7772          OR ((a BETWEEN 2 AND 4) AND a!=3)
   7773          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   7774   }
   7775 } {2 4 32 43 49 50 51 60 72 74 76 77 78 scan 0 sort 0}
   7776 do_test where7-2.335.2 {
   7777   count_steps_sort {
   7778      SELECT a FROM t3
   7779       WHERE c=26026
   7780          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   7781          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   7782          OR c=17017
   7783          OR (g='jihgfed' AND f GLOB 'wxyza*')
   7784          OR (g='srqponm' AND f GLOB 'ghijk*')
   7785          OR (g='jihgfed' AND f GLOB 'zabcd*')
   7786          OR ((a BETWEEN 2 AND 4) AND a!=3)
   7787          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   7788   }
   7789 } {2 4 32 43 49 50 51 60 72 74 76 77 78 scan 0 sort 0}
   7790 do_test where7-2.336.1 {
   7791   count_steps_sort {
   7792      SELECT a FROM t2
   7793       WHERE (d>=70.0 AND d<71.0 AND d NOT NULL)
   7794          OR ((a BETWEEN 13 AND 15) AND a!=14)
   7795          OR b=638
   7796          OR b=495
   7797          OR a=44
   7798          OR b=374
   7799          OR a=22
   7800          OR c=12012
   7801   }
   7802 } {13 15 22 34 35 36 44 45 58 70 scan 0 sort 0}
   7803 do_test where7-2.336.2 {
   7804   count_steps_sort {
   7805      SELECT a FROM t3
   7806       WHERE (d>=70.0 AND d<71.0 AND d NOT NULL)
   7807          OR ((a BETWEEN 13 AND 15) AND a!=14)
   7808          OR b=638
   7809          OR b=495
   7810          OR a=44
   7811          OR b=374
   7812          OR a=22
   7813          OR c=12012
   7814   }
   7815 } {13 15 22 34 35 36 44 45 58 70 scan 0 sort 0}
   7816 do_test where7-2.337.1 {
   7817   count_steps_sort {
   7818      SELECT a FROM t2
   7819       WHERE c=8008
   7820          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   7821          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   7822          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   7823          OR b=300
   7824          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   7825          OR a=41
   7826          OR (g='onmlkji' AND f GLOB 'xyzab*')
   7827          OR b=135
   7828          OR b=605
   7829   }
   7830 } {1 2 22 23 24 39 41 49 55 100 scan 0 sort 0}
   7831 do_test where7-2.337.2 {
   7832   count_steps_sort {
   7833      SELECT a FROM t3
   7834       WHERE c=8008
   7835          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   7836          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   7837          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   7838          OR b=300
   7839          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   7840          OR a=41
   7841          OR (g='onmlkji' AND f GLOB 'xyzab*')
   7842          OR b=135
   7843          OR b=605
   7844   }
   7845 } {1 2 22 23 24 39 41 49 55 100 scan 0 sort 0}
   7846 do_test where7-2.338.1 {
   7847   count_steps_sort {
   7848      SELECT a FROM t2
   7849       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
   7850          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   7851          OR (g='srqponm' AND f GLOB 'efghi*')
   7852          OR (g='qponmlk' AND f GLOB 'pqrst*')
   7853          OR b=762
   7854          OR b=484
   7855          OR b=190
   7856          OR ((a BETWEEN 95 AND 97) AND a!=96)
   7857          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   7858          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   7859          OR b=1023
   7860   }
   7861 } {4 17 30 41 43 44 56 61 69 74 82 93 95 97 scan 0 sort 0}
   7862 do_test where7-2.338.2 {
   7863   count_steps_sort {
   7864      SELECT a FROM t3
   7865       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
   7866          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   7867          OR (g='srqponm' AND f GLOB 'efghi*')
   7868          OR (g='qponmlk' AND f GLOB 'pqrst*')
   7869          OR b=762
   7870          OR b=484
   7871          OR b=190
   7872          OR ((a BETWEEN 95 AND 97) AND a!=96)
   7873          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   7874          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   7875          OR b=1023
   7876   }
   7877 } {4 17 30 41 43 44 56 61 69 74 82 93 95 97 scan 0 sort 0}
   7878 do_test where7-2.339.1 {
   7879   count_steps_sort {
   7880      SELECT a FROM t2
   7881       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   7882          OR a=34
   7883          OR f='rstuvwxyz'
   7884          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   7885          OR b=729
   7886   }
   7887 } {10 17 34 43 69 82 95 scan 0 sort 0}
   7888 do_test where7-2.339.2 {
   7889   count_steps_sort {
   7890      SELECT a FROM t3
   7891       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   7892          OR a=34
   7893          OR f='rstuvwxyz'
   7894          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   7895          OR b=729
   7896   }
   7897 } {10 17 34 43 69 82 95 scan 0 sort 0}
   7898 do_test where7-2.340.1 {
   7899   count_steps_sort {
   7900      SELECT a FROM t2
   7901       WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
   7902          OR b=1004
   7903          OR (g='qponmlk' AND f GLOB 'pqrst*')
   7904          OR g IS NULL
   7905   }
   7906 } {37 41 scan 0 sort 0}
   7907 do_test where7-2.340.2 {
   7908   count_steps_sort {
   7909      SELECT a FROM t3
   7910       WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
   7911          OR b=1004
   7912          OR (g='qponmlk' AND f GLOB 'pqrst*')
   7913          OR g IS NULL
   7914   }
   7915 } {37 41 scan 0 sort 0}
   7916 do_test where7-2.341.1 {
   7917   count_steps_sort {
   7918      SELECT a FROM t2
   7919       WHERE a=73
   7920          OR ((a BETWEEN 36 AND 38) AND a!=37)
   7921          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   7922          OR ((a BETWEEN 51 AND 53) AND a!=52)
   7923          OR a=9
   7924          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   7925          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   7926          OR a=44
   7927          OR a=23
   7928          OR (g='ihgfedc' AND f GLOB 'abcde*')
   7929          OR (g='rqponml' AND f GLOB 'lmnop*')
   7930   }
   7931 } {1 9 23 36 37 38 44 51 53 55 63 73 78 scan 0 sort 0}
   7932 do_test where7-2.341.2 {
   7933   count_steps_sort {
   7934      SELECT a FROM t3
   7935       WHERE a=73
   7936          OR ((a BETWEEN 36 AND 38) AND a!=37)
   7937          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   7938          OR ((a BETWEEN 51 AND 53) AND a!=52)
   7939          OR a=9
   7940          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   7941          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   7942          OR a=44
   7943          OR a=23
   7944          OR (g='ihgfedc' AND f GLOB 'abcde*')
   7945          OR (g='rqponml' AND f GLOB 'lmnop*')
   7946   }
   7947 } {1 9 23 36 37 38 44 51 53 55 63 73 78 scan 0 sort 0}
   7948 do_test where7-2.342.1 {
   7949   count_steps_sort {
   7950      SELECT a FROM t2
   7951       WHERE b=487
   7952          OR ((a BETWEEN 77 AND 79) AND a!=78)
   7953          OR a=11
   7954          OR ((a BETWEEN 12 AND 14) AND a!=13)
   7955          OR ((a BETWEEN 69 AND 71) AND a!=70)
   7956          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   7957          OR (g='ihgfedc' AND f GLOB 'abcde*')
   7958          OR a=13
   7959          OR a=15
   7960          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   7961          OR a=36
   7962   }
   7963 } {11 12 13 14 15 29 36 69 71 77 78 79 scan 0 sort 0}
   7964 do_test where7-2.342.2 {
   7965   count_steps_sort {
   7966      SELECT a FROM t3
   7967       WHERE b=487
   7968          OR ((a BETWEEN 77 AND 79) AND a!=78)
   7969          OR a=11
   7970          OR ((a BETWEEN 12 AND 14) AND a!=13)
   7971          OR ((a BETWEEN 69 AND 71) AND a!=70)
   7972          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   7973          OR (g='ihgfedc' AND f GLOB 'abcde*')
   7974          OR a=13
   7975          OR a=15
   7976          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   7977          OR a=36
   7978   }
   7979 } {11 12 13 14 15 29 36 69 71 77 78 79 scan 0 sort 0}
   7980 do_test where7-2.343.1 {
   7981   count_steps_sort {
   7982      SELECT a FROM t2
   7983       WHERE b=938
   7984          OR ((a BETWEEN 57 AND 59) AND a!=58)
   7985          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   7986          OR (d>=32.0 AND d<33.0 AND d NOT NULL)
   7987          OR b=245
   7988          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   7989   }
   7990 } {32 35 54 57 59 scan 0 sort 0}
   7991 do_test where7-2.343.2 {
   7992   count_steps_sort {
   7993      SELECT a FROM t3
   7994       WHERE b=938
   7995          OR ((a BETWEEN 57 AND 59) AND a!=58)
   7996          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   7997          OR (d>=32.0 AND d<33.0 AND d NOT NULL)
   7998          OR b=245
   7999          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   8000   }
   8001 } {32 35 54 57 59 scan 0 sort 0}
   8002 do_test where7-2.344.1 {
   8003   count_steps_sort {
   8004      SELECT a FROM t2
   8005       WHERE b=1078
   8006          OR c=19019
   8007          OR a=38
   8008          OR a=59
   8009          OR ((a BETWEEN 30 AND 32) AND a!=31)
   8010          OR ((a BETWEEN 95 AND 97) AND a!=96)
   8011          OR c=25025
   8012          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   8013          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   8014          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   8015   }
   8016 } {30 32 38 51 55 56 57 59 73 74 75 76 79 95 97 98 scan 0 sort 0}
   8017 do_test where7-2.344.2 {
   8018   count_steps_sort {
   8019      SELECT a FROM t3
   8020       WHERE b=1078
   8021          OR c=19019
   8022          OR a=38
   8023          OR a=59
   8024          OR ((a BETWEEN 30 AND 32) AND a!=31)
   8025          OR ((a BETWEEN 95 AND 97) AND a!=96)
   8026          OR c=25025
   8027          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   8028          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   8029          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   8030   }
   8031 } {30 32 38 51 55 56 57 59 73 74 75 76 79 95 97 98 scan 0 sort 0}
   8032 do_test where7-2.345.1 {
   8033   count_steps_sort {
   8034      SELECT a FROM t2
   8035       WHERE f='cdefghijk'
   8036          OR b=168
   8037          OR b=561
   8038          OR a=81
   8039          OR a=87
   8040   }
   8041 } {2 28 51 54 80 81 87 scan 0 sort 0}
   8042 do_test where7-2.345.2 {
   8043   count_steps_sort {
   8044      SELECT a FROM t3
   8045       WHERE f='cdefghijk'
   8046          OR b=168
   8047          OR b=561
   8048          OR a=81
   8049          OR a=87
   8050   }
   8051 } {2 28 51 54 80 81 87 scan 0 sort 0}
   8052 do_test where7-2.346.1 {
   8053   count_steps_sort {
   8054      SELECT a FROM t2
   8055       WHERE (g='gfedcba' AND f GLOB 'klmno*')
   8056          OR ((a BETWEEN 9 AND 11) AND a!=10)
   8057          OR (g='rqponml' AND f GLOB 'hijkl*')
   8058          OR a=48
   8059          OR b=113
   8060          OR ((a BETWEEN 20 AND 22) AND a!=21)
   8061          OR b=880
   8062          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8063          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   8064          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   8065   }
   8066 } {9 11 20 22 33 48 53 73 80 85 87 88 scan 0 sort 0}
   8067 do_test where7-2.346.2 {
   8068   count_steps_sort {
   8069      SELECT a FROM t3
   8070       WHERE (g='gfedcba' AND f GLOB 'klmno*')
   8071          OR ((a BETWEEN 9 AND 11) AND a!=10)
   8072          OR (g='rqponml' AND f GLOB 'hijkl*')
   8073          OR a=48
   8074          OR b=113
   8075          OR ((a BETWEEN 20 AND 22) AND a!=21)
   8076          OR b=880
   8077          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8078          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   8079          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   8080   }
   8081 } {9 11 20 22 33 48 53 73 80 85 87 88 scan 0 sort 0}
   8082 do_test where7-2.347.1 {
   8083   count_steps_sort {
   8084      SELECT a FROM t2
   8085       WHERE b=517
   8086          OR b=187
   8087          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   8088          OR b=1092
   8089          OR ((a BETWEEN 84 AND 86) AND a!=85)
   8090          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   8091   }
   8092 } {6 17 47 84 86 scan 0 sort 0}
   8093 do_test where7-2.347.2 {
   8094   count_steps_sort {
   8095      SELECT a FROM t3
   8096       WHERE b=517
   8097          OR b=187
   8098          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   8099          OR b=1092
   8100          OR ((a BETWEEN 84 AND 86) AND a!=85)
   8101          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   8102   }
   8103 } {6 17 47 84 86 scan 0 sort 0}
   8104 do_test where7-2.348.1 {
   8105   count_steps_sort {
   8106      SELECT a FROM t2
   8107       WHERE b=982
   8108          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   8109          OR b=234
   8110          OR c=15015
   8111          OR a=47
   8112          OR f='qrstuvwxy'
   8113          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   8114          OR b=814
   8115          OR b=440
   8116          OR b=454
   8117   }
   8118 } {16 40 42 43 44 45 47 65 68 74 94 scan 0 sort 0}
   8119 do_test where7-2.348.2 {
   8120   count_steps_sort {
   8121      SELECT a FROM t3
   8122       WHERE b=982
   8123          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   8124          OR b=234
   8125          OR c=15015
   8126          OR a=47
   8127          OR f='qrstuvwxy'
   8128          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   8129          OR b=814
   8130          OR b=440
   8131          OR b=454
   8132   }
   8133 } {16 40 42 43 44 45 47 65 68 74 94 scan 0 sort 0}
   8134 do_test where7-2.349.1 {
   8135   count_steps_sort {
   8136      SELECT a FROM t2
   8137       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   8138          OR c=7007
   8139          OR b=429
   8140          OR ((a BETWEEN 25 AND 27) AND a!=26)
   8141          OR b=231
   8142          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   8143          OR c=22022
   8144          OR f='bcdefghij'
   8145   }
   8146 } {1 19 20 21 25 26 27 39 47 53 64 65 66 79 scan 0 sort 0}
   8147 do_test where7-2.349.2 {
   8148   count_steps_sort {
   8149      SELECT a FROM t3
   8150       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   8151          OR c=7007
   8152          OR b=429
   8153          OR ((a BETWEEN 25 AND 27) AND a!=26)
   8154          OR b=231
   8155          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   8156          OR c=22022
   8157          OR f='bcdefghij'
   8158   }
   8159 } {1 19 20 21 25 26 27 39 47 53 64 65 66 79 scan 0 sort 0}
   8160 do_test where7-2.350.1 {
   8161   count_steps_sort {
   8162      SELECT a FROM t2
   8163       WHERE c=17017
   8164          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   8165          OR ((a BETWEEN 88 AND 90) AND a!=89)
   8166          OR b=784
   8167          OR ((a BETWEEN 22 AND 24) AND a!=23)
   8168          OR ((a BETWEEN 54 AND 56) AND a!=55)
   8169          OR ((a BETWEEN 16 AND 18) AND a!=17)
   8170          OR f='zabcdefgh'
   8171   }
   8172 } {16 18 22 24 25 49 50 51 54 56 62 77 88 90 scan 0 sort 0}
   8173 do_test where7-2.350.2 {
   8174   count_steps_sort {
   8175      SELECT a FROM t3
   8176       WHERE c=17017
   8177          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   8178          OR ((a BETWEEN 88 AND 90) AND a!=89)
   8179          OR b=784
   8180          OR ((a BETWEEN 22 AND 24) AND a!=23)
   8181          OR ((a BETWEEN 54 AND 56) AND a!=55)
   8182          OR ((a BETWEEN 16 AND 18) AND a!=17)
   8183          OR f='zabcdefgh'
   8184   }
   8185 } {16 18 22 24 25 49 50 51 54 56 62 77 88 90 scan 0 sort 0}
   8186 do_test where7-2.351.1 {
   8187   count_steps_sort {
   8188      SELECT a FROM t2
   8189       WHERE b=344
   8190          OR b=275
   8191          OR c<=10
   8192   }
   8193 } {25 scan 0 sort 0}
   8194 do_test where7-2.351.2 {
   8195   count_steps_sort {
   8196      SELECT a FROM t3
   8197       WHERE b=344
   8198          OR b=275
   8199          OR c<=10
   8200   }
   8201 } {25 scan 0 sort 0}
   8202 do_test where7-2.352.1 {
   8203   count_steps_sort {
   8204      SELECT a FROM t2
   8205       WHERE ((a BETWEEN 44 AND 46) AND a!=45)
   8206          OR a=76
   8207          OR b=154
   8208          OR a=30
   8209          OR c=3003
   8210          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   8211          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   8212          OR b=564
   8213          OR b=55
   8214          OR a=38
   8215   }
   8216 } {5 7 8 9 14 23 30 38 44 46 49 75 76 88 scan 0 sort 0}
   8217 do_test where7-2.352.2 {
   8218   count_steps_sort {
   8219      SELECT a FROM t3
   8220       WHERE ((a BETWEEN 44 AND 46) AND a!=45)
   8221          OR a=76
   8222          OR b=154
   8223          OR a=30
   8224          OR c=3003
   8225          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   8226          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   8227          OR b=564
   8228          OR b=55
   8229          OR a=38
   8230   }
   8231 } {5 7 8 9 14 23 30 38 44 46 49 75 76 88 scan 0 sort 0}
   8232 do_test where7-2.353.1 {
   8233   count_steps_sort {
   8234      SELECT a FROM t2
   8235       WHERE a=52
   8236          OR ((a BETWEEN 66 AND 68) AND a!=67)
   8237          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   8238   }
   8239 } {52 54 66 68 scan 0 sort 0}
   8240 do_test where7-2.353.2 {
   8241   count_steps_sort {
   8242      SELECT a FROM t3
   8243       WHERE a=52
   8244          OR ((a BETWEEN 66 AND 68) AND a!=67)
   8245          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   8246   }
   8247 } {52 54 66 68 scan 0 sort 0}
   8248 do_test where7-2.354.1 {
   8249   count_steps_sort {
   8250      SELECT a FROM t2
   8251       WHERE b=792
   8252          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   8253   }
   8254 } {9 72 scan 0 sort 0}
   8255 do_test where7-2.354.2 {
   8256   count_steps_sort {
   8257      SELECT a FROM t3
   8258       WHERE b=792
   8259          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   8260   }
   8261 } {9 72 scan 0 sort 0}
   8262 do_test where7-2.355.1 {
   8263   count_steps_sort {
   8264      SELECT a FROM t2
   8265       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   8266          OR c=21021
   8267          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   8268          OR f='zabcdefgh'
   8269          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   8270          OR b=781
   8271          OR a=64
   8272          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   8273   }
   8274 } {1 11 25 51 61 62 63 64 65 71 73 77 scan 0 sort 0}
   8275 do_test where7-2.355.2 {
   8276   count_steps_sort {
   8277      SELECT a FROM t3
   8278       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   8279          OR c=21021
   8280          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   8281          OR f='zabcdefgh'
   8282          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   8283          OR b=781
   8284          OR a=64
   8285          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   8286   }
   8287 } {1 11 25 51 61 62 63 64 65 71 73 77 scan 0 sort 0}
   8288 do_test where7-2.356.1 {
   8289   count_steps_sort {
   8290      SELECT a FROM t2
   8291       WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
   8292          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   8293          OR a=34
   8294          OR (g='rqponml' AND f GLOB 'ijklm*')
   8295          OR (g='rqponml' AND f GLOB 'klmno*')
   8296          OR (g='srqponm' AND f GLOB 'defgh*')
   8297          OR b=319
   8298          OR b=330
   8299          OR ((a BETWEEN 28 AND 30) AND a!=29)
   8300   }
   8301 } {28 29 30 34 36 67 90 scan 0 sort 0}
   8302 do_test where7-2.356.2 {
   8303   count_steps_sort {
   8304      SELECT a FROM t3
   8305       WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
   8306          OR (d>=90.0 AND d<91.0 AND d NOT NULL)
   8307          OR a=34
   8308          OR (g='rqponml' AND f GLOB 'ijklm*')
   8309          OR (g='rqponml' AND f GLOB 'klmno*')
   8310          OR (g='srqponm' AND f GLOB 'defgh*')
   8311          OR b=319
   8312          OR b=330
   8313          OR ((a BETWEEN 28 AND 30) AND a!=29)
   8314   }
   8315 } {28 29 30 34 36 67 90 scan 0 sort 0}
   8316 do_test where7-2.357.1 {
   8317   count_steps_sort {
   8318      SELECT a FROM t2
   8319       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   8320          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   8321          OR a=45
   8322          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   8323   }
   8324 } {15 41 45 67 81 93 scan 0 sort 0}
   8325 do_test where7-2.357.2 {
   8326   count_steps_sort {
   8327      SELECT a FROM t3
   8328       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   8329          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   8330          OR a=45
   8331          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   8332   }
   8333 } {15 41 45 67 81 93 scan 0 sort 0}
   8334 do_test where7-2.358.1 {
   8335   count_steps_sort {
   8336      SELECT a FROM t2
   8337       WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
   8338          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   8339          OR b=165
   8340          OR b=836
   8341   }
   8342 } {15 53 54 76 scan 0 sort 0}
   8343 do_test where7-2.358.2 {
   8344   count_steps_sort {
   8345      SELECT a FROM t3
   8346       WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
   8347          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   8348          OR b=165
   8349          OR b=836
   8350   }
   8351 } {15 53 54 76 scan 0 sort 0}
   8352 do_test where7-2.359.1 {
   8353   count_steps_sort {
   8354      SELECT a FROM t2
   8355       WHERE b=1034
   8356          OR f='vwxyzabcd'
   8357          OR (g='gfedcba' AND f GLOB 'nopqr*')
   8358          OR ((a BETWEEN 57 AND 59) AND a!=58)
   8359   }
   8360 } {21 47 57 59 73 91 94 99 scan 0 sort 0}
   8361 do_test where7-2.359.2 {
   8362   count_steps_sort {
   8363      SELECT a FROM t3
   8364       WHERE b=1034
   8365          OR f='vwxyzabcd'
   8366          OR (g='gfedcba' AND f GLOB 'nopqr*')
   8367          OR ((a BETWEEN 57 AND 59) AND a!=58)
   8368   }
   8369 } {21 47 57 59 73 91 94 99 scan 0 sort 0}
   8370 do_test where7-2.360.1 {
   8371   count_steps_sort {
   8372      SELECT a FROM t2
   8373       WHERE b=440
   8374          OR a=19
   8375          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   8376          OR c=22022
   8377          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   8378          OR a=92
   8379          OR b=1026
   8380          OR b=608
   8381   }
   8382 } {19 40 47 64 65 66 92 scan 0 sort 0}
   8383 do_test where7-2.360.2 {
   8384   count_steps_sort {
   8385      SELECT a FROM t3
   8386       WHERE b=440
   8387          OR a=19
   8388          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   8389          OR c=22022
   8390          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   8391          OR a=92
   8392          OR b=1026
   8393          OR b=608
   8394   }
   8395 } {19 40 47 64 65 66 92 scan 0 sort 0}
   8396 do_test where7-2.361.1 {
   8397   count_steps_sort {
   8398      SELECT a FROM t2
   8399       WHERE a=37
   8400          OR b=88
   8401          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   8402          OR c=23023
   8403          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   8404          OR a=56
   8405          OR ((a BETWEEN 13 AND 15) AND a!=14)
   8406          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   8407          OR f='ijklmnopq'
   8408          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8409   }
   8410 } {8 13 15 16 22 34 37 42 56 60 67 68 69 85 86 87 94 scan 0 sort 0}
   8411 do_test where7-2.361.2 {
   8412   count_steps_sort {
   8413      SELECT a FROM t3
   8414       WHERE a=37
   8415          OR b=88
   8416          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   8417          OR c=23023
   8418          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   8419          OR a=56
   8420          OR ((a BETWEEN 13 AND 15) AND a!=14)
   8421          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   8422          OR f='ijklmnopq'
   8423          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8424   }
   8425 } {8 13 15 16 22 34 37 42 56 60 67 68 69 85 86 87 94 scan 0 sort 0}
   8426 do_test where7-2.362.1 {
   8427   count_steps_sort {
   8428      SELECT a FROM t2
   8429       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   8430          OR ((a BETWEEN 22 AND 24) AND a!=23)
   8431          OR a=74
   8432          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   8433          OR ((a BETWEEN 42 AND 44) AND a!=43)
   8434   }
   8435 } {20 22 24 42 44 74 97 scan 0 sort 0}
   8436 do_test where7-2.362.2 {
   8437   count_steps_sort {
   8438      SELECT a FROM t3
   8439       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   8440          OR ((a BETWEEN 22 AND 24) AND a!=23)
   8441          OR a=74
   8442          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   8443          OR ((a BETWEEN 42 AND 44) AND a!=43)
   8444   }
   8445 } {20 22 24 42 44 74 97 scan 0 sort 0}
   8446 do_test where7-2.363.1 {
   8447   count_steps_sort {
   8448      SELECT a FROM t2
   8449       WHERE f='uvwxyzabc'
   8450          OR b=869
   8451          OR ((a BETWEEN 49 AND 51) AND a!=50)
   8452   }
   8453 } {20 46 49 51 72 79 98 scan 0 sort 0}
   8454 do_test where7-2.363.2 {
   8455   count_steps_sort {
   8456      SELECT a FROM t3
   8457       WHERE f='uvwxyzabc'
   8458          OR b=869
   8459          OR ((a BETWEEN 49 AND 51) AND a!=50)
   8460   }
   8461 } {20 46 49 51 72 79 98 scan 0 sort 0}
   8462 do_test where7-2.364.1 {
   8463   count_steps_sort {
   8464      SELECT a FROM t2
   8465       WHERE b=682
   8466          OR b=583
   8467          OR b=685
   8468          OR b=817
   8469          OR ((a BETWEEN 34 AND 36) AND a!=35)
   8470   }
   8471 } {34 36 53 62 scan 0 sort 0}
   8472 do_test where7-2.364.2 {
   8473   count_steps_sort {
   8474      SELECT a FROM t3
   8475       WHERE b=682
   8476          OR b=583
   8477          OR b=685
   8478          OR b=817
   8479          OR ((a BETWEEN 34 AND 36) AND a!=35)
   8480   }
   8481 } {34 36 53 62 scan 0 sort 0}
   8482 do_test where7-2.365.1 {
   8483   count_steps_sort {
   8484      SELECT a FROM t2
   8485       WHERE b=583
   8486          OR a=39
   8487          OR b=627
   8488          OR ((a BETWEEN 72 AND 74) AND a!=73)
   8489   }
   8490 } {39 53 57 72 74 scan 0 sort 0}
   8491 do_test where7-2.365.2 {
   8492   count_steps_sort {
   8493      SELECT a FROM t3
   8494       WHERE b=583
   8495          OR a=39
   8496          OR b=627
   8497          OR ((a BETWEEN 72 AND 74) AND a!=73)
   8498   }
   8499 } {39 53 57 72 74 scan 0 sort 0}
   8500 do_test where7-2.366.1 {
   8501   count_steps_sort {
   8502      SELECT a FROM t2
   8503       WHERE (g='jihgfed' AND f GLOB 'vwxyz*')
   8504          OR ((a BETWEEN 2 AND 4) AND a!=3)
   8505          OR b=212
   8506          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   8507          OR ((a BETWEEN 24 AND 26) AND a!=25)
   8508          OR a=20
   8509          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   8510          OR b=627
   8511   }
   8512 } {2 4 20 24 26 53 57 68 73 scan 0 sort 0}
   8513 do_test where7-2.366.2 {
   8514   count_steps_sort {
   8515      SELECT a FROM t3
   8516       WHERE (g='jihgfed' AND f GLOB 'vwxyz*')
   8517          OR ((a BETWEEN 2 AND 4) AND a!=3)
   8518          OR b=212
   8519          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   8520          OR ((a BETWEEN 24 AND 26) AND a!=25)
   8521          OR a=20
   8522          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   8523          OR b=627
   8524   }
   8525 } {2 4 20 24 26 53 57 68 73 scan 0 sort 0}
   8526 do_test where7-2.367.1 {
   8527   count_steps_sort {
   8528      SELECT a FROM t2
   8529       WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   8530          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   8531          OR b=157
   8532          OR b=1026
   8533   }
   8534 } {8 34 60 77 86 scan 0 sort 0}
   8535 do_test where7-2.367.2 {
   8536   count_steps_sort {
   8537      SELECT a FROM t3
   8538       WHERE (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   8539          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   8540          OR b=157
   8541          OR b=1026
   8542   }
   8543 } {8 34 60 77 86 scan 0 sort 0}
   8544 do_test where7-2.368.1 {
   8545   count_steps_sort {
   8546      SELECT a FROM t2
   8547       WHERE b=553
   8548          OR a=16
   8549          OR ((a BETWEEN 80 AND 82) AND a!=81)
   8550          OR ((a BETWEEN 31 AND 33) AND a!=32)
   8551          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   8552          OR f='zabcdefgh'
   8553          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   8554          OR (g='xwvutsr' AND f GLOB 'fghij*')
   8555   }
   8556 } {5 11 16 25 31 33 51 67 77 80 82 scan 0 sort 0}
   8557 do_test where7-2.368.2 {
   8558   count_steps_sort {
   8559      SELECT a FROM t3
   8560       WHERE b=553
   8561          OR a=16
   8562          OR ((a BETWEEN 80 AND 82) AND a!=81)
   8563          OR ((a BETWEEN 31 AND 33) AND a!=32)
   8564          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   8565          OR f='zabcdefgh'
   8566          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   8567          OR (g='xwvutsr' AND f GLOB 'fghij*')
   8568   }
   8569 } {5 11 16 25 31 33 51 67 77 80 82 scan 0 sort 0}
   8570 do_test where7-2.369.1 {
   8571   count_steps_sort {
   8572      SELECT a FROM t2
   8573       WHERE b=858
   8574          OR c=9009
   8575          OR b=792
   8576          OR b=88
   8577          OR b=154
   8578   }
   8579 } {8 14 25 26 27 72 78 scan 0 sort 0}
   8580 do_test where7-2.369.2 {
   8581   count_steps_sort {
   8582      SELECT a FROM t3
   8583       WHERE b=858
   8584          OR c=9009
   8585          OR b=792
   8586          OR b=88
   8587          OR b=154
   8588   }
   8589 } {8 14 25 26 27 72 78 scan 0 sort 0}
   8590 do_test where7-2.370.1 {
   8591   count_steps_sort {
   8592      SELECT a FROM t2
   8593       WHERE f IS NULL
   8594          OR a=37
   8595          OR (g='onmlkji' AND f GLOB 'wxyza*')
   8596          OR ((a BETWEEN 55 AND 57) AND a!=56)
   8597          OR b=168
   8598          OR b=22
   8599          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   8600          OR b=506
   8601   }
   8602 } {2 21 37 46 48 55 57 scan 0 sort 0}
   8603 do_test where7-2.370.2 {
   8604   count_steps_sort {
   8605      SELECT a FROM t3
   8606       WHERE f IS NULL
   8607          OR a=37
   8608          OR (g='onmlkji' AND f GLOB 'wxyza*')
   8609          OR ((a BETWEEN 55 AND 57) AND a!=56)
   8610          OR b=168
   8611          OR b=22
   8612          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   8613          OR b=506
   8614   }
   8615 } {2 21 37 46 48 55 57 scan 0 sort 0}
   8616 do_test where7-2.371.1 {
   8617   count_steps_sort {
   8618      SELECT a FROM t2
   8619       WHERE a=29
   8620          OR ((a BETWEEN 26 AND 28) AND a!=27)
   8621          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   8622          OR (g='qponmlk' AND f GLOB 'qrstu*')
   8623          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   8624          OR b=209
   8625          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   8626          OR b=146
   8627   }
   8628 } {19 25 26 28 29 42 45 51 69 71 77 97 scan 0 sort 0}
   8629 do_test where7-2.371.2 {
   8630   count_steps_sort {
   8631      SELECT a FROM t3
   8632       WHERE a=29
   8633          OR ((a BETWEEN 26 AND 28) AND a!=27)
   8634          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   8635          OR (g='qponmlk' AND f GLOB 'qrstu*')
   8636          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   8637          OR b=209
   8638          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   8639          OR b=146
   8640   }
   8641 } {19 25 26 28 29 42 45 51 69 71 77 97 scan 0 sort 0}
   8642 do_test where7-2.372.1 {
   8643   count_steps_sort {
   8644      SELECT a FROM t2
   8645       WHERE a=63
   8646          OR a=69
   8647          OR b=333
   8648          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   8649          OR b=135
   8650          OR b=25
   8651          OR b=1037
   8652          OR b=682
   8653          OR c=27027
   8654          OR a=46
   8655   }
   8656 } {6 46 62 63 69 79 80 81 scan 0 sort 0}
   8657 do_test where7-2.372.2 {
   8658   count_steps_sort {
   8659      SELECT a FROM t3
   8660       WHERE a=63
   8661          OR a=69
   8662          OR b=333
   8663          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   8664          OR b=135
   8665          OR b=25
   8666          OR b=1037
   8667          OR b=682
   8668          OR c=27027
   8669          OR a=46
   8670   }
   8671 } {6 46 62 63 69 79 80 81 scan 0 sort 0}
   8672 do_test where7-2.373.1 {
   8673   count_steps_sort {
   8674      SELECT a FROM t2
   8675       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   8676          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   8677          OR b=113
   8678          OR ((a BETWEEN 40 AND 42) AND a!=41)
   8679          OR ((a BETWEEN 53 AND 55) AND a!=54)
   8680          OR ((a BETWEEN 59 AND 61) AND a!=60)
   8681   }
   8682 } {40 42 52 53 55 59 61 100 scan 0 sort 0}
   8683 do_test where7-2.373.2 {
   8684   count_steps_sort {
   8685      SELECT a FROM t3
   8686       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   8687          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   8688          OR b=113
   8689          OR ((a BETWEEN 40 AND 42) AND a!=41)
   8690          OR ((a BETWEEN 53 AND 55) AND a!=54)
   8691          OR ((a BETWEEN 59 AND 61) AND a!=60)
   8692   }
   8693 } {40 42 52 53 55 59 61 100 scan 0 sort 0}
   8694 do_test where7-2.374.1 {
   8695   count_steps_sort {
   8696      SELECT a FROM t2
   8697       WHERE b=1026
   8698          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   8699   }
   8700 } {48 scan 0 sort 0}
   8701 do_test where7-2.374.2 {
   8702   count_steps_sort {
   8703      SELECT a FROM t3
   8704       WHERE b=1026
   8705          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   8706   }
   8707 } {48 scan 0 sort 0}
   8708 do_test where7-2.375.1 {
   8709   count_steps_sort {
   8710      SELECT a FROM t2
   8711       WHERE (g='rqponml' AND f GLOB 'ijklm*')
   8712          OR a=99
   8713          OR a=100
   8714          OR b=429
   8715          OR b=682
   8716          OR b=495
   8717          OR f='efghijklm'
   8718          OR a=10
   8719          OR f='mnopqrstu'
   8720          OR b=946
   8721          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   8722   }
   8723 } {4 10 12 30 34 38 39 45 56 62 64 82 86 90 95 99 100 scan 0 sort 0}
   8724 do_test where7-2.375.2 {
   8725   count_steps_sort {
   8726      SELECT a FROM t3
   8727       WHERE (g='rqponml' AND f GLOB 'ijklm*')
   8728          OR a=99
   8729          OR a=100
   8730          OR b=429
   8731          OR b=682
   8732          OR b=495
   8733          OR f='efghijklm'
   8734          OR a=10
   8735          OR f='mnopqrstu'
   8736          OR b=946
   8737          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   8738   }
   8739 } {4 10 12 30 34 38 39 45 56 62 64 82 86 90 95 99 100 scan 0 sort 0}
   8740 do_test where7-2.376.1 {
   8741   count_steps_sort {
   8742      SELECT a FROM t2
   8743       WHERE (d>=11.0 AND d<12.0 AND d NOT NULL)
   8744          OR c=23023
   8745          OR b=462
   8746          OR ((a BETWEEN 17 AND 19) AND a!=18)
   8747   }
   8748 } {11 17 19 42 67 68 69 scan 0 sort 0}
   8749 do_test where7-2.376.2 {
   8750   count_steps_sort {
   8751      SELECT a FROM t3
   8752       WHERE (d>=11.0 AND d<12.0 AND d NOT NULL)
   8753          OR c=23023
   8754          OR b=462
   8755          OR ((a BETWEEN 17 AND 19) AND a!=18)
   8756   }
   8757 } {11 17 19 42 67 68 69 scan 0 sort 0}
   8758 do_test where7-2.377.1 {
   8759   count_steps_sort {
   8760      SELECT a FROM t2
   8761       WHERE b=539
   8762          OR ((a BETWEEN 9 AND 11) AND a!=10)
   8763          OR c=6006
   8764          OR a=18
   8765          OR c=24024
   8766          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   8767          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   8768          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   8769          OR c=19019
   8770          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   8771          OR ((a BETWEEN 44 AND 46) AND a!=45)
   8772   }
   8773 } {9 11 16 17 18 38 43 44 46 49 55 56 57 70 71 72 87 scan 0 sort 0}
   8774 do_test where7-2.377.2 {
   8775   count_steps_sort {
   8776      SELECT a FROM t3
   8777       WHERE b=539
   8778          OR ((a BETWEEN 9 AND 11) AND a!=10)
   8779          OR c=6006
   8780          OR a=18
   8781          OR c=24024
   8782          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   8783          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   8784          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   8785          OR c=19019
   8786          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   8787          OR ((a BETWEEN 44 AND 46) AND a!=45)
   8788   }
   8789 } {9 11 16 17 18 38 43 44 46 49 55 56 57 70 71 72 87 scan 0 sort 0}
   8790 do_test where7-2.378.1 {
   8791   count_steps_sort {
   8792      SELECT a FROM t2
   8793       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   8794          OR a=20
   8795          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   8796          OR b=121
   8797          OR a=10
   8798          OR b=792
   8799   }
   8800 } {10 11 15 20 72 94 scan 0 sort 0}
   8801 do_test where7-2.378.2 {
   8802   count_steps_sort {
   8803      SELECT a FROM t3
   8804       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   8805          OR a=20
   8806          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   8807          OR b=121
   8808          OR a=10
   8809          OR b=792
   8810   }
   8811 } {10 11 15 20 72 94 scan 0 sort 0}
   8812 do_test where7-2.379.1 {
   8813   count_steps_sort {
   8814      SELECT a FROM t2
   8815       WHERE b=99
   8816          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8817          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   8818   }
   8819 } {9 14 40 66 85 87 92 scan 0 sort 0}
   8820 do_test where7-2.379.2 {
   8821   count_steps_sort {
   8822      SELECT a FROM t3
   8823       WHERE b=99
   8824          OR ((a BETWEEN 85 AND 87) AND a!=86)
   8825          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   8826   }
   8827 } {9 14 40 66 85 87 92 scan 0 sort 0}
   8828 do_test where7-2.380.1 {
   8829   count_steps_sort {
   8830      SELECT a FROM t2
   8831       WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
   8832          OR ((a BETWEEN 79 AND 81) AND a!=80)
   8833          OR b=715
   8834          OR ((a BETWEEN 23 AND 25) AND a!=24)
   8835   }
   8836 } {6 23 25 32 58 65 79 81 84 scan 0 sort 0}
   8837 do_test where7-2.380.2 {
   8838   count_steps_sort {
   8839      SELECT a FROM t3
   8840       WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
   8841          OR ((a BETWEEN 79 AND 81) AND a!=80)
   8842          OR b=715
   8843          OR ((a BETWEEN 23 AND 25) AND a!=24)
   8844   }
   8845 } {6 23 25 32 58 65 79 81 84 scan 0 sort 0}
   8846 do_test where7-2.381.1 {
   8847   count_steps_sort {
   8848      SELECT a FROM t2
   8849       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   8850          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   8851          OR a=46
   8852          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   8853   }
   8854 } {28 46 97 scan 0 sort 0}
   8855 do_test where7-2.381.2 {
   8856   count_steps_sort {
   8857      SELECT a FROM t3
   8858       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   8859          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   8860          OR a=46
   8861          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   8862   }
   8863 } {28 46 97 scan 0 sort 0}
   8864 do_test where7-2.382.1 {
   8865   count_steps_sort {
   8866      SELECT a FROM t2
   8867       WHERE (g='ihgfedc' AND f GLOB 'defgh*')
   8868          OR ((a BETWEEN 97 AND 99) AND a!=98)
   8869          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   8870          OR b=1056
   8871          OR b=146
   8872   }
   8873 } {18 81 96 97 99 scan 0 sort 0}
   8874 do_test where7-2.382.2 {
   8875   count_steps_sort {
   8876      SELECT a FROM t3
   8877       WHERE (g='ihgfedc' AND f GLOB 'defgh*')
   8878          OR ((a BETWEEN 97 AND 99) AND a!=98)
   8879          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   8880          OR b=1056
   8881          OR b=146
   8882   }
   8883 } {18 81 96 97 99 scan 0 sort 0}
   8884 do_test where7-2.383.1 {
   8885   count_steps_sort {
   8886      SELECT a FROM t2
   8887       WHERE a=15
   8888          OR b=388
   8889          OR ((a BETWEEN 82 AND 84) AND a!=83)
   8890          OR a=36
   8891          OR b=737
   8892          OR ((a BETWEEN 21 AND 23) AND a!=22)
   8893          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   8894          OR a=75
   8895   }
   8896 } {15 21 23 36 67 75 82 84 89 scan 0 sort 0}
   8897 do_test where7-2.383.2 {
   8898   count_steps_sort {
   8899      SELECT a FROM t3
   8900       WHERE a=15
   8901          OR b=388
   8902          OR ((a BETWEEN 82 AND 84) AND a!=83)
   8903          OR a=36
   8904          OR b=737
   8905          OR ((a BETWEEN 21 AND 23) AND a!=22)
   8906          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   8907          OR a=75
   8908   }
   8909 } {15 21 23 36 67 75 82 84 89 scan 0 sort 0}
   8910 do_test where7-2.384.1 {
   8911   count_steps_sort {
   8912      SELECT a FROM t2
   8913       WHERE c=9009
   8914          OR a=34
   8915          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   8916          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   8917          OR b=715
   8918          OR b=619
   8919          OR ((a BETWEEN 98 AND 100) AND a!=99)
   8920   }
   8921 } {16 25 26 27 34 65 95 98 100 scan 0 sort 0}
   8922 do_test where7-2.384.2 {
   8923   count_steps_sort {
   8924      SELECT a FROM t3
   8925       WHERE c=9009
   8926          OR a=34
   8927          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   8928          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   8929          OR b=715
   8930          OR b=619
   8931          OR ((a BETWEEN 98 AND 100) AND a!=99)
   8932   }
   8933 } {16 25 26 27 34 65 95 98 100 scan 0 sort 0}
   8934 do_test where7-2.385.1 {
   8935   count_steps_sort {
   8936      SELECT a FROM t2
   8937       WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
   8938          OR ((a BETWEEN 11 AND 13) AND a!=12)
   8939          OR ((a BETWEEN 74 AND 76) AND a!=75)
   8940          OR ((a BETWEEN 39 AND 41) AND a!=40)
   8941          OR b=242
   8942          OR ((a BETWEEN 32 AND 34) AND a!=33)
   8943          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   8944          OR b=300
   8945          OR ((a BETWEEN 24 AND 26) AND a!=25)
   8946          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   8947          OR ((a BETWEEN 93 AND 95) AND a!=94)
   8948   }
   8949 } {1 11 13 21 22 24 26 27 32 34 39 41 53 61 74 76 79 93 95 scan 0 sort 0}
   8950 do_test where7-2.385.2 {
   8951   count_steps_sort {
   8952      SELECT a FROM t3
   8953       WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
   8954          OR ((a BETWEEN 11 AND 13) AND a!=12)
   8955          OR ((a BETWEEN 74 AND 76) AND a!=75)
   8956          OR ((a BETWEEN 39 AND 41) AND a!=40)
   8957          OR b=242
   8958          OR ((a BETWEEN 32 AND 34) AND a!=33)
   8959          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   8960          OR b=300
   8961          OR ((a BETWEEN 24 AND 26) AND a!=25)
   8962          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   8963          OR ((a BETWEEN 93 AND 95) AND a!=94)
   8964   }
   8965 } {1 11 13 21 22 24 26 27 32 34 39 41 53 61 74 76 79 93 95 scan 0 sort 0}
   8966 do_test where7-2.386.1 {
   8967   count_steps_sort {
   8968      SELECT a FROM t2
   8969       WHERE a=85
   8970          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   8971          OR b=212
   8972          OR ((a BETWEEN 25 AND 27) AND a!=26)
   8973          OR b=36
   8974          OR b=231
   8975          OR b=1048
   8976          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   8977          OR ((a BETWEEN 69 AND 71) AND a!=70)
   8978          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   8979          OR c=19019
   8980   }
   8981 } {21 25 27 33 43 55 56 57 69 71 85 92 scan 0 sort 0}
   8982 do_test where7-2.386.2 {
   8983   count_steps_sort {
   8984      SELECT a FROM t3
   8985       WHERE a=85
   8986          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   8987          OR b=212
   8988          OR ((a BETWEEN 25 AND 27) AND a!=26)
   8989          OR b=36
   8990          OR b=231
   8991          OR b=1048
   8992          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   8993          OR ((a BETWEEN 69 AND 71) AND a!=70)
   8994          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   8995          OR c=19019
   8996   }
   8997 } {21 25 27 33 43 55 56 57 69 71 85 92 scan 0 sort 0}
   8998 do_test where7-2.387.1 {
   8999   count_steps_sort {
   9000      SELECT a FROM t2
   9001       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   9002          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   9003          OR b=1059
   9004          OR b=630
   9005   }
   9006 } {8 28 30 scan 0 sort 0}
   9007 do_test where7-2.387.2 {
   9008   count_steps_sort {
   9009      SELECT a FROM t3
   9010       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   9011          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   9012          OR b=1059
   9013          OR b=630
   9014   }
   9015 } {8 28 30 scan 0 sort 0}
   9016 do_test where7-2.388.1 {
   9017   count_steps_sort {
   9018      SELECT a FROM t2
   9019       WHERE f='ghijklmno'
   9020          OR f='nopqrstuv'
   9021          OR b=297
   9022   }
   9023 } {6 13 27 32 39 58 65 84 91 scan 0 sort 0}
   9024 do_test where7-2.388.2 {
   9025   count_steps_sort {
   9026      SELECT a FROM t3
   9027       WHERE f='ghijklmno'
   9028          OR f='nopqrstuv'
   9029          OR b=297
   9030   }
   9031 } {6 13 27 32 39 58 65 84 91 scan 0 sort 0}
   9032 do_test where7-2.389.1 {
   9033   count_steps_sort {
   9034      SELECT a FROM t2
   9035       WHERE b=1001
   9036          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9037          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   9038          OR ((a BETWEEN 68 AND 70) AND a!=69)
   9039          OR a=58
   9040          OR b=333
   9041          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   9042          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   9043          OR b=572
   9044          OR ((a BETWEEN 50 AND 52) AND a!=51)
   9045          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   9046   }
   9047 } {7 15 33 43 49 50 52 58 59 68 70 85 87 89 91 scan 0 sort 0}
   9048 do_test where7-2.389.2 {
   9049   count_steps_sort {
   9050      SELECT a FROM t3
   9051       WHERE b=1001
   9052          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9053          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   9054          OR ((a BETWEEN 68 AND 70) AND a!=69)
   9055          OR a=58
   9056          OR b=333
   9057          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   9058          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   9059          OR b=572
   9060          OR ((a BETWEEN 50 AND 52) AND a!=51)
   9061          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   9062   }
   9063 } {7 15 33 43 49 50 52 58 59 68 70 85 87 89 91 scan 0 sort 0}
   9064 do_test where7-2.390.1 {
   9065   count_steps_sort {
   9066      SELECT a FROM t2
   9067       WHERE b=1034
   9068          OR f='lmnopqrst'
   9069          OR (g='qponmlk' AND f GLOB 'mnopq*')
   9070   }
   9071 } {11 37 38 63 89 94 scan 0 sort 0}
   9072 do_test where7-2.390.2 {
   9073   count_steps_sort {
   9074      SELECT a FROM t3
   9075       WHERE b=1034
   9076          OR f='lmnopqrst'
   9077          OR (g='qponmlk' AND f GLOB 'mnopq*')
   9078   }
   9079 } {11 37 38 63 89 94 scan 0 sort 0}
   9080 do_test where7-2.391.1 {
   9081   count_steps_sort {
   9082      SELECT a FROM t2
   9083       WHERE c=15015
   9084          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   9085          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   9086          OR b=58
   9087          OR b=674
   9088          OR b=979
   9089   }
   9090 } {43 44 45 59 87 89 scan 0 sort 0}
   9091 do_test where7-2.391.2 {
   9092   count_steps_sort {
   9093      SELECT a FROM t3
   9094       WHERE c=15015
   9095          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   9096          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   9097          OR b=58
   9098          OR b=674
   9099          OR b=979
   9100   }
   9101 } {43 44 45 59 87 89 scan 0 sort 0}
   9102 do_test where7-2.392.1 {
   9103   count_steps_sort {
   9104      SELECT a FROM t2
   9105       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   9106          OR b=660
   9107          OR b=341
   9108   }
   9109 } {31 60 62 scan 0 sort 0}
   9110 do_test where7-2.392.2 {
   9111   count_steps_sort {
   9112      SELECT a FROM t3
   9113       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   9114          OR b=660
   9115          OR b=341
   9116   }
   9117 } {31 60 62 scan 0 sort 0}
   9118 do_test where7-2.393.1 {
   9119   count_steps_sort {
   9120      SELECT a FROM t2
   9121       WHERE b=528
   9122          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   9123          OR b=630
   9124          OR a=19
   9125          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   9126          OR f='wxyzabcde'
   9127          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   9128          OR b=377
   9129          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   9130          OR a=77
   9131          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   9132   }
   9133 } {8 19 22 43 44 48 64 74 77 100 scan 0 sort 0}
   9134 do_test where7-2.393.2 {
   9135   count_steps_sort {
   9136      SELECT a FROM t3
   9137       WHERE b=528
   9138          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   9139          OR b=630
   9140          OR a=19
   9141          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   9142          OR f='wxyzabcde'
   9143          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   9144          OR b=377
   9145          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   9146          OR a=77
   9147          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   9148   }
   9149 } {8 19 22 43 44 48 64 74 77 100 scan 0 sort 0}
   9150 do_test where7-2.394.1 {
   9151   count_steps_sort {
   9152      SELECT a FROM t2
   9153       WHERE b=506
   9154          OR a=70
   9155   }
   9156 } {46 70 scan 0 sort 0}
   9157 do_test where7-2.394.2 {
   9158   count_steps_sort {
   9159      SELECT a FROM t3
   9160       WHERE b=506
   9161          OR a=70
   9162   }
   9163 } {46 70 scan 0 sort 0}
   9164 do_test where7-2.395.1 {
   9165   count_steps_sort {
   9166      SELECT a FROM t2
   9167       WHERE a=64
   9168          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   9169          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   9170          OR (g='srqponm' AND f GLOB 'cdefg*')
   9171          OR c=14014
   9172          OR b=586
   9173          OR c=27027
   9174          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   9175          OR (g='jihgfed' AND f GLOB 'wxyza*')
   9176   }
   9177 } {26 28 40 41 42 52 57 64 74 78 79 80 81 86 scan 0 sort 0}
   9178 do_test where7-2.395.2 {
   9179   count_steps_sort {
   9180      SELECT a FROM t3
   9181       WHERE a=64
   9182          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   9183          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   9184          OR (g='srqponm' AND f GLOB 'cdefg*')
   9185          OR c=14014
   9186          OR b=586
   9187          OR c=27027
   9188          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   9189          OR (g='jihgfed' AND f GLOB 'wxyza*')
   9190   }
   9191 } {26 28 40 41 42 52 57 64 74 78 79 80 81 86 scan 0 sort 0}
   9192 do_test where7-2.396.1 {
   9193   count_steps_sort {
   9194      SELECT a FROM t2
   9195       WHERE a=46
   9196          OR b=297
   9197          OR ((a BETWEEN 57 AND 59) AND a!=58)
   9198          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   9199          OR b=275
   9200          OR b=91
   9201          OR b=1015
   9202          OR c=12012
   9203          OR a=23
   9204          OR b=278
   9205   }
   9206 } {23 25 27 34 35 36 46 57 59 75 scan 0 sort 0}
   9207 do_test where7-2.396.2 {
   9208   count_steps_sort {
   9209      SELECT a FROM t3
   9210       WHERE a=46
   9211          OR b=297
   9212          OR ((a BETWEEN 57 AND 59) AND a!=58)
   9213          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   9214          OR b=275
   9215          OR b=91
   9216          OR b=1015
   9217          OR c=12012
   9218          OR a=23
   9219          OR b=278
   9220   }
   9221 } {23 25 27 34 35 36 46 57 59 75 scan 0 sort 0}
   9222 do_test where7-2.397.1 {
   9223   count_steps_sort {
   9224      SELECT a FROM t2
   9225       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   9226          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   9227          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   9228          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   9229          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   9230          OR a=23
   9231          OR b=737
   9232          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   9233          OR ((a BETWEEN 18 AND 20) AND a!=19)
   9234          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   9235          OR ((a BETWEEN 68 AND 70) AND a!=69)
   9236   }
   9237 } {18 20 23 25 27 61 67 68 69 70 71 98 scan 0 sort 0}
   9238 do_test where7-2.397.2 {
   9239   count_steps_sort {
   9240      SELECT a FROM t3
   9241       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   9242          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   9243          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   9244          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   9245          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   9246          OR a=23
   9247          OR b=737
   9248          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   9249          OR ((a BETWEEN 18 AND 20) AND a!=19)
   9250          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   9251          OR ((a BETWEEN 68 AND 70) AND a!=69)
   9252   }
   9253 } {18 20 23 25 27 61 67 68 69 70 71 98 scan 0 sort 0}
   9254 do_test where7-2.398.1 {
   9255   count_steps_sort {
   9256      SELECT a FROM t2
   9257       WHERE b=814
   9258          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   9259          OR b=377
   9260          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   9261   }
   9262 } {71 74 79 scan 0 sort 0}
   9263 do_test where7-2.398.2 {
   9264   count_steps_sort {
   9265      SELECT a FROM t3
   9266       WHERE b=814
   9267          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   9268          OR b=377
   9269          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   9270   }
   9271 } {71 74 79 scan 0 sort 0}
   9272 do_test where7-2.399.1 {
   9273   count_steps_sort {
   9274      SELECT a FROM t2
   9275       WHERE a=18
   9276          OR b=1059
   9277          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   9278          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   9279          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   9280          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   9281          OR b=795
   9282   }
   9283 } {9 18 25 46 51 53 77 scan 0 sort 0}
   9284 do_test where7-2.399.2 {
   9285   count_steps_sort {
   9286      SELECT a FROM t3
   9287       WHERE a=18
   9288          OR b=1059
   9289          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   9290          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   9291          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   9292          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   9293          OR b=795
   9294   }
   9295 } {9 18 25 46 51 53 77 scan 0 sort 0}
   9296 do_test where7-2.400.1 {
   9297   count_steps_sort {
   9298      SELECT a FROM t2
   9299       WHERE (f GLOB '?mnop*' AND f GLOB 'lmno*')
   9300          OR a=93
   9301          OR a=11
   9302          OR f='nopqrstuv'
   9303          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9304          OR ((a BETWEEN 22 AND 24) AND a!=23)
   9305          OR a=17
   9306          OR b=366
   9307   }
   9308 } {11 13 17 22 24 27 37 39 63 65 89 91 93 scan 0 sort 0}
   9309 do_test where7-2.400.2 {
   9310   count_steps_sort {
   9311      SELECT a FROM t3
   9312       WHERE (f GLOB '?mnop*' AND f GLOB 'lmno*')
   9313          OR a=93
   9314          OR a=11
   9315          OR f='nopqrstuv'
   9316          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9317          OR ((a BETWEEN 22 AND 24) AND a!=23)
   9318          OR a=17
   9319          OR b=366
   9320   }
   9321 } {11 13 17 22 24 27 37 39 63 65 89 91 93 scan 0 sort 0}
   9322 do_test where7-2.401.1 {
   9323   count_steps_sort {
   9324      SELECT a FROM t2
   9325       WHERE b=685
   9326          OR a=33
   9327          OR ((a BETWEEN 40 AND 42) AND a!=41)
   9328          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   9329          OR (g='rqponml' AND f GLOB 'lmnop*')
   9330          OR ((a BETWEEN 39 AND 41) AND a!=40)
   9331          OR ((a BETWEEN 80 AND 82) AND a!=81)
   9332          OR b=715
   9333          OR ((a BETWEEN 93 AND 95) AND a!=94)
   9334          OR a=6
   9335          OR ((a BETWEEN 59 AND 61) AND a!=60)
   9336   }
   9337 } {6 16 33 37 39 40 41 42 59 61 65 80 82 93 95 scan 0 sort 0}
   9338 do_test where7-2.401.2 {
   9339   count_steps_sort {
   9340      SELECT a FROM t3
   9341       WHERE b=685
   9342          OR a=33
   9343          OR ((a BETWEEN 40 AND 42) AND a!=41)
   9344          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   9345          OR (g='rqponml' AND f GLOB 'lmnop*')
   9346          OR ((a BETWEEN 39 AND 41) AND a!=40)
   9347          OR ((a BETWEEN 80 AND 82) AND a!=81)
   9348          OR b=715
   9349          OR ((a BETWEEN 93 AND 95) AND a!=94)
   9350          OR a=6
   9351          OR ((a BETWEEN 59 AND 61) AND a!=60)
   9352   }
   9353 } {6 16 33 37 39 40 41 42 59 61 65 80 82 93 95 scan 0 sort 0}
   9354 do_test where7-2.402.1 {
   9355   count_steps_sort {
   9356      SELECT a FROM t2
   9357       WHERE a=89
   9358          OR b=1037
   9359          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   9360   }
   9361 } {60 89 scan 0 sort 0}
   9362 do_test where7-2.402.2 {
   9363   count_steps_sort {
   9364      SELECT a FROM t3
   9365       WHERE a=89
   9366          OR b=1037
   9367          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   9368   }
   9369 } {60 89 scan 0 sort 0}
   9370 do_test where7-2.403.1 {
   9371   count_steps_sort {
   9372      SELECT a FROM t2
   9373       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   9374          OR ((a BETWEEN 44 AND 46) AND a!=45)
   9375          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   9376          OR b=663
   9377          OR b=531
   9378          OR b=146
   9379          OR b=102
   9380          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9381          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9382          OR a=26
   9383   }
   9384 } {26 28 44 46 87 89 97 scan 0 sort 0}
   9385 do_test where7-2.403.2 {
   9386   count_steps_sort {
   9387      SELECT a FROM t3
   9388       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   9389          OR ((a BETWEEN 44 AND 46) AND a!=45)
   9390          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   9391          OR b=663
   9392          OR b=531
   9393          OR b=146
   9394          OR b=102
   9395          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9396          OR ((a BETWEEN 87 AND 89) AND a!=88)
   9397          OR a=26
   9398   }
   9399 } {26 28 44 46 87 89 97 scan 0 sort 0}
   9400 do_test where7-2.404.1 {
   9401   count_steps_sort {
   9402      SELECT a FROM t2
   9403       WHERE (g='kjihgfe' AND f GLOB 'stuvw*')
   9404          OR (g='rqponml' AND f GLOB 'jklmn*')
   9405          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   9406          OR b=726
   9407          OR ((a BETWEEN 73 AND 75) AND a!=74)
   9408          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   9409          OR c=2002
   9410          OR c=15015
   9411          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   9412          OR b=201
   9413   }
   9414 } {4 5 6 12 35 43 44 45 64 66 70 73 75 scan 0 sort 0}
   9415 do_test where7-2.404.2 {
   9416   count_steps_sort {
   9417      SELECT a FROM t3
   9418       WHERE (g='kjihgfe' AND f GLOB 'stuvw*')
   9419          OR (g='rqponml' AND f GLOB 'jklmn*')
   9420          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   9421          OR b=726
   9422          OR ((a BETWEEN 73 AND 75) AND a!=74)
   9423          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   9424          OR c=2002
   9425          OR c=15015
   9426          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   9427          OR b=201
   9428   }
   9429 } {4 5 6 12 35 43 44 45 64 66 70 73 75 scan 0 sort 0}
   9430 do_test where7-2.405.1 {
   9431   count_steps_sort {
   9432      SELECT a FROM t2
   9433       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   9434          OR b=924
   9435          OR f='lmnopqrst'
   9436          OR b=1048
   9437   }
   9438 } {11 37 63 72 84 89 scan 0 sort 0}
   9439 do_test where7-2.405.2 {
   9440   count_steps_sort {
   9441      SELECT a FROM t3
   9442       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   9443          OR b=924
   9444          OR f='lmnopqrst'
   9445          OR b=1048
   9446   }
   9447 } {11 37 63 72 84 89 scan 0 sort 0}
   9448 do_test where7-2.406.1 {
   9449   count_steps_sort {
   9450      SELECT a FROM t2
   9451       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   9452          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   9453          OR b=198
   9454          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   9455          OR ((a BETWEEN 12 AND 14) AND a!=13)
   9456          OR ((a BETWEEN 20 AND 22) AND a!=21)
   9457          OR b=286
   9458          OR ((a BETWEEN 65 AND 67) AND a!=66)
   9459   }
   9460 } {12 14 18 20 22 26 58 63 65 67 scan 0 sort 0}
   9461 do_test where7-2.406.2 {
   9462   count_steps_sort {
   9463      SELECT a FROM t3
   9464       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   9465          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   9466          OR b=198
   9467          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   9468          OR ((a BETWEEN 12 AND 14) AND a!=13)
   9469          OR ((a BETWEEN 20 AND 22) AND a!=21)
   9470          OR b=286
   9471          OR ((a BETWEEN 65 AND 67) AND a!=66)
   9472   }
   9473 } {12 14 18 20 22 26 58 63 65 67 scan 0 sort 0}
   9474 do_test where7-2.407.1 {
   9475   count_steps_sort {
   9476      SELECT a FROM t2
   9477       WHERE b=242
   9478          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   9479          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   9480          OR ((a BETWEEN 57 AND 59) AND a!=58)
   9481          OR f='bcdefghij'
   9482          OR ((a BETWEEN 17 AND 19) AND a!=18)
   9483          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   9484          OR a=38
   9485          OR b=187
   9486   }
   9487 } {1 17 19 22 27 38 53 57 59 79 88 99 scan 0 sort 0}
   9488 do_test where7-2.407.2 {
   9489   count_steps_sort {
   9490      SELECT a FROM t3
   9491       WHERE b=242
   9492          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   9493          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   9494          OR ((a BETWEEN 57 AND 59) AND a!=58)
   9495          OR f='bcdefghij'
   9496          OR ((a BETWEEN 17 AND 19) AND a!=18)
   9497          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   9498          OR a=38
   9499          OR b=187
   9500   }
   9501 } {1 17 19 22 27 38 53 57 59 79 88 99 scan 0 sort 0}
   9502 do_test where7-2.408.1 {
   9503   count_steps_sort {
   9504      SELECT a FROM t2
   9505       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   9506          OR b=630
   9507          OR a=55
   9508          OR c=26026
   9509          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   9510          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   9511   }
   9512 } {10 23 55 68 76 77 78 scan 0 sort 0}
   9513 do_test where7-2.408.2 {
   9514   count_steps_sort {
   9515      SELECT a FROM t3
   9516       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   9517          OR b=630
   9518          OR a=55
   9519          OR c=26026
   9520          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   9521          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   9522   }
   9523 } {10 23 55 68 76 77 78 scan 0 sort 0}
   9524 do_test where7-2.409.1 {
   9525   count_steps_sort {
   9526      SELECT a FROM t2
   9527       WHERE f='uvwxyzabc'
   9528          OR f='xyzabcdef'
   9529          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   9530          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   9531          OR ((a BETWEEN 51 AND 53) AND a!=52)
   9532          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   9533          OR b=69
   9534          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   9535   }
   9536 } {8 20 23 31 34 46 49 51 53 60 70 72 75 79 86 98 scan 0 sort 0}
   9537 do_test where7-2.409.2 {
   9538   count_steps_sort {
   9539      SELECT a FROM t3
   9540       WHERE f='uvwxyzabc'
   9541          OR f='xyzabcdef'
   9542          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   9543          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   9544          OR ((a BETWEEN 51 AND 53) AND a!=52)
   9545          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   9546          OR b=69
   9547          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   9548   }
   9549 } {8 20 23 31 34 46 49 51 53 60 70 72 75 79 86 98 scan 0 sort 0}
   9550 do_test where7-2.410.1 {
   9551   count_steps_sort {
   9552      SELECT a FROM t2
   9553       WHERE b=1026
   9554          OR b=454
   9555          OR ((a BETWEEN 92 AND 94) AND a!=93)
   9556          OR b=179
   9557          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   9558          OR f='qrstuvwxy'
   9559   }
   9560 } {16 26 42 52 68 78 92 94 scan 0 sort 0}
   9561 do_test where7-2.410.2 {
   9562   count_steps_sort {
   9563      SELECT a FROM t3
   9564       WHERE b=1026
   9565          OR b=454
   9566          OR ((a BETWEEN 92 AND 94) AND a!=93)
   9567          OR b=179
   9568          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   9569          OR f='qrstuvwxy'
   9570   }
   9571 } {16 26 42 52 68 78 92 94 scan 0 sort 0}
   9572 do_test where7-2.411.1 {
   9573   count_steps_sort {
   9574      SELECT a FROM t2
   9575       WHERE ((a BETWEEN 6 AND 8) AND a!=7)
   9576          OR b=619
   9577          OR a=20
   9578          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   9579          OR b=946
   9580          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   9581          OR a=64
   9582          OR ((a BETWEEN 17 AND 19) AND a!=18)
   9583          OR b=1001
   9584          OR b=858
   9585   }
   9586 } {6 8 13 17 19 20 61 64 78 86 91 scan 0 sort 0}
   9587 do_test where7-2.411.2 {
   9588   count_steps_sort {
   9589      SELECT a FROM t3
   9590       WHERE ((a BETWEEN 6 AND 8) AND a!=7)
   9591          OR b=619
   9592          OR a=20
   9593          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   9594          OR b=946
   9595          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   9596          OR a=64
   9597          OR ((a BETWEEN 17 AND 19) AND a!=18)
   9598          OR b=1001
   9599          OR b=858
   9600   }
   9601 } {6 8 13 17 19 20 61 64 78 86 91 scan 0 sort 0}
   9602 do_test where7-2.412.1 {
   9603   count_steps_sort {
   9604      SELECT a FROM t2
   9605       WHERE b=902
   9606          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9607          OR a=86
   9608          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   9609   }
   9610 } {27 82 86 97 scan 0 sort 0}
   9611 do_test where7-2.412.2 {
   9612   count_steps_sort {
   9613      SELECT a FROM t3
   9614       WHERE b=902
   9615          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9616          OR a=86
   9617          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   9618   }
   9619 } {27 82 86 97 scan 0 sort 0}
   9620 do_test where7-2.413.1 {
   9621   count_steps_sort {
   9622      SELECT a FROM t2
   9623       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   9624          OR a=32
   9625          OR (g='qponmlk' AND f GLOB 'mnopq*')
   9626          OR (g='xwvutsr' AND f GLOB 'efghi*')
   9627          OR c=32032
   9628   }
   9629 } {4 32 38 56 94 95 96 scan 0 sort 0}
   9630 do_test where7-2.413.2 {
   9631   count_steps_sort {
   9632      SELECT a FROM t3
   9633       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   9634          OR a=32
   9635          OR (g='qponmlk' AND f GLOB 'mnopq*')
   9636          OR (g='xwvutsr' AND f GLOB 'efghi*')
   9637          OR c=32032
   9638   }
   9639 } {4 32 38 56 94 95 96 scan 0 sort 0}
   9640 do_test where7-2.414.1 {
   9641   count_steps_sort {
   9642      SELECT a FROM t2
   9643       WHERE b=168
   9644          OR c=2002
   9645          OR b=77
   9646          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9647          OR f='qrstuvwxy'
   9648   }
   9649 } {4 5 6 7 16 27 42 68 94 scan 0 sort 0}
   9650 do_test where7-2.414.2 {
   9651   count_steps_sort {
   9652      SELECT a FROM t3
   9653       WHERE b=168
   9654          OR c=2002
   9655          OR b=77
   9656          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   9657          OR f='qrstuvwxy'
   9658   }
   9659 } {4 5 6 7 16 27 42 68 94 scan 0 sort 0}
   9660 do_test where7-2.415.1 {
   9661   count_steps_sort {
   9662      SELECT a FROM t2
   9663       WHERE f='abcdefghi'
   9664          OR b=506
   9665   }
   9666 } {26 46 52 78 scan 0 sort 0}
   9667 do_test where7-2.415.2 {
   9668   count_steps_sort {
   9669      SELECT a FROM t3
   9670       WHERE f='abcdefghi'
   9671          OR b=506
   9672   }
   9673 } {26 46 52 78 scan 0 sort 0}
   9674 do_test where7-2.416.1 {
   9675   count_steps_sort {
   9676      SELECT a FROM t2
   9677       WHERE b=264
   9678          OR c=34034
   9679          OR a=96
   9680   }
   9681 } {24 96 100 scan 0 sort 0}
   9682 do_test where7-2.416.2 {
   9683   count_steps_sort {
   9684      SELECT a FROM t3
   9685       WHERE b=264
   9686          OR c=34034
   9687          OR a=96
   9688   }
   9689 } {24 96 100 scan 0 sort 0}
   9690 do_test where7-2.417.1 {
   9691   count_steps_sort {
   9692      SELECT a FROM t2
   9693       WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
   9694          OR a=27
   9695          OR ((a BETWEEN 55 AND 57) AND a!=56)
   9696          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   9697   }
   9698 } {19 27 32 55 57 scan 0 sort 0}
   9699 do_test where7-2.417.2 {
   9700   count_steps_sort {
   9701      SELECT a FROM t3
   9702       WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
   9703          OR a=27
   9704          OR ((a BETWEEN 55 AND 57) AND a!=56)
   9705          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   9706   }
   9707 } {19 27 32 55 57 scan 0 sort 0}
   9708 do_test where7-2.418.1 {
   9709   count_steps_sort {
   9710      SELECT a FROM t2
   9711       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   9712          OR b=77
   9713   }
   9714 } {7 74 scan 0 sort 0}
   9715 do_test where7-2.418.2 {
   9716   count_steps_sort {
   9717      SELECT a FROM t3
   9718       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   9719          OR b=77
   9720   }
   9721 } {7 74 scan 0 sort 0}
   9722 do_test where7-2.419.1 {
   9723   count_steps_sort {
   9724      SELECT a FROM t2
   9725       WHERE c=27027
   9726          OR f='vwxyzabcd'
   9727          OR b=1048
   9728          OR a=96
   9729          OR a=99
   9730          OR ((a BETWEEN 56 AND 58) AND a!=57)
   9731          OR b=561
   9732          OR b=352
   9733          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   9734          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   9735          OR a=95
   9736   }
   9737 } {18 21 32 37 47 51 56 58 73 79 80 81 95 96 99 scan 0 sort 0}
   9738 do_test where7-2.419.2 {
   9739   count_steps_sort {
   9740      SELECT a FROM t3
   9741       WHERE c=27027
   9742          OR f='vwxyzabcd'
   9743          OR b=1048
   9744          OR a=96
   9745          OR a=99
   9746          OR ((a BETWEEN 56 AND 58) AND a!=57)
   9747          OR b=561
   9748          OR b=352
   9749          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   9750          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   9751          OR a=95
   9752   }
   9753 } {18 21 32 37 47 51 56 58 73 79 80 81 95 96 99 scan 0 sort 0}
   9754 do_test where7-2.420.1 {
   9755   count_steps_sort {
   9756      SELECT a FROM t2
   9757       WHERE b=275
   9758          OR ((a BETWEEN 10 AND 12) AND a!=11)
   9759          OR f='ghijklmno'
   9760          OR b=619
   9761          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   9762          OR ((a BETWEEN 91 AND 93) AND a!=92)
   9763          OR b=476
   9764          OR a=83
   9765          OR ((a BETWEEN 47 AND 49) AND a!=48)
   9766   }
   9767 } {6 10 12 25 32 47 49 58 83 84 91 93 99 scan 0 sort 0}
   9768 do_test where7-2.420.2 {
   9769   count_steps_sort {
   9770      SELECT a FROM t3
   9771       WHERE b=275
   9772          OR ((a BETWEEN 10 AND 12) AND a!=11)
   9773          OR f='ghijklmno'
   9774          OR b=619
   9775          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   9776          OR ((a BETWEEN 91 AND 93) AND a!=92)
   9777          OR b=476
   9778          OR a=83
   9779          OR ((a BETWEEN 47 AND 49) AND a!=48)
   9780   }
   9781 } {6 10 12 25 32 47 49 58 83 84 91 93 99 scan 0 sort 0}
   9782 do_test where7-2.421.1 {
   9783   count_steps_sort {
   9784      SELECT a FROM t2
   9785       WHERE b=542
   9786          OR a=17
   9787          OR f='jklmnopqr'
   9788          OR ((a BETWEEN 5 AND 7) AND a!=6)
   9789          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   9790          OR a=23
   9791          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   9792   }
   9793 } {5 7 9 17 23 25 35 39 61 87 scan 0 sort 0}
   9794 do_test where7-2.421.2 {
   9795   count_steps_sort {
   9796      SELECT a FROM t3
   9797       WHERE b=542
   9798          OR a=17
   9799          OR f='jklmnopqr'
   9800          OR ((a BETWEEN 5 AND 7) AND a!=6)
   9801          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   9802          OR a=23
   9803          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   9804   }
   9805 } {5 7 9 17 23 25 35 39 61 87 scan 0 sort 0}
   9806 do_test where7-2.422.1 {
   9807   count_steps_sort {
   9808      SELECT a FROM t2
   9809       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   9810          OR b=363
   9811          OR b=454
   9812   }
   9813 } {33 74 scan 0 sort 0}
   9814 do_test where7-2.422.2 {
   9815   count_steps_sort {
   9816      SELECT a FROM t3
   9817       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   9818          OR b=363
   9819          OR b=454
   9820   }
   9821 } {33 74 scan 0 sort 0}
   9822 do_test where7-2.423.1 {
   9823   count_steps_sort {
   9824      SELECT a FROM t2
   9825       WHERE b=1059
   9826          OR (g='jihgfed' AND f GLOB 'yzabc*')
   9827          OR (g='rqponml' AND f GLOB 'jklmn*')
   9828          OR b=47
   9829          OR b=660
   9830          OR ((a BETWEEN 34 AND 36) AND a!=35)
   9831          OR a=84
   9832   }
   9833 } {34 35 36 60 76 84 scan 0 sort 0}
   9834 do_test where7-2.423.2 {
   9835   count_steps_sort {
   9836      SELECT a FROM t3
   9837       WHERE b=1059
   9838          OR (g='jihgfed' AND f GLOB 'yzabc*')
   9839          OR (g='rqponml' AND f GLOB 'jklmn*')
   9840          OR b=47
   9841          OR b=660
   9842          OR ((a BETWEEN 34 AND 36) AND a!=35)
   9843          OR a=84
   9844   }
   9845 } {34 35 36 60 76 84 scan 0 sort 0}
   9846 do_test where7-2.424.1 {
   9847   count_steps_sort {
   9848      SELECT a FROM t2
   9849       WHERE f='ghijklmno'
   9850          OR b=1012
   9851   }
   9852 } {6 32 58 84 92 scan 0 sort 0}
   9853 do_test where7-2.424.2 {
   9854   count_steps_sort {
   9855      SELECT a FROM t3
   9856       WHERE f='ghijklmno'
   9857          OR b=1012
   9858   }
   9859 } {6 32 58 84 92 scan 0 sort 0}
   9860 do_test where7-2.425.1 {
   9861   count_steps_sort {
   9862      SELECT a FROM t2
   9863       WHERE b=597
   9864          OR f='lmnopqrst'
   9865          OR a=24
   9866          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   9867          OR ((a BETWEEN 31 AND 33) AND a!=32)
   9868          OR b=1023
   9869          OR a=53
   9870          OR a=78
   9871          OR f='efghijklm'
   9872          OR (g='rqponml' AND f GLOB 'lmnop*')
   9873          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   9874   }
   9875 } {4 11 24 30 31 33 37 53 56 63 78 82 85 89 93 96 scan 0 sort 0}
   9876 do_test where7-2.425.2 {
   9877   count_steps_sort {
   9878      SELECT a FROM t3
   9879       WHERE b=597
   9880          OR f='lmnopqrst'
   9881          OR a=24
   9882          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   9883          OR ((a BETWEEN 31 AND 33) AND a!=32)
   9884          OR b=1023
   9885          OR a=53
   9886          OR a=78
   9887          OR f='efghijklm'
   9888          OR (g='rqponml' AND f GLOB 'lmnop*')
   9889          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   9890   }
   9891 } {4 11 24 30 31 33 37 53 56 63 78 82 85 89 93 96 scan 0 sort 0}
   9892 do_test where7-2.426.1 {
   9893   count_steps_sort {
   9894      SELECT a FROM t2
   9895       WHERE b=198
   9896          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   9897          OR b=388
   9898   }
   9899 } {18 94 scan 0 sort 0}
   9900 do_test where7-2.426.2 {
   9901   count_steps_sort {
   9902      SELECT a FROM t3
   9903       WHERE b=198
   9904          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   9905          OR b=388
   9906   }
   9907 } {18 94 scan 0 sort 0}
   9908 do_test where7-2.427.1 {
   9909   count_steps_sort {
   9910      SELECT a FROM t2
   9911       WHERE f='tuvwxyzab'
   9912          OR b=388
   9913          OR ((a BETWEEN 84 AND 86) AND a!=85)
   9914          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   9915          OR b=957
   9916          OR b=663
   9917          OR b=847
   9918          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   9919   }
   9920 } {19 45 71 73 77 84 86 87 96 97 scan 0 sort 0}
   9921 do_test where7-2.427.2 {
   9922   count_steps_sort {
   9923      SELECT a FROM t3
   9924       WHERE f='tuvwxyzab'
   9925          OR b=388
   9926          OR ((a BETWEEN 84 AND 86) AND a!=85)
   9927          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   9928          OR b=957
   9929          OR b=663
   9930          OR b=847
   9931          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   9932   }
   9933 } {19 45 71 73 77 84 86 87 96 97 scan 0 sort 0}
   9934 do_test where7-2.428.1 {
   9935   count_steps_sort {
   9936      SELECT a FROM t2
   9937       WHERE (d>=81.0 AND d<82.0 AND d NOT NULL)
   9938          OR a=56
   9939          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   9940   }
   9941 } {56 81 84 scan 0 sort 0}
   9942 do_test where7-2.428.2 {
   9943   count_steps_sort {
   9944      SELECT a FROM t3
   9945       WHERE (d>=81.0 AND d<82.0 AND d NOT NULL)
   9946          OR a=56
   9947          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   9948   }
   9949 } {56 81 84 scan 0 sort 0}
   9950 do_test where7-2.429.1 {
   9951   count_steps_sort {
   9952      SELECT a FROM t2
   9953       WHERE c>=34035
   9954          OR b=168
   9955          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   9956          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   9957   }
   9958 } {1 27 53 79 89 scan 0 sort 0}
   9959 do_test where7-2.429.2 {
   9960   count_steps_sort {
   9961      SELECT a FROM t3
   9962       WHERE c>=34035
   9963          OR b=168
   9964          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   9965          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   9966   }
   9967 } {1 27 53 79 89 scan 0 sort 0}
   9968 do_test where7-2.430.1 {
   9969   count_steps_sort {
   9970      SELECT a FROM t2
   9971       WHERE ((a BETWEEN 79 AND 81) AND a!=80)
   9972          OR b=564
   9973          OR c=6006
   9974          OR b=979
   9975   }
   9976 } {16 17 18 79 81 89 scan 0 sort 0}
   9977 do_test where7-2.430.2 {
   9978   count_steps_sort {
   9979      SELECT a FROM t3
   9980       WHERE ((a BETWEEN 79 AND 81) AND a!=80)
   9981          OR b=564
   9982          OR c=6006
   9983          OR b=979
   9984   }
   9985 } {16 17 18 79 81 89 scan 0 sort 0}
   9986 do_test where7-2.431.1 {
   9987   count_steps_sort {
   9988      SELECT a FROM t2
   9989       WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
   9990          OR (g='qponmlk' AND f GLOB 'opqrs*')
   9991          OR f='rstuvwxyz'
   9992          OR (g='qponmlk' AND f GLOB 'nopqr*')
   9993   }
   9994 } {17 29 39 40 43 69 95 scan 0 sort 0}
   9995 do_test where7-2.431.2 {
   9996   count_steps_sort {
   9997      SELECT a FROM t3
   9998       WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
   9999          OR (g='qponmlk' AND f GLOB 'opqrs*')
   10000          OR f='rstuvwxyz'
   10001          OR (g='qponmlk' AND f GLOB 'nopqr*')
   10002   }
   10003 } {17 29 39 40 43 69 95 scan 0 sort 0}
   10004 do_test where7-2.432.1 {
   10005   count_steps_sort {
   10006      SELECT a FROM t2
   10007       WHERE b=58
   10008          OR b=484
   10009          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   10010          OR b=671
   10011          OR a=69
   10012   }
   10013 } {44 61 68 69 scan 0 sort 0}
   10014 do_test where7-2.432.2 {
   10015   count_steps_sort {
   10016      SELECT a FROM t3
   10017       WHERE b=58
   10018          OR b=484
   10019          OR (d>=68.0 AND d<69.0 AND d NOT NULL)
   10020          OR b=671
   10021          OR a=69
   10022   }
   10023 } {44 61 68 69 scan 0 sort 0}
   10024 do_test where7-2.433.1 {
   10025   count_steps_sort {
   10026      SELECT a FROM t2
   10027       WHERE f='mnopqrstu'
   10028          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   10029          OR b=861
   10030          OR b=77
   10031          OR f='qrstuvwxy'
   10032   }
   10033 } {7 12 16 38 42 64 68 73 90 94 scan 0 sort 0}
   10034 do_test where7-2.433.2 {
   10035   count_steps_sort {
   10036      SELECT a FROM t3
   10037       WHERE f='mnopqrstu'
   10038          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   10039          OR b=861
   10040          OR b=77
   10041          OR f='qrstuvwxy'
   10042   }
   10043 } {7 12 16 38 42 64 68 73 90 94 scan 0 sort 0}
   10044 do_test where7-2.434.1 {
   10045   count_steps_sort {
   10046      SELECT a FROM t2
   10047       WHERE b=113
   10048          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   10049          OR b=113
   10050          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10051          OR ((a BETWEEN 62 AND 64) AND a!=63)
   10052          OR c=6006
   10053          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   10054          OR b=946
   10055          OR a=86
   10056   }
   10057 } {4 14 16 17 18 51 62 64 86 scan 0 sort 0}
   10058 do_test where7-2.434.2 {
   10059   count_steps_sort {
   10060      SELECT a FROM t3
   10061       WHERE b=113
   10062          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   10063          OR b=113
   10064          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10065          OR ((a BETWEEN 62 AND 64) AND a!=63)
   10066          OR c=6006
   10067          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   10068          OR b=946
   10069          OR a=86
   10070   }
   10071 } {4 14 16 17 18 51 62 64 86 scan 0 sort 0}
   10072 do_test where7-2.435.1 {
   10073   count_steps_sort {
   10074      SELECT a FROM t2
   10075       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   10076          OR ((a BETWEEN 8 AND 10) AND a!=9)
   10077          OR c=22022
   10078          OR ((a BETWEEN 79 AND 81) AND a!=80)
   10079          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   10080          OR c=25025
   10081   }
   10082 } {8 10 64 65 66 73 74 75 79 81 85 scan 0 sort 0}
   10083 do_test where7-2.435.2 {
   10084   count_steps_sort {
   10085      SELECT a FROM t3
   10086       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   10087          OR ((a BETWEEN 8 AND 10) AND a!=9)
   10088          OR c=22022
   10089          OR ((a BETWEEN 79 AND 81) AND a!=80)
   10090          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   10091          OR c=25025
   10092   }
   10093 } {8 10 64 65 66 73 74 75 79 81 85 scan 0 sort 0}
   10094 do_test where7-2.436.1 {
   10095   count_steps_sort {
   10096      SELECT a FROM t2
   10097       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   10098          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   10099          OR b=47
   10100          OR ((a BETWEEN 44 AND 46) AND a!=45)
   10101          OR a=92
   10102          OR b=795
   10103          OR b=25
   10104          OR c=7007
   10105          OR a=93
   10106          OR ((a BETWEEN 93 AND 95) AND a!=94)
   10107          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   10108   }
   10109 } {14 18 19 20 21 40 44 46 66 74 76 92 93 95 scan 0 sort 0}
   10110 do_test where7-2.436.2 {
   10111   count_steps_sort {
   10112      SELECT a FROM t3
   10113       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   10114          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   10115          OR b=47
   10116          OR ((a BETWEEN 44 AND 46) AND a!=45)
   10117          OR a=92
   10118          OR b=795
   10119          OR b=25
   10120          OR c=7007
   10121          OR a=93
   10122          OR ((a BETWEEN 93 AND 95) AND a!=94)
   10123          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   10124   }
   10125 } {14 18 19 20 21 40 44 46 66 74 76 92 93 95 scan 0 sort 0}
   10126 do_test where7-2.437.1 {
   10127   count_steps_sort {
   10128      SELECT a FROM t2
   10129       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10130          OR a=13
   10131          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   10132          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   10133          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   10134          OR c=29029
   10135          OR b=311
   10136          OR b=366
   10137          OR a=94
   10138          OR a=72
   10139   }
   10140 } {6 13 66 72 85 86 87 94 scan 0 sort 0}
   10141 do_test where7-2.437.2 {
   10142   count_steps_sort {
   10143      SELECT a FROM t3
   10144       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10145          OR a=13
   10146          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   10147          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   10148          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   10149          OR c=29029
   10150          OR b=311
   10151          OR b=366
   10152          OR a=94
   10153          OR a=72
   10154   }
   10155 } {6 13 66 72 85 86 87 94 scan 0 sort 0}
   10156 do_test where7-2.438.1 {
   10157   count_steps_sort {
   10158      SELECT a FROM t2
   10159       WHERE c=26026
   10160          OR a=96
   10161          OR a=22
   10162          OR b=341
   10163          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   10164          OR b=872
   10165          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   10166          OR ((a BETWEEN 25 AND 27) AND a!=26)
   10167   }
   10168 } {2 22 25 27 31 76 77 78 96 scan 0 sort 0}
   10169 do_test where7-2.438.2 {
   10170   count_steps_sort {
   10171      SELECT a FROM t3
   10172       WHERE c=26026
   10173          OR a=96
   10174          OR a=22
   10175          OR b=341
   10176          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   10177          OR b=872
   10178          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   10179          OR ((a BETWEEN 25 AND 27) AND a!=26)
   10180   }
   10181 } {2 22 25 27 31 76 77 78 96 scan 0 sort 0}
   10182 do_test where7-2.439.1 {
   10183   count_steps_sort {
   10184      SELECT a FROM t2
   10185       WHERE (d>=82.0 AND d<83.0 AND d NOT NULL)
   10186          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   10187          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   10188          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   10189          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10190          OR a=41
   10191          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   10192          OR (g='onmlkji' AND f GLOB 'zabcd*')
   10193          OR b=913
   10194   }
   10195 } {6 23 36 41 51 63 65 82 83 scan 0 sort 0}
   10196 do_test where7-2.439.2 {
   10197   count_steps_sort {
   10198      SELECT a FROM t3
   10199       WHERE (d>=82.0 AND d<83.0 AND d NOT NULL)
   10200          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   10201          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   10202          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   10203          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10204          OR a=41
   10205          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   10206          OR (g='onmlkji' AND f GLOB 'zabcd*')
   10207          OR b=913
   10208   }
   10209 } {6 23 36 41 51 63 65 82 83 scan 0 sort 0}
   10210 do_test where7-2.440.1 {
   10211   count_steps_sort {
   10212      SELECT a FROM t2
   10213       WHERE ((a BETWEEN 42 AND 44) AND a!=43)
   10214          OR a=90
   10215   }
   10216 } {42 44 90 scan 0 sort 0}
   10217 do_test where7-2.440.2 {
   10218   count_steps_sort {
   10219      SELECT a FROM t3
   10220       WHERE ((a BETWEEN 42 AND 44) AND a!=43)
   10221          OR a=90
   10222   }
   10223 } {42 44 90 scan 0 sort 0}
   10224 do_test where7-2.441.1 {
   10225   count_steps_sort {
   10226      SELECT a FROM t2
   10227       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   10228          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   10229          OR b=484
   10230   }
   10231 } {21 44 scan 0 sort 0}
   10232 do_test where7-2.441.2 {
   10233   count_steps_sort {
   10234      SELECT a FROM t3
   10235       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   10236          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   10237          OR b=484
   10238   }
   10239 } {21 44 scan 0 sort 0}
   10240 do_test where7-2.442.1 {
   10241   count_steps_sort {
   10242      SELECT a FROM t2
   10243       WHERE (d>=22.0 AND d<23.0 AND d NOT NULL)
   10244          OR b=377
   10245          OR b=363
   10246          OR ((a BETWEEN 55 AND 57) AND a!=56)
   10247          OR b=737
   10248          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   10249          OR b=506
   10250          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   10251          OR a=16
   10252   }
   10253 } {16 22 25 33 46 55 57 67 100 scan 0 sort 0}
   10254 do_test where7-2.442.2 {
   10255   count_steps_sort {
   10256      SELECT a FROM t3
   10257       WHERE (d>=22.0 AND d<23.0 AND d NOT NULL)
   10258          OR b=377
   10259          OR b=363
   10260          OR ((a BETWEEN 55 AND 57) AND a!=56)
   10261          OR b=737
   10262          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   10263          OR b=506
   10264          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   10265          OR a=16
   10266   }
   10267 } {16 22 25 33 46 55 57 67 100 scan 0 sort 0}
   10268 do_test where7-2.443.1 {
   10269   count_steps_sort {
   10270      SELECT a FROM t2
   10271       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   10272          OR b=102
   10273          OR b=212
   10274          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   10275          OR b=487
   10276          OR (g='ihgfedc' AND f GLOB 'efghi*')
   10277   }
   10278 } {37 77 82 scan 0 sort 0}
   10279 do_test where7-2.443.2 {
   10280   count_steps_sort {
   10281      SELECT a FROM t3
   10282       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   10283          OR b=102
   10284          OR b=212
   10285          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   10286          OR b=487
   10287          OR (g='ihgfedc' AND f GLOB 'efghi*')
   10288   }
   10289 } {37 77 82 scan 0 sort 0}
   10290 do_test where7-2.444.1 {
   10291   count_steps_sort {
   10292      SELECT a FROM t2
   10293       WHERE b=154
   10294          OR a=51
   10295          OR b=520
   10296   }
   10297 } {14 51 scan 0 sort 0}
   10298 do_test where7-2.444.2 {
   10299   count_steps_sort {
   10300      SELECT a FROM t3
   10301       WHERE b=154
   10302          OR a=51
   10303          OR b=520
   10304   }
   10305 } {14 51 scan 0 sort 0}
   10306 do_test where7-2.445.1 {
   10307   count_steps_sort {
   10308      SELECT a FROM t2
   10309       WHERE b=872
   10310          OR ((a BETWEEN 58 AND 60) AND a!=59)
   10311          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   10312          OR b=957
   10313          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   10314          OR a=67
   10315          OR a=72
   10316   }
   10317 } {21 42 47 58 60 67 72 73 87 99 scan 0 sort 0}
   10318 do_test where7-2.445.2 {
   10319   count_steps_sort {
   10320      SELECT a FROM t3
   10321       WHERE b=872
   10322          OR ((a BETWEEN 58 AND 60) AND a!=59)
   10323          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   10324          OR b=957
   10325          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   10326          OR a=67
   10327          OR a=72
   10328   }
   10329 } {21 42 47 58 60 67 72 73 87 99 scan 0 sort 0}
   10330 do_test where7-2.446.1 {
   10331   count_steps_sort {
   10332      SELECT a FROM t2
   10333       WHERE b=66
   10334          OR b=102
   10335          OR b=396
   10336          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   10337          OR ((a BETWEEN 7 AND 9) AND a!=8)
   10338          OR b=759
   10339          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10340          OR f='ghijklmno'
   10341          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10342          OR ((a BETWEEN 90 AND 92) AND a!=91)
   10343          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   10344   }
   10345 } {6 7 9 14 32 36 58 69 84 90 92 97 100 scan 0 sort 0}
   10346 do_test where7-2.446.2 {
   10347   count_steps_sort {
   10348      SELECT a FROM t3
   10349       WHERE b=66
   10350          OR b=102
   10351          OR b=396
   10352          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   10353          OR ((a BETWEEN 7 AND 9) AND a!=8)
   10354          OR b=759
   10355          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10356          OR f='ghijklmno'
   10357          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10358          OR ((a BETWEEN 90 AND 92) AND a!=91)
   10359          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   10360   }
   10361 } {6 7 9 14 32 36 58 69 84 90 92 97 100 scan 0 sort 0}
   10362 do_test where7-2.447.1 {
   10363   count_steps_sort {
   10364      SELECT a FROM t2
   10365       WHERE ((a BETWEEN 69 AND 71) AND a!=70)
   10366          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   10367          OR (g='onmlkji' AND f GLOB 'wxyza*')
   10368          OR a=72
   10369          OR b=1100
   10370          OR b=102
   10371          OR b=135
   10372   }
   10373 } {24 48 50 69 71 72 76 100 scan 0 sort 0}
   10374 do_test where7-2.447.2 {
   10375   count_steps_sort {
   10376      SELECT a FROM t3
   10377       WHERE ((a BETWEEN 69 AND 71) AND a!=70)
   10378          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   10379          OR (g='onmlkji' AND f GLOB 'wxyza*')
   10380          OR a=72
   10381          OR b=1100
   10382          OR b=102
   10383          OR b=135
   10384   }
   10385 } {24 48 50 69 71 72 76 100 scan 0 sort 0}
   10386 do_test where7-2.448.1 {
   10387   count_steps_sort {
   10388      SELECT a FROM t2
   10389       WHERE b=99
   10390          OR a=76
   10391   }
   10392 } {9 76 scan 0 sort 0}
   10393 do_test where7-2.448.2 {
   10394   count_steps_sort {
   10395      SELECT a FROM t3
   10396       WHERE b=99
   10397          OR a=76
   10398   }
   10399 } {9 76 scan 0 sort 0}
   10400 do_test where7-2.449.1 {
   10401   count_steps_sort {
   10402      SELECT a FROM t2
   10403       WHERE b=891
   10404          OR b=806
   10405          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   10406          OR ((a BETWEEN 85 AND 87) AND a!=86)
   10407          OR b=861
   10408          OR ((a BETWEEN 82 AND 84) AND a!=83)
   10409          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   10410   }
   10411 } {19 34 81 82 84 85 87 scan 0 sort 0}
   10412 do_test where7-2.449.2 {
   10413   count_steps_sort {
   10414      SELECT a FROM t3
   10415       WHERE b=891
   10416          OR b=806
   10417          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   10418          OR ((a BETWEEN 85 AND 87) AND a!=86)
   10419          OR b=861
   10420          OR ((a BETWEEN 82 AND 84) AND a!=83)
   10421          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   10422   }
   10423 } {19 34 81 82 84 85 87 scan 0 sort 0}
   10424 do_test where7-2.450.1 {
   10425   count_steps_sort {
   10426      SELECT a FROM t2
   10427       WHERE b=1034
   10428          OR b=91
   10429   }
   10430 } {94 scan 0 sort 0}
   10431 do_test where7-2.450.2 {
   10432   count_steps_sort {
   10433      SELECT a FROM t3
   10434       WHERE b=1034
   10435          OR b=91
   10436   }
   10437 } {94 scan 0 sort 0}
   10438 do_test where7-2.451.1 {
   10439   count_steps_sort {
   10440      SELECT a FROM t2
   10441       WHERE b=47
   10442          OR a=91
   10443          OR d>1e10
   10444          OR (g='srqponm' AND f GLOB 'cdefg*')
   10445   }
   10446 } {28 91 scan 0 sort 0}
   10447 do_test where7-2.451.2 {
   10448   count_steps_sort {
   10449      SELECT a FROM t3
   10450       WHERE b=47
   10451          OR a=91
   10452          OR d>1e10
   10453          OR (g='srqponm' AND f GLOB 'cdefg*')
   10454   }
   10455 } {28 91 scan 0 sort 0}
   10456 do_test where7-2.452.1 {
   10457   count_steps_sort {
   10458      SELECT a FROM t2
   10459       WHERE b=1023
   10460          OR f='zabcdefgh'
   10461          OR b=451
   10462          OR b=443
   10463          OR c>=34035
   10464          OR b=58
   10465   }
   10466 } {25 41 51 77 93 scan 0 sort 0}
   10467 do_test where7-2.452.2 {
   10468   count_steps_sort {
   10469      SELECT a FROM t3
   10470       WHERE b=1023
   10471          OR f='zabcdefgh'
   10472          OR b=451
   10473          OR b=443
   10474          OR c>=34035
   10475          OR b=58
   10476   }
   10477 } {25 41 51 77 93 scan 0 sort 0}
   10478 do_test where7-2.453.1 {
   10479   count_steps_sort {
   10480      SELECT a FROM t2
   10481       WHERE b=971
   10482          OR b=36
   10483          OR a=11
   10484          OR f='hijklmnop'
   10485   }
   10486 } {7 11 33 59 85 scan 0 sort 0}
   10487 do_test where7-2.453.2 {
   10488   count_steps_sort {
   10489      SELECT a FROM t3
   10490       WHERE b=971
   10491          OR b=36
   10492          OR a=11
   10493          OR f='hijklmnop'
   10494   }
   10495 } {7 11 33 59 85 scan 0 sort 0}
   10496 do_test where7-2.454.1 {
   10497   count_steps_sort {
   10498      SELECT a FROM t2
   10499       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   10500          OR b=619
   10501          OR ((a BETWEEN 91 AND 93) AND a!=92)
   10502          OR c=11011
   10503          OR b=550
   10504          OR b=1059
   10505          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   10506          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   10507          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   10508          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   10509          OR b=737
   10510   }
   10511 } {3 18 29 31 32 33 50 55 67 78 81 84 91 92 93 scan 0 sort 0}
   10512 do_test where7-2.454.2 {
   10513   count_steps_sort {
   10514      SELECT a FROM t3
   10515       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   10516          OR b=619
   10517          OR ((a BETWEEN 91 AND 93) AND a!=92)
   10518          OR c=11011
   10519          OR b=550
   10520          OR b=1059
   10521          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   10522          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   10523          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   10524          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   10525          OR b=737
   10526   }
   10527 } {3 18 29 31 32 33 50 55 67 78 81 84 91 92 93 scan 0 sort 0}
   10528 do_test where7-2.455.1 {
   10529   count_steps_sort {
   10530      SELECT a FROM t2
   10531       WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
   10532          OR ((a BETWEEN 59 AND 61) AND a!=60)
   10533          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   10534          OR a=78
   10535          OR a=27
   10536          OR b=792
   10537          OR b=946
   10538          OR c=22022
   10539          OR a=23
   10540          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   10541          OR b=388
   10542   }
   10543 } {13 23 27 39 59 61 64 65 66 72 78 80 86 91 99 scan 0 sort 0}
   10544 do_test where7-2.455.2 {
   10545   count_steps_sort {
   10546      SELECT a FROM t3
   10547       WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
   10548          OR ((a BETWEEN 59 AND 61) AND a!=60)
   10549          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   10550          OR a=78
   10551          OR a=27
   10552          OR b=792
   10553          OR b=946
   10554          OR c=22022
   10555          OR a=23
   10556          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   10557          OR b=388
   10558   }
   10559 } {13 23 27 39 59 61 64 65 66 72 78 80 86 91 99 scan 0 sort 0}
   10560 do_test where7-2.456.1 {
   10561   count_steps_sort {
   10562      SELECT a FROM t2
   10563       WHERE c=32032
   10564          OR f IS NULL
   10565          OR ((a BETWEEN 37 AND 39) AND a!=38)
   10566          OR (g='jihgfed' AND f GLOB 'wxyza*')
   10567          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10568          OR b=825
   10569   }
   10570 } {4 37 39 74 75 94 95 96 scan 0 sort 0}
   10571 do_test where7-2.456.2 {
   10572   count_steps_sort {
   10573      SELECT a FROM t3
   10574       WHERE c=32032
   10575          OR f IS NULL
   10576          OR ((a BETWEEN 37 AND 39) AND a!=38)
   10577          OR (g='jihgfed' AND f GLOB 'wxyza*')
   10578          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10579          OR b=825
   10580   }
   10581 } {4 37 39 74 75 94 95 96 scan 0 sort 0}
   10582 do_test where7-2.457.1 {
   10583   count_steps_sort {
   10584      SELECT a FROM t2
   10585       WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
   10586          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   10587          OR ((a BETWEEN 5 AND 7) AND a!=6)
   10588          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   10589          OR b=1078
   10590          OR b=198
   10591          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   10592          OR b=55
   10593          OR b=517
   10594          OR b=740
   10595   }
   10596 } {5 7 18 21 47 54 67 73 84 98 99 scan 0 sort 0}
   10597 do_test where7-2.457.2 {
   10598   count_steps_sort {
   10599      SELECT a FROM t3
   10600       WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
   10601          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   10602          OR ((a BETWEEN 5 AND 7) AND a!=6)
   10603          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   10604          OR b=1078
   10605          OR b=198
   10606          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   10607          OR b=55
   10608          OR b=517
   10609          OR b=740
   10610   }
   10611 } {5 7 18 21 47 54 67 73 84 98 99 scan 0 sort 0}
   10612 do_test where7-2.458.1 {
   10613   count_steps_sort {
   10614      SELECT a FROM t2
   10615       WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
   10616          OR c=25025
   10617          OR b=550
   10618          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   10619          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   10620   }
   10621 } {8 22 50 53 73 74 75 scan 0 sort 0}
   10622 do_test where7-2.458.2 {
   10623   count_steps_sort {
   10624      SELECT a FROM t3
   10625       WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
   10626          OR c=25025
   10627          OR b=550
   10628          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   10629          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   10630   }
   10631 } {8 22 50 53 73 74 75 scan 0 sort 0}
   10632 do_test where7-2.459.1 {
   10633   count_steps_sort {
   10634      SELECT a FROM t2
   10635       WHERE b=432
   10636          OR f='opqrstuvw'
   10637          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   10638   }
   10639 } {14 40 66 68 92 scan 0 sort 0}
   10640 do_test where7-2.459.2 {
   10641   count_steps_sort {
   10642      SELECT a FROM t3
   10643       WHERE b=432
   10644          OR f='opqrstuvw'
   10645          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   10646   }
   10647 } {14 40 66 68 92 scan 0 sort 0}
   10648 do_test where7-2.460.1 {
   10649   count_steps_sort {
   10650      SELECT a FROM t2
   10651       WHERE ((a BETWEEN 14 AND 16) AND a!=15)
   10652          OR b=847
   10653          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   10654          OR b=583
   10655          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10656          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   10657          OR ((a BETWEEN 40 AND 42) AND a!=41)
   10658          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   10659          OR b=938
   10660   }
   10661 } {11 14 16 26 37 40 42 53 63 65 75 77 89 scan 0 sort 0}
   10662 do_test where7-2.460.2 {
   10663   count_steps_sort {
   10664      SELECT a FROM t3
   10665       WHERE ((a BETWEEN 14 AND 16) AND a!=15)
   10666          OR b=847
   10667          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   10668          OR b=583
   10669          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10670          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   10671          OR ((a BETWEEN 40 AND 42) AND a!=41)
   10672          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   10673          OR b=938
   10674   }
   10675 } {11 14 16 26 37 40 42 53 63 65 75 77 89 scan 0 sort 0}
   10676 do_test where7-2.461.1 {
   10677   count_steps_sort {
   10678      SELECT a FROM t2
   10679       WHERE b=671
   10680          OR a=56
   10681          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   10682          OR b=157
   10683          OR a=83
   10684          OR ((a BETWEEN 73 AND 75) AND a!=74)
   10685          OR c=21021
   10686          OR b=319
   10687          OR b=187
   10688          OR ((a BETWEEN 65 AND 67) AND a!=66)
   10689          OR b=839
   10690   }
   10691 } {17 29 49 56 61 62 63 65 67 73 75 83 scan 0 sort 0}
   10692 do_test where7-2.461.2 {
   10693   count_steps_sort {
   10694      SELECT a FROM t3
   10695       WHERE b=671
   10696          OR a=56
   10697          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   10698          OR b=157
   10699          OR a=83
   10700          OR ((a BETWEEN 73 AND 75) AND a!=74)
   10701          OR c=21021
   10702          OR b=319
   10703          OR b=187
   10704          OR ((a BETWEEN 65 AND 67) AND a!=66)
   10705          OR b=839
   10706   }
   10707 } {17 29 49 56 61 62 63 65 67 73 75 83 scan 0 sort 0}
   10708 do_test where7-2.462.1 {
   10709   count_steps_sort {
   10710      SELECT a FROM t2
   10711       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10712          OR b=586
   10713          OR d<0.0
   10714          OR c=9009
   10715   }
   10716 } {25 26 27 72 scan 0 sort 0}
   10717 do_test where7-2.462.2 {
   10718   count_steps_sort {
   10719      SELECT a FROM t3
   10720       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10721          OR b=586
   10722          OR d<0.0
   10723          OR c=9009
   10724   }
   10725 } {25 26 27 72 scan 0 sort 0}
   10726 do_test where7-2.463.1 {
   10727   count_steps_sort {
   10728      SELECT a FROM t2
   10729       WHERE a=82
   10730          OR a=34
   10731          OR f='jklmnopqr'
   10732          OR a=82
   10733          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   10734          OR b=454
   10735          OR b=355
   10736          OR c=21021
   10737          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10738          OR a=30
   10739   }
   10740 } {9 16 30 34 35 61 62 63 65 82 87 scan 0 sort 0}
   10741 do_test where7-2.463.2 {
   10742   count_steps_sort {
   10743      SELECT a FROM t3
   10744       WHERE a=82
   10745          OR a=34
   10746          OR f='jklmnopqr'
   10747          OR a=82
   10748          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   10749          OR b=454
   10750          OR b=355
   10751          OR c=21021
   10752          OR ((a BETWEEN 63 AND 65) AND a!=64)
   10753          OR a=30
   10754   }
   10755 } {9 16 30 34 35 61 62 63 65 82 87 scan 0 sort 0}
   10756 do_test where7-2.464.1 {
   10757   count_steps_sort {
   10758      SELECT a FROM t2
   10759       WHERE ((a BETWEEN 44 AND 46) AND a!=45)
   10760          OR a=53
   10761          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   10762          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   10763          OR b=594
   10764          OR b=80
   10765          OR ((a BETWEEN 18 AND 20) AND a!=19)
   10766          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   10767          OR d>1e10
   10768   }
   10769 } {18 20 23 44 46 49 53 54 scan 0 sort 0}
   10770 do_test where7-2.464.2 {
   10771   count_steps_sort {
   10772      SELECT a FROM t3
   10773       WHERE ((a BETWEEN 44 AND 46) AND a!=45)
   10774          OR a=53
   10775          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   10776          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   10777          OR b=594
   10778          OR b=80
   10779          OR ((a BETWEEN 18 AND 20) AND a!=19)
   10780          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   10781          OR d>1e10
   10782   }
   10783 } {18 20 23 44 46 49 53 54 scan 0 sort 0}
   10784 do_test where7-2.465.1 {
   10785   count_steps_sort {
   10786      SELECT a FROM t2
   10787       WHERE f='opqrstuvw'
   10788          OR a=7
   10789   }
   10790 } {7 14 40 66 92 scan 0 sort 0}
   10791 do_test where7-2.465.2 {
   10792   count_steps_sort {
   10793      SELECT a FROM t3
   10794       WHERE f='opqrstuvw'
   10795          OR a=7
   10796   }
   10797 } {7 14 40 66 92 scan 0 sort 0}
   10798 do_test where7-2.466.1 {
   10799   count_steps_sort {
   10800      SELECT a FROM t2
   10801       WHERE b=627
   10802          OR ((a BETWEEN 75 AND 77) AND a!=76)
   10803          OR ((a BETWEEN 43 AND 45) AND a!=44)
   10804          OR a=90
   10805          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   10806   }
   10807 } {33 43 45 57 75 77 90 scan 0 sort 0}
   10808 do_test where7-2.466.2 {
   10809   count_steps_sort {
   10810      SELECT a FROM t3
   10811       WHERE b=627
   10812          OR ((a BETWEEN 75 AND 77) AND a!=76)
   10813          OR ((a BETWEEN 43 AND 45) AND a!=44)
   10814          OR a=90
   10815          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   10816   }
   10817 } {33 43 45 57 75 77 90 scan 0 sort 0}
   10818 do_test where7-2.467.1 {
   10819   count_steps_sort {
   10820      SELECT a FROM t2
   10821       WHERE a=59
   10822          OR ((a BETWEEN 69 AND 71) AND a!=70)
   10823          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   10824          OR (g='xwvutsr' AND f GLOB 'fghij*')
   10825          OR f='wxyzabcde'
   10826          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   10827          OR a=70
   10828          OR ((a BETWEEN 23 AND 25) AND a!=24)
   10829          OR ((a BETWEEN 14 AND 16) AND a!=15)
   10830   }
   10831 } {5 9 14 16 22 23 25 48 51 59 69 70 71 74 77 100 scan 0 sort 0}
   10832 do_test where7-2.467.2 {
   10833   count_steps_sort {
   10834      SELECT a FROM t3
   10835       WHERE a=59
   10836          OR ((a BETWEEN 69 AND 71) AND a!=70)
   10837          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   10838          OR (g='xwvutsr' AND f GLOB 'fghij*')
   10839          OR f='wxyzabcde'
   10840          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   10841          OR a=70
   10842          OR ((a BETWEEN 23 AND 25) AND a!=24)
   10843          OR ((a BETWEEN 14 AND 16) AND a!=15)
   10844   }
   10845 } {5 9 14 16 22 23 25 48 51 59 69 70 71 74 77 100 scan 0 sort 0}
   10846 do_test where7-2.468.1 {
   10847   count_steps_sort {
   10848      SELECT a FROM t2
   10849       WHERE a=69
   10850          OR (g='ihgfedc' AND f GLOB 'defgh*')
   10851   }
   10852 } {69 81 scan 0 sort 0}
   10853 do_test where7-2.468.2 {
   10854   count_steps_sort {
   10855      SELECT a FROM t3
   10856       WHERE a=69
   10857          OR (g='ihgfedc' AND f GLOB 'defgh*')
   10858   }
   10859 } {69 81 scan 0 sort 0}
   10860 do_test where7-2.469.1 {
   10861   count_steps_sort {
   10862      SELECT a FROM t2
   10863       WHERE a=41
   10864          OR a=43
   10865          OR a=92
   10866          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   10867          OR (g='mlkjihg' AND f GLOB 'klmno*')
   10868   }
   10869 } {41 43 62 92 95 scan 0 sort 0}
   10870 do_test where7-2.469.2 {
   10871   count_steps_sort {
   10872      SELECT a FROM t3
   10873       WHERE a=41
   10874          OR a=43
   10875          OR a=92
   10876          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   10877          OR (g='mlkjihg' AND f GLOB 'klmno*')
   10878   }
   10879 } {41 43 62 92 95 scan 0 sort 0}
   10880 do_test where7-2.470.1 {
   10881   count_steps_sort {
   10882      SELECT a FROM t2
   10883       WHERE b=300
   10884          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   10885          OR b=935
   10886          OR b=190
   10887   }
   10888 } {52 85 scan 0 sort 0}
   10889 do_test where7-2.470.2 {
   10890   count_steps_sort {
   10891      SELECT a FROM t3
   10892       WHERE b=300
   10893          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   10894          OR b=935
   10895          OR b=190
   10896   }
   10897 } {52 85 scan 0 sort 0}
   10898 do_test where7-2.471.1 {
   10899   count_steps_sort {
   10900      SELECT a FROM t2
   10901       WHERE f='fghijklmn'
   10902          OR f='fghijklmn'
   10903          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10904          OR b=465
   10905          OR b=586
   10906          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   10907          OR b=88
   10908          OR ((a BETWEEN 30 AND 32) AND a!=31)
   10909          OR b=726
   10910          OR ((a BETWEEN 51 AND 53) AND a!=52)
   10911   }
   10912 } {4 5 8 20 30 31 32 51 53 57 66 83 scan 0 sort 0}
   10913 do_test where7-2.471.2 {
   10914   count_steps_sort {
   10915      SELECT a FROM t3
   10916       WHERE f='fghijklmn'
   10917          OR f='fghijklmn'
   10918          OR (g='xwvutsr' AND f GLOB 'efghi*')
   10919          OR b=465
   10920          OR b=586
   10921          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   10922          OR b=88
   10923          OR ((a BETWEEN 30 AND 32) AND a!=31)
   10924          OR b=726
   10925          OR ((a BETWEEN 51 AND 53) AND a!=52)
   10926   }
   10927 } {4 5 8 20 30 31 32 51 53 57 66 83 scan 0 sort 0}
   10928 do_test where7-2.472.1 {
   10929   count_steps_sort {
   10930      SELECT a FROM t2
   10931       WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
   10932          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   10933          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   10934          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   10935          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10936          OR b=814
   10937          OR a=20
   10938          OR 1000000<b
   10939          OR b=792
   10940   }
   10941 } {20 25 34 51 72 74 77 85 97 100 scan 0 sort 0}
   10942 do_test where7-2.472.2 {
   10943   count_steps_sort {
   10944      SELECT a FROM t3
   10945       WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
   10946          OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
   10947          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   10948          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   10949          OR (g='edcbazy' AND f GLOB 'wxyza*')
   10950          OR b=814
   10951          OR a=20
   10952          OR 1000000<b
   10953          OR b=792
   10954   }
   10955 } {20 25 34 51 72 74 77 85 97 100 scan 0 sort 0}
   10956 do_test where7-2.473.1 {
   10957   count_steps_sort {
   10958      SELECT a FROM t2
   10959       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10960          OR ((a BETWEEN 53 AND 55) AND a!=54)
   10961          OR c=1001
   10962          OR b=484
   10963          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   10964          OR c<=10
   10965          OR a=92
   10966          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   10967          OR ((a BETWEEN 0 AND 2) AND a!=1)
   10968          OR b=1026
   10969   }
   10970 } {1 2 3 25 44 53 55 65 72 92 scan 0 sort 0}
   10971 do_test where7-2.473.2 {
   10972   count_steps_sort {
   10973      SELECT a FROM t3
   10974       WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
   10975          OR ((a BETWEEN 53 AND 55) AND a!=54)
   10976          OR c=1001
   10977          OR b=484
   10978          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   10979          OR c<=10
   10980          OR a=92
   10981          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   10982          OR ((a BETWEEN 0 AND 2) AND a!=1)
   10983          OR b=1026
   10984   }
   10985 } {1 2 3 25 44 53 55 65 72 92 scan 0 sort 0}
   10986 do_test where7-2.474.1 {
   10987   count_steps_sort {
   10988      SELECT a FROM t2
   10989       WHERE a=54
   10990          OR (g='xwvutsr' AND f GLOB 'defgh*')
   10991          OR b=993
   10992          OR c=22022
   10993          OR a=68
   10994          OR ((a BETWEEN 99 AND 101) AND a!=100)
   10995          OR a=62
   10996          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   10997          OR b=1015
   10998   }
   10999 } {3 29 54 55 62 64 65 66 68 81 99 scan 0 sort 0}
   11000 do_test where7-2.474.2 {
   11001   count_steps_sort {
   11002      SELECT a FROM t3
   11003       WHERE a=54
   11004          OR (g='xwvutsr' AND f GLOB 'defgh*')
   11005          OR b=993
   11006          OR c=22022
   11007          OR a=68
   11008          OR ((a BETWEEN 99 AND 101) AND a!=100)
   11009          OR a=62
   11010          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   11011          OR b=1015
   11012   }
   11013 } {3 29 54 55 62 64 65 66 68 81 99 scan 0 sort 0}
   11014 do_test where7-2.475.1 {
   11015   count_steps_sort {
   11016      SELECT a FROM t2
   11017       WHERE b=319
   11018          OR a=50
   11019          OR (g='srqponm' AND f GLOB 'defgh*')
   11020          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   11021          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   11022          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   11023          OR a=96
   11024   }
   11025 } {10 29 50 55 92 96 scan 0 sort 0}
   11026 do_test where7-2.475.2 {
   11027   count_steps_sort {
   11028      SELECT a FROM t3
   11029       WHERE b=319
   11030          OR a=50
   11031          OR (g='srqponm' AND f GLOB 'defgh*')
   11032          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   11033          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   11034          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   11035          OR a=96
   11036   }
   11037 } {10 29 50 55 92 96 scan 0 sort 0}
   11038 do_test where7-2.476.1 {
   11039   count_steps_sort {
   11040      SELECT a FROM t2
   11041       WHERE b=971
   11042          OR c=18018
   11043          OR b=564
   11044          OR b=583
   11045          OR b=80
   11046   }
   11047 } {52 53 54 scan 0 sort 0}
   11048 do_test where7-2.476.2 {
   11049   count_steps_sort {
   11050      SELECT a FROM t3
   11051       WHERE b=971
   11052          OR c=18018
   11053          OR b=564
   11054          OR b=583
   11055          OR b=80
   11056   }
   11057 } {52 53 54 scan 0 sort 0}
   11058 do_test where7-2.477.1 {
   11059   count_steps_sort {
   11060      SELECT a FROM t2
   11061       WHERE (d>=35.0 AND d<36.0 AND d NOT NULL)
   11062          OR b=1026
   11063          OR ((a BETWEEN 14 AND 16) AND a!=15)
   11064   }
   11065 } {14 16 35 scan 0 sort 0}
   11066 do_test where7-2.477.2 {
   11067   count_steps_sort {
   11068      SELECT a FROM t3
   11069       WHERE (d>=35.0 AND d<36.0 AND d NOT NULL)
   11070          OR b=1026
   11071          OR ((a BETWEEN 14 AND 16) AND a!=15)
   11072   }
   11073 } {14 16 35 scan 0 sort 0}
   11074 do_test where7-2.478.1 {
   11075   count_steps_sort {
   11076      SELECT a FROM t2
   11077       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   11078          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   11079          OR b=407
   11080          OR b=454
   11081          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11082          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   11083          OR b=627
   11084          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   11085   }
   11086 } {9 13 34 35 37 39 46 57 61 65 87 91 scan 0 sort 0}
   11087 do_test where7-2.478.2 {
   11088   count_steps_sort {
   11089      SELECT a FROM t3
   11090       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   11091          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   11092          OR b=407
   11093          OR b=454
   11094          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11095          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   11096          OR b=627
   11097          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   11098   }
   11099 } {9 13 34 35 37 39 46 57 61 65 87 91 scan 0 sort 0}
   11100 do_test where7-2.479.1 {
   11101   count_steps_sort {
   11102      SELECT a FROM t2
   11103       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   11104          OR c=34034
   11105          OR ((a BETWEEN 24 AND 26) AND a!=25)
   11106          OR ((a BETWEEN 18 AND 20) AND a!=19)
   11107          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   11108          OR a=67
   11109   }
   11110 } {6 18 20 24 26 32 58 67 79 84 100 scan 0 sort 0}
   11111 do_test where7-2.479.2 {
   11112   count_steps_sort {
   11113      SELECT a FROM t3
   11114       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   11115          OR c=34034
   11116          OR ((a BETWEEN 24 AND 26) AND a!=25)
   11117          OR ((a BETWEEN 18 AND 20) AND a!=19)
   11118          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   11119          OR a=67
   11120   }
   11121 } {6 18 20 24 26 32 58 67 79 84 100 scan 0 sort 0}
   11122 do_test where7-2.480.1 {
   11123   count_steps_sort {
   11124      SELECT a FROM t2
   11125       WHERE a=97
   11126          OR b=575
   11127          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   11128          OR ((a BETWEEN 2 AND 4) AND a!=3)
   11129          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   11130          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   11131   }
   11132 } {1 2 4 16 42 68 81 94 97 scan 0 sort 0}
   11133 do_test where7-2.480.2 {
   11134   count_steps_sort {
   11135      SELECT a FROM t3
   11136       WHERE a=97
   11137          OR b=575
   11138          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   11139          OR ((a BETWEEN 2 AND 4) AND a!=3)
   11140          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   11141          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   11142   }
   11143 } {1 2 4 16 42 68 81 94 97 scan 0 sort 0}
   11144 do_test where7-2.481.1 {
   11145   count_steps_sort {
   11146      SELECT a FROM t2
   11147       WHERE b=561
   11148          OR b=773
   11149          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   11150          OR b=201
   11151          OR a=99
   11152          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   11153          OR ((a BETWEEN 36 AND 38) AND a!=37)
   11154          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11155          OR b=946
   11156          OR b=993
   11157          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   11158   }
   11159 } {19 23 36 38 46 51 86 94 99 scan 0 sort 0}
   11160 do_test where7-2.481.2 {
   11161   count_steps_sort {
   11162      SELECT a FROM t3
   11163       WHERE b=561
   11164          OR b=773
   11165          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   11166          OR b=201
   11167          OR a=99
   11168          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   11169          OR ((a BETWEEN 36 AND 38) AND a!=37)
   11170          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11171          OR b=946
   11172          OR b=993
   11173          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   11174   }
   11175 } {19 23 36 38 46 51 86 94 99 scan 0 sort 0}
   11176 do_test where7-2.482.1 {
   11177   count_steps_sort {
   11178      SELECT a FROM t2
   11179       WHERE b=806
   11180          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   11181          OR ((a BETWEEN 24 AND 26) AND a!=25)
   11182          OR b=916
   11183          OR b<0
   11184          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   11185          OR b=154
   11186          OR c=10010
   11187          OR b=451
   11188          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   11189   }
   11190 } {14 24 26 28 29 30 41 62 72 scan 0 sort 0}
   11191 do_test where7-2.482.2 {
   11192   count_steps_sort {
   11193      SELECT a FROM t3
   11194       WHERE b=806
   11195          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   11196          OR ((a BETWEEN 24 AND 26) AND a!=25)
   11197          OR b=916
   11198          OR b<0
   11199          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   11200          OR b=154
   11201          OR c=10010
   11202          OR b=451
   11203          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   11204   }
   11205 } {14 24 26 28 29 30 41 62 72 scan 0 sort 0}
   11206 do_test where7-2.483.1 {
   11207   count_steps_sort {
   11208      SELECT a FROM t2
   11209       WHERE b=836
   11210          OR d>1e10
   11211          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   11212          OR f='pqrstuvwx'
   11213          OR ((a BETWEEN 3 AND 5) AND a!=4)
   11214          OR f='abcdefghi'
   11215          OR (g='nmlkjih' AND f GLOB 'fghij*')
   11216          OR a=33
   11217          OR ((a BETWEEN 19 AND 21) AND a!=20)
   11218          OR ((a BETWEEN 88 AND 90) AND a!=89)
   11219          OR b=476
   11220   }
   11221 } {3 5 15 19 20 21 26 33 41 52 57 67 76 78 88 90 93 scan 0 sort 0}
   11222 do_test where7-2.483.2 {
   11223   count_steps_sort {
   11224      SELECT a FROM t3
   11225       WHERE b=836
   11226          OR d>1e10
   11227          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   11228          OR f='pqrstuvwx'
   11229          OR ((a BETWEEN 3 AND 5) AND a!=4)
   11230          OR f='abcdefghi'
   11231          OR (g='nmlkjih' AND f GLOB 'fghij*')
   11232          OR a=33
   11233          OR ((a BETWEEN 19 AND 21) AND a!=20)
   11234          OR ((a BETWEEN 88 AND 90) AND a!=89)
   11235          OR b=476
   11236   }
   11237 } {3 5 15 19 20 21 26 33 41 52 57 67 76 78 88 90 93 scan 0 sort 0}
   11238 do_test where7-2.484.1 {
   11239   count_steps_sort {
   11240      SELECT a FROM t2
   11241       WHERE a=48
   11242          OR a=92
   11243          OR a=1
   11244          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   11245          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   11246          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   11247          OR (g='rqponml' AND f GLOB 'lmnop*')
   11248          OR b=905
   11249          OR ((a BETWEEN 51 AND 53) AND a!=52)
   11250   }
   11251 } {1 4 7 28 30 37 48 51 53 56 82 92 scan 0 sort 0}
   11252 do_test where7-2.484.2 {
   11253   count_steps_sort {
   11254      SELECT a FROM t3
   11255       WHERE a=48
   11256          OR a=92
   11257          OR a=1
   11258          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   11259          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   11260          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   11261          OR (g='rqponml' AND f GLOB 'lmnop*')
   11262          OR b=905
   11263          OR ((a BETWEEN 51 AND 53) AND a!=52)
   11264   }
   11265 } {1 4 7 28 30 37 48 51 53 56 82 92 scan 0 sort 0}
   11266 do_test where7-2.485.1 {
   11267   count_steps_sort {
   11268      SELECT a FROM t2
   11269       WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
   11270          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   11271          OR b=212
   11272          OR a=42
   11273          OR a=92
   11274   }
   11275 } {4 17 42 92 scan 0 sort 0}
   11276 do_test where7-2.485.2 {
   11277   count_steps_sort {
   11278      SELECT a FROM t3
   11279       WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
   11280          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   11281          OR b=212
   11282          OR a=42
   11283          OR a=92
   11284   }
   11285 } {4 17 42 92 scan 0 sort 0}
   11286 do_test where7-2.486.1 {
   11287   count_steps_sort {
   11288      SELECT a FROM t2
   11289       WHERE b=740
   11290          OR b=564
   11291          OR (g='onmlkji' AND f GLOB 'zabcd*')
   11292          OR a=11
   11293          OR ((a BETWEEN 44 AND 46) AND a!=45)
   11294          OR b=322
   11295          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   11296          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   11297          OR b=902
   11298          OR c>=34035
   11299   }
   11300 } {6 11 22 44 46 51 82 scan 0 sort 0}
   11301 do_test where7-2.486.2 {
   11302   count_steps_sort {
   11303      SELECT a FROM t3
   11304       WHERE b=740
   11305          OR b=564
   11306          OR (g='onmlkji' AND f GLOB 'zabcd*')
   11307          OR a=11
   11308          OR ((a BETWEEN 44 AND 46) AND a!=45)
   11309          OR b=322
   11310          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   11311          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   11312          OR b=902
   11313          OR c>=34035
   11314   }
   11315 } {6 11 22 44 46 51 82 scan 0 sort 0}
   11316 do_test where7-2.487.1 {
   11317   count_steps_sort {
   11318      SELECT a FROM t2
   11319       WHERE ((a BETWEEN 52 AND 54) AND a!=53)
   11320          OR ((a BETWEEN 56 AND 58) AND a!=57)
   11321          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   11322          OR a=27
   11323          OR a=48
   11324          OR b=927
   11325          OR ((a BETWEEN 89 AND 91) AND a!=90)
   11326          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   11327          OR f='abcdefghi'
   11328          OR b=91
   11329          OR b=55
   11330   }
   11331 } {5 8 26 27 48 52 54 56 58 78 89 91 96 scan 0 sort 0}
   11332 do_test where7-2.487.2 {
   11333   count_steps_sort {
   11334      SELECT a FROM t3
   11335       WHERE ((a BETWEEN 52 AND 54) AND a!=53)
   11336          OR ((a BETWEEN 56 AND 58) AND a!=57)
   11337          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   11338          OR a=27
   11339          OR a=48
   11340          OR b=927
   11341          OR ((a BETWEEN 89 AND 91) AND a!=90)
   11342          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   11343          OR f='abcdefghi'
   11344          OR b=91
   11345          OR b=55
   11346   }
   11347 } {5 8 26 27 48 52 54 56 58 78 89 91 96 scan 0 sort 0}
   11348 do_test where7-2.488.1 {
   11349   count_steps_sort {
   11350      SELECT a FROM t2
   11351       WHERE (g='srqponm' AND f GLOB 'efghi*')
   11352          OR ((a BETWEEN 88 AND 90) AND a!=89)
   11353          OR a=20
   11354          OR b=11
   11355   }
   11356 } {1 20 30 88 90 scan 0 sort 0}
   11357 do_test where7-2.488.2 {
   11358   count_steps_sort {
   11359      SELECT a FROM t3
   11360       WHERE (g='srqponm' AND f GLOB 'efghi*')
   11361          OR ((a BETWEEN 88 AND 90) AND a!=89)
   11362          OR a=20
   11363          OR b=11
   11364   }
   11365 } {1 20 30 88 90 scan 0 sort 0}
   11366 do_test where7-2.489.1 {
   11367   count_steps_sort {
   11368      SELECT a FROM t2
   11369       WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
   11370          OR b=55
   11371          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   11372          OR (g='onmlkji' AND f GLOB 'abcde*')
   11373          OR a=50
   11374          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   11375          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   11376          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   11377   }
   11378 } {5 13 27 50 51 52 64 73 scan 0 sort 0}
   11379 do_test where7-2.489.2 {
   11380   count_steps_sort {
   11381      SELECT a FROM t3
   11382       WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
   11383          OR b=55
   11384          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   11385          OR (g='onmlkji' AND f GLOB 'abcde*')
   11386          OR a=50
   11387          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   11388          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   11389          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   11390   }
   11391 } {5 13 27 50 51 52 64 73 scan 0 sort 0}
   11392 do_test where7-2.490.1 {
   11393   count_steps_sort {
   11394      SELECT a FROM t2
   11395       WHERE (g='rqponml' AND f GLOB 'ijklm*')
   11396          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   11397   }
   11398 } {22 34 48 74 100 scan 0 sort 0}
   11399 do_test where7-2.490.2 {
   11400   count_steps_sort {
   11401      SELECT a FROM t3
   11402       WHERE (g='rqponml' AND f GLOB 'ijklm*')
   11403          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   11404   }
   11405 } {22 34 48 74 100 scan 0 sort 0}
   11406 do_test where7-2.491.1 {
   11407   count_steps_sort {
   11408      SELECT a FROM t2
   11409       WHERE b=704
   11410          OR b=924
   11411          OR (g='gfedcba' AND f GLOB 'mnopq*')
   11412          OR b=113
   11413   }
   11414 } {64 84 90 scan 0 sort 0}
   11415 do_test where7-2.491.2 {
   11416   count_steps_sort {
   11417      SELECT a FROM t3
   11418       WHERE b=704
   11419          OR b=924
   11420          OR (g='gfedcba' AND f GLOB 'mnopq*')
   11421          OR b=113
   11422   }
   11423 } {64 84 90 scan 0 sort 0}
   11424 do_test where7-2.492.1 {
   11425   count_steps_sort {
   11426      SELECT a FROM t2
   11427       WHERE ((a BETWEEN 20 AND 22) AND a!=21)
   11428          OR b=289
   11429          OR ((a BETWEEN 14 AND 16) AND a!=15)
   11430   }
   11431 } {14 16 20 22 scan 0 sort 0}
   11432 do_test where7-2.492.2 {
   11433   count_steps_sort {
   11434      SELECT a FROM t3
   11435       WHERE ((a BETWEEN 20 AND 22) AND a!=21)
   11436          OR b=289
   11437          OR ((a BETWEEN 14 AND 16) AND a!=15)
   11438   }
   11439 } {14 16 20 22 scan 0 sort 0}
   11440 do_test where7-2.493.1 {
   11441   count_steps_sort {
   11442      SELECT a FROM t2
   11443       WHERE b=935
   11444          OR b=1001
   11445          OR ((a BETWEEN 78 AND 80) AND a!=79)
   11446          OR a=31
   11447          OR a=56
   11448   }
   11449 } {31 56 78 80 85 91 scan 0 sort 0}
   11450 do_test where7-2.493.2 {
   11451   count_steps_sort {
   11452      SELECT a FROM t3
   11453       WHERE b=935
   11454          OR b=1001
   11455          OR ((a BETWEEN 78 AND 80) AND a!=79)
   11456          OR a=31
   11457          OR a=56
   11458   }
   11459 } {31 56 78 80 85 91 scan 0 sort 0}
   11460 do_test where7-2.494.1 {
   11461   count_steps_sort {
   11462      SELECT a FROM t2
   11463       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   11464          OR b=726
   11465          OR f='abcdefghi'
   11466          OR b=179
   11467          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   11468          OR b=539
   11469          OR b=66
   11470          OR ((a BETWEEN 86 AND 88) AND a!=87)
   11471          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11472   }
   11473 } {6 9 19 26 35 49 52 60 61 66 78 86 87 88 scan 0 sort 0}
   11474 do_test where7-2.494.2 {
   11475   count_steps_sort {
   11476      SELECT a FROM t3
   11477       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   11478          OR b=726
   11479          OR f='abcdefghi'
   11480          OR b=179
   11481          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   11482          OR b=539
   11483          OR b=66
   11484          OR ((a BETWEEN 86 AND 88) AND a!=87)
   11485          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11486   }
   11487 } {6 9 19 26 35 49 52 60 61 66 78 86 87 88 scan 0 sort 0}
   11488 do_test where7-2.495.1 {
   11489   count_steps_sort {
   11490      SELECT a FROM t2
   11491       WHERE b=179
   11492          OR b=685
   11493   }
   11494 } { scan 0 sort 0}
   11495 do_test where7-2.495.2 {
   11496   count_steps_sort {
   11497      SELECT a FROM t3
   11498       WHERE b=179
   11499          OR b=685
   11500   }
   11501 } { scan 0 sort 0}
   11502 do_test where7-2.496.1 {
   11503   count_steps_sort {
   11504      SELECT a FROM t2
   11505       WHERE b=201
   11506          OR b=682
   11507          OR b=443
   11508          OR b=836
   11509          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   11510          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   11511          OR ((a BETWEEN 51 AND 53) AND a!=52)
   11512          OR b=110
   11513          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   11514   }
   11515 } {2 10 11 13 28 39 51 53 54 62 65 76 80 91 scan 0 sort 0}
   11516 do_test where7-2.496.2 {
   11517   count_steps_sort {
   11518      SELECT a FROM t3
   11519       WHERE b=201
   11520          OR b=682
   11521          OR b=443
   11522          OR b=836
   11523          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   11524          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   11525          OR ((a BETWEEN 51 AND 53) AND a!=52)
   11526          OR b=110
   11527          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   11528   }
   11529 } {2 10 11 13 28 39 51 53 54 62 65 76 80 91 scan 0 sort 0}
   11530 do_test where7-2.497.1 {
   11531   count_steps_sort {
   11532      SELECT a FROM t2
   11533       WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
   11534          OR b=462
   11535          OR ((a BETWEEN 4 AND 6) AND a!=5)
   11536          OR a=22
   11537          OR b=594
   11538          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   11539          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   11540          OR (g='jihgfed' AND f GLOB 'wxyza*')
   11541          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   11542   }
   11543 } {4 6 18 22 24 42 44 50 54 57 61 70 74 76 96 scan 0 sort 0}
   11544 do_test where7-2.497.2 {
   11545   count_steps_sort {
   11546      SELECT a FROM t3
   11547       WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
   11548          OR b=462
   11549          OR ((a BETWEEN 4 AND 6) AND a!=5)
   11550          OR a=22
   11551          OR b=594
   11552          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   11553          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   11554          OR (g='jihgfed' AND f GLOB 'wxyza*')
   11555          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   11556   }
   11557 } {4 6 18 22 24 42 44 50 54 57 61 70 74 76 96 scan 0 sort 0}
   11558 do_test where7-2.498.1 {
   11559   count_steps_sort {
   11560      SELECT a FROM t2
   11561       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   11562          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   11563          OR (g='wvutsrq' AND f GLOB 'klmno*')
   11564          OR f='vwxyzabcd'
   11565          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   11566          OR a=37
   11567          OR a=50
   11568   }
   11569 } {1 10 13 21 22 37 47 50 73 99 scan 0 sort 0}
   11570 do_test where7-2.498.2 {
   11571   count_steps_sort {
   11572      SELECT a FROM t3
   11573       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   11574          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   11575          OR (g='wvutsrq' AND f GLOB 'klmno*')
   11576          OR f='vwxyzabcd'
   11577          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   11578          OR a=37
   11579          OR a=50
   11580   }
   11581 } {1 10 13 21 22 37 47 50 73 99 scan 0 sort 0}
   11582 do_test where7-2.499.1 {
   11583   count_steps_sort {
   11584      SELECT a FROM t2
   11585       WHERE ((a BETWEEN 83 AND 85) AND a!=84)
   11586          OR b=784
   11587          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   11588          OR b=825
   11589          OR a=80
   11590          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   11591          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   11592          OR b=531
   11593          OR a=100
   11594   }
   11595 } {20 23 46 72 75 80 83 85 97 98 100 scan 0 sort 0}
   11596 do_test where7-2.499.2 {
   11597   count_steps_sort {
   11598      SELECT a FROM t3
   11599       WHERE ((a BETWEEN 83 AND 85) AND a!=84)
   11600          OR b=784
   11601          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   11602          OR b=825
   11603          OR a=80
   11604          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   11605          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   11606          OR b=531
   11607          OR a=100
   11608   }
   11609 } {20 23 46 72 75 80 83 85 97 98 100 scan 0 sort 0}
   11610 do_test where7-2.500.1 {
   11611   count_steps_sort {
   11612      SELECT a FROM t2
   11613       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   11614          OR b=220
   11615          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   11616   }
   11617 } {19 20 53 scan 0 sort 0}
   11618 do_test where7-2.500.2 {
   11619   count_steps_sort {
   11620      SELECT a FROM t3
   11621       WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
   11622          OR b=220
   11623          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   11624   }
   11625 } {19 20 53 scan 0 sort 0}
   11626 do_test where7-2.501.1 {
   11627   count_steps_sort {
   11628      SELECT a FROM t2
   11629       WHERE a=92
   11630          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   11631          OR b=990
   11632   }
   11633 } {9 90 92 scan 0 sort 0}
   11634 do_test where7-2.501.2 {
   11635   count_steps_sort {
   11636      SELECT a FROM t3
   11637       WHERE a=92
   11638          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   11639          OR b=990
   11640   }
   11641 } {9 90 92 scan 0 sort 0}
   11642 do_test where7-2.502.1 {
   11643   count_steps_sort {
   11644      SELECT a FROM t2
   11645       WHERE ((a BETWEEN 77 AND 79) AND a!=78)
   11646          OR b=894
   11647          OR c=28028
   11648          OR b=905
   11649          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   11650          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   11651          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   11652          OR b=1037
   11653   }
   11654 } {26 45 52 70 77 78 79 82 83 84 scan 0 sort 0}
   11655 do_test where7-2.502.2 {
   11656   count_steps_sort {
   11657      SELECT a FROM t3
   11658       WHERE ((a BETWEEN 77 AND 79) AND a!=78)
   11659          OR b=894
   11660          OR c=28028
   11661          OR b=905
   11662          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   11663          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   11664          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   11665          OR b=1037
   11666   }
   11667 } {26 45 52 70 77 78 79 82 83 84 scan 0 sort 0}
   11668 do_test where7-2.503.1 {
   11669   count_steps_sort {
   11670      SELECT a FROM t2
   11671       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
   11672          OR b=773
   11673          OR f='defghijkl'
   11674   }
   11675 } {3 29 55 72 81 scan 0 sort 0}
   11676 do_test where7-2.503.2 {
   11677   count_steps_sort {
   11678      SELECT a FROM t3
   11679       WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
   11680          OR b=773
   11681          OR f='defghijkl'
   11682   }
   11683 } {3 29 55 72 81 scan 0 sort 0}
   11684 do_test where7-2.504.1 {
   11685   count_steps_sort {
   11686      SELECT a FROM t2
   11687       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   11688          OR b=861
   11689          OR (g='rqponml' AND f GLOB 'lmnop*')
   11690   }
   11691 } {12 37 scan 0 sort 0}
   11692 do_test where7-2.504.2 {
   11693   count_steps_sort {
   11694      SELECT a FROM t3
   11695       WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
   11696          OR b=861
   11697          OR (g='rqponml' AND f GLOB 'lmnop*')
   11698   }
   11699 } {12 37 scan 0 sort 0}
   11700 do_test where7-2.505.1 {
   11701   count_steps_sort {
   11702      SELECT a FROM t2
   11703       WHERE b=704
   11704          OR (g='wvutsrq' AND f GLOB 'klmno*')
   11705          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   11706          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   11707          OR b=25
   11708          OR (g='jihgfed' AND f GLOB 'zabcd*')
   11709          OR b=487
   11710          OR (g='hgfedcb' AND f GLOB 'fghij*')
   11711          OR ((a BETWEEN 77 AND 79) AND a!=78)
   11712          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11713          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   11714   }
   11715 } {10 23 51 64 77 79 83 84 89 scan 0 sort 0}
   11716 do_test where7-2.505.2 {
   11717   count_steps_sort {
   11718      SELECT a FROM t3
   11719       WHERE b=704
   11720          OR (g='wvutsrq' AND f GLOB 'klmno*')
   11721          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   11722          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   11723          OR b=25
   11724          OR (g='jihgfed' AND f GLOB 'zabcd*')
   11725          OR b=487
   11726          OR (g='hgfedcb' AND f GLOB 'fghij*')
   11727          OR ((a BETWEEN 77 AND 79) AND a!=78)
   11728          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11729          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   11730   }
   11731 } {10 23 51 64 77 79 83 84 89 scan 0 sort 0}
   11732 do_test where7-2.506.1 {
   11733   count_steps_sort {
   11734      SELECT a FROM t2
   11735       WHERE a=19
   11736          OR (g='onmlkji' AND f GLOB 'xyzab*')
   11737          OR b=674
   11738          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   11739          OR b=355
   11740          OR ((a BETWEEN 72 AND 74) AND a!=73)
   11741          OR (g='qponmlk' AND f GLOB 'pqrst*')
   11742          OR c=28028
   11743          OR b=649
   11744          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   11745          OR (g='srqponm' AND f GLOB 'fghij*')
   11746   }
   11747 } {17 19 31 41 49 59 60 72 74 82 83 84 scan 0 sort 0}
   11748 do_test where7-2.506.2 {
   11749   count_steps_sort {
   11750      SELECT a FROM t3
   11751       WHERE a=19
   11752          OR (g='onmlkji' AND f GLOB 'xyzab*')
   11753          OR b=674
   11754          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   11755          OR b=355
   11756          OR ((a BETWEEN 72 AND 74) AND a!=73)
   11757          OR (g='qponmlk' AND f GLOB 'pqrst*')
   11758          OR c=28028
   11759          OR b=649
   11760          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   11761          OR (g='srqponm' AND f GLOB 'fghij*')
   11762   }
   11763 } {17 19 31 41 49 59 60 72 74 82 83 84 scan 0 sort 0}
   11764 do_test where7-2.507.1 {
   11765   count_steps_sort {
   11766      SELECT a FROM t2
   11767       WHERE ((a BETWEEN 76 AND 78) AND a!=77)
   11768          OR a=1
   11769          OR a=22
   11770          OR b=836
   11771          OR c=24024
   11772   }
   11773 } {1 22 70 71 72 76 78 scan 0 sort 0}
   11774 do_test where7-2.507.2 {
   11775   count_steps_sort {
   11776      SELECT a FROM t3
   11777       WHERE ((a BETWEEN 76 AND 78) AND a!=77)
   11778          OR a=1
   11779          OR a=22
   11780          OR b=836
   11781          OR c=24024
   11782   }
   11783 } {1 22 70 71 72 76 78 scan 0 sort 0}
   11784 do_test where7-2.508.1 {
   11785   count_steps_sort {
   11786      SELECT a FROM t2
   11787       WHERE b=135
   11788          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   11789          OR ((a BETWEEN 39 AND 41) AND a!=40)
   11790   }
   11791 } {20 39 41 scan 0 sort 0}
   11792 do_test where7-2.508.2 {
   11793   count_steps_sort {
   11794      SELECT a FROM t3
   11795       WHERE b=135
   11796          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   11797          OR ((a BETWEEN 39 AND 41) AND a!=40)
   11798   }
   11799 } {20 39 41 scan 0 sort 0}
   11800 do_test where7-2.509.1 {
   11801   count_steps_sort {
   11802      SELECT a FROM t2
   11803       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   11804          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11805   }
   11806 } {9 35 61 86 87 scan 0 sort 0}
   11807 do_test where7-2.509.2 {
   11808   count_steps_sort {
   11809      SELECT a FROM t3
   11810       WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
   11811          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   11812   }
   11813 } {9 35 61 86 87 scan 0 sort 0}
   11814 do_test where7-2.510.1 {
   11815   count_steps_sort {
   11816      SELECT a FROM t2
   11817       WHERE (g='jihgfed' AND f GLOB 'wxyza*')
   11818          OR f='ghijklmno'
   11819   }
   11820 } {6 32 58 74 84 scan 0 sort 0}
   11821 do_test where7-2.510.2 {
   11822   count_steps_sort {
   11823      SELECT a FROM t3
   11824       WHERE (g='jihgfed' AND f GLOB 'wxyza*')
   11825          OR f='ghijklmno'
   11826   }
   11827 } {6 32 58 74 84 scan 0 sort 0}
   11828 do_test where7-2.511.1 {
   11829   count_steps_sort {
   11830      SELECT a FROM t2
   11831       WHERE b=825
   11832          OR b=902
   11833          OR a=40
   11834          OR ((a BETWEEN 28 AND 30) AND a!=29)
   11835          OR a=30
   11836          OR a=10
   11837          OR a=73
   11838   }
   11839 } {10 28 30 40 73 75 82 scan 0 sort 0}
   11840 do_test where7-2.511.2 {
   11841   count_steps_sort {
   11842      SELECT a FROM t3
   11843       WHERE b=825
   11844          OR b=902
   11845          OR a=40
   11846          OR ((a BETWEEN 28 AND 30) AND a!=29)
   11847          OR a=30
   11848          OR a=10
   11849          OR a=73
   11850   }
   11851 } {10 28 30 40 73 75 82 scan 0 sort 0}
   11852 do_test where7-2.512.1 {
   11853   count_steps_sort {
   11854      SELECT a FROM t2
   11855       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   11856          OR a=5
   11857          OR b=432
   11858          OR b=979
   11859          OR b=762
   11860          OR b=352
   11861          OR ((a BETWEEN 36 AND 38) AND a!=37)
   11862          OR c=27027
   11863          OR c=20020
   11864          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11865   }
   11866 } {5 22 23 24 32 36 38 58 59 60 79 80 81 89 scan 0 sort 0}
   11867 do_test where7-2.512.2 {
   11868   count_steps_sort {
   11869      SELECT a FROM t3
   11870       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   11871          OR a=5
   11872          OR b=432
   11873          OR b=979
   11874          OR b=762
   11875          OR b=352
   11876          OR ((a BETWEEN 36 AND 38) AND a!=37)
   11877          OR c=27027
   11878          OR c=20020
   11879          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   11880   }
   11881 } {5 22 23 24 32 36 38 58 59 60 79 80 81 89 scan 0 sort 0}
   11882 do_test where7-2.513.1 {
   11883   count_steps_sort {
   11884      SELECT a FROM t2
   11885       WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
   11886          OR ((a BETWEEN 5 AND 7) AND a!=6)
   11887          OR b=99
   11888          OR a=54
   11889   }
   11890 } {5 7 9 10 36 54 62 88 scan 0 sort 0}
   11891 do_test where7-2.513.2 {
   11892   count_steps_sort {
   11893      SELECT a FROM t3
   11894       WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
   11895          OR ((a BETWEEN 5 AND 7) AND a!=6)
   11896          OR b=99
   11897          OR a=54
   11898   }
   11899 } {5 7 9 10 36 54 62 88 scan 0 sort 0}
   11900 do_test where7-2.514.1 {
   11901   count_steps_sort {
   11902      SELECT a FROM t2
   11903       WHERE b=300
   11904          OR (g='mlkjihg' AND f GLOB 'klmno*')
   11905          OR b=319
   11906          OR f='fghijklmn'
   11907          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   11908          OR ((a BETWEEN 42 AND 44) AND a!=43)
   11909   }
   11910 } {5 29 31 42 44 57 62 73 83 scan 0 sort 0}
   11911 do_test where7-2.514.2 {
   11912   count_steps_sort {
   11913      SELECT a FROM t3
   11914       WHERE b=300
   11915          OR (g='mlkjihg' AND f GLOB 'klmno*')
   11916          OR b=319
   11917          OR f='fghijklmn'
   11918          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   11919          OR ((a BETWEEN 42 AND 44) AND a!=43)
   11920   }
   11921 } {5 29 31 42 44 57 62 73 83 scan 0 sort 0}
   11922 do_test where7-2.515.1 {
   11923   count_steps_sort {
   11924      SELECT a FROM t2
   11925       WHERE b=671
   11926          OR ((a BETWEEN 86 AND 88) AND a!=87)
   11927          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   11928          OR b=1004
   11929          OR ((a BETWEEN 18 AND 20) AND a!=19)
   11930          OR ((a BETWEEN 5 AND 7) AND a!=6)
   11931          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   11932          OR b=748
   11933          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   11934   }
   11935 } {5 7 18 20 23 27 61 68 82 86 88 scan 0 sort 0}
   11936 do_test where7-2.515.2 {
   11937   count_steps_sort {
   11938      SELECT a FROM t3
   11939       WHERE b=671
   11940          OR ((a BETWEEN 86 AND 88) AND a!=87)
   11941          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   11942          OR b=1004
   11943          OR ((a BETWEEN 18 AND 20) AND a!=19)
   11944          OR ((a BETWEEN 5 AND 7) AND a!=6)
   11945          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   11946          OR b=748
   11947          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   11948   }
   11949 } {5 7 18 20 23 27 61 68 82 86 88 scan 0 sort 0}
   11950 do_test where7-2.516.1 {
   11951   count_steps_sort {
   11952      SELECT a FROM t2
   11953       WHERE a=47
   11954          OR b=784
   11955          OR ((a BETWEEN 21 AND 23) AND a!=22)
   11956          OR a=16
   11957          OR a=25
   11958          OR b=572
   11959   }
   11960 } {16 21 23 25 47 52 scan 0 sort 0}
   11961 do_test where7-2.516.2 {
   11962   count_steps_sort {
   11963      SELECT a FROM t3
   11964       WHERE a=47
   11965          OR b=784
   11966          OR ((a BETWEEN 21 AND 23) AND a!=22)
   11967          OR a=16
   11968          OR a=25
   11969          OR b=572
   11970   }
   11971 } {16 21 23 25 47 52 scan 0 sort 0}
   11972 do_test where7-2.517.1 {
   11973   count_steps_sort {
   11974      SELECT a FROM t2
   11975       WHERE (g='jihgfed' AND f GLOB 'wxyza*')
   11976          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   11977          OR b=110
   11978          OR (g='gfedcba' AND f GLOB 'nopqr*')
   11979          OR c=26026
   11980          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   11981          OR b=850
   11982          OR a=6
   11983   }
   11984 } {6 10 67 69 74 76 77 78 91 scan 0 sort 0}
   11985 do_test where7-2.517.2 {
   11986   count_steps_sort {
   11987      SELECT a FROM t3
   11988       WHERE (g='jihgfed' AND f GLOB 'wxyza*')
   11989          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   11990          OR b=110
   11991          OR (g='gfedcba' AND f GLOB 'nopqr*')
   11992          OR c=26026
   11993          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   11994          OR b=850
   11995          OR a=6
   11996   }
   11997 } {6 10 67 69 74 76 77 78 91 scan 0 sort 0}
   11998 do_test where7-2.518.1 {
   11999   count_steps_sort {
   12000      SELECT a FROM t2
   12001       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   12002          OR ((a BETWEEN 1 AND 3) AND a!=2)
   12003          OR (g='jihgfed' AND f GLOB 'wxyza*')
   12004          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   12005          OR (g='mlkjihg' AND f GLOB 'klmno*')
   12006          OR b=135
   12007          OR a=28
   12008          OR ((a BETWEEN 1 AND 3) AND a!=2)
   12009          OR b=737
   12010   }
   12011 } {1 3 19 28 62 67 74 76 scan 0 sort 0}
   12012 do_test where7-2.518.2 {
   12013   count_steps_sort {
   12014      SELECT a FROM t3
   12015       WHERE ((a BETWEEN 74 AND 76) AND a!=75)
   12016          OR ((a BETWEEN 1 AND 3) AND a!=2)
   12017          OR (g='jihgfed' AND f GLOB 'wxyza*')
   12018          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   12019          OR (g='mlkjihg' AND f GLOB 'klmno*')
   12020          OR b=135
   12021          OR a=28
   12022          OR ((a BETWEEN 1 AND 3) AND a!=2)
   12023          OR b=737
   12024   }
   12025 } {1 3 19 28 62 67 74 76 scan 0 sort 0}
   12026 do_test where7-2.519.1 {
   12027   count_steps_sort {
   12028      SELECT a FROM t2
   12029       WHERE b=242
   12030          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   12031          OR ((a BETWEEN 20 AND 22) AND a!=21)
   12032   }
   12033 } {20 22 scan 0 sort 0}
   12034 do_test where7-2.519.2 {
   12035   count_steps_sort {
   12036      SELECT a FROM t3
   12037       WHERE b=242
   12038          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   12039          OR ((a BETWEEN 20 AND 22) AND a!=21)
   12040   }
   12041 } {20 22 scan 0 sort 0}
   12042 do_test where7-2.520.1 {
   12043   count_steps_sort {
   12044      SELECT a FROM t2
   12045       WHERE b=528
   12046          OR a=41
   12047          OR f='cdefghijk'
   12048          OR a=98
   12049          OR b=759
   12050          OR a=43
   12051          OR b=286
   12052          OR f='hijklmnop'
   12053   }
   12054 } {2 7 26 28 33 41 43 48 54 59 69 80 85 98 scan 0 sort 0}
   12055 do_test where7-2.520.2 {
   12056   count_steps_sort {
   12057      SELECT a FROM t3
   12058       WHERE b=528
   12059          OR a=41
   12060          OR f='cdefghijk'
   12061          OR a=98
   12062          OR b=759
   12063          OR a=43
   12064          OR b=286
   12065          OR f='hijklmnop'
   12066   }
   12067 } {2 7 26 28 33 41 43 48 54 59 69 80 85 98 scan 0 sort 0}
   12068 do_test where7-2.521.1 {
   12069   count_steps_sort {
   12070      SELECT a FROM t2
   12071       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   12072          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   12073          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   12074          OR a=52
   12075   }
   12076 } {6 15 52 61 scan 0 sort 0}
   12077 do_test where7-2.521.2 {
   12078   count_steps_sort {
   12079      SELECT a FROM t3
   12080       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   12081          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   12082          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   12083          OR a=52
   12084   }
   12085 } {6 15 52 61 scan 0 sort 0}
   12086 do_test where7-2.522.1 {
   12087   count_steps_sort {
   12088      SELECT a FROM t2
   12089       WHERE (g='ihgfedc' AND f GLOB 'abcde*')
   12090          OR ((a BETWEEN 2 AND 4) AND a!=3)
   12091          OR a=86
   12092          OR c=33033
   12093          OR c=2002
   12094          OR a=92
   12095   }
   12096 } {2 4 5 6 78 86 92 97 98 99 scan 0 sort 0}
   12097 do_test where7-2.522.2 {
   12098   count_steps_sort {
   12099      SELECT a FROM t3
   12100       WHERE (g='ihgfedc' AND f GLOB 'abcde*')
   12101          OR ((a BETWEEN 2 AND 4) AND a!=3)
   12102          OR a=86
   12103          OR c=33033
   12104          OR c=2002
   12105          OR a=92
   12106   }
   12107 } {2 4 5 6 78 86 92 97 98 99 scan 0 sort 0}
   12108 do_test where7-2.523.1 {
   12109   count_steps_sort {
   12110      SELECT a FROM t2
   12111       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
   12112          OR b=517
   12113          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   12114          OR ((a BETWEEN 67 AND 69) AND a!=68)
   12115          OR (g='srqponm' AND f GLOB 'fghij*')
   12116          OR f='defghijkl'
   12117          OR b=707
   12118          OR c>=34035
   12119          OR ((a BETWEEN 33 AND 35) AND a!=34)
   12120          OR a=80
   12121          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   12122   }
   12123 } {3 23 29 31 33 35 47 49 55 63 67 69 80 81 scan 0 sort 0}
   12124 do_test where7-2.523.2 {
   12125   count_steps_sort {
   12126      SELECT a FROM t3
   12127       WHERE ((a BETWEEN 47 AND 49) AND a!=48)
   12128          OR b=517
   12129          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   12130          OR ((a BETWEEN 67 AND 69) AND a!=68)
   12131          OR (g='srqponm' AND f GLOB 'fghij*')
   12132          OR f='defghijkl'
   12133          OR b=707
   12134          OR c>=34035
   12135          OR ((a BETWEEN 33 AND 35) AND a!=34)
   12136          OR a=80
   12137          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   12138   }
   12139 } {3 23 29 31 33 35 47 49 55 63 67 69 80 81 scan 0 sort 0}
   12140 do_test where7-2.524.1 {
   12141   count_steps_sort {
   12142      SELECT a FROM t2
   12143       WHERE (d>=96.0 AND d<97.0 AND d NOT NULL)
   12144          OR b=209
   12145          OR b=399
   12146          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   12147   }
   12148 } {19 96 97 scan 0 sort 0}
   12149 do_test where7-2.524.2 {
   12150   count_steps_sort {
   12151      SELECT a FROM t3
   12152       WHERE (d>=96.0 AND d<97.0 AND d NOT NULL)
   12153          OR b=209
   12154          OR b=399
   12155          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   12156   }
   12157 } {19 96 97 scan 0 sort 0}
   12158 do_test where7-2.525.1 {
   12159   count_steps_sort {
   12160      SELECT a FROM t2
   12161       WHERE ((a BETWEEN 18 AND 20) AND a!=19)
   12162          OR (g='qponmlk' AND f GLOB 'mnopq*')
   12163          OR b=597
   12164          OR a=95
   12165          OR (g='nmlkjih' AND f GLOB 'defgh*')
   12166          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   12167          OR b=432
   12168          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   12169   }
   12170 } {18 20 24 38 50 55 76 92 95 scan 0 sort 0}
   12171 do_test where7-2.525.2 {
   12172   count_steps_sort {
   12173      SELECT a FROM t3
   12174       WHERE ((a BETWEEN 18 AND 20) AND a!=19)
   12175          OR (g='qponmlk' AND f GLOB 'mnopq*')
   12176          OR b=597
   12177          OR a=95
   12178          OR (g='nmlkjih' AND f GLOB 'defgh*')
   12179          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   12180          OR b=432
   12181          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   12182   }
   12183 } {18 20 24 38 50 55 76 92 95 scan 0 sort 0}
   12184 do_test where7-2.526.1 {
   12185   count_steps_sort {
   12186      SELECT a FROM t2
   12187       WHERE (d>=88.0 AND d<89.0 AND d NOT NULL)
   12188          OR b=157
   12189          OR ((a BETWEEN 78 AND 80) AND a!=79)
   12190          OR a=3
   12191          OR b=663
   12192          OR a=2
   12193          OR c=21021
   12194          OR b=330
   12195          OR b=231
   12196          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   12197   }
   12198 } {2 3 21 27 30 61 62 63 78 80 88 scan 0 sort 0}
   12199 do_test where7-2.526.2 {
   12200   count_steps_sort {
   12201      SELECT a FROM t3
   12202       WHERE (d>=88.0 AND d<89.0 AND d NOT NULL)
   12203          OR b=157
   12204          OR ((a BETWEEN 78 AND 80) AND a!=79)
   12205          OR a=3
   12206          OR b=663
   12207          OR a=2
   12208          OR c=21021
   12209          OR b=330
   12210          OR b=231
   12211          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   12212   }
   12213 } {2 3 21 27 30 61 62 63 78 80 88 scan 0 sort 0}
   12214 do_test where7-2.527.1 {
   12215   count_steps_sort {
   12216      SELECT a FROM t2
   12217       WHERE (g='hgfedcb' AND f GLOB 'fghij*')
   12218          OR ((a BETWEEN 64 AND 66) AND a!=65)
   12219          OR f IS NULL
   12220   }
   12221 } {64 66 83 scan 0 sort 0}
   12222 do_test where7-2.527.2 {
   12223   count_steps_sort {
   12224      SELECT a FROM t3
   12225       WHERE (g='hgfedcb' AND f GLOB 'fghij*')
   12226          OR ((a BETWEEN 64 AND 66) AND a!=65)
   12227          OR f IS NULL
   12228   }
   12229 } {64 66 83 scan 0 sort 0}
   12230 do_test where7-2.528.1 {
   12231   count_steps_sort {
   12232      SELECT a FROM t2
   12233       WHERE ((a BETWEEN 99 AND 101) AND a!=100)
   12234          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   12235          OR 1000000<b
   12236          OR (g='jihgfed' AND f GLOB 'xyzab*')
   12237          OR b=990
   12238   }
   12239 } {75 90 93 99 scan 0 sort 0}
   12240 do_test where7-2.528.2 {
   12241   count_steps_sort {
   12242      SELECT a FROM t3
   12243       WHERE ((a BETWEEN 99 AND 101) AND a!=100)
   12244          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   12245          OR 1000000<b
   12246          OR (g='jihgfed' AND f GLOB 'xyzab*')
   12247          OR b=990
   12248   }
   12249 } {75 90 93 99 scan 0 sort 0}
   12250 do_test where7-2.529.1 {
   12251   count_steps_sort {
   12252      SELECT a FROM t2
   12253       WHERE b=165
   12254          OR a=69
   12255          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   12256   }
   12257 } {15 44 69 scan 0 sort 0}
   12258 do_test where7-2.529.2 {
   12259   count_steps_sort {
   12260      SELECT a FROM t3
   12261       WHERE b=165
   12262          OR a=69
   12263          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   12264   }
   12265 } {15 44 69 scan 0 sort 0}
   12266 do_test where7-2.530.1 {
   12267   count_steps_sort {
   12268      SELECT a FROM t2
   12269       WHERE (g='nmlkjih' AND f GLOB 'defgh*')
   12270          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   12271          OR b=784
   12272          OR b=583
   12273          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   12274          OR b=814
   12275          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   12276          OR b=619
   12277          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   12278   }
   12279 } {46 53 54 55 58 74 80 scan 0 sort 0}
   12280 do_test where7-2.530.2 {
   12281   count_steps_sort {
   12282      SELECT a FROM t3
   12283       WHERE (g='nmlkjih' AND f GLOB 'defgh*')
   12284          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   12285          OR b=784
   12286          OR b=583
   12287          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   12288          OR b=814
   12289          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   12290          OR b=619
   12291          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   12292   }
   12293 } {46 53 54 55 58 74 80 scan 0 sort 0}
   12294 do_test where7-2.531.1 {
   12295   count_steps_sort {
   12296      SELECT a FROM t2
   12297       WHERE a=86
   12298          OR b=484
   12299          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   12300          OR b=418
   12301          OR b=509
   12302          OR a=42
   12303          OR b=825
   12304          OR a=91
   12305          OR b=1023
   12306          OR b=814
   12307          OR ((a BETWEEN 99 AND 101) AND a!=100)
   12308   }
   12309 } {38 42 44 74 75 79 86 91 93 99 scan 0 sort 0}
   12310 do_test where7-2.531.2 {
   12311   count_steps_sort {
   12312      SELECT a FROM t3
   12313       WHERE a=86
   12314          OR b=484
   12315          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   12316          OR b=418
   12317          OR b=509
   12318          OR a=42
   12319          OR b=825
   12320          OR a=91
   12321          OR b=1023
   12322          OR b=814
   12323          OR ((a BETWEEN 99 AND 101) AND a!=100)
   12324   }
   12325 } {38 42 44 74 75 79 86 91 93 99 scan 0 sort 0}
   12326 do_test where7-2.532.1 {
   12327   count_steps_sort {
   12328      SELECT a FROM t2
   12329       WHERE (d>=86.0 AND d<87.0 AND d NOT NULL)
   12330          OR b=231
   12331          OR a=81
   12332          OR a=72
   12333          OR ((a BETWEEN 24 AND 26) AND a!=25)
   12334          OR b=396
   12335   }
   12336 } {21 24 26 36 72 81 86 scan 0 sort 0}
   12337 do_test where7-2.532.2 {
   12338   count_steps_sort {
   12339      SELECT a FROM t3
   12340       WHERE (d>=86.0 AND d<87.0 AND d NOT NULL)
   12341          OR b=231
   12342          OR a=81
   12343          OR a=72
   12344          OR ((a BETWEEN 24 AND 26) AND a!=25)
   12345          OR b=396
   12346   }
   12347 } {21 24 26 36 72 81 86 scan 0 sort 0}
   12348 do_test where7-2.533.1 {
   12349   count_steps_sort {
   12350      SELECT a FROM t2
   12351       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   12352          OR a=63
   12353          OR ((a BETWEEN 70 AND 72) AND a!=71)
   12354          OR a=71
   12355          OR b=22
   12356          OR ((a BETWEEN 76 AND 78) AND a!=77)
   12357          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   12358          OR ((a BETWEEN 59 AND 61) AND a!=60)
   12359          OR a=53
   12360   }
   12361 } {2 21 53 59 61 63 70 71 72 74 76 78 scan 0 sort 0}
   12362 do_test where7-2.533.2 {
   12363   count_steps_sort {
   12364      SELECT a FROM t3
   12365       WHERE (d>=74.0 AND d<75.0 AND d NOT NULL)
   12366          OR a=63
   12367          OR ((a BETWEEN 70 AND 72) AND a!=71)
   12368          OR a=71
   12369          OR b=22
   12370          OR ((a BETWEEN 76 AND 78) AND a!=77)
   12371          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   12372          OR ((a BETWEEN 59 AND 61) AND a!=60)
   12373          OR a=53
   12374   }
   12375 } {2 21 53 59 61 63 70 71 72 74 76 78 scan 0 sort 0}
   12376 do_test where7-2.534.1 {
   12377   count_steps_sort {
   12378      SELECT a FROM t2
   12379       WHERE b=861
   12380          OR b=649
   12381          OR b=146
   12382          OR f='abcdefghi'
   12383   }
   12384 } {26 52 59 78 scan 0 sort 0}
   12385 do_test where7-2.534.2 {
   12386   count_steps_sort {
   12387      SELECT a FROM t3
   12388       WHERE b=861
   12389          OR b=649
   12390          OR b=146
   12391          OR f='abcdefghi'
   12392   }
   12393 } {26 52 59 78 scan 0 sort 0}
   12394 do_test where7-2.535.1 {
   12395   count_steps_sort {
   12396      SELECT a FROM t2
   12397       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   12398          OR c=5005
   12399          OR ((a BETWEEN 50 AND 52) AND a!=51)
   12400          OR a=93
   12401          OR c=24024
   12402          OR b=619
   12403          OR b=234
   12404          OR b=55
   12405          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   12406          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   12407   }
   12408 } {5 9 13 14 15 21 35 47 50 52 56 61 70 71 72 73 87 93 99 scan 0 sort 0}
   12409 do_test where7-2.535.2 {
   12410   count_steps_sort {
   12411      SELECT a FROM t3
   12412       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   12413          OR c=5005
   12414          OR ((a BETWEEN 50 AND 52) AND a!=51)
   12415          OR a=93
   12416          OR c=24024
   12417          OR b=619
   12418          OR b=234
   12419          OR b=55
   12420          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   12421          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   12422   }
   12423 } {5 9 13 14 15 21 35 47 50 52 56 61 70 71 72 73 87 93 99 scan 0 sort 0}
   12424 do_test where7-2.536.1 {
   12425   count_steps_sort {
   12426      SELECT a FROM t2
   12427       WHERE b=355
   12428          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   12429          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   12430          OR b=806
   12431          OR b=462
   12432          OR b=531
   12433          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   12434          OR f='mnopqrstu'
   12435   }
   12436 } {12 38 42 49 63 64 69 90 scan 0 sort 0}
   12437 do_test where7-2.536.2 {
   12438   count_steps_sort {
   12439      SELECT a FROM t3
   12440       WHERE b=355
   12441          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   12442          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   12443          OR b=806
   12444          OR b=462
   12445          OR b=531
   12446          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   12447          OR f='mnopqrstu'
   12448   }
   12449 } {12 38 42 49 63 64 69 90 scan 0 sort 0}
   12450 do_test where7-2.537.1 {
   12451   count_steps_sort {
   12452      SELECT a FROM t2
   12453       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   12454          OR f='pqrstuvwx'
   12455          OR (g='nmlkjih' AND f GLOB 'efghi*')
   12456          OR b=495
   12457          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   12458          OR a=75
   12459   }
   12460 } {15 41 45 56 60 62 67 70 75 93 scan 0 sort 0}
   12461 do_test where7-2.537.2 {
   12462   count_steps_sort {
   12463      SELECT a FROM t3
   12464       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   12465          OR f='pqrstuvwx'
   12466          OR (g='nmlkjih' AND f GLOB 'efghi*')
   12467          OR b=495
   12468          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   12469          OR a=75
   12470   }
   12471 } {15 41 45 56 60 62 67 70 75 93 scan 0 sort 0}
   12472 do_test where7-2.538.1 {
   12473   count_steps_sort {
   12474      SELECT a FROM t2
   12475       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   12476          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   12477          OR b=748
   12478          OR b=913
   12479          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   12480          OR a=22
   12481   }
   12482 } {4 5 21 22 68 83 scan 0 sort 0}
   12483 do_test where7-2.538.2 {
   12484   count_steps_sort {
   12485      SELECT a FROM t3
   12486       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   12487          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   12488          OR b=748
   12489          OR b=913
   12490          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   12491          OR a=22
   12492   }
   12493 } {4 5 21 22 68 83 scan 0 sort 0}
   12494 do_test where7-2.539.1 {
   12495   count_steps_sort {
   12496      SELECT a FROM t2
   12497       WHERE a=19
   12498          OR b=902
   12499          OR ((a BETWEEN 63 AND 65) AND a!=64)
   12500          OR b=168
   12501          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   12502          OR a=50
   12503          OR f='uvwxyzabc'
   12504          OR b=836
   12505          OR ((a BETWEEN 77 AND 79) AND a!=78)
   12506          OR a=50
   12507   }
   12508 } {19 20 46 50 63 65 67 72 76 77 79 82 98 scan 0 sort 0}
   12509 do_test where7-2.539.2 {
   12510   count_steps_sort {
   12511      SELECT a FROM t3
   12512       WHERE a=19
   12513          OR b=902
   12514          OR ((a BETWEEN 63 AND 65) AND a!=64)
   12515          OR b=168
   12516          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   12517          OR a=50
   12518          OR f='uvwxyzabc'
   12519          OR b=836
   12520          OR ((a BETWEEN 77 AND 79) AND a!=78)
   12521          OR a=50
   12522   }
   12523 } {19 20 46 50 63 65 67 72 76 77 79 82 98 scan 0 sort 0}
   12524 do_test where7-2.540.1 {
   12525   count_steps_sort {
   12526      SELECT a FROM t2
   12527       WHERE c=12012
   12528          OR b=993
   12529          OR b=839
   12530          OR ((a BETWEEN 30 AND 32) AND a!=31)
   12531          OR a=87
   12532   }
   12533 } {30 32 34 35 36 87 scan 0 sort 0}
   12534 do_test where7-2.540.2 {
   12535   count_steps_sort {
   12536      SELECT a FROM t3
   12537       WHERE c=12012
   12538          OR b=993
   12539          OR b=839
   12540          OR ((a BETWEEN 30 AND 32) AND a!=31)
   12541          OR a=87
   12542   }
   12543 } {30 32 34 35 36 87 scan 0 sort 0}
   12544 do_test where7-2.541.1 {
   12545   count_steps_sort {
   12546      SELECT a FROM t2
   12547       WHERE b=814
   12548          OR c=30030
   12549          OR (g='qponmlk' AND f GLOB 'opqrs*')
   12550          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   12551          OR a=16
   12552          OR b=1048
   12553          OR b=113
   12554          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   12555          OR (g='xwvutsr' AND f GLOB 'defgh*')
   12556          OR b=729
   12557          OR a=54
   12558   }
   12559 } {3 16 34 40 54 61 74 88 89 90 scan 0 sort 0}
   12560 do_test where7-2.541.2 {
   12561   count_steps_sort {
   12562      SELECT a FROM t3
   12563       WHERE b=814
   12564          OR c=30030
   12565          OR (g='qponmlk' AND f GLOB 'opqrs*')
   12566          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   12567          OR a=16
   12568          OR b=1048
   12569          OR b=113
   12570          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   12571          OR (g='xwvutsr' AND f GLOB 'defgh*')
   12572          OR b=729
   12573          OR a=54
   12574   }
   12575 } {3 16 34 40 54 61 74 88 89 90 scan 0 sort 0}
   12576 do_test where7-2.542.1 {
   12577   count_steps_sort {
   12578      SELECT a FROM t2
   12579       WHERE b=399
   12580          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   12581          OR b=814
   12582          OR c=22022
   12583          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   12584          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   12585          OR a=1
   12586          OR b=311
   12587          OR b=121
   12588          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   12589          OR b=198
   12590   }
   12591 } {1 6 8 11 18 32 37 58 63 64 65 66 71 74 84 89 scan 0 sort 0}
   12592 do_test where7-2.542.2 {
   12593   count_steps_sort {
   12594      SELECT a FROM t3
   12595       WHERE b=399
   12596          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   12597          OR b=814
   12598          OR c=22022
   12599          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   12600          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   12601          OR a=1
   12602          OR b=311
   12603          OR b=121
   12604          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   12605          OR b=198
   12606   }
   12607 } {1 6 8 11 18 32 37 58 63 64 65 66 71 74 84 89 scan 0 sort 0}
   12608 do_test where7-2.543.1 {
   12609   count_steps_sort {
   12610      SELECT a FROM t2
   12611       WHERE b=146
   12612          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   12613          OR a=57
   12614   }
   12615 } {52 57 scan 0 sort 0}
   12616 do_test where7-2.543.2 {
   12617   count_steps_sort {
   12618      SELECT a FROM t3
   12619       WHERE b=146
   12620          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   12621          OR a=57
   12622   }
   12623 } {52 57 scan 0 sort 0}
   12624 do_test where7-2.544.1 {
   12625   count_steps_sort {
   12626      SELECT a FROM t2
   12627       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   12628          OR f='fghijklmn'
   12629          OR a=70
   12630          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   12631   }
   12632 } {4 5 31 57 70 83 100 scan 0 sort 0}
   12633 do_test where7-2.544.2 {
   12634   count_steps_sort {
   12635      SELECT a FROM t3
   12636       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   12637          OR f='fghijklmn'
   12638          OR a=70
   12639          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   12640   }
   12641 } {4 5 31 57 70 83 100 scan 0 sort 0}
   12642 do_test where7-2.545.1 {
   12643   count_steps_sort {
   12644      SELECT a FROM t2
   12645       WHERE a=42
   12646          OR b=333
   12647          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   12648          OR b=1089
   12649          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   12650          OR a=22
   12651          OR b=594
   12652          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   12653          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   12654   }
   12655 } {5 12 15 22 31 35 42 54 57 83 99 scan 0 sort 0}
   12656 do_test where7-2.545.2 {
   12657   count_steps_sort {
   12658      SELECT a FROM t3
   12659       WHERE a=42
   12660          OR b=333
   12661          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   12662          OR b=1089
   12663          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   12664          OR a=22
   12665          OR b=594
   12666          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   12667          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   12668   }
   12669 } {5 12 15 22 31 35 42 54 57 83 99 scan 0 sort 0}
   12670 do_test where7-2.546.1 {
   12671   count_steps_sort {
   12672      SELECT a FROM t2
   12673       WHERE (d>=67.0 AND d<68.0 AND d NOT NULL)
   12674          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   12675          OR b=113
   12676          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   12677          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   12678          OR ((a BETWEEN 3 AND 5) AND a!=4)
   12679          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   12680          OR f='mnopqrstu'
   12681          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   12682          OR b=902
   12683   }
   12684 } {3 5 12 16 17 25 26 38 52 64 67 69 78 82 90 scan 0 sort 0}
   12685 do_test where7-2.546.2 {
   12686   count_steps_sort {
   12687      SELECT a FROM t3
   12688       WHERE (d>=67.0 AND d<68.0 AND d NOT NULL)
   12689          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   12690          OR b=113
   12691          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   12692          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   12693          OR ((a BETWEEN 3 AND 5) AND a!=4)
   12694          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   12695          OR f='mnopqrstu'
   12696          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   12697          OR b=902
   12698   }
   12699 } {3 5 12 16 17 25 26 38 52 64 67 69 78 82 90 scan 0 sort 0}
   12700 do_test where7-2.547.1 {
   12701   count_steps_sort {
   12702      SELECT a FROM t2
   12703       WHERE (g='onmlkji' AND f GLOB 'zabcd*')
   12704          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   12705          OR a=13
   12706   }
   12707 } {13 15 41 51 67 93 scan 0 sort 0}
   12708 do_test where7-2.547.2 {
   12709   count_steps_sort {
   12710      SELECT a FROM t3
   12711       WHERE (g='onmlkji' AND f GLOB 'zabcd*')
   12712          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   12713          OR a=13
   12714   }
   12715 } {13 15 41 51 67 93 scan 0 sort 0}
   12716 do_test where7-2.548.1 {
   12717   count_steps_sort {
   12718      SELECT a FROM t2
   12719       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   12720          OR b=410
   12721          OR (g='ihgfedc' AND f GLOB 'efghi*')
   12722          OR b=418
   12723          OR (g='gfedcba' AND f GLOB 'klmno*')
   12724          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   12725   }
   12726 } {38 65 82 88 100 scan 0 sort 0}
   12727 do_test where7-2.548.2 {
   12728   count_steps_sort {
   12729      SELECT a FROM t3
   12730       WHERE (g='edcbazy' AND f GLOB 'wxyza*')
   12731          OR b=410
   12732          OR (g='ihgfedc' AND f GLOB 'efghi*')
   12733          OR b=418
   12734          OR (g='gfedcba' AND f GLOB 'klmno*')
   12735          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   12736   }
   12737 } {38 65 82 88 100 scan 0 sort 0}
   12738 do_test where7-2.549.1 {
   12739   count_steps_sort {
   12740      SELECT a FROM t2
   12741       WHERE a=5
   12742          OR a=95
   12743          OR a=56
   12744          OR a=46
   12745          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   12746          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   12747          OR (g='wvutsrq' AND f GLOB 'klmno*')
   12748          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   12749   }
   12750 } {5 10 41 46 56 61 95 100 scan 0 sort 0}
   12751 do_test where7-2.549.2 {
   12752   count_steps_sort {
   12753      SELECT a FROM t3
   12754       WHERE a=5
   12755          OR a=95
   12756          OR a=56
   12757          OR a=46
   12758          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   12759          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   12760          OR (g='wvutsrq' AND f GLOB 'klmno*')
   12761          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   12762   }
   12763 } {5 10 41 46 56 61 95 100 scan 0 sort 0}
   12764 do_test where7-2.550.1 {
   12765   count_steps_sort {
   12766      SELECT a FROM t2
   12767       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   12768          OR a=13
   12769          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   12770          OR a=9
   12771          OR a=27
   12772          OR ((a BETWEEN 88 AND 90) AND a!=89)
   12773          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   12774          OR b=484
   12775          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   12776          OR b=594
   12777   }
   12778 } {9 13 27 37 44 54 75 87 88 90 scan 0 sort 0}
   12779 do_test where7-2.550.2 {
   12780   count_steps_sort {
   12781      SELECT a FROM t3
   12782       WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
   12783          OR a=13
   12784          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   12785          OR a=9
   12786          OR a=27
   12787          OR ((a BETWEEN 88 AND 90) AND a!=89)
   12788          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   12789          OR b=484
   12790          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   12791          OR b=594
   12792   }
   12793 } {9 13 27 37 44 54 75 87 88 90 scan 0 sort 0}
   12794 do_test where7-2.551.1 {
   12795   count_steps_sort {
   12796      SELECT a FROM t2
   12797       WHERE b=539
   12798          OR b=418
   12799          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   12800          OR b=759
   12801   }
   12802 } {15 38 49 69 scan 0 sort 0}
   12803 do_test where7-2.551.2 {
   12804   count_steps_sort {
   12805      SELECT a FROM t3
   12806       WHERE b=539
   12807          OR b=418
   12808          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   12809          OR b=759
   12810   }
   12811 } {15 38 49 69 scan 0 sort 0}
   12812 do_test where7-2.552.1 {
   12813   count_steps_sort {
   12814      SELECT a FROM t2
   12815       WHERE b=1001
   12816          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   12817          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   12818          OR c=34034
   12819          OR a=84
   12820   }
   12821 } {8 54 84 91 100 scan 0 sort 0}
   12822 do_test where7-2.552.2 {
   12823   count_steps_sort {
   12824      SELECT a FROM t3
   12825       WHERE b=1001
   12826          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   12827          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   12828          OR c=34034
   12829          OR a=84
   12830   }
   12831 } {8 54 84 91 100 scan 0 sort 0}
   12832 do_test where7-2.553.1 {
   12833   count_steps_sort {
   12834      SELECT a FROM t2
   12835       WHERE b=795
   12836          OR b=671
   12837          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   12838          OR ((a BETWEEN 71 AND 73) AND a!=72)
   12839          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   12840          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   12841          OR b=322
   12842          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   12843          OR c=34034
   12844          OR b=410
   12845   }
   12846 } {15 38 41 60 61 63 67 71 73 93 100 scan 0 sort 0}
   12847 do_test where7-2.553.2 {
   12848   count_steps_sort {
   12849      SELECT a FROM t3
   12850       WHERE b=795
   12851          OR b=671
   12852          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   12853          OR ((a BETWEEN 71 AND 73) AND a!=72)
   12854          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   12855          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   12856          OR b=322
   12857          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   12858          OR c=34034
   12859          OR b=410
   12860   }
   12861 } {15 38 41 60 61 63 67 71 73 93 100 scan 0 sort 0}
   12862 do_test where7-2.554.1 {
   12863   count_steps_sort {
   12864      SELECT a FROM t2
   12865       WHERE c=13013
   12866          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   12867          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   12868          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   12869          OR b=47
   12870          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   12871          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   12872          OR b=828
   12873   }
   12874 } {37 38 39 42 61 69 79 94 scan 0 sort 0}
   12875 do_test where7-2.554.2 {
   12876   count_steps_sort {
   12877      SELECT a FROM t3
   12878       WHERE c=13013
   12879          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   12880          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   12881          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   12882          OR b=47
   12883          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   12884          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   12885          OR b=828
   12886   }
   12887 } {37 38 39 42 61 69 79 94 scan 0 sort 0}
   12888 do_test where7-2.555.1 {
   12889   count_steps_sort {
   12890      SELECT a FROM t2
   12891       WHERE b=451
   12892          OR b=836
   12893          OR (g='onmlkji' AND f GLOB 'wxyza*')
   12894   }
   12895 } {41 48 76 scan 0 sort 0}
   12896 do_test where7-2.555.2 {
   12897   count_steps_sort {
   12898      SELECT a FROM t3
   12899       WHERE b=451
   12900          OR b=836
   12901          OR (g='onmlkji' AND f GLOB 'wxyza*')
   12902   }
   12903 } {41 48 76 scan 0 sort 0}
   12904 do_test where7-2.556.1 {
   12905   count_steps_sort {
   12906      SELECT a FROM t2
   12907       WHERE b=575
   12908          OR b=748
   12909          OR b=520
   12910          OR b=154
   12911          OR a=70
   12912          OR f='efghijklm'
   12913   }
   12914 } {4 14 30 56 68 70 82 scan 0 sort 0}
   12915 do_test where7-2.556.2 {
   12916   count_steps_sort {
   12917      SELECT a FROM t3
   12918       WHERE b=575
   12919          OR b=748
   12920          OR b=520
   12921          OR b=154
   12922          OR a=70
   12923          OR f='efghijklm'
   12924   }
   12925 } {4 14 30 56 68 70 82 scan 0 sort 0}
   12926 do_test where7-2.557.1 {
   12927   count_steps_sort {
   12928      SELECT a FROM t2
   12929       WHERE f='tuvwxyzab'
   12930          OR (g='nmlkjih' AND f GLOB 'efghi*')
   12931   }
   12932 } {19 45 56 71 97 scan 0 sort 0}
   12933 do_test where7-2.557.2 {
   12934   count_steps_sort {
   12935      SELECT a FROM t3
   12936       WHERE f='tuvwxyzab'
   12937          OR (g='nmlkjih' AND f GLOB 'efghi*')
   12938   }
   12939 } {19 45 56 71 97 scan 0 sort 0}
   12940 do_test where7-2.558.1 {
   12941   count_steps_sort {
   12942      SELECT a FROM t2
   12943       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   12944          OR b=806
   12945          OR a=47
   12946          OR d<0.0
   12947          OR b=982
   12948          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   12949          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   12950          OR ((a BETWEEN 97 AND 99) AND a!=98)
   12951          OR e IS NULL
   12952          OR c=32032
   12953          OR b=795
   12954   }
   12955 } {2 12 47 87 94 95 96 97 99 scan 0 sort 0}
   12956 do_test where7-2.558.2 {
   12957   count_steps_sort {
   12958      SELECT a FROM t3
   12959       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   12960          OR b=806
   12961          OR a=47
   12962          OR d<0.0
   12963          OR b=982
   12964          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   12965          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   12966          OR ((a BETWEEN 97 AND 99) AND a!=98)
   12967          OR e IS NULL
   12968          OR c=32032
   12969          OR b=795
   12970   }
   12971 } {2 12 47 87 94 95 96 97 99 scan 0 sort 0}
   12972 do_test where7-2.559.1 {
   12973   count_steps_sort {
   12974      SELECT a FROM t2
   12975       WHERE a=62
   12976          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   12977          OR ((a BETWEEN 89 AND 91) AND a!=90)
   12978          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   12979   }
   12980 } {23 49 62 75 89 91 99 scan 0 sort 0}
   12981 do_test where7-2.559.2 {
   12982   count_steps_sort {
   12983      SELECT a FROM t3
   12984       WHERE a=62
   12985          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   12986          OR ((a BETWEEN 89 AND 91) AND a!=90)
   12987          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   12988   }
   12989 } {23 49 62 75 89 91 99 scan 0 sort 0}
   12990 do_test where7-2.560.1 {
   12991   count_steps_sort {
   12992      SELECT a FROM t2
   12993       WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
   12994          OR b=1056
   12995          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   12996          OR b=729
   12997          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   12998          OR b=220
   12999          OR b=498
   13000          OR ((a BETWEEN 96 AND 98) AND a!=97)
   13001   }
   13002 } {9 20 57 73 96 98 scan 0 sort 0}
   13003 do_test where7-2.560.2 {
   13004   count_steps_sort {
   13005      SELECT a FROM t3
   13006       WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
   13007          OR b=1056
   13008          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   13009          OR b=729
   13010          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   13011          OR b=220
   13012          OR b=498
   13013          OR ((a BETWEEN 96 AND 98) AND a!=97)
   13014   }
   13015 } {9 20 57 73 96 98 scan 0 sort 0}
   13016 do_test where7-2.561.1 {
   13017   count_steps_sort {
   13018      SELECT a FROM t2
   13019       WHERE b=44
   13020          OR (g='qponmlk' AND f GLOB 'mnopq*')
   13021          OR (g='wvutsrq' AND f GLOB 'klmno*')
   13022   }
   13023 } {4 10 38 scan 0 sort 0}
   13024 do_test where7-2.561.2 {
   13025   count_steps_sort {
   13026      SELECT a FROM t3
   13027       WHERE b=44
   13028          OR (g='qponmlk' AND f GLOB 'mnopq*')
   13029          OR (g='wvutsrq' AND f GLOB 'klmno*')
   13030   }
   13031 } {4 10 38 scan 0 sort 0}
   13032 do_test where7-2.562.1 {
   13033   count_steps_sort {
   13034      SELECT a FROM t2
   13035       WHERE b=883
   13036          OR b=311
   13037          OR b=880
   13038          OR (g='qponmlk' AND f GLOB 'pqrst*')
   13039          OR ((a BETWEEN 57 AND 59) AND a!=58)
   13040          OR a=88
   13041          OR b=154
   13042          OR a=94
   13043          OR a=37
   13044          OR c=31031
   13045   }
   13046 } {14 37 41 57 59 80 88 91 92 93 94 scan 0 sort 0}
   13047 do_test where7-2.562.2 {
   13048   count_steps_sort {
   13049      SELECT a FROM t3
   13050       WHERE b=883
   13051          OR b=311
   13052          OR b=880
   13053          OR (g='qponmlk' AND f GLOB 'pqrst*')
   13054          OR ((a BETWEEN 57 AND 59) AND a!=58)
   13055          OR a=88
   13056          OR b=154
   13057          OR a=94
   13058          OR a=37
   13059          OR c=31031
   13060   }
   13061 } {14 37 41 57 59 80 88 91 92 93 94 scan 0 sort 0}
   13062 do_test where7-2.563.1 {
   13063   count_steps_sort {
   13064      SELECT a FROM t2
   13065       WHERE (g='onmlkji' AND f GLOB 'xyzab*')
   13066          OR a=10
   13067          OR b=190
   13068          OR ((a BETWEEN 8 AND 10) AND a!=9)
   13069          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   13070          OR (g='gfedcba' AND f GLOB 'mnopq*')
   13071          OR ((a BETWEEN 67 AND 69) AND a!=68)
   13072          OR b=385
   13073          OR a=82
   13074          OR ((a BETWEEN 63 AND 65) AND a!=64)
   13075          OR c=22022
   13076   }
   13077 } {8 10 35 49 55 63 64 65 66 67 69 82 90 scan 0 sort 0}
   13078 do_test where7-2.563.2 {
   13079   count_steps_sort {
   13080      SELECT a FROM t3
   13081       WHERE (g='onmlkji' AND f GLOB 'xyzab*')
   13082          OR a=10
   13083          OR b=190
   13084          OR ((a BETWEEN 8 AND 10) AND a!=9)
   13085          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   13086          OR (g='gfedcba' AND f GLOB 'mnopq*')
   13087          OR ((a BETWEEN 67 AND 69) AND a!=68)
   13088          OR b=385
   13089          OR a=82
   13090          OR ((a BETWEEN 63 AND 65) AND a!=64)
   13091          OR c=22022
   13092   }
   13093 } {8 10 35 49 55 63 64 65 66 67 69 82 90 scan 0 sort 0}
   13094 do_test where7-2.564.1 {
   13095   count_steps_sort {
   13096      SELECT a FROM t2
   13097       WHERE b=1070
   13098          OR a=33
   13099          OR b=363
   13100          OR a=47
   13101   }
   13102 } {33 47 scan 0 sort 0}
   13103 do_test where7-2.564.2 {
   13104   count_steps_sort {
   13105      SELECT a FROM t3
   13106       WHERE b=1070
   13107          OR a=33
   13108          OR b=363
   13109          OR a=47
   13110   }
   13111 } {33 47 scan 0 sort 0}
   13112 do_test where7-2.565.1 {
   13113   count_steps_sort {
   13114      SELECT a FROM t2
   13115       WHERE c=1001
   13116          OR ((a BETWEEN 60 AND 62) AND a!=61)
   13117          OR ((a BETWEEN 63 AND 65) AND a!=64)
   13118          OR a=49
   13119          OR ((a BETWEEN 33 AND 35) AND a!=34)
   13120          OR c=33033
   13121          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   13122          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   13123          OR g IS NULL
   13124          OR b=220
   13125          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   13126   }
   13127 } {1 2 3 18 20 33 35 49 60 62 63 65 70 81 97 98 99 scan 0 sort 0}
   13128 do_test where7-2.565.2 {
   13129   count_steps_sort {
   13130      SELECT a FROM t3
   13131       WHERE c=1001
   13132          OR ((a BETWEEN 60 AND 62) AND a!=61)
   13133          OR ((a BETWEEN 63 AND 65) AND a!=64)
   13134          OR a=49
   13135          OR ((a BETWEEN 33 AND 35) AND a!=34)
   13136          OR c=33033
   13137          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   13138          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   13139          OR g IS NULL
   13140          OR b=220
   13141          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   13142   }
   13143 } {1 2 3 18 20 33 35 49 60 62 63 65 70 81 97 98 99 scan 0 sort 0}
   13144 do_test where7-2.566.1 {
   13145   count_steps_sort {
   13146      SELECT a FROM t2
   13147       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   13148          OR b=212
   13149          OR b=418
   13150          OR ((a BETWEEN 31 AND 33) AND a!=32)
   13151   }
   13152 } {31 33 38 71 scan 0 sort 0}
   13153 do_test where7-2.566.2 {
   13154   count_steps_sort {
   13155      SELECT a FROM t3
   13156       WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
   13157          OR b=212
   13158          OR b=418
   13159          OR ((a BETWEEN 31 AND 33) AND a!=32)
   13160   }
   13161 } {31 33 38 71 scan 0 sort 0}
   13162 do_test where7-2.567.1 {
   13163   count_steps_sort {
   13164      SELECT a FROM t2
   13165       WHERE b=344
   13166          OR f='nopqrstuv'
   13167          OR b=704
   13168          OR a=84
   13169   }
   13170 } {13 39 64 65 84 91 scan 0 sort 0}
   13171 do_test where7-2.567.2 {
   13172   count_steps_sort {
   13173      SELECT a FROM t3
   13174       WHERE b=344
   13175          OR f='nopqrstuv'
   13176          OR b=704
   13177          OR a=84
   13178   }
   13179 } {13 39 64 65 84 91 scan 0 sort 0}
   13180 do_test where7-2.568.1 {
   13181   count_steps_sort {
   13182      SELECT a FROM t2
   13183       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   13184          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   13185   }
   13186 } {5 30 32 scan 0 sort 0}
   13187 do_test where7-2.568.2 {
   13188   count_steps_sort {
   13189      SELECT a FROM t3
   13190       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   13191          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   13192   }
   13193 } {5 30 32 scan 0 sort 0}
   13194 do_test where7-2.569.1 {
   13195   count_steps_sort {
   13196      SELECT a FROM t2
   13197       WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
   13198          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   13199   }
   13200 } {26 52 78 87 scan 0 sort 0}
   13201 do_test where7-2.569.2 {
   13202   count_steps_sort {
   13203      SELECT a FROM t3
   13204       WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
   13205          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   13206   }
   13207 } {26 52 78 87 scan 0 sort 0}
   13208 do_test where7-2.570.1 {
   13209   count_steps_sort {
   13210      SELECT a FROM t2
   13211       WHERE ((a BETWEEN 0 AND 2) AND a!=1)
   13212          OR b=1100
   13213          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   13214          OR b=421
   13215          OR b=465
   13216          OR b=894
   13217          OR c=13013
   13218          OR b=47
   13219          OR b=674
   13220          OR ((a BETWEEN 0 AND 2) AND a!=1)
   13221   }
   13222 } {2 37 38 39 70 100 scan 0 sort 0}
   13223 do_test where7-2.570.2 {
   13224   count_steps_sort {
   13225      SELECT a FROM t3
   13226       WHERE ((a BETWEEN 0 AND 2) AND a!=1)
   13227          OR b=1100
   13228          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   13229          OR b=421
   13230          OR b=465
   13231          OR b=894
   13232          OR c=13013
   13233          OR b=47
   13234          OR b=674
   13235          OR ((a BETWEEN 0 AND 2) AND a!=1)
   13236   }
   13237 } {2 37 38 39 70 100 scan 0 sort 0}
   13238 do_test where7-2.571.1 {
   13239   count_steps_sort {
   13240      SELECT a FROM t2
   13241       WHERE c=18018
   13242          OR (g='ihgfedc' AND f GLOB 'abcde*')
   13243          OR b=410
   13244          OR b=858
   13245          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   13246   }
   13247 } {49 52 53 54 78 scan 0 sort 0}
   13248 do_test where7-2.571.2 {
   13249   count_steps_sort {
   13250      SELECT a FROM t3
   13251       WHERE c=18018
   13252          OR (g='ihgfedc' AND f GLOB 'abcde*')
   13253          OR b=410
   13254          OR b=858
   13255          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   13256   }
   13257 } {49 52 53 54 78 scan 0 sort 0}
   13258 do_test where7-2.572.1 {
   13259   count_steps_sort {
   13260      SELECT a FROM t2
   13261       WHERE (g='ponmlkj' AND f GLOB 'vwxyz*')
   13262          OR b=781
   13263   }
   13264 } {47 71 scan 0 sort 0}
   13265 do_test where7-2.572.2 {
   13266   count_steps_sort {
   13267      SELECT a FROM t3
   13268       WHERE (g='ponmlkj' AND f GLOB 'vwxyz*')
   13269          OR b=781
   13270   }
   13271 } {47 71 scan 0 sort 0}
   13272 do_test where7-2.573.1 {
   13273   count_steps_sort {
   13274      SELECT a FROM t2
   13275       WHERE b=1070
   13276          OR ((a BETWEEN 50 AND 52) AND a!=51)
   13277          OR a=54
   13278          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   13279          OR a=9
   13280          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   13281          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   13282          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13283   }
   13284 } {7 9 25 33 47 50 52 54 59 63 85 scan 0 sort 0}
   13285 do_test where7-2.573.2 {
   13286   count_steps_sort {
   13287      SELECT a FROM t3
   13288       WHERE b=1070
   13289          OR ((a BETWEEN 50 AND 52) AND a!=51)
   13290          OR a=54
   13291          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   13292          OR a=9
   13293          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   13294          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   13295          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13296   }
   13297 } {7 9 25 33 47 50 52 54 59 63 85 scan 0 sort 0}
   13298 do_test where7-2.574.1 {
   13299   count_steps_sort {
   13300      SELECT a FROM t2
   13301       WHERE a=55
   13302          OR a=62
   13303          OR a=63
   13304          OR (g='onmlkji' AND f GLOB 'yzabc*')
   13305          OR (g='rqponml' AND f GLOB 'ijklm*')
   13306          OR ((a BETWEEN 99 AND 101) AND a!=100)
   13307   }
   13308 } {34 50 55 62 63 99 scan 0 sort 0}
   13309 do_test where7-2.574.2 {
   13310   count_steps_sort {
   13311      SELECT a FROM t3
   13312       WHERE a=55
   13313          OR a=62
   13314          OR a=63
   13315          OR (g='onmlkji' AND f GLOB 'yzabc*')
   13316          OR (g='rqponml' AND f GLOB 'ijklm*')
   13317          OR ((a BETWEEN 99 AND 101) AND a!=100)
   13318   }
   13319 } {34 50 55 62 63 99 scan 0 sort 0}
   13320 do_test where7-2.575.1 {
   13321   count_steps_sort {
   13322      SELECT a FROM t2
   13323       WHERE b=421
   13324          OR b=146
   13325          OR b=22
   13326          OR f='efghijklm'
   13327   }
   13328 } {2 4 30 56 82 scan 0 sort 0}
   13329 do_test where7-2.575.2 {
   13330   count_steps_sort {
   13331      SELECT a FROM t3
   13332       WHERE b=421
   13333          OR b=146
   13334          OR b=22
   13335          OR f='efghijklm'
   13336   }
   13337 } {2 4 30 56 82 scan 0 sort 0}
   13338 do_test where7-2.576.1 {
   13339   count_steps_sort {
   13340      SELECT a FROM t2
   13341       WHERE b=553
   13342          OR ((a BETWEEN 21 AND 23) AND a!=22)
   13343          OR (g='onmlkji' AND f GLOB 'wxyza*')
   13344          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   13345          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13346          OR b=583
   13347          OR a=56
   13348   }
   13349 } {21 23 48 53 56 59 61 scan 0 sort 0}
   13350 do_test where7-2.576.2 {
   13351   count_steps_sort {
   13352      SELECT a FROM t3
   13353       WHERE b=553
   13354          OR ((a BETWEEN 21 AND 23) AND a!=22)
   13355          OR (g='onmlkji' AND f GLOB 'wxyza*')
   13356          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   13357          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13358          OR b=583
   13359          OR a=56
   13360   }
   13361 } {21 23 48 53 56 59 61 scan 0 sort 0}
   13362 do_test where7-2.577.1 {
   13363   count_steps_sort {
   13364      SELECT a FROM t2
   13365       WHERE a=83
   13366          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   13367          OR (g='srqponm' AND f GLOB 'defgh*')
   13368          OR a=1
   13369          OR ((a BETWEEN 17 AND 19) AND a!=18)
   13370          OR ((a BETWEEN 49 AND 51) AND a!=50)
   13371          OR b=245
   13372   }
   13373 } {1 17 19 29 49 51 77 83 scan 0 sort 0}
   13374 do_test where7-2.577.2 {
   13375   count_steps_sort {
   13376      SELECT a FROM t3
   13377       WHERE a=83
   13378          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   13379          OR (g='srqponm' AND f GLOB 'defgh*')
   13380          OR a=1
   13381          OR ((a BETWEEN 17 AND 19) AND a!=18)
   13382          OR ((a BETWEEN 49 AND 51) AND a!=50)
   13383          OR b=245
   13384   }
   13385 } {1 17 19 29 49 51 77 83 scan 0 sort 0}
   13386 do_test where7-2.578.1 {
   13387   count_steps_sort {
   13388      SELECT a FROM t2
   13389       WHERE c=3003
   13390          OR b=619
   13391          OR ((a BETWEEN 19 AND 21) AND a!=20)
   13392   }
   13393 } {7 8 9 19 21 scan 0 sort 0}
   13394 do_test where7-2.578.2 {
   13395   count_steps_sort {
   13396      SELECT a FROM t3
   13397       WHERE c=3003
   13398          OR b=619
   13399          OR ((a BETWEEN 19 AND 21) AND a!=20)
   13400   }
   13401 } {7 8 9 19 21 scan 0 sort 0}
   13402 do_test where7-2.579.1 {
   13403   count_steps_sort {
   13404      SELECT a FROM t2
   13405       WHERE b=924
   13406          OR a=92
   13407          OR a=63
   13408          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   13409          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   13410   }
   13411 } {60 63 84 92 97 scan 0 sort 0}
   13412 do_test where7-2.579.2 {
   13413   count_steps_sort {
   13414      SELECT a FROM t3
   13415       WHERE b=924
   13416          OR a=92
   13417          OR a=63
   13418          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   13419          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   13420   }
   13421 } {60 63 84 92 97 scan 0 sort 0}
   13422 do_test where7-2.580.1 {
   13423   count_steps_sort {
   13424      SELECT a FROM t2
   13425       WHERE b=440
   13426          OR f='vwxyzabcd'
   13427          OR b=190
   13428          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   13429          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   13430          OR b=88
   13431          OR b=58
   13432   }
   13433 } {8 11 21 37 40 42 47 63 73 89 99 scan 0 sort 0}
   13434 do_test where7-2.580.2 {
   13435   count_steps_sort {
   13436      SELECT a FROM t3
   13437       WHERE b=440
   13438          OR f='vwxyzabcd'
   13439          OR b=190
   13440          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   13441          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   13442          OR b=88
   13443          OR b=58
   13444   }
   13445 } {8 11 21 37 40 42 47 63 73 89 99 scan 0 sort 0}
   13446 do_test where7-2.581.1 {
   13447   count_steps_sort {
   13448      SELECT a FROM t2
   13449       WHERE b=495
   13450          OR c=24024
   13451          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   13452          OR b=1001
   13453          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   13454          OR d>1e10
   13455          OR b=531
   13456          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   13457          OR b=1089
   13458   }
   13459 } {25 45 49 70 71 72 82 91 99 scan 0 sort 0}
   13460 do_test where7-2.581.2 {
   13461   count_steps_sort {
   13462      SELECT a FROM t3
   13463       WHERE b=495
   13464          OR c=24024
   13465          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   13466          OR b=1001
   13467          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   13468          OR d>1e10
   13469          OR b=531
   13470          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   13471          OR b=1089
   13472   }
   13473 } {25 45 49 70 71 72 82 91 99 scan 0 sort 0}
   13474 do_test where7-2.582.1 {
   13475   count_steps_sort {
   13476      SELECT a FROM t2
   13477       WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
   13478          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   13479   }
   13480 } {41 48 scan 0 sort 0}
   13481 do_test where7-2.582.2 {
   13482   count_steps_sort {
   13483      SELECT a FROM t3
   13484       WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
   13485          OR (d>=41.0 AND d<42.0 AND d NOT NULL)
   13486   }
   13487 } {41 48 scan 0 sort 0}
   13488 do_test where7-2.583.1 {
   13489   count_steps_sort {
   13490      SELECT a FROM t2
   13491       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   13492          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   13493          OR ((a BETWEEN 80 AND 82) AND a!=81)
   13494          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   13495          OR ((a BETWEEN 91 AND 93) AND a!=92)
   13496          OR d>1e10
   13497          OR b=22
   13498          OR c=5005
   13499          OR ((a BETWEEN 22 AND 24) AND a!=23)
   13500   }
   13501 } {1 2 13 14 15 22 24 52 71 73 80 82 91 93 scan 0 sort 0}
   13502 do_test where7-2.583.2 {
   13503   count_steps_sort {
   13504      SELECT a FROM t3
   13505       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   13506          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   13507          OR ((a BETWEEN 80 AND 82) AND a!=81)
   13508          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   13509          OR ((a BETWEEN 91 AND 93) AND a!=92)
   13510          OR d>1e10
   13511          OR b=22
   13512          OR c=5005
   13513          OR ((a BETWEEN 22 AND 24) AND a!=23)
   13514   }
   13515 } {1 2 13 14 15 22 24 52 71 73 80 82 91 93 scan 0 sort 0}
   13516 do_test where7-2.584.1 {
   13517   count_steps_sort {
   13518      SELECT a FROM t2
   13519       WHERE ((a BETWEEN 9 AND 11) AND a!=10)
   13520          OR b=1078
   13521          OR b=806
   13522          OR b=605
   13523          OR ((a BETWEEN 23 AND 25) AND a!=24)
   13524          OR (g='jihgfed' AND f GLOB 'yzabc*')
   13525          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   13526   }
   13527 } {9 11 15 23 25 41 55 67 76 93 98 scan 0 sort 0}
   13528 do_test where7-2.584.2 {
   13529   count_steps_sort {
   13530      SELECT a FROM t3
   13531       WHERE ((a BETWEEN 9 AND 11) AND a!=10)
   13532          OR b=1078
   13533          OR b=806
   13534          OR b=605
   13535          OR ((a BETWEEN 23 AND 25) AND a!=24)
   13536          OR (g='jihgfed' AND f GLOB 'yzabc*')
   13537          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   13538   }
   13539 } {9 11 15 23 25 41 55 67 76 93 98 scan 0 sort 0}
   13540 do_test where7-2.585.1 {
   13541   count_steps_sort {
   13542      SELECT a FROM t2
   13543       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   13544          OR b=572
   13545          OR c=10010
   13546          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   13547          OR a=29
   13548          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   13549   }
   13550 } {7 28 29 30 33 52 59 68 84 85 86 scan 0 sort 0}
   13551 do_test where7-2.585.2 {
   13552   count_steps_sort {
   13553      SELECT a FROM t3
   13554       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   13555          OR b=572
   13556          OR c=10010
   13557          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   13558          OR a=29
   13559          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   13560   }
   13561 } {7 28 29 30 33 52 59 68 84 85 86 scan 0 sort 0}
   13562 do_test where7-2.586.1 {
   13563   count_steps_sort {
   13564      SELECT a FROM t2
   13565       WHERE ((a BETWEEN 94 AND 96) AND a!=95)
   13566          OR b=858
   13567          OR b=806
   13568          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13569          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   13570   }
   13571 } {63 77 78 94 96 scan 0 sort 0}
   13572 do_test where7-2.586.2 {
   13573   count_steps_sort {
   13574      SELECT a FROM t3
   13575       WHERE ((a BETWEEN 94 AND 96) AND a!=95)
   13576          OR b=858
   13577          OR b=806
   13578          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13579          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   13580   }
   13581 } {63 77 78 94 96 scan 0 sort 0}
   13582 do_test where7-2.587.1 {
   13583   count_steps_sort {
   13584      SELECT a FROM t2
   13585       WHERE f='vwxyzabcd'
   13586          OR a=72
   13587          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   13588          OR b=935
   13589          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   13590          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   13591          OR c=13013
   13592   }
   13593 } {21 36 37 38 39 40 47 72 73 85 99 scan 0 sort 0}
   13594 do_test where7-2.587.2 {
   13595   count_steps_sort {
   13596      SELECT a FROM t3
   13597       WHERE f='vwxyzabcd'
   13598          OR a=72
   13599          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   13600          OR b=935
   13601          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   13602          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   13603          OR c=13013
   13604   }
   13605 } {21 36 37 38 39 40 47 72 73 85 99 scan 0 sort 0}
   13606 do_test where7-2.588.1 {
   13607   count_steps_sort {
   13608      SELECT a FROM t2
   13609       WHERE c=5005
   13610          OR (g='gfedcba' AND f GLOB 'klmno*')
   13611          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   13612          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   13613          OR b=143
   13614          OR a=68
   13615          OR a=77
   13616          OR b=80
   13617   }
   13618 } {13 14 15 43 44 68 77 88 scan 0 sort 0}
   13619 do_test where7-2.588.2 {
   13620   count_steps_sort {
   13621      SELECT a FROM t3
   13622       WHERE c=5005
   13623          OR (g='gfedcba' AND f GLOB 'klmno*')
   13624          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   13625          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   13626          OR b=143
   13627          OR a=68
   13628          OR a=77
   13629          OR b=80
   13630   }
   13631 } {13 14 15 43 44 68 77 88 scan 0 sort 0}
   13632 do_test where7-2.589.1 {
   13633   count_steps_sort {
   13634      SELECT a FROM t2
   13635       WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
   13636          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   13637          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   13638          OR ((a BETWEEN 76 AND 78) AND a!=77)
   13639          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   13640          OR a=99
   13641          OR ((a BETWEEN 12 AND 14) AND a!=13)
   13642   }
   13643 } {5 6 12 14 68 72 76 78 99 scan 0 sort 0}
   13644 do_test where7-2.589.2 {
   13645   count_steps_sort {
   13646      SELECT a FROM t3
   13647       WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
   13648          OR (g='xwvutsr' AND f GLOB 'ghijk*')
   13649          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   13650          OR ((a BETWEEN 76 AND 78) AND a!=77)
   13651          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   13652          OR a=99
   13653          OR ((a BETWEEN 12 AND 14) AND a!=13)
   13654   }
   13655 } {5 6 12 14 68 72 76 78 99 scan 0 sort 0}
   13656 do_test where7-2.590.1 {
   13657   count_steps_sort {
   13658      SELECT a FROM t2
   13659       WHERE (g='qponmlk' AND f GLOB 'opqrs*')
   13660          OR ((a BETWEEN 88 AND 90) AND a!=89)
   13661          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   13662          OR (g='xwvutsr' AND f GLOB 'fghij*')
   13663          OR b=971
   13664          OR (g='xwvutsr' AND f GLOB 'fghij*')
   13665   }
   13666 } {5 13 40 88 90 scan 0 sort 0}
   13667 do_test where7-2.590.2 {
   13668   count_steps_sort {
   13669      SELECT a FROM t3
   13670       WHERE (g='qponmlk' AND f GLOB 'opqrs*')
   13671          OR ((a BETWEEN 88 AND 90) AND a!=89)
   13672          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   13673          OR (g='xwvutsr' AND f GLOB 'fghij*')
   13674          OR b=971
   13675          OR (g='xwvutsr' AND f GLOB 'fghij*')
   13676   }
   13677 } {5 13 40 88 90 scan 0 sort 0}
   13678 do_test where7-2.591.1 {
   13679   count_steps_sort {
   13680      SELECT a FROM t2
   13681       WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
   13682          OR b=806
   13683          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   13684          OR b=1015
   13685          OR ((a BETWEEN 68 AND 70) AND a!=69)
   13686          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   13687   }
   13688 } {10 13 36 39 43 62 65 68 70 88 91 scan 0 sort 0}
   13689 do_test where7-2.591.2 {
   13690   count_steps_sort {
   13691      SELECT a FROM t3
   13692       WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
   13693          OR b=806
   13694          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   13695          OR b=1015
   13696          OR ((a BETWEEN 68 AND 70) AND a!=69)
   13697          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   13698   }
   13699 } {10 13 36 39 43 62 65 68 70 88 91 scan 0 sort 0}
   13700 do_test where7-2.592.1 {
   13701   count_steps_sort {
   13702      SELECT a FROM t2
   13703       WHERE f='nopqrstuv'
   13704          OR b=993
   13705          OR a=76
   13706          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   13707          OR c=20020
   13708          OR a=26
   13709          OR b=1048
   13710          OR b=561
   13711          OR (g='rqponml' AND f GLOB 'klmno*')
   13712          OR ((a BETWEEN 55 AND 57) AND a!=56)
   13713          OR a=56
   13714   }
   13715 } {13 26 36 39 51 55 56 57 58 59 60 65 76 79 91 scan 0 sort 0}
   13716 do_test where7-2.592.2 {
   13717   count_steps_sort {
   13718      SELECT a FROM t3
   13719       WHERE f='nopqrstuv'
   13720          OR b=993
   13721          OR a=76
   13722          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   13723          OR c=20020
   13724          OR a=26
   13725          OR b=1048
   13726          OR b=561
   13727          OR (g='rqponml' AND f GLOB 'klmno*')
   13728          OR ((a BETWEEN 55 AND 57) AND a!=56)
   13729          OR a=56
   13730   }
   13731 } {13 26 36 39 51 55 56 57 58 59 60 65 76 79 91 scan 0 sort 0}
   13732 do_test where7-2.593.1 {
   13733   count_steps_sort {
   13734      SELECT a FROM t2
   13735       WHERE b=781
   13736          OR b=671
   13737          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   13738          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   13739          OR ((a BETWEEN 39 AND 41) AND a!=40)
   13740          OR b=113
   13741          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   13742          OR b=385
   13743          OR (g='hgfedcb' AND f GLOB 'fghij*')
   13744   }
   13745 } {15 16 35 39 41 60 61 71 83 scan 0 sort 0}
   13746 do_test where7-2.593.2 {
   13747   count_steps_sort {
   13748      SELECT a FROM t3
   13749       WHERE b=781
   13750          OR b=671
   13751          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   13752          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   13753          OR ((a BETWEEN 39 AND 41) AND a!=40)
   13754          OR b=113
   13755          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   13756          OR b=385
   13757          OR (g='hgfedcb' AND f GLOB 'fghij*')
   13758   }
   13759 } {15 16 35 39 41 60 61 71 83 scan 0 sort 0}
   13760 do_test where7-2.594.1 {
   13761   count_steps_sort {
   13762      SELECT a FROM t2
   13763       WHERE b=410
   13764          OR ((a BETWEEN 85 AND 87) AND a!=86)
   13765          OR b=674
   13766          OR b=825
   13767          OR b=704
   13768          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13769          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   13770          OR ((a BETWEEN 58 AND 60) AND a!=59)
   13771          OR a=76
   13772          OR c=32032
   13773          OR ((a BETWEEN 43 AND 45) AND a!=44)
   13774   }
   13775 } {9 43 45 58 60 61 64 75 76 85 87 94 95 96 scan 0 sort 0}
   13776 do_test where7-2.594.2 {
   13777   count_steps_sort {
   13778      SELECT a FROM t3
   13779       WHERE b=410
   13780          OR ((a BETWEEN 85 AND 87) AND a!=86)
   13781          OR b=674
   13782          OR b=825
   13783          OR b=704
   13784          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13785          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   13786          OR ((a BETWEEN 58 AND 60) AND a!=59)
   13787          OR a=76
   13788          OR c=32032
   13789          OR ((a BETWEEN 43 AND 45) AND a!=44)
   13790   }
   13791 } {9 43 45 58 60 61 64 75 76 85 87 94 95 96 scan 0 sort 0}
   13792 do_test where7-2.595.1 {
   13793   count_steps_sort {
   13794      SELECT a FROM t2
   13795       WHERE b=869
   13796          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   13797   }
   13798 } {43 79 scan 0 sort 0}
   13799 do_test where7-2.595.2 {
   13800   count_steps_sort {
   13801      SELECT a FROM t3
   13802       WHERE b=869
   13803          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   13804   }
   13805 } {43 79 scan 0 sort 0}
   13806 do_test where7-2.596.1 {
   13807   count_steps_sort {
   13808      SELECT a FROM t2
   13809       WHERE b=869
   13810          OR a=34
   13811          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   13812   }
   13813 } {34 79 87 scan 0 sort 0}
   13814 do_test where7-2.596.2 {
   13815   count_steps_sort {
   13816      SELECT a FROM t3
   13817       WHERE b=869
   13818          OR a=34
   13819          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   13820   }
   13821 } {34 79 87 scan 0 sort 0}
   13822 do_test where7-2.597.1 {
   13823   count_steps_sort {
   13824      SELECT a FROM t2
   13825       WHERE (g='rqponml' AND f GLOB 'hijkl*')
   13826          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   13827          OR a=8
   13828          OR a=72
   13829          OR ((a BETWEEN 95 AND 97) AND a!=96)
   13830          OR (g='gfedcba' AND f GLOB 'mnopq*')
   13831   }
   13832 } {8 33 44 72 90 95 97 scan 0 sort 0}
   13833 do_test where7-2.597.2 {
   13834   count_steps_sort {
   13835      SELECT a FROM t3
   13836       WHERE (g='rqponml' AND f GLOB 'hijkl*')
   13837          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   13838          OR a=8
   13839          OR a=72
   13840          OR ((a BETWEEN 95 AND 97) AND a!=96)
   13841          OR (g='gfedcba' AND f GLOB 'mnopq*')
   13842   }
   13843 } {8 33 44 72 90 95 97 scan 0 sort 0}
   13844 do_test where7-2.598.1 {
   13845   count_steps_sort {
   13846      SELECT a FROM t2
   13847       WHERE a=20
   13848          OR ((a BETWEEN 74 AND 76) AND a!=75)
   13849          OR b=341
   13850          OR (g='tsrqpon' AND f GLOB 'abcde*')
   13851          OR b=814
   13852          OR b=1026
   13853          OR a=14
   13854          OR a=13
   13855          OR b=1037
   13856          OR ((a BETWEEN 56 AND 58) AND a!=57)
   13857   }
   13858 } {13 14 20 26 31 56 58 74 76 scan 0 sort 0}
   13859 do_test where7-2.598.2 {
   13860   count_steps_sort {
   13861      SELECT a FROM t3
   13862       WHERE a=20
   13863          OR ((a BETWEEN 74 AND 76) AND a!=75)
   13864          OR b=341
   13865          OR (g='tsrqpon' AND f GLOB 'abcde*')
   13866          OR b=814
   13867          OR b=1026
   13868          OR a=14
   13869          OR a=13
   13870          OR b=1037
   13871          OR ((a BETWEEN 56 AND 58) AND a!=57)
   13872   }
   13873 } {13 14 20 26 31 56 58 74 76 scan 0 sort 0}
   13874 do_test where7-2.599.1 {
   13875   count_steps_sort {
   13876      SELECT a FROM t2
   13877       WHERE b=443
   13878          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   13879          OR b=839
   13880          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   13881          OR (g='onmlkji' AND f GLOB 'xyzab*')
   13882          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   13883          OR c=7007
   13884   }
   13885 } {10 13 19 20 21 49 51 scan 0 sort 0}
   13886 do_test where7-2.599.2 {
   13887   count_steps_sort {
   13888      SELECT a FROM t3
   13889       WHERE b=443
   13890          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   13891          OR b=839
   13892          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   13893          OR (g='onmlkji' AND f GLOB 'xyzab*')
   13894          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   13895          OR c=7007
   13896   }
   13897 } {10 13 19 20 21 49 51 scan 0 sort 0}
   13898 do_test where7-2.600.1 {
   13899   count_steps_sort {
   13900      SELECT a FROM t2
   13901       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   13902          OR a=21
   13903          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   13904          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   13905          OR f='zabcdefgh'
   13906          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   13907          OR b=506
   13908          OR ((a BETWEEN 14 AND 16) AND a!=15)
   13909          OR b=88
   13910          OR b=190
   13911   }
   13912 } {3 8 9 14 16 21 25 42 46 51 68 77 94 97 scan 0 sort 0}
   13913 do_test where7-2.600.2 {
   13914   count_steps_sort {
   13915      SELECT a FROM t3
   13916       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   13917          OR a=21
   13918          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   13919          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   13920          OR f='zabcdefgh'
   13921          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   13922          OR b=506
   13923          OR ((a BETWEEN 14 AND 16) AND a!=15)
   13924          OR b=88
   13925          OR b=190
   13926   }
   13927 } {3 8 9 14 16 21 25 42 46 51 68 77 94 97 scan 0 sort 0}
   13928 do_test where7-2.601.1 {
   13929   count_steps_sort {
   13930      SELECT a FROM t2
   13931       WHERE (d>=41.0 AND d<42.0 AND d NOT NULL)
   13932          OR f='bcdefghij'
   13933          OR ((a BETWEEN 68 AND 70) AND a!=69)
   13934          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   13935          OR (g='srqponm' AND f GLOB 'efghi*')
   13936          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13937          OR b=762
   13938          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13939          OR (g='jihgfed' AND f GLOB 'yzabc*')
   13940   }
   13941 } {1 27 30 41 53 54 61 63 68 70 76 79 scan 0 sort 0}
   13942 do_test where7-2.601.2 {
   13943   count_steps_sort {
   13944      SELECT a FROM t3
   13945       WHERE (d>=41.0 AND d<42.0 AND d NOT NULL)
   13946          OR f='bcdefghij'
   13947          OR ((a BETWEEN 68 AND 70) AND a!=69)
   13948          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   13949          OR (g='srqponm' AND f GLOB 'efghi*')
   13950          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   13951          OR b=762
   13952          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   13953          OR (g='jihgfed' AND f GLOB 'yzabc*')
   13954   }
   13955 } {1 27 30 41 53 54 61 63 68 70 76 79 scan 0 sort 0}
   13956 do_test where7-2.602.1 {
   13957   count_steps_sort {
   13958      SELECT a FROM t2
   13959       WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
   13960          OR f='qrstuvwxy'
   13961          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   13962   }
   13963 } {16 42 56 68 85 94 scan 0 sort 0}
   13964 do_test where7-2.602.2 {
   13965   count_steps_sort {
   13966      SELECT a FROM t3
   13967       WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
   13968          OR f='qrstuvwxy'
   13969          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   13970   }
   13971 } {16 42 56 68 85 94 scan 0 sort 0}
   13972 do_test where7-2.603.1 {
   13973   count_steps_sort {
   13974      SELECT a FROM t2
   13975       WHERE (d>=89.0 AND d<90.0 AND d NOT NULL)
   13976          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   13977          OR a=21
   13978          OR b<0
   13979          OR f='bcdefghij'
   13980          OR ((a BETWEEN 14 AND 16) AND a!=15)
   13981   }
   13982 } {1 14 16 21 27 53 57 79 89 scan 0 sort 0}
   13983 do_test where7-2.603.2 {
   13984   count_steps_sort {
   13985      SELECT a FROM t3
   13986       WHERE (d>=89.0 AND d<90.0 AND d NOT NULL)
   13987          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   13988          OR a=21
   13989          OR b<0
   13990          OR f='bcdefghij'
   13991          OR ((a BETWEEN 14 AND 16) AND a!=15)
   13992   }
   13993 } {1 14 16 21 27 53 57 79 89 scan 0 sort 0}
   13994 do_test where7-2.604.1 {
   13995   count_steps_sort {
   13996      SELECT a FROM t2
   13997       WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
   13998          OR (g='hgfedcb' AND f GLOB 'fghij*')
   13999          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   14000          OR b=1067
   14001          OR b=231
   14002          OR b=113
   14003          OR b=22
   14004          OR a=55
   14005          OR b=663
   14006   }
   14007 } {2 21 40 55 83 97 scan 0 sort 0}
   14008 do_test where7-2.604.2 {
   14009   count_steps_sort {
   14010      SELECT a FROM t3
   14011       WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
   14012          OR (g='hgfedcb' AND f GLOB 'fghij*')
   14013          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   14014          OR b=1067
   14015          OR b=231
   14016          OR b=113
   14017          OR b=22
   14018          OR a=55
   14019          OR b=663
   14020   }
   14021 } {2 21 40 55 83 97 scan 0 sort 0}
   14022 do_test where7-2.605.1 {
   14023   count_steps_sort {
   14024      SELECT a FROM t2
   14025       WHERE a=1
   14026          OR b=454
   14027          OR b=396
   14028          OR b=1059
   14029          OR a=69
   14030          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   14031          OR b=440
   14032          OR b=825
   14033   }
   14034 } {1 21 36 40 47 69 73 75 99 scan 0 sort 0}
   14035 do_test where7-2.605.2 {
   14036   count_steps_sort {
   14037      SELECT a FROM t3
   14038       WHERE a=1
   14039          OR b=454
   14040          OR b=396
   14041          OR b=1059
   14042          OR a=69
   14043          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   14044          OR b=440
   14045          OR b=825
   14046   }
   14047 } {1 21 36 40 47 69 73 75 99 scan 0 sort 0}
   14048 do_test where7-2.606.1 {
   14049   count_steps_sort {
   14050      SELECT a FROM t2
   14051       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   14052          OR b=308
   14053          OR c<=10
   14054          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   14055          OR f='ghijklmno'
   14056          OR b=289
   14057          OR a=5
   14058          OR b=267
   14059          OR b=949
   14060          OR ((a BETWEEN 7 AND 9) AND a!=8)
   14061   }
   14062 } {5 6 7 9 26 28 32 58 84 scan 0 sort 0}
   14063 do_test where7-2.606.2 {
   14064   count_steps_sort {
   14065      SELECT a FROM t3
   14066       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   14067          OR b=308
   14068          OR c<=10
   14069          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   14070          OR f='ghijklmno'
   14071          OR b=289
   14072          OR a=5
   14073          OR b=267
   14074          OR b=949
   14075          OR ((a BETWEEN 7 AND 9) AND a!=8)
   14076   }
   14077 } {5 6 7 9 26 28 32 58 84 scan 0 sort 0}
   14078 do_test where7-2.607.1 {
   14079   count_steps_sort {
   14080      SELECT a FROM t2
   14081       WHERE ((a BETWEEN 95 AND 97) AND a!=96)
   14082          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   14083          OR b=993
   14084          OR ((a BETWEEN 43 AND 45) AND a!=44)
   14085          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   14086          OR b=663
   14087          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14088          OR b=869
   14089          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   14090          OR b=121
   14091   }
   14092 } {11 17 24 43 45 50 76 79 81 95 97 scan 0 sort 0}
   14093 do_test where7-2.607.2 {
   14094   count_steps_sort {
   14095      SELECT a FROM t3
   14096       WHERE ((a BETWEEN 95 AND 97) AND a!=96)
   14097          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   14098          OR b=993
   14099          OR ((a BETWEEN 43 AND 45) AND a!=44)
   14100          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   14101          OR b=663
   14102          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14103          OR b=869
   14104          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   14105          OR b=121
   14106   }
   14107 } {11 17 24 43 45 50 76 79 81 95 97 scan 0 sort 0}
   14108 do_test where7-2.608.1 {
   14109   count_steps_sort {
   14110      SELECT a FROM t2
   14111       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   14112          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   14113          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   14114          OR b=770
   14115   }
   14116 } {4 27 70 87 scan 0 sort 0}
   14117 do_test where7-2.608.2 {
   14118   count_steps_sort {
   14119      SELECT a FROM t3
   14120       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   14121          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   14122          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   14123          OR b=770
   14124   }
   14125 } {4 27 70 87 scan 0 sort 0}
   14126 do_test where7-2.609.1 {
   14127   count_steps_sort {
   14128      SELECT a FROM t2
   14129       WHERE ((a BETWEEN 80 AND 82) AND a!=81)
   14130          OR (g='nmlkjih' AND f GLOB 'fghij*')
   14131          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   14132          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   14133          OR (g='gfedcba' AND f GLOB 'mnopq*')
   14134   }
   14135 } {19 45 57 71 80 82 90 97 scan 0 sort 0}
   14136 do_test where7-2.609.2 {
   14137   count_steps_sort {
   14138      SELECT a FROM t3
   14139       WHERE ((a BETWEEN 80 AND 82) AND a!=81)
   14140          OR (g='nmlkjih' AND f GLOB 'fghij*')
   14141          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   14142          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   14143          OR (g='gfedcba' AND f GLOB 'mnopq*')
   14144   }
   14145 } {19 45 57 71 80 82 90 97 scan 0 sort 0}
   14146 do_test where7-2.610.1 {
   14147   count_steps_sort {
   14148      SELECT a FROM t2
   14149       WHERE b=22
   14150          OR c=31031
   14151          OR b=894
   14152          OR a=31
   14153          OR ((a BETWEEN 84 AND 86) AND a!=85)
   14154          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   14155          OR a=94
   14156          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   14157          OR ((a BETWEEN 93 AND 95) AND a!=94)
   14158          OR a=21
   14159          OR b=1001
   14160   }
   14161 } {2 21 31 84 86 91 92 93 94 95 scan 0 sort 0}
   14162 do_test where7-2.610.2 {
   14163   count_steps_sort {
   14164      SELECT a FROM t3
   14165       WHERE b=22
   14166          OR c=31031
   14167          OR b=894
   14168          OR a=31
   14169          OR ((a BETWEEN 84 AND 86) AND a!=85)
   14170          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   14171          OR a=94
   14172          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   14173          OR ((a BETWEEN 93 AND 95) AND a!=94)
   14174          OR a=21
   14175          OR b=1001
   14176   }
   14177 } {2 21 31 84 86 91 92 93 94 95 scan 0 sort 0}
   14178 do_test where7-2.611.1 {
   14179   count_steps_sort {
   14180      SELECT a FROM t2
   14181       WHERE (g='onmlkji' AND f GLOB 'zabcd*')
   14182          OR b=1092
   14183          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   14184          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   14185          OR a=77
   14186          OR a=63
   14187          OR b=762
   14188          OR b=894
   14189          OR b=685
   14190          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   14191   }
   14192 } {13 46 51 63 77 80 scan 0 sort 0}
   14193 do_test where7-2.611.2 {
   14194   count_steps_sort {
   14195      SELECT a FROM t3
   14196       WHERE (g='onmlkji' AND f GLOB 'zabcd*')
   14197          OR b=1092
   14198          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   14199          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   14200          OR a=77
   14201          OR a=63
   14202          OR b=762
   14203          OR b=894
   14204          OR b=685
   14205          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   14206   }
   14207 } {13 46 51 63 77 80 scan 0 sort 0}
   14208 do_test where7-2.612.1 {
   14209   count_steps_sort {
   14210      SELECT a FROM t2
   14211       WHERE (g='wvutsrq' AND f GLOB 'klmno*')
   14212          OR ((a BETWEEN 93 AND 95) AND a!=94)
   14213          OR b=231
   14214   }
   14215 } {10 21 93 95 scan 0 sort 0}
   14216 do_test where7-2.612.2 {
   14217   count_steps_sort {
   14218      SELECT a FROM t3
   14219       WHERE (g='wvutsrq' AND f GLOB 'klmno*')
   14220          OR ((a BETWEEN 93 AND 95) AND a!=94)
   14221          OR b=231
   14222   }
   14223 } {10 21 93 95 scan 0 sort 0}
   14224 do_test where7-2.613.1 {
   14225   count_steps_sort {
   14226      SELECT a FROM t2
   14227       WHERE b=828
   14228          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   14229          OR ((a BETWEEN 8 AND 10) AND a!=9)
   14230   }
   14231 } {8 10 26 52 78 scan 0 sort 0}
   14232 do_test where7-2.613.2 {
   14233   count_steps_sort {
   14234      SELECT a FROM t3
   14235       WHERE b=828
   14236          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   14237          OR ((a BETWEEN 8 AND 10) AND a!=9)
   14238   }
   14239 } {8 10 26 52 78 scan 0 sort 0}
   14240 do_test where7-2.614.1 {
   14241   count_steps_sort {
   14242      SELECT a FROM t2
   14243       WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
   14244          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   14245          OR b=520
   14246          OR ((a BETWEEN 4 AND 6) AND a!=5)
   14247          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   14248          OR ((a BETWEEN 31 AND 33) AND a!=32)
   14249          OR (g='edcbazy' AND f GLOB 'wxyza*')
   14250          OR a=21
   14251   }
   14252 } {4 6 13 21 31 33 39 47 50 65 91 100 scan 0 sort 0}
   14253 do_test where7-2.614.2 {
   14254   count_steps_sort {
   14255      SELECT a FROM t3
   14256       WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
   14257          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   14258          OR b=520
   14259          OR ((a BETWEEN 4 AND 6) AND a!=5)
   14260          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   14261          OR ((a BETWEEN 31 AND 33) AND a!=32)
   14262          OR (g='edcbazy' AND f GLOB 'wxyza*')
   14263          OR a=21
   14264   }
   14265 } {4 6 13 21 31 33 39 47 50 65 91 100 scan 0 sort 0}
   14266 do_test where7-2.615.1 {
   14267   count_steps_sort {
   14268      SELECT a FROM t2
   14269       WHERE b=553
   14270          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   14271          OR b=1034
   14272          OR b=418
   14273          OR a=57
   14274          OR f='mnopqrstu'
   14275          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   14276   }
   14277 } {12 38 57 63 64 90 94 99 scan 0 sort 0}
   14278 do_test where7-2.615.2 {
   14279   count_steps_sort {
   14280      SELECT a FROM t3
   14281       WHERE b=553
   14282          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   14283          OR b=1034
   14284          OR b=418
   14285          OR a=57
   14286          OR f='mnopqrstu'
   14287          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   14288   }
   14289 } {12 38 57 63 64 90 94 99 scan 0 sort 0}
   14290 do_test where7-2.616.1 {
   14291   count_steps_sort {
   14292      SELECT a FROM t2
   14293       WHERE a=43
   14294          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   14295          OR b=418
   14296          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   14297          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   14298          OR b=594
   14299          OR a=21
   14300          OR a=78
   14301          OR a=91
   14302          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   14303   }
   14304 } {21 38 43 47 54 70 78 80 91 scan 0 sort 0}
   14305 do_test where7-2.616.2 {
   14306   count_steps_sort {
   14307      SELECT a FROM t3
   14308       WHERE a=43
   14309          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   14310          OR b=418
   14311          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   14312          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   14313          OR b=594
   14314          OR a=21
   14315          OR a=78
   14316          OR a=91
   14317          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   14318   }
   14319 } {21 38 43 47 54 70 78 80 91 scan 0 sort 0}
   14320 do_test where7-2.617.1 {
   14321   count_steps_sort {
   14322      SELECT a FROM t2
   14323       WHERE b=671
   14324          OR (g='onmlkji' AND f GLOB 'wxyza*')
   14325          OR ((a BETWEEN 95 AND 97) AND a!=96)
   14326   }
   14327 } {48 61 95 97 scan 0 sort 0}
   14328 do_test where7-2.617.2 {
   14329   count_steps_sort {
   14330      SELECT a FROM t3
   14331       WHERE b=671
   14332          OR (g='onmlkji' AND f GLOB 'wxyza*')
   14333          OR ((a BETWEEN 95 AND 97) AND a!=96)
   14334   }
   14335 } {48 61 95 97 scan 0 sort 0}
   14336 do_test where7-2.618.1 {
   14337   count_steps_sort {
   14338      SELECT a FROM t2
   14339       WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
   14340          OR b=726
   14341          OR b=663
   14342          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   14343          OR a=25
   14344          OR f='qrstuvwxy'
   14345   }
   14346 } {2 13 16 25 42 66 68 94 scan 0 sort 0}
   14347 do_test where7-2.618.2 {
   14348   count_steps_sort {
   14349      SELECT a FROM t3
   14350       WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
   14351          OR b=726
   14352          OR b=663
   14353          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   14354          OR a=25
   14355          OR f='qrstuvwxy'
   14356   }
   14357 } {2 13 16 25 42 66 68 94 scan 0 sort 0}
   14358 do_test where7-2.619.1 {
   14359   count_steps_sort {
   14360      SELECT a FROM t2
   14361       WHERE b=806
   14362          OR (g='ihgfedc' AND f GLOB 'efghi*')
   14363          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   14364          OR ((a BETWEEN 10 AND 12) AND a!=11)
   14365          OR b=275
   14366          OR ((a BETWEEN 80 AND 82) AND a!=81)
   14367   }
   14368 } {10 12 25 50 80 82 scan 0 sort 0}
   14369 do_test where7-2.619.2 {
   14370   count_steps_sort {
   14371      SELECT a FROM t3
   14372       WHERE b=806
   14373          OR (g='ihgfedc' AND f GLOB 'efghi*')
   14374          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   14375          OR ((a BETWEEN 10 AND 12) AND a!=11)
   14376          OR b=275
   14377          OR ((a BETWEEN 80 AND 82) AND a!=81)
   14378   }
   14379 } {10 12 25 50 80 82 scan 0 sort 0}
   14380 do_test where7-2.620.1 {
   14381   count_steps_sort {
   14382      SELECT a FROM t2
   14383       WHERE c=24024
   14384          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   14385          OR b=429
   14386          OR (g='qponmlk' AND f GLOB 'nopqr*')
   14387          OR b=110
   14388          OR a=39
   14389          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   14390   }
   14391 } {2 10 23 39 70 71 72 scan 0 sort 0}
   14392 do_test where7-2.620.2 {
   14393   count_steps_sort {
   14394      SELECT a FROM t3
   14395       WHERE c=24024
   14396          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   14397          OR b=429
   14398          OR (g='qponmlk' AND f GLOB 'nopqr*')
   14399          OR b=110
   14400          OR a=39
   14401          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   14402   }
   14403 } {2 10 23 39 70 71 72 scan 0 sort 0}
   14404 do_test where7-2.621.1 {
   14405   count_steps_sort {
   14406      SELECT a FROM t2
   14407       WHERE a=66
   14408          OR ((a BETWEEN 68 AND 70) AND a!=69)
   14409          OR b=198
   14410          OR b=682
   14411          OR c=23023
   14412   }
   14413 } {18 62 66 67 68 69 70 scan 0 sort 0}
   14414 do_test where7-2.621.2 {
   14415   count_steps_sort {
   14416      SELECT a FROM t3
   14417       WHERE a=66
   14418          OR ((a BETWEEN 68 AND 70) AND a!=69)
   14419          OR b=198
   14420          OR b=682
   14421          OR c=23023
   14422   }
   14423 } {18 62 66 67 68 69 70 scan 0 sort 0}
   14424 do_test where7-2.622.1 {
   14425   count_steps_sort {
   14426      SELECT a FROM t2
   14427       WHERE b=806
   14428          OR b=253
   14429          OR a=36
   14430   }
   14431 } {23 36 scan 0 sort 0}
   14432 do_test where7-2.622.2 {
   14433   count_steps_sort {
   14434      SELECT a FROM t3
   14435       WHERE b=806
   14436          OR b=253
   14437          OR a=36
   14438   }
   14439 } {23 36 scan 0 sort 0}
   14440 do_test where7-2.623.1 {
   14441   count_steps_sort {
   14442      SELECT a FROM t2
   14443       WHERE b=509
   14444          OR ((a BETWEEN 22 AND 24) AND a!=23)
   14445          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   14446          OR b=718
   14447          OR a=4
   14448          OR ((a BETWEEN 56 AND 58) AND a!=57)
   14449          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   14450          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   14451   }
   14452 } {4 13 16 22 24 56 58 69 scan 0 sort 0}
   14453 do_test where7-2.623.2 {
   14454   count_steps_sort {
   14455      SELECT a FROM t3
   14456       WHERE b=509
   14457          OR ((a BETWEEN 22 AND 24) AND a!=23)
   14458          OR (g='vutsrqp' AND f GLOB 'nopqr*')
   14459          OR b=718
   14460          OR a=4
   14461          OR ((a BETWEEN 56 AND 58) AND a!=57)
   14462          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   14463          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   14464   }
   14465 } {4 13 16 22 24 56 58 69 scan 0 sort 0}
   14466 do_test where7-2.624.1 {
   14467   count_steps_sort {
   14468      SELECT a FROM t2
   14469       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   14470          OR b=1026
   14471          OR a=93
   14472          OR c=18018
   14473   }
   14474 } {52 53 54 77 93 scan 0 sort 0}
   14475 do_test where7-2.624.2 {
   14476   count_steps_sort {
   14477      SELECT a FROM t3
   14478       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   14479          OR b=1026
   14480          OR a=93
   14481          OR c=18018
   14482   }
   14483 } {52 53 54 77 93 scan 0 sort 0}
   14484 do_test where7-2.625.1 {
   14485   count_steps_sort {
   14486      SELECT a FROM t2
   14487       WHERE b=388
   14488          OR a=44
   14489   }
   14490 } {44 scan 0 sort 0}
   14491 do_test where7-2.625.2 {
   14492   count_steps_sort {
   14493      SELECT a FROM t3
   14494       WHERE b=388
   14495          OR a=44
   14496   }
   14497 } {44 scan 0 sort 0}
   14498 do_test where7-2.626.1 {
   14499   count_steps_sort {
   14500      SELECT a FROM t2
   14501       WHERE c=9009
   14502          OR b=542
   14503          OR f='cdefghijk'
   14504          OR b=319
   14505          OR b=616
   14506   }
   14507 } {2 25 26 27 28 29 54 56 80 scan 0 sort 0}
   14508 do_test where7-2.626.2 {
   14509   count_steps_sort {
   14510      SELECT a FROM t3
   14511       WHERE c=9009
   14512          OR b=542
   14513          OR f='cdefghijk'
   14514          OR b=319
   14515          OR b=616
   14516   }
   14517 } {2 25 26 27 28 29 54 56 80 scan 0 sort 0}
   14518 do_test where7-2.627.1 {
   14519   count_steps_sort {
   14520      SELECT a FROM t2
   14521       WHERE b=990
   14522          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   14523          OR ((a BETWEEN 41 AND 43) AND a!=42)
   14524          OR (g='nmlkjih' AND f GLOB 'fghij*')
   14525          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   14526          OR b=531
   14527          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   14528          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   14529          OR f='qrstuvwxy'
   14530   }
   14531 } {6 16 32 41 42 43 57 58 67 68 84 86 90 94 97 scan 0 sort 0}
   14532 do_test where7-2.627.2 {
   14533   count_steps_sort {
   14534      SELECT a FROM t3
   14535       WHERE b=990
   14536          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   14537          OR ((a BETWEEN 41 AND 43) AND a!=42)
   14538          OR (g='nmlkjih' AND f GLOB 'fghij*')
   14539          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   14540          OR b=531
   14541          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   14542          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   14543          OR f='qrstuvwxy'
   14544   }
   14545 } {6 16 32 41 42 43 57 58 67 68 84 86 90 94 97 scan 0 sort 0}
   14546 do_test where7-2.628.1 {
   14547   count_steps_sort {
   14548      SELECT a FROM t2
   14549       WHERE a=60
   14550          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   14551          OR b=627
   14552          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   14553          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   14554          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   14555          OR b=883
   14556          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   14557          OR f='yzabcdefg'
   14558          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   14559   }
   14560 } {24 38 50 57 59 60 73 76 78 93 99 scan 0 sort 0}
   14561 do_test where7-2.628.2 {
   14562   count_steps_sort {
   14563      SELECT a FROM t3
   14564       WHERE a=60
   14565          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   14566          OR b=627
   14567          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   14568          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   14569          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   14570          OR b=883
   14571          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   14572          OR f='yzabcdefg'
   14573          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   14574   }
   14575 } {24 38 50 57 59 60 73 76 78 93 99 scan 0 sort 0}
   14576 do_test where7-2.629.1 {
   14577   count_steps_sort {
   14578      SELECT a FROM t2
   14579       WHERE b=696
   14580          OR b=938
   14581          OR a=18
   14582          OR b=957
   14583          OR c=18018
   14584          OR c=3003
   14585          OR ((a BETWEEN 33 AND 35) AND a!=34)
   14586   }
   14587 } {7 8 9 18 33 35 52 53 54 87 scan 0 sort 0}
   14588 do_test where7-2.629.2 {
   14589   count_steps_sort {
   14590      SELECT a FROM t3
   14591       WHERE b=696
   14592          OR b=938
   14593          OR a=18
   14594          OR b=957
   14595          OR c=18018
   14596          OR c=3003
   14597          OR ((a BETWEEN 33 AND 35) AND a!=34)
   14598   }
   14599 } {7 8 9 18 33 35 52 53 54 87 scan 0 sort 0}
   14600 do_test where7-2.630.1 {
   14601   count_steps_sort {
   14602      SELECT a FROM t2
   14603       WHERE c=29029
   14604          OR a=73
   14605   }
   14606 } {73 85 86 87 scan 0 sort 0}
   14607 do_test where7-2.630.2 {
   14608   count_steps_sort {
   14609      SELECT a FROM t3
   14610       WHERE c=29029
   14611          OR a=73
   14612   }
   14613 } {73 85 86 87 scan 0 sort 0}
   14614 do_test where7-2.631.1 {
   14615   count_steps_sort {
   14616      SELECT a FROM t2
   14617       WHERE a=28
   14618          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   14619          OR b=69
   14620          OR ((a BETWEEN 85 AND 87) AND a!=86)
   14621          OR b=781
   14622          OR a=64
   14623          OR b=91
   14624          OR (g='ihgfedc' AND f GLOB 'efghi*')
   14625          OR a=16
   14626          OR b=278
   14627          OR a=26
   14628   }
   14629 } {16 26 27 28 64 71 82 85 87 scan 0 sort 0}
   14630 do_test where7-2.631.2 {
   14631   count_steps_sort {
   14632      SELECT a FROM t3
   14633       WHERE a=28
   14634          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   14635          OR b=69
   14636          OR ((a BETWEEN 85 AND 87) AND a!=86)
   14637          OR b=781
   14638          OR a=64
   14639          OR b=91
   14640          OR (g='ihgfedc' AND f GLOB 'efghi*')
   14641          OR a=16
   14642          OR b=278
   14643          OR a=26
   14644   }
   14645 } {16 26 27 28 64 71 82 85 87 scan 0 sort 0}
   14646 do_test where7-2.632.1 {
   14647   count_steps_sort {
   14648      SELECT a FROM t2
   14649       WHERE a=70
   14650          OR c=3003
   14651   }
   14652 } {7 8 9 70 scan 0 sort 0}
   14653 do_test where7-2.632.2 {
   14654   count_steps_sort {
   14655      SELECT a FROM t3
   14656       WHERE a=70
   14657          OR c=3003
   14658   }
   14659 } {7 8 9 70 scan 0 sort 0}
   14660 do_test where7-2.633.1 {
   14661   count_steps_sort {
   14662      SELECT a FROM t2
   14663       WHERE c=31031
   14664          OR a=76
   14665          OR b=1023
   14666          OR b=33
   14667   }
   14668 } {3 76 91 92 93 scan 0 sort 0}
   14669 do_test where7-2.633.2 {
   14670   count_steps_sort {
   14671      SELECT a FROM t3
   14672       WHERE c=31031
   14673          OR a=76
   14674          OR b=1023
   14675          OR b=33
   14676   }
   14677 } {3 76 91 92 93 scan 0 sort 0}
   14678 do_test where7-2.634.1 {
   14679   count_steps_sort {
   14680      SELECT a FROM t2
   14681       WHERE (d>=62.0 AND d<63.0 AND d NOT NULL)
   14682          OR b=1001
   14683          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   14684   }
   14685 } {62 86 91 scan 0 sort 0}
   14686 do_test where7-2.634.2 {
   14687   count_steps_sort {
   14688      SELECT a FROM t3
   14689       WHERE (d>=62.0 AND d<63.0 AND d NOT NULL)
   14690          OR b=1001
   14691          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   14692   }
   14693 } {62 86 91 scan 0 sort 0}
   14694 do_test where7-2.635.1 {
   14695   count_steps_sort {
   14696      SELECT a FROM t2
   14697       WHERE f='yzabcdefg'
   14698          OR ((a BETWEEN 48 AND 50) AND a!=49)
   14699          OR a=100
   14700          OR (g='rqponml' AND f GLOB 'ijklm*')
   14701          OR a=62
   14702          OR a=67
   14703          OR b=605
   14704          OR c=23023
   14705          OR a=26
   14706          OR b=982
   14707          OR ((a BETWEEN 3 AND 5) AND a!=4)
   14708   }
   14709 } {3 5 24 26 34 48 50 55 62 67 68 69 76 100 scan 0 sort 0}
   14710 do_test where7-2.635.2 {
   14711   count_steps_sort {
   14712      SELECT a FROM t3
   14713       WHERE f='yzabcdefg'
   14714          OR ((a BETWEEN 48 AND 50) AND a!=49)
   14715          OR a=100
   14716          OR (g='rqponml' AND f GLOB 'ijklm*')
   14717          OR a=62
   14718          OR a=67
   14719          OR b=605
   14720          OR c=23023
   14721          OR a=26
   14722          OR b=982
   14723          OR ((a BETWEEN 3 AND 5) AND a!=4)
   14724   }
   14725 } {3 5 24 26 34 48 50 55 62 67 68 69 76 100 scan 0 sort 0}
   14726 do_test where7-2.636.1 {
   14727   count_steps_sort {
   14728      SELECT a FROM t2
   14729       WHERE b=220
   14730          OR ((a BETWEEN 24 AND 26) AND a!=25)
   14731          OR f IS NULL
   14732          OR ((a BETWEEN 25 AND 27) AND a!=26)
   14733          OR b=784
   14734   }
   14735 } {20 24 25 26 27 scan 0 sort 0}
   14736 do_test where7-2.636.2 {
   14737   count_steps_sort {
   14738      SELECT a FROM t3
   14739       WHERE b=220
   14740          OR ((a BETWEEN 24 AND 26) AND a!=25)
   14741          OR f IS NULL
   14742          OR ((a BETWEEN 25 AND 27) AND a!=26)
   14743          OR b=784
   14744   }
   14745 } {20 24 25 26 27 scan 0 sort 0}
   14746 do_test where7-2.637.1 {
   14747   count_steps_sort {
   14748      SELECT a FROM t2
   14749       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
   14750          OR b=751
   14751          OR (g='gfedcba' AND f GLOB 'klmno*')
   14752          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   14753          OR a=67
   14754          OR b=102
   14755   }
   14756 } {10 17 43 67 69 88 95 scan 0 sort 0}
   14757 do_test where7-2.637.2 {
   14758   count_steps_sort {
   14759      SELECT a FROM t3
   14760       WHERE (f GLOB '?stuv*' AND f GLOB 'rstu*')
   14761          OR b=751
   14762          OR (g='gfedcba' AND f GLOB 'klmno*')
   14763          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   14764          OR a=67
   14765          OR b=102
   14766   }
   14767 } {10 17 43 67 69 88 95 scan 0 sort 0}
   14768 do_test where7-2.638.1 {
   14769   count_steps_sort {
   14770      SELECT a FROM t2
   14771       WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
   14772          OR b=256
   14773          OR c=7007
   14774          OR c=26026
   14775          OR ((a BETWEEN 80 AND 82) AND a!=81)
   14776          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   14777          OR a=66
   14778   }
   14779 } {19 20 21 66 69 74 76 77 78 80 82 scan 0 sort 0}
   14780 do_test where7-2.638.2 {
   14781   count_steps_sort {
   14782      SELECT a FROM t3
   14783       WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
   14784          OR b=256
   14785          OR c=7007
   14786          OR c=26026
   14787          OR ((a BETWEEN 80 AND 82) AND a!=81)
   14788          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   14789          OR a=66
   14790   }
   14791 } {19 20 21 66 69 74 76 77 78 80 82 scan 0 sort 0}
   14792 do_test where7-2.639.1 {
   14793   count_steps_sort {
   14794      SELECT a FROM t2
   14795       WHERE c=2002
   14796          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   14797          OR ((a BETWEEN 41 AND 43) AND a!=42)
   14798          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14799          OR b=33
   14800          OR b=817
   14801          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   14802          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   14803          OR (g='xwvutsr' AND f GLOB 'efghi*')
   14804          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   14805   }
   14806 } {3 4 5 6 8 10 21 34 41 43 45 60 81 86 scan 0 sort 0}
   14807 do_test where7-2.639.2 {
   14808   count_steps_sort {
   14809      SELECT a FROM t3
   14810       WHERE c=2002
   14811          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   14812          OR ((a BETWEEN 41 AND 43) AND a!=42)
   14813          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14814          OR b=33
   14815          OR b=817
   14816          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   14817          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   14818          OR (g='xwvutsr' AND f GLOB 'efghi*')
   14819          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   14820   }
   14821 } {3 4 5 6 8 10 21 34 41 43 45 60 81 86 scan 0 sort 0}
   14822 do_test where7-2.640.1 {
   14823   count_steps_sort {
   14824      SELECT a FROM t2
   14825       WHERE (g='srqponm' AND f GLOB 'cdefg*')
   14826          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14827          OR a=80
   14828          OR a=53
   14829          OR a=62
   14830          OR a=49
   14831          OR a=53
   14832          OR a=56
   14833          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   14834   }
   14835 } {28 49 53 56 62 80 81 83 scan 0 sort 0}
   14836 do_test where7-2.640.2 {
   14837   count_steps_sort {
   14838      SELECT a FROM t3
   14839       WHERE (g='srqponm' AND f GLOB 'cdefg*')
   14840          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14841          OR a=80
   14842          OR a=53
   14843          OR a=62
   14844          OR a=49
   14845          OR a=53
   14846          OR a=56
   14847          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   14848   }
   14849 } {28 49 53 56 62 80 81 83 scan 0 sort 0}
   14850 do_test where7-2.641.1 {
   14851   count_steps_sort {
   14852      SELECT a FROM t2
   14853       WHERE ((a BETWEEN 7 AND 9) AND a!=8)
   14854          OR b=652
   14855          OR a=72
   14856          OR b=209
   14857          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   14858          OR a=38
   14859          OR ((a BETWEEN 66 AND 68) AND a!=67)
   14860          OR d>1e10
   14861   }
   14862 } {7 9 19 23 38 66 68 72 scan 0 sort 0}
   14863 do_test where7-2.641.2 {
   14864   count_steps_sort {
   14865      SELECT a FROM t3
   14866       WHERE ((a BETWEEN 7 AND 9) AND a!=8)
   14867          OR b=652
   14868          OR a=72
   14869          OR b=209
   14870          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   14871          OR a=38
   14872          OR ((a BETWEEN 66 AND 68) AND a!=67)
   14873          OR d>1e10
   14874   }
   14875 } {7 9 19 23 38 66 68 72 scan 0 sort 0}
   14876 do_test where7-2.642.1 {
   14877   count_steps_sort {
   14878      SELECT a FROM t2
   14879       WHERE b=949
   14880          OR e IS NULL
   14881   }
   14882 } { scan 0 sort 0}
   14883 do_test where7-2.642.2 {
   14884   count_steps_sort {
   14885      SELECT a FROM t3
   14886       WHERE b=949
   14887          OR e IS NULL
   14888   }
   14889 } { scan 0 sort 0}
   14890 do_test where7-2.643.1 {
   14891   count_steps_sort {
   14892      SELECT a FROM t2
   14893       WHERE b=179
   14894          OR (g='srqponm' AND f GLOB 'defgh*')
   14895          OR b=509
   14896          OR ((a BETWEEN 58 AND 60) AND a!=59)
   14897          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   14898          OR (g='tsrqpon' AND f GLOB 'abcde*')
   14899          OR f='bcdefghij'
   14900   }
   14901 } {1 26 27 29 49 53 58 60 79 scan 0 sort 0}
   14902 do_test where7-2.643.2 {
   14903   count_steps_sort {
   14904      SELECT a FROM t3
   14905       WHERE b=179
   14906          OR (g='srqponm' AND f GLOB 'defgh*')
   14907          OR b=509
   14908          OR ((a BETWEEN 58 AND 60) AND a!=59)
   14909          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   14910          OR (g='tsrqpon' AND f GLOB 'abcde*')
   14911          OR f='bcdefghij'
   14912   }
   14913 } {1 26 27 29 49 53 58 60 79 scan 0 sort 0}
   14914 do_test where7-2.644.1 {
   14915   count_steps_sort {
   14916      SELECT a FROM t2
   14917       WHERE a=23
   14918          OR a=43
   14919          OR c=19019
   14920          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   14921          OR c=18018
   14922   }
   14923 } {23 43 47 52 53 54 55 56 57 scan 0 sort 0}
   14924 do_test where7-2.644.2 {
   14925   count_steps_sort {
   14926      SELECT a FROM t3
   14927       WHERE a=23
   14928          OR a=43
   14929          OR c=19019
   14930          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   14931          OR c=18018
   14932   }
   14933 } {23 43 47 52 53 54 55 56 57 scan 0 sort 0}
   14934 do_test where7-2.645.1 {
   14935   count_steps_sort {
   14936      SELECT a FROM t2
   14937       WHERE a=36
   14938          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   14939          OR b=231
   14940   }
   14941 } {21 22 36 scan 0 sort 0}
   14942 do_test where7-2.645.2 {
   14943   count_steps_sort {
   14944      SELECT a FROM t3
   14945       WHERE a=36
   14946          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   14947          OR b=231
   14948   }
   14949 } {21 22 36 scan 0 sort 0}
   14950 do_test where7-2.646.1 {
   14951   count_steps_sort {
   14952      SELECT a FROM t2
   14953       WHERE a=21
   14954          OR b=355
   14955          OR a=97
   14956   }
   14957 } {21 97 scan 0 sort 0}
   14958 do_test where7-2.646.2 {
   14959   count_steps_sort {
   14960      SELECT a FROM t3
   14961       WHERE a=21
   14962          OR b=355
   14963          OR a=97
   14964   }
   14965 } {21 97 scan 0 sort 0}
   14966 do_test where7-2.647.1 {
   14967   count_steps_sort {
   14968      SELECT a FROM t2
   14969       WHERE (d>=28.0 AND d<29.0 AND d NOT NULL)
   14970          OR b=421
   14971          OR (g='qponmlk' AND f GLOB 'qrstu*')
   14972          OR b=704
   14973          OR a=90
   14974          OR a=78
   14975          OR 1000000<b
   14976          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   14977          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14978          OR ((a BETWEEN 53 AND 55) AND a!=54)
   14979   }
   14980 } {28 42 53 55 64 78 80 81 90 scan 0 sort 0}
   14981 do_test where7-2.647.2 {
   14982   count_steps_sort {
   14983      SELECT a FROM t3
   14984       WHERE (d>=28.0 AND d<29.0 AND d NOT NULL)
   14985          OR b=421
   14986          OR (g='qponmlk' AND f GLOB 'qrstu*')
   14987          OR b=704
   14988          OR a=90
   14989          OR a=78
   14990          OR 1000000<b
   14991          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   14992          OR (g='ihgfedc' AND f GLOB 'defgh*')
   14993          OR ((a BETWEEN 53 AND 55) AND a!=54)
   14994   }
   14995 } {28 42 53 55 64 78 80 81 90 scan 0 sort 0}
   14996 do_test where7-2.648.1 {
   14997   count_steps_sort {
   14998      SELECT a FROM t2
   14999       WHERE (g='fedcbaz' AND f GLOB 'pqrst*')
   15000          OR ((a BETWEEN 93 AND 95) AND a!=94)
   15001   }
   15002 } {93 95 scan 0 sort 0}
   15003 do_test where7-2.648.2 {
   15004   count_steps_sort {
   15005      SELECT a FROM t3
   15006       WHERE (g='fedcbaz' AND f GLOB 'pqrst*')
   15007          OR ((a BETWEEN 93 AND 95) AND a!=94)
   15008   }
   15009 } {93 95 scan 0 sort 0}
   15010 do_test where7-2.649.1 {
   15011   count_steps_sort {
   15012      SELECT a FROM t2
   15013       WHERE d<0.0
   15014          OR a=78
   15015          OR b=539
   15016          OR ((a BETWEEN 8 AND 10) AND a!=9)
   15017          OR ((a BETWEEN 25 AND 27) AND a!=26)
   15018          OR e IS NULL
   15019          OR a=48
   15020          OR (g='nmlkjih' AND f GLOB 'fghij*')
   15021   }
   15022 } {8 10 25 27 48 49 57 78 scan 0 sort 0}
   15023 do_test where7-2.649.2 {
   15024   count_steps_sort {
   15025      SELECT a FROM t3
   15026       WHERE d<0.0
   15027          OR a=78
   15028          OR b=539
   15029          OR ((a BETWEEN 8 AND 10) AND a!=9)
   15030          OR ((a BETWEEN 25 AND 27) AND a!=26)
   15031          OR e IS NULL
   15032          OR a=48
   15033          OR (g='nmlkjih' AND f GLOB 'fghij*')
   15034   }
   15035 } {8 10 25 27 48 49 57 78 scan 0 sort 0}
   15036 do_test where7-2.650.1 {
   15037   count_steps_sort {
   15038      SELECT a FROM t2
   15039       WHERE ((a BETWEEN 94 AND 96) AND a!=95)
   15040          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   15041          OR b=22
   15042   }
   15043 } {2 78 94 96 scan 0 sort 0}
   15044 do_test where7-2.650.2 {
   15045   count_steps_sort {
   15046      SELECT a FROM t3
   15047       WHERE ((a BETWEEN 94 AND 96) AND a!=95)
   15048          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   15049          OR b=22
   15050   }
   15051 } {2 78 94 96 scan 0 sort 0}
   15052 do_test where7-2.651.1 {
   15053   count_steps_sort {
   15054      SELECT a FROM t2
   15055       WHERE b=275
   15056          OR ((a BETWEEN 57 AND 59) AND a!=58)
   15057          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   15058          OR (g='rqponml' AND f GLOB 'lmnop*')
   15059          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   15060          OR f='ijklmnopq'
   15061   }
   15062 } {8 25 34 37 53 57 59 60 86 92 scan 0 sort 0}
   15063 do_test where7-2.651.2 {
   15064   count_steps_sort {
   15065      SELECT a FROM t3
   15066       WHERE b=275
   15067          OR ((a BETWEEN 57 AND 59) AND a!=58)
   15068          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   15069          OR (g='rqponml' AND f GLOB 'lmnop*')
   15070          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   15071          OR f='ijklmnopq'
   15072   }
   15073 } {8 25 34 37 53 57 59 60 86 92 scan 0 sort 0}
   15074 do_test where7-2.652.1 {
   15075   count_steps_sort {
   15076      SELECT a FROM t2
   15077       WHERE b=256
   15078          OR c=13013
   15079          OR b=44
   15080          OR f='jklmnopqr'
   15081          OR b=883
   15082   }
   15083 } {4 9 35 37 38 39 61 87 scan 0 sort 0}
   15084 do_test where7-2.652.2 {
   15085   count_steps_sort {
   15086      SELECT a FROM t3
   15087       WHERE b=256
   15088          OR c=13013
   15089          OR b=44
   15090          OR f='jklmnopqr'
   15091          OR b=883
   15092   }
   15093 } {4 9 35 37 38 39 61 87 scan 0 sort 0}
   15094 do_test where7-2.653.1 {
   15095   count_steps_sort {
   15096      SELECT a FROM t2
   15097       WHERE f='zabcdefgh'
   15098          OR (g='xwvutsr' AND f GLOB 'defgh*')
   15099          OR a=54
   15100          OR b=770
   15101          OR ((a BETWEEN 96 AND 98) AND a!=97)
   15102          OR a=81
   15103          OR b=190
   15104          OR a=2
   15105   }
   15106 } {2 3 25 51 54 70 77 81 96 98 scan 0 sort 0}
   15107 do_test where7-2.653.2 {
   15108   count_steps_sort {
   15109      SELECT a FROM t3
   15110       WHERE f='zabcdefgh'
   15111          OR (g='xwvutsr' AND f GLOB 'defgh*')
   15112          OR a=54
   15113          OR b=770
   15114          OR ((a BETWEEN 96 AND 98) AND a!=97)
   15115          OR a=81
   15116          OR b=190
   15117          OR a=2
   15118   }
   15119 } {2 3 25 51 54 70 77 81 96 98 scan 0 sort 0}
   15120 do_test where7-2.654.1 {
   15121   count_steps_sort {
   15122      SELECT a FROM t2
   15123       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   15124          OR c=12012
   15125          OR a=16
   15126          OR a=15
   15127          OR ((a BETWEEN 70 AND 72) AND a!=71)
   15128          OR a=69
   15129          OR b=748
   15130          OR a=61
   15131          OR b=473
   15132          OR ((a BETWEEN 69 AND 71) AND a!=70)
   15133   }
   15134 } {12 15 16 34 35 36 43 61 68 69 70 71 72 scan 0 sort 0}
   15135 do_test where7-2.654.2 {
   15136   count_steps_sort {
   15137      SELECT a FROM t3
   15138       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   15139          OR c=12012
   15140          OR a=16
   15141          OR a=15
   15142          OR ((a BETWEEN 70 AND 72) AND a!=71)
   15143          OR a=69
   15144          OR b=748
   15145          OR a=61
   15146          OR b=473
   15147          OR ((a BETWEEN 69 AND 71) AND a!=70)
   15148   }
   15149 } {12 15 16 34 35 36 43 61 68 69 70 71 72 scan 0 sort 0}
   15150 do_test where7-2.655.1 {
   15151   count_steps_sort {
   15152      SELECT a FROM t2
   15153       WHERE b=223
   15154          OR a=14
   15155          OR ((a BETWEEN 74 AND 76) AND a!=75)
   15156          OR (g='qponmlk' AND f GLOB 'pqrst*')
   15157          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15158          OR b=539
   15159          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   15160          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   15161          OR a=21
   15162   }
   15163 } {14 21 33 35 41 48 49 61 74 76 scan 0 sort 0}
   15164 do_test where7-2.655.2 {
   15165   count_steps_sort {
   15166      SELECT a FROM t3
   15167       WHERE b=223
   15168          OR a=14
   15169          OR ((a BETWEEN 74 AND 76) AND a!=75)
   15170          OR (g='qponmlk' AND f GLOB 'pqrst*')
   15171          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15172          OR b=539
   15173          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   15174          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   15175          OR a=21
   15176   }
   15177 } {14 21 33 35 41 48 49 61 74 76 scan 0 sort 0}
   15178 do_test where7-2.656.1 {
   15179   count_steps_sort {
   15180      SELECT a FROM t2
   15181       WHERE a=99
   15182          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   15183          OR a=73
   15184          OR a=56
   15185          OR b=253
   15186          OR b=880
   15187   }
   15188 } {5 23 31 56 57 73 80 83 99 scan 0 sort 0}
   15189 do_test where7-2.656.2 {
   15190   count_steps_sort {
   15191      SELECT a FROM t3
   15192       WHERE a=99
   15193          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   15194          OR a=73
   15195          OR a=56
   15196          OR b=253
   15197          OR b=880
   15198   }
   15199 } {5 23 31 56 57 73 80 83 99 scan 0 sort 0}
   15200 do_test where7-2.657.1 {
   15201   count_steps_sort {
   15202      SELECT a FROM t2
   15203       WHERE b=927
   15204          OR b=300
   15205          OR b=223
   15206          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   15207          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   15208          OR b=154
   15209          OR b=759
   15210   }
   15211 } {9 14 69 95 scan 0 sort 0}
   15212 do_test where7-2.657.2 {
   15213   count_steps_sort {
   15214      SELECT a FROM t3
   15215       WHERE b=927
   15216          OR b=300
   15217          OR b=223
   15218          OR (g='wvutsrq' AND f GLOB 'jklmn*')
   15219          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   15220          OR b=154
   15221          OR b=759
   15222   }
   15223 } {9 14 69 95 scan 0 sort 0}
   15224 do_test where7-2.658.1 {
   15225   count_steps_sort {
   15226      SELECT a FROM t2
   15227       WHERE b=242
   15228          OR b=905
   15229          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   15230          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   15231          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   15232          OR a=24
   15233          OR ((a BETWEEN 67 AND 69) AND a!=68)
   15234          OR b=1100
   15235          OR b=850
   15236          OR ((a BETWEEN 55 AND 57) AND a!=56)
   15237   }
   15238 } {22 24 55 57 66 67 69 86 96 100 scan 0 sort 0}
   15239 do_test where7-2.658.2 {
   15240   count_steps_sort {
   15241      SELECT a FROM t3
   15242       WHERE b=242
   15243          OR b=905
   15244          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   15245          OR (g='hgfedcb' AND f GLOB 'ijklm*')
   15246          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   15247          OR a=24
   15248          OR ((a BETWEEN 67 AND 69) AND a!=68)
   15249          OR b=1100
   15250          OR b=850
   15251          OR ((a BETWEEN 55 AND 57) AND a!=56)
   15252   }
   15253 } {22 24 55 57 66 67 69 86 96 100 scan 0 sort 0}
   15254 do_test where7-2.659.1 {
   15255   count_steps_sort {
   15256      SELECT a FROM t2
   15257       WHERE b=190
   15258          OR a=72
   15259          OR b=377
   15260          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   15261          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   15262          OR b=476
   15263          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   15264   }
   15265 } {2 26 52 72 78 93 scan 0 sort 0}
   15266 do_test where7-2.659.2 {
   15267   count_steps_sort {
   15268      SELECT a FROM t3
   15269       WHERE b=190
   15270          OR a=72
   15271          OR b=377
   15272          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   15273          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   15274          OR b=476
   15275          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   15276   }
   15277 } {2 26 52 72 78 93 scan 0 sort 0}
   15278 do_test where7-2.660.1 {
   15279   count_steps_sort {
   15280      SELECT a FROM t2
   15281       WHERE b=245
   15282          OR b=638
   15283          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   15284          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   15285          OR f='opqrstuvw'
   15286          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   15287          OR b=817
   15288          OR a=85
   15289          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   15290   }
   15291 } {14 40 58 62 64 66 67 85 86 92 scan 0 sort 0}
   15292 do_test where7-2.660.2 {
   15293   count_steps_sort {
   15294      SELECT a FROM t3
   15295       WHERE b=245
   15296          OR b=638
   15297          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   15298          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   15299          OR f='opqrstuvw'
   15300          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   15301          OR b=817
   15302          OR a=85
   15303          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   15304   }
   15305 } {14 40 58 62 64 66 67 85 86 92 scan 0 sort 0}
   15306 do_test where7-2.661.1 {
   15307   count_steps_sort {
   15308      SELECT a FROM t2
   15309       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   15310          OR b=968
   15311   }
   15312 } {22 24 88 scan 0 sort 0}
   15313 do_test where7-2.661.2 {
   15314   count_steps_sort {
   15315      SELECT a FROM t3
   15316       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   15317          OR b=968
   15318   }
   15319 } {22 24 88 scan 0 sort 0}
   15320 do_test where7-2.662.1 {
   15321   count_steps_sort {
   15322      SELECT a FROM t2
   15323       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   15324          OR ((a BETWEEN 74 AND 76) AND a!=75)
   15325          OR b=22
   15326          OR b=993
   15327          OR f='tuvwxyzab'
   15328   }
   15329 } {2 19 45 60 62 71 74 76 97 scan 0 sort 0}
   15330 do_test where7-2.662.2 {
   15331   count_steps_sort {
   15332      SELECT a FROM t3
   15333       WHERE ((a BETWEEN 60 AND 62) AND a!=61)
   15334          OR ((a BETWEEN 74 AND 76) AND a!=75)
   15335          OR b=22
   15336          OR b=993
   15337          OR f='tuvwxyzab'
   15338   }
   15339 } {2 19 45 60 62 71 74 76 97 scan 0 sort 0}
   15340 do_test where7-2.663.1 {
   15341   count_steps_sort {
   15342      SELECT a FROM t2
   15343       WHERE ((a BETWEEN 55 AND 57) AND a!=56)
   15344          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   15345          OR c<=10
   15346          OR ((a BETWEEN 75 AND 77) AND a!=76)
   15347          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   15348          OR b=553
   15349          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   15350          OR b=1045
   15351   }
   15352 } {55 57 72 73 75 77 85 95 scan 0 sort 0}
   15353 do_test where7-2.663.2 {
   15354   count_steps_sort {
   15355      SELECT a FROM t3
   15356       WHERE ((a BETWEEN 55 AND 57) AND a!=56)
   15357          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   15358          OR c<=10
   15359          OR ((a BETWEEN 75 AND 77) AND a!=76)
   15360          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   15361          OR b=553
   15362          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   15363          OR b=1045
   15364   }
   15365 } {55 57 72 73 75 77 85 95 scan 0 sort 0}
   15366 do_test where7-2.664.1 {
   15367   count_steps_sort {
   15368      SELECT a FROM t2
   15369       WHERE b=440
   15370          OR ((a BETWEEN 3 AND 5) AND a!=4)
   15371          OR ((a BETWEEN 44 AND 46) AND a!=45)
   15372          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   15373          OR a=89
   15374          OR c=18018
   15375          OR b=154
   15376          OR b=506
   15377          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   15378          OR a=78
   15379          OR b=751
   15380   }
   15381 } {1 3 5 14 27 31 40 44 46 52 53 54 57 78 79 83 89 scan 0 sort 0}
   15382 do_test where7-2.664.2 {
   15383   count_steps_sort {
   15384      SELECT a FROM t3
   15385       WHERE b=440
   15386          OR ((a BETWEEN 3 AND 5) AND a!=4)
   15387          OR ((a BETWEEN 44 AND 46) AND a!=45)
   15388          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   15389          OR a=89
   15390          OR c=18018
   15391          OR b=154
   15392          OR b=506
   15393          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   15394          OR a=78
   15395          OR b=751
   15396   }
   15397 } {1 3 5 14 27 31 40 44 46 52 53 54 57 78 79 83 89 scan 0 sort 0}
   15398 do_test where7-2.665.1 {
   15399   count_steps_sort {
   15400      SELECT a FROM t2
   15401       WHERE b=407
   15402          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   15403          OR (g='rqponml' AND f GLOB 'klmno*')
   15404          OR b=209
   15405          OR b=814
   15406          OR (g='wvutsrq' AND f GLOB 'klmno*')
   15407          OR a=44
   15408          OR (g='qponmlk' AND f GLOB 'mnopq*')
   15409          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   15410          OR b=1092
   15411   }
   15412 } {10 19 36 37 38 44 65 74 99 scan 0 sort 0}
   15413 do_test where7-2.665.2 {
   15414   count_steps_sort {
   15415      SELECT a FROM t3
   15416       WHERE b=407
   15417          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   15418          OR (g='rqponml' AND f GLOB 'klmno*')
   15419          OR b=209
   15420          OR b=814
   15421          OR (g='wvutsrq' AND f GLOB 'klmno*')
   15422          OR a=44
   15423          OR (g='qponmlk' AND f GLOB 'mnopq*')
   15424          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   15425          OR b=1092
   15426   }
   15427 } {10 19 36 37 38 44 65 74 99 scan 0 sort 0}
   15428 do_test where7-2.666.1 {
   15429   count_steps_sort {
   15430      SELECT a FROM t2
   15431       WHERE ((a BETWEEN 24 AND 26) AND a!=25)
   15432          OR b=1103
   15433          OR b=190
   15434          OR b=737
   15435          OR a=97
   15436          OR b=451
   15437          OR b=583
   15438          OR a=63
   15439          OR c=8008
   15440          OR ((a BETWEEN 45 AND 47) AND a!=46)
   15441   }
   15442 } {22 23 24 26 41 45 47 53 63 67 97 scan 0 sort 0}
   15443 do_test where7-2.666.2 {
   15444   count_steps_sort {
   15445      SELECT a FROM t3
   15446       WHERE ((a BETWEEN 24 AND 26) AND a!=25)
   15447          OR b=1103
   15448          OR b=190
   15449          OR b=737
   15450          OR a=97
   15451          OR b=451
   15452          OR b=583
   15453          OR a=63
   15454          OR c=8008
   15455          OR ((a BETWEEN 45 AND 47) AND a!=46)
   15456   }
   15457 } {22 23 24 26 41 45 47 53 63 67 97 scan 0 sort 0}
   15458 do_test where7-2.667.1 {
   15459   count_steps_sort {
   15460      SELECT a FROM t2
   15461       WHERE a=12
   15462          OR b=935
   15463          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   15464          OR b=1070
   15465          OR a=24
   15466          OR a=95
   15467          OR ((a BETWEEN 27 AND 29) AND a!=28)
   15468          OR a=40
   15469          OR b=935
   15470          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   15471   }
   15472 } {12 24 27 29 40 53 85 87 95 scan 0 sort 0}
   15473 do_test where7-2.667.2 {
   15474   count_steps_sort {
   15475      SELECT a FROM t3
   15476       WHERE a=12
   15477          OR b=935
   15478          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   15479          OR b=1070
   15480          OR a=24
   15481          OR a=95
   15482          OR ((a BETWEEN 27 AND 29) AND a!=28)
   15483          OR a=40
   15484          OR b=935
   15485          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   15486   }
   15487 } {12 24 27 29 40 53 85 87 95 scan 0 sort 0}
   15488 do_test where7-2.668.1 {
   15489   count_steps_sort {
   15490      SELECT a FROM t2
   15491       WHERE b=858
   15492          OR a=82
   15493          OR b=209
   15494          OR b=374
   15495          OR ((a BETWEEN 76 AND 78) AND a!=77)
   15496          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   15497          OR c=22022
   15498   }
   15499 } {19 34 40 64 65 66 76 78 82 scan 0 sort 0}
   15500 do_test where7-2.668.2 {
   15501   count_steps_sort {
   15502      SELECT a FROM t3
   15503       WHERE b=858
   15504          OR a=82
   15505          OR b=209
   15506          OR b=374
   15507          OR ((a BETWEEN 76 AND 78) AND a!=77)
   15508          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   15509          OR c=22022
   15510   }
   15511 } {19 34 40 64 65 66 76 78 82 scan 0 sort 0}
   15512 do_test where7-2.669.1 {
   15513   count_steps_sort {
   15514      SELECT a FROM t2
   15515       WHERE a=27
   15516          OR (g='rqponml' AND f GLOB 'lmnop*')
   15517          OR b=121
   15518          OR ((a BETWEEN 7 AND 9) AND a!=8)
   15519          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   15520          OR a=67
   15521          OR ((a BETWEEN 30 AND 32) AND a!=31)
   15522          OR c=1001
   15523          OR ((a BETWEEN 50 AND 52) AND a!=51)
   15524          OR ((a BETWEEN 19 AND 21) AND a!=20)
   15525   }
   15526 } {1 2 3 7 8 9 11 19 21 27 30 32 37 50 52 67 scan 0 sort 0}
   15527 do_test where7-2.669.2 {
   15528   count_steps_sort {
   15529      SELECT a FROM t3
   15530       WHERE a=27
   15531          OR (g='rqponml' AND f GLOB 'lmnop*')
   15532          OR b=121
   15533          OR ((a BETWEEN 7 AND 9) AND a!=8)
   15534          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   15535          OR a=67
   15536          OR ((a BETWEEN 30 AND 32) AND a!=31)
   15537          OR c=1001
   15538          OR ((a BETWEEN 50 AND 52) AND a!=51)
   15539          OR ((a BETWEEN 19 AND 21) AND a!=20)
   15540   }
   15541 } {1 2 3 7 8 9 11 19 21 27 30 32 37 50 52 67 scan 0 sort 0}
   15542 do_test where7-2.670.1 {
   15543   count_steps_sort {
   15544      SELECT a FROM t2
   15545       WHERE b=99
   15546          OR (g='nmlkjih' AND f GLOB 'fghij*')
   15547          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   15548          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   15549          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   15550   }
   15551 } {1 9 46 57 98 scan 0 sort 0}
   15552 do_test where7-2.670.2 {
   15553   count_steps_sort {
   15554      SELECT a FROM t3
   15555       WHERE b=99
   15556          OR (g='nmlkjih' AND f GLOB 'fghij*')
   15557          OR (d>=98.0 AND d<99.0 AND d NOT NULL)
   15558          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   15559          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   15560   }
   15561 } {1 9 46 57 98 scan 0 sort 0}
   15562 do_test where7-2.671.1 {
   15563   count_steps_sort {
   15564      SELECT a FROM t2
   15565       WHERE a=3
   15566          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   15567          OR b=355
   15568          OR b=814
   15569          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   15570          OR a=81
   15571          OR (g='qponmlk' AND f GLOB 'qrstu*')
   15572          OR b=542
   15573          OR b=795
   15574   }
   15575 } {3 42 62 74 79 81 scan 0 sort 0}
   15576 do_test where7-2.671.2 {
   15577   count_steps_sort {
   15578      SELECT a FROM t3
   15579       WHERE a=3
   15580          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   15581          OR b=355
   15582          OR b=814
   15583          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   15584          OR a=81
   15585          OR (g='qponmlk' AND f GLOB 'qrstu*')
   15586          OR b=542
   15587          OR b=795
   15588   }
   15589 } {3 42 62 74 79 81 scan 0 sort 0}
   15590 do_test where7-2.672.1 {
   15591   count_steps_sort {
   15592      SELECT a FROM t2
   15593       WHERE (d>=1.0 AND d<2.0 AND d NOT NULL)
   15594          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   15595          OR b=363
   15596          OR (g='srqponm' AND f GLOB 'fghij*')
   15597          OR ((a BETWEEN 64 AND 66) AND a!=65)
   15598          OR b=619
   15599          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   15600          OR a=73
   15601   }
   15602 } {1 14 31 33 56 64 66 73 scan 0 sort 0}
   15603 do_test where7-2.672.2 {
   15604   count_steps_sort {
   15605      SELECT a FROM t3
   15606       WHERE (d>=1.0 AND d<2.0 AND d NOT NULL)
   15607          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   15608          OR b=363
   15609          OR (g='srqponm' AND f GLOB 'fghij*')
   15610          OR ((a BETWEEN 64 AND 66) AND a!=65)
   15611          OR b=619
   15612          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   15613          OR a=73
   15614   }
   15615 } {1 14 31 33 56 64 66 73 scan 0 sort 0}
   15616 do_test where7-2.673.1 {
   15617   count_steps_sort {
   15618      SELECT a FROM t2
   15619       WHERE b=935
   15620          OR a=42
   15621          OR (g='nmlkjih' AND f GLOB 'defgh*')
   15622          OR b=330
   15623          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   15624   }
   15625 } {9 30 35 42 55 61 85 87 scan 0 sort 0}
   15626 do_test where7-2.673.2 {
   15627   count_steps_sort {
   15628      SELECT a FROM t3
   15629       WHERE b=935
   15630          OR a=42
   15631          OR (g='nmlkjih' AND f GLOB 'defgh*')
   15632          OR b=330
   15633          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   15634   }
   15635 } {9 30 35 42 55 61 85 87 scan 0 sort 0}
   15636 do_test where7-2.674.1 {
   15637   count_steps_sort {
   15638      SELECT a FROM t2
   15639       WHERE a=79
   15640          OR b=201
   15641          OR b=99
   15642          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   15643          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   15644          OR a=64
   15645          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   15646          OR a=89
   15647   }
   15648 } {9 16 19 21 42 64 68 79 89 94 scan 0 sort 0}
   15649 do_test where7-2.674.2 {
   15650   count_steps_sort {
   15651      SELECT a FROM t3
   15652       WHERE a=79
   15653          OR b=201
   15654          OR b=99
   15655          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   15656          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   15657          OR a=64
   15658          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   15659          OR a=89
   15660   }
   15661 } {9 16 19 21 42 64 68 79 89 94 scan 0 sort 0}
   15662 do_test where7-2.675.1 {
   15663   count_steps_sort {
   15664      SELECT a FROM t2
   15665       WHERE b=784
   15666          OR a=85
   15667          OR b=663
   15668          OR c=17017
   15669          OR b=561
   15670          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   15671          OR b=495
   15672          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   15673          OR b=352
   15674          OR ((a BETWEEN 39 AND 41) AND a!=40)
   15675   }
   15676 } {32 39 41 45 49 50 51 65 68 85 scan 0 sort 0}
   15677 do_test where7-2.675.2 {
   15678   count_steps_sort {
   15679      SELECT a FROM t3
   15680       WHERE b=784
   15681          OR a=85
   15682          OR b=663
   15683          OR c=17017
   15684          OR b=561
   15685          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   15686          OR b=495
   15687          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   15688          OR b=352
   15689          OR ((a BETWEEN 39 AND 41) AND a!=40)
   15690   }
   15691 } {32 39 41 45 49 50 51 65 68 85 scan 0 sort 0}
   15692 do_test where7-2.676.1 {
   15693   count_steps_sort {
   15694      SELECT a FROM t2
   15695       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   15696          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   15697          OR f='klmnopqrs'
   15698          OR f='lmnopqrst'
   15699   }
   15700 } {10 11 19 36 37 62 63 88 89 100 scan 0 sort 0}
   15701 do_test where7-2.676.2 {
   15702   count_steps_sort {
   15703      SELECT a FROM t3
   15704       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   15705          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   15706          OR f='klmnopqrs'
   15707          OR f='lmnopqrst'
   15708   }
   15709 } {10 11 19 36 37 62 63 88 89 100 scan 0 sort 0}
   15710 do_test where7-2.677.1 {
   15711   count_steps_sort {
   15712      SELECT a FROM t2
   15713       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   15714          OR a=46
   15715          OR a=44
   15716   }
   15717 } {44 46 90 92 scan 0 sort 0}
   15718 do_test where7-2.677.2 {
   15719   count_steps_sort {
   15720      SELECT a FROM t3
   15721       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   15722          OR a=46
   15723          OR a=44
   15724   }
   15725 } {44 46 90 92 scan 0 sort 0}
   15726 do_test where7-2.678.1 {
   15727   count_steps_sort {
   15728      SELECT a FROM t2
   15729       WHERE b=36
   15730          OR (g='qponmlk' AND f GLOB 'nopqr*')
   15731          OR ((a BETWEEN 18 AND 20) AND a!=19)
   15732          OR b=682
   15733          OR ((a BETWEEN 53 AND 55) AND a!=54)
   15734          OR b=91
   15735          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   15736          OR ((a BETWEEN 95 AND 97) AND a!=96)
   15737          OR c=12012
   15738          OR b=267
   15739          OR (g='jihgfed' AND f GLOB 'yzabc*')
   15740   }
   15741 } {18 20 34 35 36 39 43 53 55 62 76 95 97 scan 0 sort 0}
   15742 do_test where7-2.678.2 {
   15743   count_steps_sort {
   15744      SELECT a FROM t3
   15745       WHERE b=36
   15746          OR (g='qponmlk' AND f GLOB 'nopqr*')
   15747          OR ((a BETWEEN 18 AND 20) AND a!=19)
   15748          OR b=682
   15749          OR ((a BETWEEN 53 AND 55) AND a!=54)
   15750          OR b=91
   15751          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   15752          OR ((a BETWEEN 95 AND 97) AND a!=96)
   15753          OR c=12012
   15754          OR b=267
   15755          OR (g='jihgfed' AND f GLOB 'yzabc*')
   15756   }
   15757 } {18 20 34 35 36 39 43 53 55 62 76 95 97 scan 0 sort 0}
   15758 do_test where7-2.679.1 {
   15759   count_steps_sort {
   15760      SELECT a FROM t2
   15761       WHERE b=594
   15762          OR f='hijklmnop'
   15763          OR ((a BETWEEN 65 AND 67) AND a!=66)
   15764          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   15765          OR b=707
   15766          OR b=363
   15767          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   15768          OR b=157
   15769          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   15770   }
   15771 } {7 12 24 33 54 58 59 65 67 85 scan 0 sort 0}
   15772 do_test where7-2.679.2 {
   15773   count_steps_sort {
   15774      SELECT a FROM t3
   15775       WHERE b=594
   15776          OR f='hijklmnop'
   15777          OR ((a BETWEEN 65 AND 67) AND a!=66)
   15778          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   15779          OR b=707
   15780          OR b=363
   15781          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   15782          OR b=157
   15783          OR (g='tsrqpon' AND f GLOB 'yzabc*')
   15784   }
   15785 } {7 12 24 33 54 58 59 65 67 85 scan 0 sort 0}
   15786 do_test where7-2.680.1 {
   15787   count_steps_sort {
   15788      SELECT a FROM t2
   15789       WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
   15790          OR a=2
   15791          OR a=84
   15792          OR b=399
   15793          OR b=828
   15794          OR a=21
   15795          OR b=748
   15796          OR c=13013
   15797          OR a=57
   15798          OR f='mnopqrstu'
   15799   }
   15800 } {2 12 21 27 37 38 39 57 64 68 84 90 scan 0 sort 0}
   15801 do_test where7-2.680.2 {
   15802   count_steps_sort {
   15803      SELECT a FROM t3
   15804       WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
   15805          OR a=2
   15806          OR a=84
   15807          OR b=399
   15808          OR b=828
   15809          OR a=21
   15810          OR b=748
   15811          OR c=13013
   15812          OR a=57
   15813          OR f='mnopqrstu'
   15814   }
   15815 } {2 12 21 27 37 38 39 57 64 68 84 90 scan 0 sort 0}
   15816 do_test where7-2.681.1 {
   15817   count_steps_sort {
   15818      SELECT a FROM t2
   15819       WHERE (g='nmlkjih' AND f GLOB 'defgh*')
   15820          OR b=674
   15821          OR ((a BETWEEN 38 AND 40) AND a!=39)
   15822          OR c=3003
   15823          OR a=19
   15824          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   15825          OR ((a BETWEEN 20 AND 22) AND a!=21)
   15826   }
   15827 } {7 8 9 19 20 22 38 40 46 55 scan 0 sort 0}
   15828 do_test where7-2.681.2 {
   15829   count_steps_sort {
   15830      SELECT a FROM t3
   15831       WHERE (g='nmlkjih' AND f GLOB 'defgh*')
   15832          OR b=674
   15833          OR ((a BETWEEN 38 AND 40) AND a!=39)
   15834          OR c=3003
   15835          OR a=19
   15836          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   15837          OR ((a BETWEEN 20 AND 22) AND a!=21)
   15838   }
   15839 } {7 8 9 19 20 22 38 40 46 55 scan 0 sort 0}
   15840 do_test where7-2.682.1 {
   15841   count_steps_sort {
   15842      SELECT a FROM t2
   15843       WHERE b=652
   15844          OR a=83
   15845          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   15846          OR b=102
   15847          OR b=300
   15848          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   15849   }
   15850 } {49 83 97 scan 0 sort 0}
   15851 do_test where7-2.682.2 {
   15852   count_steps_sort {
   15853      SELECT a FROM t3
   15854       WHERE b=652
   15855          OR a=83
   15856          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   15857          OR b=102
   15858          OR b=300
   15859          OR (d>=49.0 AND d<50.0 AND d NOT NULL)
   15860   }
   15861 } {49 83 97 scan 0 sort 0}
   15862 do_test where7-2.683.1 {
   15863   count_steps_sort {
   15864      SELECT a FROM t2
   15865       WHERE ((a BETWEEN 53 AND 55) AND a!=54)
   15866          OR ((a BETWEEN 43 AND 45) AND a!=44)
   15867          OR c=4004
   15868          OR a=95
   15869          OR b=707
   15870          OR f='vwxyzabcd'
   15871          OR b=286
   15872          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   15873          OR b=693
   15874          OR ((a BETWEEN 6 AND 8) AND a!=7)
   15875   }
   15876 } {6 8 10 11 12 21 26 43 45 47 53 55 63 73 95 99 scan 0 sort 0}
   15877 do_test where7-2.683.2 {
   15878   count_steps_sort {
   15879      SELECT a FROM t3
   15880       WHERE ((a BETWEEN 53 AND 55) AND a!=54)
   15881          OR ((a BETWEEN 43 AND 45) AND a!=44)
   15882          OR c=4004
   15883          OR a=95
   15884          OR b=707
   15885          OR f='vwxyzabcd'
   15886          OR b=286
   15887          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   15888          OR b=693
   15889          OR ((a BETWEEN 6 AND 8) AND a!=7)
   15890   }
   15891 } {6 8 10 11 12 21 26 43 45 47 53 55 63 73 95 99 scan 0 sort 0}
   15892 do_test where7-2.684.1 {
   15893   count_steps_sort {
   15894      SELECT a FROM t2
   15895       WHERE b=209
   15896          OR b=198
   15897          OR a=52
   15898          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   15899          OR d<0.0
   15900          OR (g='rqponml' AND f GLOB 'jklmn*')
   15901          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   15902          OR b=168
   15903          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   15904          OR f='uvwxyzabc'
   15905          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   15906   }
   15907 } {7 18 19 20 24 33 35 42 46 52 59 64 72 85 98 scan 0 sort 0}
   15908 do_test where7-2.684.2 {
   15909   count_steps_sort {
   15910      SELECT a FROM t3
   15911       WHERE b=209
   15912          OR b=198
   15913          OR a=52
   15914          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   15915          OR d<0.0
   15916          OR (g='rqponml' AND f GLOB 'jklmn*')
   15917          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   15918          OR b=168
   15919          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   15920          OR f='uvwxyzabc'
   15921          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   15922   }
   15923 } {7 18 19 20 24 33 35 42 46 52 59 64 72 85 98 scan 0 sort 0}
   15924 do_test where7-2.685.1 {
   15925   count_steps_sort {
   15926      SELECT a FROM t2
   15927       WHERE ((a BETWEEN 4 AND 6) AND a!=5)
   15928          OR (g='tsrqpon' AND f GLOB 'abcde*')
   15929          OR ((a BETWEEN 89 AND 91) AND a!=90)
   15930          OR f='rstuvwxyz'
   15931          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   15932          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   15933          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   15934          OR a=14
   15935          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   15936   }
   15937 } {4 6 8 12 14 17 21 26 43 47 69 73 84 89 91 95 99 scan 0 sort 0}
   15938 do_test where7-2.685.2 {
   15939   count_steps_sort {
   15940      SELECT a FROM t3
   15941       WHERE ((a BETWEEN 4 AND 6) AND a!=5)
   15942          OR (g='tsrqpon' AND f GLOB 'abcde*')
   15943          OR ((a BETWEEN 89 AND 91) AND a!=90)
   15944          OR f='rstuvwxyz'
   15945          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   15946          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   15947          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   15948          OR a=14
   15949          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   15950   }
   15951 } {4 6 8 12 14 17 21 26 43 47 69 73 84 89 91 95 99 scan 0 sort 0}
   15952 do_test where7-2.686.1 {
   15953   count_steps_sort {
   15954      SELECT a FROM t2
   15955       WHERE ((a BETWEEN 13 AND 15) AND a!=14)
   15956          OR ((a BETWEEN 93 AND 95) AND a!=94)
   15957          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   15958          OR f='mnopqrstu'
   15959          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   15960          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15961          OR a=38
   15962          OR c=26026
   15963   }
   15964 } {2 12 13 15 33 35 38 64 76 77 78 90 93 95 97 scan 0 sort 0}
   15965 do_test where7-2.686.2 {
   15966   count_steps_sort {
   15967      SELECT a FROM t3
   15968       WHERE ((a BETWEEN 13 AND 15) AND a!=14)
   15969          OR ((a BETWEEN 93 AND 95) AND a!=94)
   15970          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   15971          OR f='mnopqrstu'
   15972          OR (g='fedcbaz' AND f GLOB 'tuvwx*')
   15973          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15974          OR a=38
   15975          OR c=26026
   15976   }
   15977 } {2 12 13 15 33 35 38 64 76 77 78 90 93 95 97 scan 0 sort 0}
   15978 do_test where7-2.687.1 {
   15979   count_steps_sort {
   15980      SELECT a FROM t2
   15981       WHERE (g='ponmlkj' AND f GLOB 'stuvw*')
   15982          OR ((a BETWEEN 71 AND 73) AND a!=72)
   15983          OR a=7
   15984          OR (g='qponmlk' AND f GLOB 'nopqr*')
   15985          OR (g='srqponm' AND f GLOB 'ghijk*')
   15986          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15987   }
   15988 } {7 32 33 35 39 44 71 73 scan 0 sort 0}
   15989 do_test where7-2.687.2 {
   15990   count_steps_sort {
   15991      SELECT a FROM t3
   15992       WHERE (g='ponmlkj' AND f GLOB 'stuvw*')
   15993          OR ((a BETWEEN 71 AND 73) AND a!=72)
   15994          OR a=7
   15995          OR (g='qponmlk' AND f GLOB 'nopqr*')
   15996          OR (g='srqponm' AND f GLOB 'ghijk*')
   15997          OR ((a BETWEEN 33 AND 35) AND a!=34)
   15998   }
   15999 } {7 32 33 35 39 44 71 73 scan 0 sort 0}
   16000 do_test where7-2.688.1 {
   16001   count_steps_sort {
   16002      SELECT a FROM t2
   16003       WHERE c=6006
   16004          OR b=938
   16005          OR b=484
   16006          OR b=652
   16007          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   16008          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16009          OR f='opqrstuvw'
   16010   }
   16011 } {14 15 16 17 18 40 41 44 58 66 67 92 93 scan 0 sort 0}
   16012 do_test where7-2.688.2 {
   16013   count_steps_sort {
   16014      SELECT a FROM t3
   16015       WHERE c=6006
   16016          OR b=938
   16017          OR b=484
   16018          OR b=652
   16019          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   16020          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16021          OR f='opqrstuvw'
   16022   }
   16023 } {14 15 16 17 18 40 41 44 58 66 67 92 93 scan 0 sort 0}
   16024 do_test where7-2.689.1 {
   16025   count_steps_sort {
   16026      SELECT a FROM t2
   16027       WHERE c=27027
   16028          OR b=968
   16029          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   16030          OR b=487
   16031          OR b=924
   16032          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   16033          OR c=14014
   16034          OR b=1001
   16035   }
   16036 } {40 41 42 51 70 79 80 81 84 88 91 scan 0 sort 0}
   16037 do_test where7-2.689.2 {
   16038   count_steps_sort {
   16039      SELECT a FROM t3
   16040       WHERE c=27027
   16041          OR b=968
   16042          OR (d>=51.0 AND d<52.0 AND d NOT NULL)
   16043          OR b=487
   16044          OR b=924
   16045          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   16046          OR c=14014
   16047          OR b=1001
   16048   }
   16049 } {40 41 42 51 70 79 80 81 84 88 91 scan 0 sort 0}
   16050 do_test where7-2.690.1 {
   16051   count_steps_sort {
   16052      SELECT a FROM t2
   16053       WHERE a=25
   16054          OR ((a BETWEEN 43 AND 45) AND a!=44)
   16055          OR (g='gfedcba' AND f GLOB 'mnopq*')
   16056          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   16057          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   16058          OR b=443
   16059          OR b=564
   16060          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   16061          OR b=531
   16062          OR b=1081
   16063          OR a=96
   16064   }
   16065 } {10 19 25 43 45 69 71 90 96 97 scan 0 sort 0}
   16066 do_test where7-2.690.2 {
   16067   count_steps_sort {
   16068      SELECT a FROM t3
   16069       WHERE a=25
   16070          OR ((a BETWEEN 43 AND 45) AND a!=44)
   16071          OR (g='gfedcba' AND f GLOB 'mnopq*')
   16072          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   16073          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   16074          OR b=443
   16075          OR b=564
   16076          OR (g='kjihgfe' AND f GLOB 'rstuv*')
   16077          OR b=531
   16078          OR b=1081
   16079          OR a=96
   16080   }
   16081 } {10 19 25 43 45 69 71 90 96 97 scan 0 sort 0}
   16082 do_test where7-2.691.1 {
   16083   count_steps_sort {
   16084      SELECT a FROM t2
   16085       WHERE b=36
   16086          OR (g='srqponm' AND f GLOB 'defgh*')
   16087   }
   16088 } {29 scan 0 sort 0}
   16089 do_test where7-2.691.2 {
   16090   count_steps_sort {
   16091      SELECT a FROM t3
   16092       WHERE b=36
   16093          OR (g='srqponm' AND f GLOB 'defgh*')
   16094   }
   16095 } {29 scan 0 sort 0}
   16096 do_test where7-2.692.1 {
   16097   count_steps_sort {
   16098      SELECT a FROM t2
   16099       WHERE (g='kjihgfe' AND f GLOB 'stuvw*')
   16100          OR b=531
   16101          OR ((a BETWEEN 93 AND 95) AND a!=94)
   16102          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   16103   }
   16104 } {3 70 93 95 scan 0 sort 0}
   16105 do_test where7-2.692.2 {
   16106   count_steps_sort {
   16107      SELECT a FROM t3
   16108       WHERE (g='kjihgfe' AND f GLOB 'stuvw*')
   16109          OR b=531
   16110          OR ((a BETWEEN 93 AND 95) AND a!=94)
   16111          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   16112   }
   16113 } {3 70 93 95 scan 0 sort 0}
   16114 do_test where7-2.693.1 {
   16115   count_steps_sort {
   16116      SELECT a FROM t2
   16117       WHERE b=256
   16118          OR b=1034
   16119   }
   16120 } {94 scan 0 sort 0}
   16121 do_test where7-2.693.2 {
   16122   count_steps_sort {
   16123      SELECT a FROM t3
   16124       WHERE b=256
   16125          OR b=1034
   16126   }
   16127 } {94 scan 0 sort 0}
   16128 do_test where7-2.694.1 {
   16129   count_steps_sort {
   16130      SELECT a FROM t2
   16131       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   16132          OR ((a BETWEEN 24 AND 26) AND a!=25)
   16133          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   16134          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   16135          OR b=784
   16136          OR b=718
   16137          OR a=18
   16138          OR a=3
   16139          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   16140          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16141          OR c=28028
   16142   }
   16143 } {3 18 19 21 24 26 47 58 60 73 82 83 84 99 scan 0 sort 0}
   16144 do_test where7-2.694.2 {
   16145   count_steps_sort {
   16146      SELECT a FROM t3
   16147       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   16148          OR ((a BETWEEN 24 AND 26) AND a!=25)
   16149          OR (d>=83.0 AND d<84.0 AND d NOT NULL)
   16150          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   16151          OR b=784
   16152          OR b=718
   16153          OR a=18
   16154          OR a=3
   16155          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   16156          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16157          OR c=28028
   16158   }
   16159 } {3 18 19 21 24 26 47 58 60 73 82 83 84 99 scan 0 sort 0}
   16160 do_test where7-2.695.1 {
   16161   count_steps_sort {
   16162      SELECT a FROM t2
   16163       WHERE b=473
   16164          OR b=649
   16165          OR ((a BETWEEN 46 AND 48) AND a!=47)
   16166          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   16167          OR b=1100
   16168          OR b=1012
   16169          OR a=72
   16170          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   16171          OR b=176
   16172          OR b=355
   16173   }
   16174 } {16 18 43 46 48 59 72 91 92 100 scan 0 sort 0}
   16175 do_test where7-2.695.2 {
   16176   count_steps_sort {
   16177      SELECT a FROM t3
   16178       WHERE b=473
   16179          OR b=649
   16180          OR ((a BETWEEN 46 AND 48) AND a!=47)
   16181          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   16182          OR b=1100
   16183          OR b=1012
   16184          OR a=72
   16185          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   16186          OR b=176
   16187          OR b=355
   16188   }
   16189 } {16 18 43 46 48 59 72 91 92 100 scan 0 sort 0}
   16190 do_test where7-2.696.1 {
   16191   count_steps_sort {
   16192      SELECT a FROM t2
   16193       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   16194          OR f='cdefghijk'
   16195          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   16196          OR ((a BETWEEN 30 AND 32) AND a!=31)
   16197          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   16198          OR (g='srqponm' AND f GLOB 'ghijk*')
   16199          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   16200   }
   16201 } {2 15 19 28 29 30 32 54 80 91 scan 0 sort 0}
   16202 do_test where7-2.696.2 {
   16203   count_steps_sort {
   16204      SELECT a FROM t3
   16205       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   16206          OR f='cdefghijk'
   16207          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   16208          OR ((a BETWEEN 30 AND 32) AND a!=31)
   16209          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   16210          OR (g='srqponm' AND f GLOB 'ghijk*')
   16211          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   16212   }
   16213 } {2 15 19 28 29 30 32 54 80 91 scan 0 sort 0}
   16214 do_test where7-2.697.1 {
   16215   count_steps_sort {
   16216      SELECT a FROM t2
   16217       WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
   16218          OR b=883
   16219          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   16220          OR b=938
   16221          OR ((a BETWEEN 17 AND 19) AND a!=18)
   16222          OR f='defghijkl'
   16223          OR c=2002
   16224          OR b=990
   16225   }
   16226 } {3 4 5 6 17 19 22 29 55 60 81 90 scan 0 sort 0}
   16227 do_test where7-2.697.2 {
   16228   count_steps_sort {
   16229      SELECT a FROM t3
   16230       WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
   16231          OR b=883
   16232          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   16233          OR b=938
   16234          OR ((a BETWEEN 17 AND 19) AND a!=18)
   16235          OR f='defghijkl'
   16236          OR c=2002
   16237          OR b=990
   16238   }
   16239 } {3 4 5 6 17 19 22 29 55 60 81 90 scan 0 sort 0}
   16240 do_test where7-2.698.1 {
   16241   count_steps_sort {
   16242      SELECT a FROM t2
   16243       WHERE ((a BETWEEN 7 AND 9) AND a!=8)
   16244          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   16245          OR b=902
   16246          OR b=25
   16247   }
   16248 } {7 9 76 82 scan 0 sort 0}
   16249 do_test where7-2.698.2 {
   16250   count_steps_sort {
   16251      SELECT a FROM t3
   16252       WHERE ((a BETWEEN 7 AND 9) AND a!=8)
   16253          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   16254          OR b=902
   16255          OR b=25
   16256   }
   16257 } {7 9 76 82 scan 0 sort 0}
   16258 do_test where7-2.699.1 {
   16259   count_steps_sort {
   16260      SELECT a FROM t2
   16261       WHERE (g='tsrqpon' AND f GLOB 'abcde*')
   16262          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   16263          OR ((a BETWEEN 68 AND 70) AND a!=69)
   16264          OR ((a BETWEEN 74 AND 76) AND a!=75)
   16265          OR b=1092
   16266          OR b=495
   16267   }
   16268 } {26 45 55 68 70 74 76 scan 0 sort 0}
   16269 do_test where7-2.699.2 {
   16270   count_steps_sort {
   16271      SELECT a FROM t3
   16272       WHERE (g='tsrqpon' AND f GLOB 'abcde*')
   16273          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   16274          OR ((a BETWEEN 68 AND 70) AND a!=69)
   16275          OR ((a BETWEEN 74 AND 76) AND a!=75)
   16276          OR b=1092
   16277          OR b=495
   16278   }
   16279 } {26 45 55 68 70 74 76 scan 0 sort 0}
   16280 do_test where7-2.700.1 {
   16281   count_steps_sort {
   16282      SELECT a FROM t2
   16283       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   16284          OR a=46
   16285          OR a=74
   16286   }
   16287 } {46 74 90 92 scan 0 sort 0}
   16288 do_test where7-2.700.2 {
   16289   count_steps_sort {
   16290      SELECT a FROM t3
   16291       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   16292          OR a=46
   16293          OR a=74
   16294   }
   16295 } {46 74 90 92 scan 0 sort 0}
   16296 do_test where7-2.701.1 {
   16297   count_steps_sort {
   16298      SELECT a FROM t2
   16299       WHERE a=18
   16300          OR b=66
   16301          OR b=498
   16302          OR b=143
   16303          OR b=1034
   16304          OR b=289
   16305          OR b=319
   16306   }
   16307 } {6 13 18 29 94 scan 0 sort 0}
   16308 do_test where7-2.701.2 {
   16309   count_steps_sort {
   16310      SELECT a FROM t3
   16311       WHERE a=18
   16312          OR b=66
   16313          OR b=498
   16314          OR b=143
   16315          OR b=1034
   16316          OR b=289
   16317          OR b=319
   16318   }
   16319 } {6 13 18 29 94 scan 0 sort 0}
   16320 do_test where7-2.702.1 {
   16321   count_steps_sort {
   16322      SELECT a FROM t2
   16323       WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
   16324          OR (g='srqponm' AND f GLOB 'efghi*')
   16325          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   16326          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   16327          OR (g='srqponm' AND f GLOB 'cdefg*')
   16328          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   16329          OR f='lmnopqrst'
   16330          OR ((a BETWEEN 11 AND 13) AND a!=12)
   16331          OR b=872
   16332          OR a=44
   16333          OR ((a BETWEEN 38 AND 40) AND a!=39)
   16334   }
   16335 } {11 13 25 28 30 37 38 40 44 45 51 54 63 77 79 89 scan 0 sort 0}
   16336 do_test where7-2.702.2 {
   16337   count_steps_sort {
   16338      SELECT a FROM t3
   16339       WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
   16340          OR (g='srqponm' AND f GLOB 'efghi*')
   16341          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   16342          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   16343          OR (g='srqponm' AND f GLOB 'cdefg*')
   16344          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   16345          OR f='lmnopqrst'
   16346          OR ((a BETWEEN 11 AND 13) AND a!=12)
   16347          OR b=872
   16348          OR a=44
   16349          OR ((a BETWEEN 38 AND 40) AND a!=39)
   16350   }
   16351 } {11 13 25 28 30 37 38 40 44 45 51 54 63 77 79 89 scan 0 sort 0}
   16352 do_test where7-2.703.1 {
   16353   count_steps_sort {
   16354      SELECT a FROM t2
   16355       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   16356          OR a=20
   16357          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   16358          OR (g='jihgfed' AND f GLOB 'xyzab*')
   16359          OR b=1004
   16360          OR b=77
   16361          OR b=927
   16362          OR a=99
   16363          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   16364          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   16365   }
   16366 } {7 17 20 46 66 71 72 73 75 98 99 scan 0 sort 0}
   16367 do_test where7-2.703.2 {
   16368   count_steps_sort {
   16369      SELECT a FROM t3
   16370       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   16371          OR a=20
   16372          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   16373          OR (g='jihgfed' AND f GLOB 'xyzab*')
   16374          OR b=1004
   16375          OR b=77
   16376          OR b=927
   16377          OR a=99
   16378          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   16379          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   16380   }
   16381 } {7 17 20 46 66 71 72 73 75 98 99 scan 0 sort 0}
   16382 do_test where7-2.704.1 {
   16383   count_steps_sort {
   16384      SELECT a FROM t2
   16385       WHERE (d>=76.0 AND d<77.0 AND d NOT NULL)
   16386          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   16387          OR b=11
   16388          OR ((a BETWEEN 21 AND 23) AND a!=22)
   16389   }
   16390 } {1 21 23 45 76 scan 0 sort 0}
   16391 do_test where7-2.704.2 {
   16392   count_steps_sort {
   16393      SELECT a FROM t3
   16394       WHERE (d>=76.0 AND d<77.0 AND d NOT NULL)
   16395          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   16396          OR b=11
   16397          OR ((a BETWEEN 21 AND 23) AND a!=22)
   16398   }
   16399 } {1 21 23 45 76 scan 0 sort 0}
   16400 do_test where7-2.705.1 {
   16401   count_steps_sort {
   16402      SELECT a FROM t2
   16403       WHERE b=572
   16404          OR (g='nmlkjih' AND f GLOB 'fghij*')
   16405   }
   16406 } {52 57 scan 0 sort 0}
   16407 do_test where7-2.705.2 {
   16408   count_steps_sort {
   16409      SELECT a FROM t3
   16410       WHERE b=572
   16411          OR (g='nmlkjih' AND f GLOB 'fghij*')
   16412   }
   16413 } {52 57 scan 0 sort 0}
   16414 do_test where7-2.706.1 {
   16415   count_steps_sort {
   16416      SELECT a FROM t2
   16417       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   16418          OR ((a BETWEEN 54 AND 56) AND a!=55)
   16419          OR f='lmnopqrst'
   16420          OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
   16421          OR (g='ihgfedc' AND f GLOB 'defgh*')
   16422          OR a=23
   16423          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   16424   }
   16425 } {10 11 23 36 37 44 54 56 62 63 69 81 88 89 scan 0 sort 0}
   16426 do_test where7-2.706.2 {
   16427   count_steps_sort {
   16428      SELECT a FROM t3
   16429       WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
   16430          OR ((a BETWEEN 54 AND 56) AND a!=55)
   16431          OR f='lmnopqrst'
   16432          OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
   16433          OR (g='ihgfedc' AND f GLOB 'defgh*')
   16434          OR a=23
   16435          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   16436   }
   16437 } {10 11 23 36 37 44 54 56 62 63 69 81 88 89 scan 0 sort 0}
   16438 do_test where7-2.707.1 {
   16439   count_steps_sort {
   16440      SELECT a FROM t2
   16441       WHERE b=836
   16442          OR ((a BETWEEN 89 AND 91) AND a!=90)
   16443          OR b=605
   16444          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   16445          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   16446          OR b=759
   16447          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   16448          OR ((a BETWEEN 38 AND 40) AND a!=39)
   16449          OR a=40
   16450          OR f='ghijklmno'
   16451          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   16452   }
   16453 } {6 24 32 38 40 46 50 55 58 69 70 76 84 85 89 91 scan 0 sort 0}
   16454 do_test where7-2.707.2 {
   16455   count_steps_sort {
   16456      SELECT a FROM t3
   16457       WHERE b=836
   16458          OR ((a BETWEEN 89 AND 91) AND a!=90)
   16459          OR b=605
   16460          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   16461          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   16462          OR b=759
   16463          OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
   16464          OR ((a BETWEEN 38 AND 40) AND a!=39)
   16465          OR a=40
   16466          OR f='ghijklmno'
   16467          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   16468   }
   16469 } {6 24 32 38 40 46 50 55 58 69 70 76 84 85 89 91 scan 0 sort 0}
   16470 do_test where7-2.708.1 {
   16471   count_steps_sort {
   16472      SELECT a FROM t2
   16473       WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
   16474          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   16475   }
   16476 } {42 51 scan 0 sort 0}
   16477 do_test where7-2.708.2 {
   16478   count_steps_sort {
   16479      SELECT a FROM t3
   16480       WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
   16481          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   16482   }
   16483 } {42 51 scan 0 sort 0}
   16484 do_test where7-2.709.1 {
   16485   count_steps_sort {
   16486      SELECT a FROM t2
   16487       WHERE c=27027
   16488          OR b=872
   16489          OR a=56
   16490   }
   16491 } {56 79 80 81 scan 0 sort 0}
   16492 do_test where7-2.709.2 {
   16493   count_steps_sort {
   16494      SELECT a FROM t3
   16495       WHERE c=27027
   16496          OR b=872
   16497          OR a=56
   16498   }
   16499 } {56 79 80 81 scan 0 sort 0}
   16500 do_test where7-2.710.1 {
   16501   count_steps_sort {
   16502      SELECT a FROM t2
   16503       WHERE b=685
   16504          OR b=256
   16505          OR ((a BETWEEN 78 AND 80) AND a!=79)
   16506          OR a=44
   16507          OR a=63
   16508          OR a=15
   16509          OR ((a BETWEEN 22 AND 24) AND a!=23)
   16510   }
   16511 } {15 22 24 44 63 78 80 scan 0 sort 0}
   16512 do_test where7-2.710.2 {
   16513   count_steps_sort {
   16514      SELECT a FROM t3
   16515       WHERE b=685
   16516          OR b=256
   16517          OR ((a BETWEEN 78 AND 80) AND a!=79)
   16518          OR a=44
   16519          OR a=63
   16520          OR a=15
   16521          OR ((a BETWEEN 22 AND 24) AND a!=23)
   16522   }
   16523 } {15 22 24 44 63 78 80 scan 0 sort 0}
   16524 do_test where7-2.711.1 {
   16525   count_steps_sort {
   16526      SELECT a FROM t2
   16527       WHERE (g='nmlkjih' AND f GLOB 'efghi*')
   16528          OR a=34
   16529          OR ((a BETWEEN 6 AND 8) AND a!=7)
   16530          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   16531          OR a=67
   16532          OR a=28
   16533   }
   16534 } {6 8 28 34 56 67 75 scan 0 sort 0}
   16535 do_test where7-2.711.2 {
   16536   count_steps_sort {
   16537      SELECT a FROM t3
   16538       WHERE (g='nmlkjih' AND f GLOB 'efghi*')
   16539          OR a=34
   16540          OR ((a BETWEEN 6 AND 8) AND a!=7)
   16541          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   16542          OR a=67
   16543          OR a=28
   16544   }
   16545 } {6 8 28 34 56 67 75 scan 0 sort 0}
   16546 do_test where7-2.712.1 {
   16547   count_steps_sort {
   16548      SELECT a FROM t2
   16549       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   16550          OR a=52
   16551          OR ((a BETWEEN 68 AND 70) AND a!=69)
   16552          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   16553          OR f='ghijklmno'
   16554          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   16555          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   16556          OR b=319
   16557          OR a=34
   16558          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   16559          OR f='hijklmnop'
   16560   }
   16561 } {6 7 12 18 24 29 32 33 34 41 52 58 59 68 70 84 85 scan 0 sort 0}
   16562 do_test where7-2.712.2 {
   16563   count_steps_sort {
   16564      SELECT a FROM t3
   16565       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   16566          OR a=52
   16567          OR ((a BETWEEN 68 AND 70) AND a!=69)
   16568          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   16569          OR f='ghijklmno'
   16570          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   16571          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   16572          OR b=319
   16573          OR a=34
   16574          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   16575          OR f='hijklmnop'
   16576   }
   16577 } {6 7 12 18 24 29 32 33 34 41 52 58 59 68 70 84 85 scan 0 sort 0}
   16578 do_test where7-2.713.1 {
   16579   count_steps_sort {
   16580      SELECT a FROM t2
   16581       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   16582          OR ((a BETWEEN 69 AND 71) AND a!=70)
   16583          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   16584          OR a=47
   16585   }
   16586 } {41 47 69 71 scan 0 sort 0}
   16587 do_test where7-2.713.2 {
   16588   count_steps_sort {
   16589      SELECT a FROM t3
   16590       WHERE (g='qponmlk' AND f GLOB 'pqrst*')
   16591          OR ((a BETWEEN 69 AND 71) AND a!=70)
   16592          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   16593          OR a=47
   16594   }
   16595 } {41 47 69 71 scan 0 sort 0}
   16596 do_test where7-2.714.1 {
   16597   count_steps_sort {
   16598      SELECT a FROM t2
   16599       WHERE ((a BETWEEN 33 AND 35) AND a!=34)
   16600          OR c=7007
   16601   }
   16602 } {19 20 21 33 35 scan 0 sort 0}
   16603 do_test where7-2.714.2 {
   16604   count_steps_sort {
   16605      SELECT a FROM t3
   16606       WHERE ((a BETWEEN 33 AND 35) AND a!=34)
   16607          OR c=7007
   16608   }
   16609 } {19 20 21 33 35 scan 0 sort 0}
   16610 do_test where7-2.715.1 {
   16611   count_steps_sort {
   16612      SELECT a FROM t2
   16613       WHERE b=531
   16614          OR a=12
   16615          OR b=583
   16616          OR ((a BETWEEN 93 AND 95) AND a!=94)
   16617          OR a=61
   16618          OR b=187
   16619   }
   16620 } {12 17 53 61 93 95 scan 0 sort 0}
   16621 do_test where7-2.715.2 {
   16622   count_steps_sort {
   16623      SELECT a FROM t3
   16624       WHERE b=531
   16625          OR a=12
   16626          OR b=583
   16627          OR ((a BETWEEN 93 AND 95) AND a!=94)
   16628          OR a=61
   16629          OR b=187
   16630   }
   16631 } {12 17 53 61 93 95 scan 0 sort 0}
   16632 do_test where7-2.716.1 {
   16633   count_steps_sort {
   16634      SELECT a FROM t2
   16635       WHERE c=31031
   16636          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   16637          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   16638          OR ((a BETWEEN 66 AND 68) AND a!=67)
   16639          OR b=256
   16640          OR ((a BETWEEN 77 AND 79) AND a!=78)
   16641          OR (g='qponmlk' AND f GLOB 'mnopq*')
   16642          OR b=715
   16643          OR b=212
   16644          OR b=99
   16645          OR c=29029
   16646   }
   16647 } {9 12 38 45 65 66 68 77 79 85 86 87 91 92 93 scan 0 sort 0}
   16648 do_test where7-2.716.2 {
   16649   count_steps_sort {
   16650      SELECT a FROM t3
   16651       WHERE c=31031
   16652          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   16653          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   16654          OR ((a BETWEEN 66 AND 68) AND a!=67)
   16655          OR b=256
   16656          OR ((a BETWEEN 77 AND 79) AND a!=78)
   16657          OR (g='qponmlk' AND f GLOB 'mnopq*')
   16658          OR b=715
   16659          OR b=212
   16660          OR b=99
   16661          OR c=29029
   16662   }
   16663 } {9 12 38 45 65 66 68 77 79 85 86 87 91 92 93 scan 0 sort 0}
   16664 do_test where7-2.717.1 {
   16665   count_steps_sort {
   16666      SELECT a FROM t2
   16667       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   16668          OR b=33
   16669          OR a=62
   16670          OR b=916
   16671          OR b=1012
   16672          OR a=2
   16673          OR a=51
   16674          OR b=286
   16675          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   16676          OR b=80
   16677   }
   16678 } {2 3 26 40 42 51 62 92 96 scan 0 sort 0}
   16679 do_test where7-2.717.2 {
   16680   count_steps_sort {
   16681      SELECT a FROM t3
   16682       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   16683          OR b=33
   16684          OR a=62
   16685          OR b=916
   16686          OR b=1012
   16687          OR a=2
   16688          OR a=51
   16689          OR b=286
   16690          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   16691          OR b=80
   16692   }
   16693 } {2 3 26 40 42 51 62 92 96 scan 0 sort 0}
   16694 do_test where7-2.718.1 {
   16695   count_steps_sort {
   16696      SELECT a FROM t2
   16697       WHERE b=847
   16698          OR f='efghijklm'
   16699          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   16700   }
   16701 } {4 6 30 56 77 82 scan 0 sort 0}
   16702 do_test where7-2.718.2 {
   16703   count_steps_sort {
   16704      SELECT a FROM t3
   16705       WHERE b=847
   16706          OR f='efghijklm'
   16707          OR (d>=6.0 AND d<7.0 AND d NOT NULL)
   16708   }
   16709 } {4 6 30 56 77 82 scan 0 sort 0}
   16710 do_test where7-2.719.1 {
   16711   count_steps_sort {
   16712      SELECT a FROM t2
   16713       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   16714          OR ((a BETWEEN 62 AND 64) AND a!=63)
   16715   }
   16716 } {25 62 64 scan 0 sort 0}
   16717 do_test where7-2.719.2 {
   16718   count_steps_sort {
   16719      SELECT a FROM t3
   16720       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   16721          OR ((a BETWEEN 62 AND 64) AND a!=63)
   16722   }
   16723 } {25 62 64 scan 0 sort 0}
   16724 do_test where7-2.720.1 {
   16725   count_steps_sort {
   16726      SELECT a FROM t2
   16727       WHERE ((a BETWEEN 43 AND 45) AND a!=44)
   16728          OR ((a BETWEEN 31 AND 33) AND a!=32)
   16729          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   16730          OR a=43
   16731          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   16732          OR b=729
   16733          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   16734   }
   16735 } {14 31 33 43 45 53 scan 0 sort 0}
   16736 do_test where7-2.720.2 {
   16737   count_steps_sort {
   16738      SELECT a FROM t3
   16739       WHERE ((a BETWEEN 43 AND 45) AND a!=44)
   16740          OR ((a BETWEEN 31 AND 33) AND a!=32)
   16741          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   16742          OR a=43
   16743          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   16744          OR b=729
   16745          OR (g='vutsrqp' AND f GLOB 'opqrs*')
   16746   }
   16747 } {14 31 33 43 45 53 scan 0 sort 0}
   16748 do_test where7-2.721.1 {
   16749   count_steps_sort {
   16750      SELECT a FROM t2
   16751       WHERE f='efghijklm'
   16752          OR a=70
   16753          OR b=278
   16754          OR ((a BETWEEN 33 AND 35) AND a!=34)
   16755          OR c=8008
   16756          OR f='opqrstuvw'
   16757          OR ((a BETWEEN 23 AND 25) AND a!=24)
   16758          OR (g='xwvutsr' AND f GLOB 'fghij*')
   16759   }
   16760 } {4 5 14 22 23 24 25 30 33 35 40 56 66 70 82 92 scan 0 sort 0}
   16761 do_test where7-2.721.2 {
   16762   count_steps_sort {
   16763      SELECT a FROM t3
   16764       WHERE f='efghijklm'
   16765          OR a=70
   16766          OR b=278
   16767          OR ((a BETWEEN 33 AND 35) AND a!=34)
   16768          OR c=8008
   16769          OR f='opqrstuvw'
   16770          OR ((a BETWEEN 23 AND 25) AND a!=24)
   16771          OR (g='xwvutsr' AND f GLOB 'fghij*')
   16772   }
   16773 } {4 5 14 22 23 24 25 30 33 35 40 56 66 70 82 92 scan 0 sort 0}
   16774 do_test where7-2.722.1 {
   16775   count_steps_sort {
   16776      SELECT a FROM t2
   16777       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   16778          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   16779          OR c<=10
   16780          OR (g='srqponm' AND f GLOB 'fghij*')
   16781          OR a=35
   16782          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   16783          OR b=1089
   16784          OR a=73
   16785          OR b=737
   16786          OR c=18018
   16787          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   16788   }
   16789 } {6 23 31 32 35 40 42 52 53 54 58 62 67 73 84 99 scan 0 sort 0}
   16790 do_test where7-2.722.2 {
   16791   count_steps_sort {
   16792      SELECT a FROM t3
   16793       WHERE ((a BETWEEN 40 AND 42) AND a!=41)
   16794          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   16795          OR c<=10
   16796          OR (g='srqponm' AND f GLOB 'fghij*')
   16797          OR a=35
   16798          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   16799          OR b=1089
   16800          OR a=73
   16801          OR b=737
   16802          OR c=18018
   16803          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   16804   }
   16805 } {6 23 31 32 35 40 42 52 53 54 58 62 67 73 84 99 scan 0 sort 0}
   16806 do_test where7-2.723.1 {
   16807   count_steps_sort {
   16808      SELECT a FROM t2
   16809       WHERE ((a BETWEEN 0 AND 2) AND a!=1)
   16810          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   16811          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   16812          OR b=762
   16813          OR ((a BETWEEN 39 AND 41) AND a!=40)
   16814          OR a=80
   16815   }
   16816 } {2 39 41 79 80 95 scan 0 sort 0}
   16817 do_test where7-2.723.2 {
   16818   count_steps_sort {
   16819      SELECT a FROM t3
   16820       WHERE ((a BETWEEN 0 AND 2) AND a!=1)
   16821          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   16822          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   16823          OR b=762
   16824          OR ((a BETWEEN 39 AND 41) AND a!=40)
   16825          OR a=80
   16826   }
   16827 } {2 39 41 79 80 95 scan 0 sort 0}
   16828 do_test where7-2.724.1 {
   16829   count_steps_sort {
   16830      SELECT a FROM t2
   16831       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   16832          OR b=737
   16833          OR ((a BETWEEN 80 AND 82) AND a!=81)
   16834          OR b=979
   16835          OR a=36
   16836          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   16837          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   16838          OR a=55
   16839          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   16840   }
   16841 } {20 28 30 36 46 50 55 67 72 80 82 89 95 98 scan 0 sort 0}
   16842 do_test where7-2.724.2 {
   16843   count_steps_sort {
   16844      SELECT a FROM t3
   16845       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   16846          OR b=737
   16847          OR ((a BETWEEN 80 AND 82) AND a!=81)
   16848          OR b=979
   16849          OR a=36
   16850          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   16851          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   16852          OR a=55
   16853          OR (g='fedcbaz' AND f GLOB 'rstuv*')
   16854   }
   16855 } {20 28 30 36 46 50 55 67 72 80 82 89 95 98 scan 0 sort 0}
   16856 do_test where7-2.725.1 {
   16857   count_steps_sort {
   16858      SELECT a FROM t2
   16859       WHERE a=75
   16860          OR a=61
   16861          OR (g='onmlkji' AND f GLOB 'abcde*')
   16862          OR (g='gfedcba' AND f GLOB 'nopqr*')
   16863   }
   16864 } {52 61 75 91 scan 0 sort 0}
   16865 do_test where7-2.725.2 {
   16866   count_steps_sort {
   16867      SELECT a FROM t3
   16868       WHERE a=75
   16869          OR a=61
   16870          OR (g='onmlkji' AND f GLOB 'abcde*')
   16871          OR (g='gfedcba' AND f GLOB 'nopqr*')
   16872   }
   16873 } {52 61 75 91 scan 0 sort 0}
   16874 do_test where7-2.726.1 {
   16875   count_steps_sort {
   16876      SELECT a FROM t2
   16877       WHERE b=1004
   16878          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   16879          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   16880          OR a=56
   16881   }
   16882 } {7 56 61 scan 0 sort 0}
   16883 do_test where7-2.726.2 {
   16884   count_steps_sort {
   16885      SELECT a FROM t3
   16886       WHERE b=1004
   16887          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   16888          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   16889          OR a=56
   16890   }
   16891 } {7 56 61 scan 0 sort 0}
   16892 do_test where7-2.727.1 {
   16893   count_steps_sort {
   16894      SELECT a FROM t2
   16895       WHERE a=93
   16896          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16897          OR a=83
   16898          OR b=828
   16899          OR b=454
   16900          OR ((a BETWEEN 89 AND 91) AND a!=90)
   16901          OR b=924
   16902          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   16903          OR a=50
   16904          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   16905   }
   16906 } {38 50 58 66 83 84 89 91 93 scan 0 sort 0}
   16907 do_test where7-2.727.2 {
   16908   count_steps_sort {
   16909      SELECT a FROM t3
   16910       WHERE a=93
   16911          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   16912          OR a=83
   16913          OR b=828
   16914          OR b=454
   16915          OR ((a BETWEEN 89 AND 91) AND a!=90)
   16916          OR b=924
   16917          OR (g='lkjihgf' AND f GLOB 'opqrs*')
   16918          OR a=50
   16919          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   16920   }
   16921 } {38 50 58 66 83 84 89 91 93 scan 0 sort 0}
   16922 do_test where7-2.728.1 {
   16923   count_steps_sort {
   16924      SELECT a FROM t2
   16925       WHERE f='stuvwxyza'
   16926          OR a=44
   16927          OR c=2002
   16928   }
   16929 } {4 5 6 18 44 70 96 scan 0 sort 0}
   16930 do_test where7-2.728.2 {
   16931   count_steps_sort {
   16932      SELECT a FROM t3
   16933       WHERE f='stuvwxyza'
   16934          OR a=44
   16935          OR c=2002
   16936   }
   16937 } {4 5 6 18 44 70 96 scan 0 sort 0}
   16938 do_test where7-2.729.1 {
   16939   count_steps_sort {
   16940      SELECT a FROM t2
   16941       WHERE a=55
   16942          OR a=65
   16943          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   16944   }
   16945 } {14 40 55 65 66 92 scan 0 sort 0}
   16946 do_test where7-2.729.2 {
   16947   count_steps_sort {
   16948      SELECT a FROM t3
   16949       WHERE a=55
   16950          OR a=65
   16951          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   16952   }
   16953 } {14 40 55 65 66 92 scan 0 sort 0}
   16954 do_test where7-2.730.1 {
   16955   count_steps_sort {
   16956      SELECT a FROM t2
   16957       WHERE ((a BETWEEN 72 AND 74) AND a!=73)
   16958          OR b=605
   16959          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   16960          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   16961          OR ((a BETWEEN 72 AND 74) AND a!=73)
   16962          OR f='ijklmnopq'
   16963          OR ((a BETWEEN 86 AND 88) AND a!=87)
   16964          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   16965          OR c=9009
   16966          OR b=374
   16967   }
   16968 } {8 12 13 25 26 27 34 43 55 60 72 74 86 88 scan 0 sort 0}
   16969 do_test where7-2.730.2 {
   16970   count_steps_sort {
   16971      SELECT a FROM t3
   16972       WHERE ((a BETWEEN 72 AND 74) AND a!=73)
   16973          OR b=605
   16974          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   16975          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   16976          OR ((a BETWEEN 72 AND 74) AND a!=73)
   16977          OR f='ijklmnopq'
   16978          OR ((a BETWEEN 86 AND 88) AND a!=87)
   16979          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   16980          OR c=9009
   16981          OR b=374
   16982   }
   16983 } {8 12 13 25 26 27 34 43 55 60 72 74 86 88 scan 0 sort 0}
   16984 do_test where7-2.731.1 {
   16985   count_steps_sort {
   16986      SELECT a FROM t2
   16987       WHERE b=476
   16988          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   16989          OR b=982
   16990          OR a=43
   16991          OR b=355
   16992   }
   16993 } {8 43 scan 0 sort 0}
   16994 do_test where7-2.731.2 {
   16995   count_steps_sort {
   16996      SELECT a FROM t3
   16997       WHERE b=476
   16998          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   16999          OR b=982
   17000          OR a=43
   17001          OR b=355
   17002   }
   17003 } {8 43 scan 0 sort 0}
   17004 do_test where7-2.732.1 {
   17005   count_steps_sort {
   17006      SELECT a FROM t2
   17007       WHERE a=85
   17008          OR b=718
   17009          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   17010          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   17011          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17012   }
   17013 } {1 25 27 53 79 85 93 scan 0 sort 0}
   17014 do_test where7-2.732.2 {
   17015   count_steps_sort {
   17016      SELECT a FROM t3
   17017       WHERE a=85
   17018          OR b=718
   17019          OR (g='fedcbaz' AND f GLOB 'pqrst*')
   17020          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   17021          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17022   }
   17023 } {1 25 27 53 79 85 93 scan 0 sort 0}
   17024 do_test where7-2.733.1 {
   17025   count_steps_sort {
   17026      SELECT a FROM t2
   17027       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   17028          OR ((a BETWEEN 96 AND 98) AND a!=97)
   17029   }
   17030 } {73 96 98 scan 0 sort 0}
   17031 do_test where7-2.733.2 {
   17032   count_steps_sort {
   17033      SELECT a FROM t3
   17034       WHERE (d>=73.0 AND d<74.0 AND d NOT NULL)
   17035          OR ((a BETWEEN 96 AND 98) AND a!=97)
   17036   }
   17037 } {73 96 98 scan 0 sort 0}
   17038 do_test where7-2.734.1 {
   17039   count_steps_sort {
   17040      SELECT a FROM t2
   17041       WHERE b=176
   17042          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17043          OR ((a BETWEEN 27 AND 29) AND a!=28)
   17044          OR b=619
   17045          OR b=597
   17046          OR b=198
   17047          OR a=27
   17048          OR b=91
   17049          OR a=77
   17050          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   17051   }
   17052 } {16 18 25 27 29 77 80 scan 0 sort 0}
   17053 do_test where7-2.734.2 {
   17054   count_steps_sort {
   17055      SELECT a FROM t3
   17056       WHERE b=176
   17057          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17058          OR ((a BETWEEN 27 AND 29) AND a!=28)
   17059          OR b=619
   17060          OR b=597
   17061          OR b=198
   17062          OR a=27
   17063          OR b=91
   17064          OR a=77
   17065          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   17066   }
   17067 } {16 18 25 27 29 77 80 scan 0 sort 0}
   17068 do_test where7-2.735.1 {
   17069   count_steps_sort {
   17070      SELECT a FROM t2
   17071       WHERE a=41
   17072          OR b=528
   17073          OR c=3003
   17074          OR ((a BETWEEN 20 AND 22) AND a!=21)
   17075          OR b=22
   17076   }
   17077 } {2 7 8 9 20 22 41 48 scan 0 sort 0}
   17078 do_test where7-2.735.2 {
   17079   count_steps_sort {
   17080      SELECT a FROM t3
   17081       WHERE a=41
   17082          OR b=528
   17083          OR c=3003
   17084          OR ((a BETWEEN 20 AND 22) AND a!=21)
   17085          OR b=22
   17086   }
   17087 } {2 7 8 9 20 22 41 48 scan 0 sort 0}
   17088 do_test where7-2.736.1 {
   17089   count_steps_sort {
   17090      SELECT a FROM t2
   17091       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   17092          OR b=465
   17093          OR ((a BETWEEN 63 AND 65) AND a!=64)
   17094          OR a=37
   17095          OR b=1056
   17096          OR (g='srqponm' AND f GLOB 'defgh*')
   17097          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   17098          OR b=1023
   17099   }
   17100 } {4 16 29 37 42 63 65 68 93 94 96 scan 0 sort 0}
   17101 do_test where7-2.736.2 {
   17102   count_steps_sort {
   17103      SELECT a FROM t3
   17104       WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
   17105          OR b=465
   17106          OR ((a BETWEEN 63 AND 65) AND a!=64)
   17107          OR a=37
   17108          OR b=1056
   17109          OR (g='srqponm' AND f GLOB 'defgh*')
   17110          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   17111          OR b=1023
   17112   }
   17113 } {4 16 29 37 42 63 65 68 93 94 96 scan 0 sort 0}
   17114 do_test where7-2.737.1 {
   17115   count_steps_sort {
   17116      SELECT a FROM t2
   17117       WHERE a=76
   17118          OR a=8
   17119          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   17120          OR b=495
   17121          OR b=663
   17122          OR a=98
   17123          OR b=748
   17124   }
   17125 } {8 27 45 68 76 98 scan 0 sort 0}
   17126 do_test where7-2.737.2 {
   17127   count_steps_sort {
   17128      SELECT a FROM t3
   17129       WHERE a=76
   17130          OR a=8
   17131          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   17132          OR b=495
   17133          OR b=663
   17134          OR a=98
   17135          OR b=748
   17136   }
   17137 } {8 27 45 68 76 98 scan 0 sort 0}
   17138 do_test where7-2.738.1 {
   17139   count_steps_sort {
   17140      SELECT a FROM t2
   17141       WHERE b=1081
   17142          OR b=542
   17143          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   17144          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17145          OR b=828
   17146          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   17147          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   17148          OR a=18
   17149   }
   17150 } {18 47 61 64 67 scan 0 sort 0}
   17151 do_test where7-2.738.2 {
   17152   count_steps_sort {
   17153      SELECT a FROM t3
   17154       WHERE b=1081
   17155          OR b=542
   17156          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   17157          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17158          OR b=828
   17159          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   17160          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   17161          OR a=18
   17162   }
   17163 } {18 47 61 64 67 scan 0 sort 0}
   17164 do_test where7-2.739.1 {
   17165   count_steps_sort {
   17166      SELECT a FROM t2
   17167       WHERE f='abcdefghi'
   17168          OR a=14
   17169          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   17170          OR c=27027
   17171          OR a=47
   17172   }
   17173 } {13 14 26 47 52 78 79 80 81 scan 0 sort 0}
   17174 do_test where7-2.739.2 {
   17175   count_steps_sort {
   17176      SELECT a FROM t3
   17177       WHERE f='abcdefghi'
   17178          OR a=14
   17179          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   17180          OR c=27027
   17181          OR a=47
   17182   }
   17183 } {13 14 26 47 52 78 79 80 81 scan 0 sort 0}
   17184 do_test where7-2.740.1 {
   17185   count_steps_sort {
   17186      SELECT a FROM t2
   17187       WHERE c=31031
   17188          OR b=737
   17189          OR a=37
   17190          OR ((a BETWEEN 98 AND 100) AND a!=99)
   17191          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   17192          OR ((a BETWEEN 65 AND 67) AND a!=66)
   17193          OR a=91
   17194          OR b=77
   17195          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   17196   }
   17197 } {7 37 65 67 91 92 93 94 98 100 scan 0 sort 0}
   17198 do_test where7-2.740.2 {
   17199   count_steps_sort {
   17200      SELECT a FROM t3
   17201       WHERE c=31031
   17202          OR b=737
   17203          OR a=37
   17204          OR ((a BETWEEN 98 AND 100) AND a!=99)
   17205          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   17206          OR ((a BETWEEN 65 AND 67) AND a!=66)
   17207          OR a=91
   17208          OR b=77
   17209          OR (d>=94.0 AND d<95.0 AND d NOT NULL)
   17210   }
   17211 } {7 37 65 67 91 92 93 94 98 100 scan 0 sort 0}
   17212 do_test where7-2.741.1 {
   17213   count_steps_sort {
   17214      SELECT a FROM t2
   17215       WHERE a=17
   17216          OR b=484
   17217          OR c=3003
   17218          OR b=121
   17219          OR a=53
   17220   }
   17221 } {7 8 9 11 17 44 53 scan 0 sort 0}
   17222 do_test where7-2.741.2 {
   17223   count_steps_sort {
   17224      SELECT a FROM t3
   17225       WHERE a=17
   17226          OR b=484
   17227          OR c=3003
   17228          OR b=121
   17229          OR a=53
   17230   }
   17231 } {7 8 9 11 17 44 53 scan 0 sort 0}
   17232 do_test where7-2.742.1 {
   17233   count_steps_sort {
   17234      SELECT a FROM t2
   17235       WHERE b=880
   17236          OR b=696
   17237          OR (g='xwvutsr' AND f GLOB 'fghij*')
   17238          OR b=308
   17239          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   17240          OR ((a BETWEEN 96 AND 98) AND a!=97)
   17241   }
   17242 } {5 28 65 80 96 98 scan 0 sort 0}
   17243 do_test where7-2.742.2 {
   17244   count_steps_sort {
   17245      SELECT a FROM t3
   17246       WHERE b=880
   17247          OR b=696
   17248          OR (g='xwvutsr' AND f GLOB 'fghij*')
   17249          OR b=308
   17250          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   17251          OR ((a BETWEEN 96 AND 98) AND a!=97)
   17252   }
   17253 } {5 28 65 80 96 98 scan 0 sort 0}
   17254 do_test where7-2.743.1 {
   17255   count_steps_sort {
   17256      SELECT a FROM t2
   17257       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   17258          OR a=24
   17259          OR f IS NULL
   17260          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   17261          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   17262          OR c=12012
   17263          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   17264   }
   17265 } {24 25 34 35 36 57 77 88 scan 0 sort 0}
   17266 do_test where7-2.743.2 {
   17267   count_steps_sort {
   17268      SELECT a FROM t3
   17269       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   17270          OR a=24
   17271          OR f IS NULL
   17272          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   17273          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   17274          OR c=12012
   17275          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   17276   }
   17277 } {24 25 34 35 36 57 77 88 scan 0 sort 0}
   17278 do_test where7-2.744.1 {
   17279   count_steps_sort {
   17280      SELECT a FROM t2
   17281       WHERE a=94
   17282          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   17283          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   17284          OR b=792
   17285          OR a=77
   17286          OR a=26
   17287          OR b=641
   17288          OR a=38
   17289   }
   17290 } {26 38 72 74 77 85 94 scan 0 sort 0}
   17291 do_test where7-2.744.2 {
   17292   count_steps_sort {
   17293      SELECT a FROM t3
   17294       WHERE a=94
   17295          OR (d>=74.0 AND d<75.0 AND d NOT NULL)
   17296          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   17297          OR b=792
   17298          OR a=77
   17299          OR a=26
   17300          OR b=641
   17301          OR a=38
   17302   }
   17303 } {26 38 72 74 77 85 94 scan 0 sort 0}
   17304 do_test where7-2.745.1 {
   17305   count_steps_sort {
   17306      SELECT a FROM t2
   17307       WHERE ((a BETWEEN 51 AND 53) AND a!=52)
   17308          OR (d>=30.0 AND d<31.0 AND d NOT NULL)
   17309          OR b=14
   17310          OR ((a BETWEEN 89 AND 91) AND a!=90)
   17311          OR ((a BETWEEN 15 AND 17) AND a!=16)
   17312          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   17313          OR b=121
   17314          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   17315          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   17316   }
   17317 } {11 15 17 27 30 51 53 63 86 89 91 scan 0 sort 0}
   17318 do_test where7-2.745.2 {
   17319   count_steps_sort {
   17320      SELECT a FROM t3
   17321       WHERE ((a BETWEEN 51 AND 53) AND a!=52)
   17322          OR (d>=30.0 AND d<31.0 AND d NOT NULL)
   17323          OR b=14
   17324          OR ((a BETWEEN 89 AND 91) AND a!=90)
   17325          OR ((a BETWEEN 15 AND 17) AND a!=16)
   17326          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   17327          OR b=121
   17328          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   17329          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   17330   }
   17331 } {11 15 17 27 30 51 53 63 86 89 91 scan 0 sort 0}
   17332 do_test where7-2.746.1 {
   17333   count_steps_sort {
   17334      SELECT a FROM t2
   17335       WHERE b=517
   17336          OR ((a BETWEEN 69 AND 71) AND a!=70)
   17337          OR f='opqrstuvw'
   17338   }
   17339 } {14 40 47 66 69 71 92 scan 0 sort 0}
   17340 do_test where7-2.746.2 {
   17341   count_steps_sort {
   17342      SELECT a FROM t3
   17343       WHERE b=517
   17344          OR ((a BETWEEN 69 AND 71) AND a!=70)
   17345          OR f='opqrstuvw'
   17346   }
   17347 } {14 40 47 66 69 71 92 scan 0 sort 0}
   17348 do_test where7-2.747.1 {
   17349   count_steps_sort {
   17350      SELECT a FROM t2
   17351       WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
   17352          OR ((a BETWEEN 32 AND 34) AND a!=33)
   17353          OR b=267
   17354          OR c=19019
   17355          OR a=42
   17356          OR b=938
   17357          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   17358          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   17359          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   17360          OR ((a BETWEEN 22 AND 24) AND a!=23)
   17361          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   17362   }
   17363 } {1 9 17 21 22 24 32 34 35 42 43 55 56 57 61 69 84 87 95 scan 0 sort 0}
   17364 do_test where7-2.747.2 {
   17365   count_steps_sort {
   17366      SELECT a FROM t3
   17367       WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
   17368          OR ((a BETWEEN 32 AND 34) AND a!=33)
   17369          OR b=267
   17370          OR c=19019
   17371          OR a=42
   17372          OR b=938
   17373          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   17374          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   17375          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   17376          OR ((a BETWEEN 22 AND 24) AND a!=23)
   17377          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   17378   }
   17379 } {1 9 17 21 22 24 32 34 35 42 43 55 56 57 61 69 84 87 95 scan 0 sort 0}
   17380 do_test where7-2.748.1 {
   17381   count_steps_sort {
   17382      SELECT a FROM t2
   17383       WHERE b=179
   17384          OR a=50
   17385          OR (g='srqponm' AND f GLOB 'defgh*')
   17386   }
   17387 } {29 50 scan 0 sort 0}
   17388 do_test where7-2.748.2 {
   17389   count_steps_sort {
   17390      SELECT a FROM t3
   17391       WHERE b=179
   17392          OR a=50
   17393          OR (g='srqponm' AND f GLOB 'defgh*')
   17394   }
   17395 } {29 50 scan 0 sort 0}
   17396 do_test where7-2.749.1 {
   17397   count_steps_sort {
   17398      SELECT a FROM t2
   17399       WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
   17400          OR f='xyzabcdef'
   17401          OR ((a BETWEEN 49 AND 51) AND a!=50)
   17402          OR b=575
   17403          OR b=385
   17404          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   17405          OR ((a BETWEEN 63 AND 65) AND a!=64)
   17406          OR a=46
   17407          OR b=220
   17408          OR a=63
   17409   }
   17410 } {17 18 20 23 35 46 49 51 63 65 75 scan 0 sort 0}
   17411 do_test where7-2.749.2 {
   17412   count_steps_sort {
   17413      SELECT a FROM t3
   17414       WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
   17415          OR f='xyzabcdef'
   17416          OR ((a BETWEEN 49 AND 51) AND a!=50)
   17417          OR b=575
   17418          OR b=385
   17419          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   17420          OR ((a BETWEEN 63 AND 65) AND a!=64)
   17421          OR a=46
   17422          OR b=220
   17423          OR a=63
   17424   }
   17425 } {17 18 20 23 35 46 49 51 63 65 75 scan 0 sort 0}
   17426 do_test where7-2.750.1 {
   17427   count_steps_sort {
   17428      SELECT a FROM t2
   17429       WHERE b=1056
   17430          OR ((a BETWEEN 91 AND 93) AND a!=92)
   17431          OR b=1078
   17432          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   17433          OR c=31031
   17434          OR b=869
   17435          OR (g='jihgfed' AND f GLOB 'zabcd*')
   17436          OR b=245
   17437          OR a=92
   17438          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   17439          OR b=880
   17440   }
   17441 } {66 77 79 80 91 92 93 96 98 scan 0 sort 0}
   17442 do_test where7-2.750.2 {
   17443   count_steps_sort {
   17444      SELECT a FROM t3
   17445       WHERE b=1056
   17446          OR ((a BETWEEN 91 AND 93) AND a!=92)
   17447          OR b=1078
   17448          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   17449          OR c=31031
   17450          OR b=869
   17451          OR (g='jihgfed' AND f GLOB 'zabcd*')
   17452          OR b=245
   17453          OR a=92
   17454          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   17455          OR b=880
   17456   }
   17457 } {66 77 79 80 91 92 93 96 98 scan 0 sort 0}
   17458 do_test where7-2.751.1 {
   17459   count_steps_sort {
   17460      SELECT a FROM t2
   17461       WHERE b=1078
   17462          OR c=28028
   17463          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   17464          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   17465          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   17466          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   17467          OR ((a BETWEEN 17 AND 19) AND a!=18)
   17468          OR c=9009
   17469          OR a=17
   17470          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   17471   }
   17472 } {16 17 19 25 26 27 38 39 40 42 61 68 82 83 84 94 98 scan 0 sort 0}
   17473 do_test where7-2.751.2 {
   17474   count_steps_sort {
   17475      SELECT a FROM t3
   17476       WHERE b=1078
   17477          OR c=28028
   17478          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   17479          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   17480          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   17481          OR (g='mlkjihg' AND f GLOB 'jklmn*')
   17482          OR ((a BETWEEN 17 AND 19) AND a!=18)
   17483          OR c=9009
   17484          OR a=17
   17485          OR (d>=39.0 AND d<40.0 AND d NOT NULL)
   17486   }
   17487 } {16 17 19 25 26 27 38 39 40 42 61 68 82 83 84 94 98 scan 0 sort 0}
   17488 do_test where7-2.752.1 {
   17489   count_steps_sort {
   17490      SELECT a FROM t2
   17491       WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
   17492          OR b=762
   17493          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   17494          OR f='tuvwxyzab'
   17495          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   17496          OR ((a BETWEEN 31 AND 33) AND a!=32)
   17497          OR b=1034
   17498          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   17499   }
   17500 } {14 19 31 33 44 45 57 58 71 94 97 scan 0 sort 0}
   17501 do_test where7-2.752.2 {
   17502   count_steps_sort {
   17503      SELECT a FROM t3
   17504       WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
   17505          OR b=762
   17506          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   17507          OR f='tuvwxyzab'
   17508          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   17509          OR ((a BETWEEN 31 AND 33) AND a!=32)
   17510          OR b=1034
   17511          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   17512   }
   17513 } {14 19 31 33 44 45 57 58 71 94 97 scan 0 sort 0}
   17514 do_test where7-2.753.1 {
   17515   count_steps_sort {
   17516      SELECT a FROM t2
   17517       WHERE b=47
   17518          OR b=187
   17519          OR a=56
   17520          OR ((a BETWEEN 30 AND 32) AND a!=31)
   17521          OR ((a BETWEEN 68 AND 70) AND a!=69)
   17522          OR ((a BETWEEN 89 AND 91) AND a!=90)
   17523   }
   17524 } {17 30 32 56 68 70 89 91 scan 0 sort 0}
   17525 do_test where7-2.753.2 {
   17526   count_steps_sort {
   17527      SELECT a FROM t3
   17528       WHERE b=47
   17529          OR b=187
   17530          OR a=56
   17531          OR ((a BETWEEN 30 AND 32) AND a!=31)
   17532          OR ((a BETWEEN 68 AND 70) AND a!=69)
   17533          OR ((a BETWEEN 89 AND 91) AND a!=90)
   17534   }
   17535 } {17 30 32 56 68 70 89 91 scan 0 sort 0}
   17536 do_test where7-2.754.1 {
   17537   count_steps_sort {
   17538      SELECT a FROM t2
   17539       WHERE c=11011
   17540          OR a=14
   17541          OR c=16016
   17542          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   17543          OR (g='srqponm' AND f GLOB 'efghi*')
   17544          OR f='jklmnopqr'
   17545          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17546          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   17547          OR b=916
   17548   }
   17549 } {9 14 21 25 30 31 32 33 35 46 47 48 61 87 96 scan 0 sort 0}
   17550 do_test where7-2.754.2 {
   17551   count_steps_sort {
   17552      SELECT a FROM t3
   17553       WHERE c=11011
   17554          OR a=14
   17555          OR c=16016
   17556          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   17557          OR (g='srqponm' AND f GLOB 'efghi*')
   17558          OR f='jklmnopqr'
   17559          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   17560          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   17561          OR b=916
   17562   }
   17563 } {9 14 21 25 30 31 32 33 35 46 47 48 61 87 96 scan 0 sort 0}
   17564 do_test where7-2.755.1 {
   17565   count_steps_sort {
   17566      SELECT a FROM t2
   17567       WHERE b=949
   17568          OR (g='srqponm' AND f GLOB 'cdefg*')
   17569          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   17570          OR c<=10
   17571          OR a=14
   17572          OR b=608
   17573          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   17574          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   17575          OR b=121
   17576          OR b=333
   17577          OR ((a BETWEEN 93 AND 95) AND a!=94)
   17578   }
   17579 } {11 14 17 28 66 93 95 98 scan 0 sort 0}
   17580 do_test where7-2.755.2 {
   17581   count_steps_sort {
   17582      SELECT a FROM t3
   17583       WHERE b=949
   17584          OR (g='srqponm' AND f GLOB 'cdefg*')
   17585          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   17586          OR c<=10
   17587          OR a=14
   17588          OR b=608
   17589          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   17590          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   17591          OR b=121
   17592          OR b=333
   17593          OR ((a BETWEEN 93 AND 95) AND a!=94)
   17594   }
   17595 } {11 14 17 28 66 93 95 98 scan 0 sort 0}
   17596 do_test where7-2.756.1 {
   17597   count_steps_sort {
   17598      SELECT a FROM t2
   17599       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   17600          OR b=355
   17601          OR b=627
   17602          OR b=1001
   17603          OR b=1026
   17604          OR ((a BETWEEN 58 AND 60) AND a!=59)
   17605   }
   17606 } {57 58 60 69 91 scan 0 sort 0}
   17607 do_test where7-2.756.2 {
   17608   count_steps_sort {
   17609      SELECT a FROM t3
   17610       WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
   17611          OR b=355
   17612          OR b=627
   17613          OR b=1001
   17614          OR b=1026
   17615          OR ((a BETWEEN 58 AND 60) AND a!=59)
   17616   }
   17617 } {57 58 60 69 91 scan 0 sort 0}
   17618 do_test where7-2.757.1 {
   17619   count_steps_sort {
   17620      SELECT a FROM t2
   17621       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   17622          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   17623   }
   17624 } {4 79 scan 0 sort 0}
   17625 do_test where7-2.757.2 {
   17626   count_steps_sort {
   17627      SELECT a FROM t3
   17628       WHERE (g='xwvutsr' AND f GLOB 'efghi*')
   17629          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   17630   }
   17631 } {4 79 scan 0 sort 0}
   17632 do_test where7-2.758.1 {
   17633   count_steps_sort {
   17634      SELECT a FROM t2
   17635       WHERE b=685
   17636          OR a=14
   17637          OR b=990
   17638          OR (g='tsrqpon' AND f GLOB 'abcde*')
   17639          OR f='efghijklm'
   17640          OR c=1001
   17641          OR b=784
   17642          OR (g='srqponm' AND f GLOB 'ghijk*')
   17643          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   17644   }
   17645 } {1 2 3 4 14 26 30 32 56 69 82 90 scan 0 sort 0}
   17646 do_test where7-2.758.2 {
   17647   count_steps_sort {
   17648      SELECT a FROM t3
   17649       WHERE b=685
   17650          OR a=14
   17651          OR b=990
   17652          OR (g='tsrqpon' AND f GLOB 'abcde*')
   17653          OR f='efghijklm'
   17654          OR c=1001
   17655          OR b=784
   17656          OR (g='srqponm' AND f GLOB 'ghijk*')
   17657          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   17658   }
   17659 } {1 2 3 4 14 26 30 32 56 69 82 90 scan 0 sort 0}
   17660 do_test where7-2.759.1 {
   17661   count_steps_sort {
   17662      SELECT a FROM t2
   17663       WHERE a=54
   17664          OR (g='qponmlk' AND f GLOB 'nopqr*')
   17665          OR c=26026
   17666          OR ((a BETWEEN 97 AND 99) AND a!=98)
   17667   }
   17668 } {39 54 76 77 78 97 99 scan 0 sort 0}
   17669 do_test where7-2.759.2 {
   17670   count_steps_sort {
   17671      SELECT a FROM t3
   17672       WHERE a=54
   17673          OR (g='qponmlk' AND f GLOB 'nopqr*')
   17674          OR c=26026
   17675          OR ((a BETWEEN 97 AND 99) AND a!=98)
   17676   }
   17677 } {39 54 76 77 78 97 99 scan 0 sort 0}
   17678 do_test where7-2.760.1 {
   17679   count_steps_sort {
   17680      SELECT a FROM t2
   17681       WHERE (g='hgfedcb' AND f GLOB 'ghijk*')
   17682          OR c=24024
   17683          OR a=98
   17684          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   17685          OR a=5
   17686          OR ((a BETWEEN 31 AND 33) AND a!=32)
   17687          OR (g='rqponml' AND f GLOB 'klmno*')
   17688          OR f='pqrstuvwx'
   17689          OR f='bcdefghij'
   17690          OR b=1001
   17691          OR ((a BETWEEN 77 AND 79) AND a!=78)
   17692   }
   17693 } {1 5 15 21 27 31 33 36 41 53 67 70 71 72 77 79 84 91 93 98 scan 0 sort 0}
   17694 do_test where7-2.760.2 {
   17695   count_steps_sort {
   17696      SELECT a FROM t3
   17697       WHERE (g='hgfedcb' AND f GLOB 'ghijk*')
   17698          OR c=24024
   17699          OR a=98
   17700          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   17701          OR a=5
   17702          OR ((a BETWEEN 31 AND 33) AND a!=32)
   17703          OR (g='rqponml' AND f GLOB 'klmno*')
   17704          OR f='pqrstuvwx'
   17705          OR f='bcdefghij'
   17706          OR b=1001
   17707          OR ((a BETWEEN 77 AND 79) AND a!=78)
   17708   }
   17709 } {1 5 15 21 27 31 33 36 41 53 67 70 71 72 77 79 84 91 93 98 scan 0 sort 0}
   17710 do_test where7-2.761.1 {
   17711   count_steps_sort {
   17712      SELECT a FROM t2
   17713       WHERE b=781
   17714          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   17715          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   17716          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   17717          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   17718          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   17719          OR f='lmnopqrst'
   17720          OR a=39
   17721          OR a=100
   17722          OR ((a BETWEEN 56 AND 58) AND a!=57)
   17723   }
   17724 } {1 11 14 37 39 40 54 56 58 63 66 71 89 92 99 100 scan 0 sort 0}
   17725 do_test where7-2.761.2 {
   17726   count_steps_sort {
   17727      SELECT a FROM t3
   17728       WHERE b=781
   17729          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   17730          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   17731          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   17732          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   17733          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   17734          OR f='lmnopqrst'
   17735          OR a=39
   17736          OR a=100
   17737          OR ((a BETWEEN 56 AND 58) AND a!=57)
   17738   }
   17739 } {1 11 14 37 39 40 54 56 58 63 66 71 89 92 99 100 scan 0 sort 0}
   17740 do_test where7-2.762.1 {
   17741   count_steps_sort {
   17742      SELECT a FROM t2
   17743       WHERE c=4004
   17744          OR b=718
   17745          OR (g='qponmlk' AND f GLOB 'opqrs*')
   17746          OR a=50
   17747          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   17748          OR b=363
   17749          OR (g='rqponml' AND f GLOB 'ijklm*')
   17750          OR b=1023
   17751   }
   17752 } {10 11 12 33 34 40 50 93 scan 0 sort 0}
   17753 do_test where7-2.762.2 {
   17754   count_steps_sort {
   17755      SELECT a FROM t3
   17756       WHERE c=4004
   17757          OR b=718
   17758          OR (g='qponmlk' AND f GLOB 'opqrs*')
   17759          OR a=50
   17760          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   17761          OR b=363
   17762          OR (g='rqponml' AND f GLOB 'ijklm*')
   17763          OR b=1023
   17764   }
   17765 } {10 11 12 33 34 40 50 93 scan 0 sort 0}
   17766 do_test where7-2.763.1 {
   17767   count_steps_sort {
   17768      SELECT a FROM t2
   17769       WHERE b=1081
   17770          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   17771          OR b=473
   17772          OR ((a BETWEEN 43 AND 45) AND a!=44)
   17773          OR b=586
   17774          OR (g='tsrqpon' AND f GLOB 'abcde*')
   17775          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   17776   }
   17777 } {20 26 43 45 46 55 72 98 scan 0 sort 0}
   17778 do_test where7-2.763.2 {
   17779   count_steps_sort {
   17780      SELECT a FROM t3
   17781       WHERE b=1081
   17782          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   17783          OR b=473
   17784          OR ((a BETWEEN 43 AND 45) AND a!=44)
   17785          OR b=586
   17786          OR (g='tsrqpon' AND f GLOB 'abcde*')
   17787          OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
   17788   }
   17789 } {20 26 43 45 46 55 72 98 scan 0 sort 0}
   17790 do_test where7-2.764.1 {
   17791   count_steps_sort {
   17792      SELECT a FROM t2
   17793       WHERE (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   17794          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   17795          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   17796   }
   17797 } {7 13 33 58 59 85 scan 0 sort 0}
   17798 do_test where7-2.764.2 {
   17799   count_steps_sort {
   17800      SELECT a FROM t3
   17801       WHERE (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   17802          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   17803          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   17804   }
   17805 } {7 13 33 58 59 85 scan 0 sort 0}
   17806 do_test where7-2.765.1 {
   17807   count_steps_sort {
   17808      SELECT a FROM t2
   17809       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   17810          OR ((a BETWEEN 76 AND 78) AND a!=77)
   17811          OR a=47
   17812          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   17813          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   17814          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   17815          OR f='lmnopqrst'
   17816   }
   17817 } {11 37 47 63 68 76 78 84 85 89 scan 0 sort 0}
   17818 do_test where7-2.765.2 {
   17819   count_steps_sort {
   17820      SELECT a FROM t3
   17821       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   17822          OR ((a BETWEEN 76 AND 78) AND a!=77)
   17823          OR a=47
   17824          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   17825          OR (g='lkjihgf' AND f GLOB 'lmnop*')
   17826          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   17827          OR f='lmnopqrst'
   17828   }
   17829 } {11 37 47 63 68 76 78 84 85 89 scan 0 sort 0}
   17830 do_test where7-2.766.1 {
   17831   count_steps_sort {
   17832      SELECT a FROM t2
   17833       WHERE c>=34035
   17834          OR a=29
   17835          OR ((a BETWEEN 19 AND 21) AND a!=20)
   17836          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   17837          OR f='abcdefghi'
   17838          OR b=993
   17839          OR ((a BETWEEN 52 AND 54) AND a!=53)
   17840          OR ((a BETWEEN 45 AND 47) AND a!=46)
   17841   }
   17842 } {19 21 26 29 45 47 52 54 73 78 99 scan 0 sort 0}
   17843 do_test where7-2.766.2 {
   17844   count_steps_sort {
   17845      SELECT a FROM t3
   17846       WHERE c>=34035
   17847          OR a=29
   17848          OR ((a BETWEEN 19 AND 21) AND a!=20)
   17849          OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
   17850          OR f='abcdefghi'
   17851          OR b=993
   17852          OR ((a BETWEEN 52 AND 54) AND a!=53)
   17853          OR ((a BETWEEN 45 AND 47) AND a!=46)
   17854   }
   17855 } {19 21 26 29 45 47 52 54 73 78 99 scan 0 sort 0}
   17856 do_test where7-2.767.1 {
   17857   count_steps_sort {
   17858      SELECT a FROM t2
   17859       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   17860          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   17861          OR b=696
   17862          OR b=154
   17863          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   17864          OR a=22
   17865          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17866          OR a=52
   17867          OR a=21
   17868          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   17869   }
   17870 } {14 16 21 22 24 47 52 63 70 scan 0 sort 0}
   17871 do_test where7-2.767.2 {
   17872   count_steps_sort {
   17873      SELECT a FROM t3
   17874       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   17875          OR (d>=16.0 AND d<17.0 AND d NOT NULL)
   17876          OR b=696
   17877          OR b=154
   17878          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   17879          OR a=22
   17880          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17881          OR a=52
   17882          OR a=21
   17883          OR (d>=70.0 AND d<71.0 AND d NOT NULL)
   17884   }
   17885 } {14 16 21 22 24 47 52 63 70 scan 0 sort 0}
   17886 do_test where7-2.768.1 {
   17887   count_steps_sort {
   17888      SELECT a FROM t2
   17889       WHERE b=693
   17890          OR b=201
   17891          OR ((a BETWEEN 36 AND 38) AND a!=37)
   17892          OR b=520
   17893          OR ((a BETWEEN 23 AND 25) AND a!=24)
   17894          OR b=407
   17895          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   17896          OR c>=34035
   17897          OR b=135
   17898   }
   17899 } {23 25 36 37 38 63 scan 0 sort 0}
   17900 do_test where7-2.768.2 {
   17901   count_steps_sort {
   17902      SELECT a FROM t3
   17903       WHERE b=693
   17904          OR b=201
   17905          OR ((a BETWEEN 36 AND 38) AND a!=37)
   17906          OR b=520
   17907          OR ((a BETWEEN 23 AND 25) AND a!=24)
   17908          OR b=407
   17909          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   17910          OR c>=34035
   17911          OR b=135
   17912   }
   17913 } {23 25 36 37 38 63 scan 0 sort 0}
   17914 do_test where7-2.769.1 {
   17915   count_steps_sort {
   17916      SELECT a FROM t2
   17917       WHERE (d>=43.0 AND d<44.0 AND d NOT NULL)
   17918          OR b=707
   17919          OR b=14
   17920          OR b=1089
   17921          OR b=352
   17922   }
   17923 } {32 43 99 scan 0 sort 0}
   17924 do_test where7-2.769.2 {
   17925   count_steps_sort {
   17926      SELECT a FROM t3
   17927       WHERE (d>=43.0 AND d<44.0 AND d NOT NULL)
   17928          OR b=707
   17929          OR b=14
   17930          OR b=1089
   17931          OR b=352
   17932   }
   17933 } {32 43 99 scan 0 sort 0}
   17934 do_test where7-2.770.1 {
   17935   count_steps_sort {
   17936      SELECT a FROM t2
   17937       WHERE b=278
   17938          OR b=278
   17939          OR b=825
   17940          OR f='rstuvwxyz'
   17941          OR b=938
   17942          OR ((a BETWEEN 17 AND 19) AND a!=18)
   17943          OR ((a BETWEEN 43 AND 45) AND a!=44)
   17944   }
   17945 } {17 19 43 45 69 75 95 scan 0 sort 0}
   17946 do_test where7-2.770.2 {
   17947   count_steps_sort {
   17948      SELECT a FROM t3
   17949       WHERE b=278
   17950          OR b=278
   17951          OR b=825
   17952          OR f='rstuvwxyz'
   17953          OR b=938
   17954          OR ((a BETWEEN 17 AND 19) AND a!=18)
   17955          OR ((a BETWEEN 43 AND 45) AND a!=44)
   17956   }
   17957 } {17 19 43 45 69 75 95 scan 0 sort 0}
   17958 do_test where7-2.771.1 {
   17959   count_steps_sort {
   17960      SELECT a FROM t2
   17961       WHERE ((a BETWEEN 32 AND 34) AND a!=33)
   17962          OR b=1045
   17963          OR c=27027
   17964          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   17965   }
   17966 } {11 32 34 37 63 79 80 81 89 95 scan 0 sort 0}
   17967 do_test where7-2.771.2 {
   17968   count_steps_sort {
   17969      SELECT a FROM t3
   17970       WHERE ((a BETWEEN 32 AND 34) AND a!=33)
   17971          OR b=1045
   17972          OR c=27027
   17973          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   17974   }
   17975 } {11 32 34 37 63 79 80 81 89 95 scan 0 sort 0}
   17976 do_test where7-2.772.1 {
   17977   count_steps_sort {
   17978      SELECT a FROM t2
   17979       WHERE a=87
   17980          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17981          OR b=487
   17982          OR (g='gfedcba' AND f GLOB 'mnopq*')
   17983   }
   17984 } {47 87 90 scan 0 sort 0}
   17985 do_test where7-2.772.2 {
   17986   count_steps_sort {
   17987      SELECT a FROM t3
   17988       WHERE a=87
   17989          OR (d>=47.0 AND d<48.0 AND d NOT NULL)
   17990          OR b=487
   17991          OR (g='gfedcba' AND f GLOB 'mnopq*')
   17992   }
   17993 } {47 87 90 scan 0 sort 0}
   17994 do_test where7-2.773.1 {
   17995   count_steps_sort {
   17996      SELECT a FROM t2
   17997       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   17998          OR b=69
   17999          OR b=608
   18000          OR b=814
   18001          OR a=67
   18002          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   18003          OR b=1059
   18004          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   18005          OR a=18
   18006          OR b=407
   18007          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18008   }
   18009 } {10 12 18 30 32 37 58 61 67 74 scan 0 sort 0}
   18010 do_test where7-2.773.2 {
   18011   count_steps_sort {
   18012      SELECT a FROM t3
   18013       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   18014          OR b=69
   18015          OR b=608
   18016          OR b=814
   18017          OR a=67
   18018          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   18019          OR b=1059
   18020          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   18021          OR a=18
   18022          OR b=407
   18023          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18024   }
   18025 } {10 12 18 30 32 37 58 61 67 74 scan 0 sort 0}
   18026 do_test where7-2.774.1 {
   18027   count_steps_sort {
   18028      SELECT a FROM t2
   18029       WHERE b=223
   18030          OR b=80
   18031          OR ((a BETWEEN 97 AND 99) AND a!=98)
   18032          OR ((a BETWEEN 74 AND 76) AND a!=75)
   18033   }
   18034 } {74 76 97 99 scan 0 sort 0}
   18035 do_test where7-2.774.2 {
   18036   count_steps_sort {
   18037      SELECT a FROM t3
   18038       WHERE b=223
   18039          OR b=80
   18040          OR ((a BETWEEN 97 AND 99) AND a!=98)
   18041          OR ((a BETWEEN 74 AND 76) AND a!=75)
   18042   }
   18043 } {74 76 97 99 scan 0 sort 0}
   18044 do_test where7-2.775.1 {
   18045   count_steps_sort {
   18046      SELECT a FROM t2
   18047       WHERE b=220
   18048          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   18049          OR b=363
   18050          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   18051          OR (g='nmlkjih' AND f GLOB 'defgh*')
   18052          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18053          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18054   }
   18055 } {10 12 20 33 52 54 55 66 scan 0 sort 0}
   18056 do_test where7-2.775.2 {
   18057   count_steps_sort {
   18058      SELECT a FROM t3
   18059       WHERE b=220
   18060          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   18061          OR b=363
   18062          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   18063          OR (g='nmlkjih' AND f GLOB 'defgh*')
   18064          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18065          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18066   }
   18067 } {10 12 20 33 52 54 55 66 scan 0 sort 0}
   18068 do_test where7-2.776.1 {
   18069   count_steps_sort {
   18070      SELECT a FROM t2
   18071       WHERE b=498
   18072          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   18073          OR b=880
   18074          OR ((a BETWEEN 60 AND 62) AND a!=61)
   18075          OR b=828
   18076          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   18077          OR b=113
   18078   }
   18079 } {5 15 60 62 80 scan 0 sort 0}
   18080 do_test where7-2.776.2 {
   18081   count_steps_sort {
   18082      SELECT a FROM t3
   18083       WHERE b=498
   18084          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   18085          OR b=880
   18086          OR ((a BETWEEN 60 AND 62) AND a!=61)
   18087          OR b=828
   18088          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   18089          OR b=113
   18090   }
   18091 } {5 15 60 62 80 scan 0 sort 0}
   18092 do_test where7-2.777.1 {
   18093   count_steps_sort {
   18094      SELECT a FROM t2
   18095       WHERE b=1059
   18096          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   18097          OR b=960
   18098          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   18099          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   18100          OR b=894
   18101          OR c=2002
   18102   }
   18103 } {4 5 6 12 16 20 42 68 94 scan 0 sort 0}
   18104 do_test where7-2.777.2 {
   18105   count_steps_sort {
   18106      SELECT a FROM t3
   18107       WHERE b=1059
   18108          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   18109          OR b=960
   18110          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   18111          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   18112          OR b=894
   18113          OR c=2002
   18114   }
   18115 } {4 5 6 12 16 20 42 68 94 scan 0 sort 0}
   18116 do_test where7-2.778.1 {
   18117   count_steps_sort {
   18118      SELECT a FROM t2
   18119       WHERE b=14
   18120          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   18121   }
   18122 } {85 scan 0 sort 0}
   18123 do_test where7-2.778.2 {
   18124   count_steps_sort {
   18125      SELECT a FROM t3
   18126       WHERE b=14
   18127          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   18128   }
   18129 } {85 scan 0 sort 0}
   18130 do_test where7-2.779.1 {
   18131   count_steps_sort {
   18132      SELECT a FROM t2
   18133       WHERE b=806
   18134          OR (g='rqponml' AND f GLOB 'hijkl*')
   18135          OR b=795
   18136          OR ((a BETWEEN 99 AND 101) AND a!=100)
   18137          OR ((a BETWEEN 21 AND 23) AND a!=22)
   18138          OR ((a BETWEEN 86 AND 88) AND a!=87)
   18139          OR c=23023
   18140          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   18141   }
   18142 } {21 23 33 67 68 69 86 88 99 scan 0 sort 0}
   18143 do_test where7-2.779.2 {
   18144   count_steps_sort {
   18145      SELECT a FROM t3
   18146       WHERE b=806
   18147          OR (g='rqponml' AND f GLOB 'hijkl*')
   18148          OR b=795
   18149          OR ((a BETWEEN 99 AND 101) AND a!=100)
   18150          OR ((a BETWEEN 21 AND 23) AND a!=22)
   18151          OR ((a BETWEEN 86 AND 88) AND a!=87)
   18152          OR c=23023
   18153          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   18154   }
   18155 } {21 23 33 67 68 69 86 88 99 scan 0 sort 0}
   18156 do_test where7-2.780.1 {
   18157   count_steps_sort {
   18158      SELECT a FROM t2
   18159       WHERE b=726
   18160          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   18161          OR ((a BETWEEN 8 AND 10) AND a!=9)
   18162          OR f='abcdefghi'
   18163          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   18164          OR b=869
   18165   }
   18166 } {8 10 15 26 41 52 66 67 78 79 92 93 scan 0 sort 0}
   18167 do_test where7-2.780.2 {
   18168   count_steps_sort {
   18169      SELECT a FROM t3
   18170       WHERE b=726
   18171          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   18172          OR ((a BETWEEN 8 AND 10) AND a!=9)
   18173          OR f='abcdefghi'
   18174          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   18175          OR b=869
   18176   }
   18177 } {8 10 15 26 41 52 66 67 78 79 92 93 scan 0 sort 0}
   18178 do_test where7-2.781.1 {
   18179   count_steps_sort {
   18180      SELECT a FROM t2
   18181       WHERE a=59
   18182          OR ((a BETWEEN 5 AND 7) AND a!=6)
   18183          OR b=1081
   18184          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   18185   }
   18186 } {5 7 59 96 scan 0 sort 0}
   18187 do_test where7-2.781.2 {
   18188   count_steps_sort {
   18189      SELECT a FROM t3
   18190       WHERE a=59
   18191          OR ((a BETWEEN 5 AND 7) AND a!=6)
   18192          OR b=1081
   18193          OR (g='fedcbaz' AND f GLOB 'stuvw*')
   18194   }
   18195 } {5 7 59 96 scan 0 sort 0}
   18196 do_test where7-2.782.1 {
   18197   count_steps_sort {
   18198      SELECT a FROM t2
   18199       WHERE (g='qponmlk' AND f GLOB 'nopqr*')
   18200          OR b=1037
   18201          OR b=132
   18202          OR c=1001
   18203          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   18204          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   18205          OR (g='gfedcba' AND f GLOB 'nopqr*')
   18206          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   18207          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   18208          OR a=32
   18209   }
   18210 } {1 2 3 12 18 20 32 39 58 68 91 scan 0 sort 0}
   18211 do_test where7-2.782.2 {
   18212   count_steps_sort {
   18213      SELECT a FROM t3
   18214       WHERE (g='qponmlk' AND f GLOB 'nopqr*')
   18215          OR b=1037
   18216          OR b=132
   18217          OR c=1001
   18218          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   18219          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   18220          OR (g='gfedcba' AND f GLOB 'nopqr*')
   18221          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   18222          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   18223          OR a=32
   18224   }
   18225 } {1 2 3 12 18 20 32 39 58 68 91 scan 0 sort 0}
   18226 do_test where7-2.783.1 {
   18227   count_steps_sort {
   18228      SELECT a FROM t2
   18229       WHERE a=24
   18230          OR b=927
   18231          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18232          OR a=7
   18233          OR b=462
   18234          OR b=608
   18235          OR b=781
   18236          OR b=253
   18237          OR c=25025
   18238          OR b=132
   18239   }
   18240 } {7 12 23 24 42 52 71 73 74 75 scan 0 sort 0}
   18241 do_test where7-2.783.2 {
   18242   count_steps_sort {
   18243      SELECT a FROM t3
   18244       WHERE a=24
   18245          OR b=927
   18246          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18247          OR a=7
   18248          OR b=462
   18249          OR b=608
   18250          OR b=781
   18251          OR b=253
   18252          OR c=25025
   18253          OR b=132
   18254   }
   18255 } {7 12 23 24 42 52 71 73 74 75 scan 0 sort 0}
   18256 do_test where7-2.784.1 {
   18257   count_steps_sort {
   18258      SELECT a FROM t2
   18259       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   18260          OR b=1001
   18261          OR ((a BETWEEN 23 AND 25) AND a!=24)
   18262          OR a=83
   18263   }
   18264 } {23 25 61 83 91 scan 0 sort 0}
   18265 do_test where7-2.784.2 {
   18266   count_steps_sort {
   18267      SELECT a FROM t3
   18268       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   18269          OR b=1001
   18270          OR ((a BETWEEN 23 AND 25) AND a!=24)
   18271          OR a=83
   18272   }
   18273 } {23 25 61 83 91 scan 0 sort 0}
   18274 do_test where7-2.785.1 {
   18275   count_steps_sort {
   18276      SELECT a FROM t2
   18277       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   18278          OR b=36
   18279          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   18280          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   18281          OR ((a BETWEEN 46 AND 48) AND a!=47)
   18282          OR ((a BETWEEN 31 AND 33) AND a!=32)
   18283          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   18284          OR (g='ihgfedc' AND f GLOB 'efghi*')
   18285          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   18286          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   18287          OR ((a BETWEEN 26 AND 28) AND a!=27)
   18288   }
   18289 } {3 26 28 29 31 33 46 48 55 60 73 77 80 81 82 91 scan 0 sort 0}
   18290 do_test where7-2.785.2 {
   18291   count_steps_sort {
   18292      SELECT a FROM t3
   18293       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   18294          OR b=36
   18295          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   18296          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   18297          OR ((a BETWEEN 46 AND 48) AND a!=47)
   18298          OR ((a BETWEEN 31 AND 33) AND a!=32)
   18299          OR (d>=91.0 AND d<92.0 AND d NOT NULL)
   18300          OR (g='ihgfedc' AND f GLOB 'efghi*')
   18301          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   18302          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   18303          OR ((a BETWEEN 26 AND 28) AND a!=27)
   18304   }
   18305 } {3 26 28 29 31 33 46 48 55 60 73 77 80 81 82 91 scan 0 sort 0}
   18306 do_test where7-2.786.1 {
   18307   count_steps_sort {
   18308      SELECT a FROM t2
   18309       WHERE a=69
   18310          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   18311          OR ((a BETWEEN 58 AND 60) AND a!=59)
   18312          OR a=98
   18313          OR b=300
   18314          OR a=41
   18315          OR ((a BETWEEN 37 AND 39) AND a!=38)
   18316          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   18317          OR a=33
   18318          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18319   }
   18320 } {1 2 10 12 28 33 37 39 41 54 58 60 69 80 98 scan 0 sort 0}
   18321 do_test where7-2.786.2 {
   18322   count_steps_sort {
   18323      SELECT a FROM t3
   18324       WHERE a=69
   18325          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   18326          OR ((a BETWEEN 58 AND 60) AND a!=59)
   18327          OR a=98
   18328          OR b=300
   18329          OR a=41
   18330          OR ((a BETWEEN 37 AND 39) AND a!=38)
   18331          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   18332          OR a=33
   18333          OR ((a BETWEEN 10 AND 12) AND a!=11)
   18334   }
   18335 } {1 2 10 12 28 33 37 39 41 54 58 60 69 80 98 scan 0 sort 0}
   18336 do_test where7-2.787.1 {
   18337   count_steps_sort {
   18338      SELECT a FROM t2
   18339       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   18340          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   18341          OR ((a BETWEEN 94 AND 96) AND a!=95)
   18342          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   18343          OR (g='gfedcba' AND f GLOB 'mnopq*')
   18344          OR ((a BETWEEN 22 AND 24) AND a!=23)
   18345          OR b=619
   18346          OR c=6006
   18347          OR b=91
   18348          OR b=297
   18349          OR b=165
   18350   }
   18351 } {1 15 16 17 18 22 24 27 53 68 70 71 79 90 94 96 scan 0 sort 0}
   18352 do_test where7-2.787.2 {
   18353   count_steps_sort {
   18354      SELECT a FROM t3
   18355       WHERE ((a BETWEEN 68 AND 70) AND a!=69)
   18356          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   18357          OR ((a BETWEEN 94 AND 96) AND a!=95)
   18358          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   18359          OR (g='gfedcba' AND f GLOB 'mnopq*')
   18360          OR ((a BETWEEN 22 AND 24) AND a!=23)
   18361          OR b=619
   18362          OR c=6006
   18363          OR b=91
   18364          OR b=297
   18365          OR b=165
   18366   }
   18367 } {1 15 16 17 18 22 24 27 53 68 70 71 79 90 94 96 scan 0 sort 0}
   18368 do_test where7-2.788.1 {
   18369   count_steps_sort {
   18370      SELECT a FROM t2
   18371       WHERE ((a BETWEEN 9 AND 11) AND a!=10)
   18372          OR a=55
   18373          OR (g='jihgfed' AND f GLOB 'xyzab*')
   18374   }
   18375 } {9 11 55 75 scan 0 sort 0}
   18376 do_test where7-2.788.2 {
   18377   count_steps_sort {
   18378      SELECT a FROM t3
   18379       WHERE ((a BETWEEN 9 AND 11) AND a!=10)
   18380          OR a=55
   18381          OR (g='jihgfed' AND f GLOB 'xyzab*')
   18382   }
   18383 } {9 11 55 75 scan 0 sort 0}
   18384 do_test where7-2.789.1 {
   18385   count_steps_sort {
   18386      SELECT a FROM t2
   18387       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   18388          OR b=737
   18389          OR b=201
   18390          OR a=7
   18391          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   18392          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   18393          OR b=957
   18394   }
   18395 } {2 7 26 67 84 86 87 scan 0 sort 0}
   18396 do_test where7-2.789.2 {
   18397   count_steps_sort {
   18398      SELECT a FROM t3
   18399       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   18400          OR b=737
   18401          OR b=201
   18402          OR a=7
   18403          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   18404          OR (g='yxwvuts' AND f GLOB 'cdefg*')
   18405          OR b=957
   18406   }
   18407 } {2 7 26 67 84 86 87 scan 0 sort 0}
   18408 do_test where7-2.790.1 {
   18409   count_steps_sort {
   18410      SELECT a FROM t2
   18411       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   18412          OR a=74
   18413          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   18414          OR ((a BETWEEN 95 AND 97) AND a!=96)
   18415          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   18416          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   18417          OR a=89
   18418   }
   18419 } {18 44 67 70 74 79 89 90 92 95 96 97 scan 0 sort 0}
   18420 do_test where7-2.790.2 {
   18421   count_steps_sort {
   18422      SELECT a FROM t3
   18423       WHERE ((a BETWEEN 90 AND 92) AND a!=91)
   18424          OR a=74
   18425          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   18426          OR ((a BETWEEN 95 AND 97) AND a!=96)
   18427          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   18428          OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
   18429          OR a=89
   18430   }
   18431 } {18 44 67 70 74 79 89 90 92 95 96 97 scan 0 sort 0}
   18432 do_test where7-2.791.1 {
   18433   count_steps_sort {
   18434      SELECT a FROM t2
   18435       WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
   18436          OR b=179
   18437          OR b=1081
   18438          OR b=377
   18439          OR b=495
   18440          OR b=564
   18441          OR b=289
   18442          OR (g='qponmlk' AND f GLOB 'nopqr*')
   18443   }
   18444 } {39 45 scan 0 sort 0}
   18445 do_test where7-2.791.2 {
   18446   count_steps_sort {
   18447      SELECT a FROM t3
   18448       WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
   18449          OR b=179
   18450          OR b=1081
   18451          OR b=377
   18452          OR b=495
   18453          OR b=564
   18454          OR b=289
   18455          OR (g='qponmlk' AND f GLOB 'nopqr*')
   18456   }
   18457 } {39 45 scan 0 sort 0}
   18458 do_test where7-2.792.1 {
   18459   count_steps_sort {
   18460      SELECT a FROM t2
   18461       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   18462          OR a=69
   18463          OR a=12
   18464          OR b=718
   18465          OR ((a BETWEEN 20 AND 22) AND a!=21)
   18466   }
   18467 } {12 20 22 69 scan 0 sort 0}
   18468 do_test where7-2.792.2 {
   18469   count_steps_sort {
   18470      SELECT a FROM t3
   18471       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   18472          OR a=69
   18473          OR a=12
   18474          OR b=718
   18475          OR ((a BETWEEN 20 AND 22) AND a!=21)
   18476   }
   18477 } {12 20 22 69 scan 0 sort 0}
   18478 do_test where7-2.793.1 {
   18479   count_steps_sort {
   18480      SELECT a FROM t2
   18481       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   18482          OR f='klmnopqrs'
   18483          OR b=674
   18484          OR a=96
   18485          OR a=99
   18486          OR b=608
   18487          OR b=707
   18488          OR f='cdefghijk'
   18489          OR a=91
   18490          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   18491   }
   18492 } {2 10 23 25 28 36 54 62 80 88 91 96 99 scan 0 sort 0}
   18493 do_test where7-2.793.2 {
   18494   count_steps_sort {
   18495      SELECT a FROM t3
   18496       WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
   18497          OR f='klmnopqrs'
   18498          OR b=674
   18499          OR a=96
   18500          OR a=99
   18501          OR b=608
   18502          OR b=707
   18503          OR f='cdefghijk'
   18504          OR a=91
   18505          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   18506   }
   18507 } {2 10 23 25 28 36 54 62 80 88 91 96 99 scan 0 sort 0}
   18508 do_test where7-2.794.1 {
   18509   count_steps_sort {
   18510      SELECT a FROM t2
   18511       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18512          OR b=564
   18513          OR b=784
   18514          OR b=418
   18515          OR b=275
   18516          OR (g='gfedcba' AND f GLOB 'klmno*')
   18517          OR a=58
   18518          OR c=11011
   18519          OR b=660
   18520   }
   18521 } {9 25 31 32 33 35 38 58 60 61 87 88 scan 0 sort 0}
   18522 do_test where7-2.794.2 {
   18523   count_steps_sort {
   18524      SELECT a FROM t3
   18525       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18526          OR b=564
   18527          OR b=784
   18528          OR b=418
   18529          OR b=275
   18530          OR (g='gfedcba' AND f GLOB 'klmno*')
   18531          OR a=58
   18532          OR c=11011
   18533          OR b=660
   18534   }
   18535 } {9 25 31 32 33 35 38 58 60 61 87 88 scan 0 sort 0}
   18536 do_test where7-2.795.1 {
   18537   count_steps_sort {
   18538      SELECT a FROM t2
   18539       WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
   18540          OR b=509
   18541          OR b=1004
   18542          OR ((a BETWEEN 28 AND 30) AND a!=29)
   18543          OR ((a BETWEEN 57 AND 59) AND a!=58)
   18544          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   18545          OR f='pqrstuvwx'
   18546   }
   18547 } {15 25 28 30 41 57 59 67 93 scan 0 sort 0}
   18548 do_test where7-2.795.2 {
   18549   count_steps_sort {
   18550      SELECT a FROM t3
   18551       WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
   18552          OR b=509
   18553          OR b=1004
   18554          OR ((a BETWEEN 28 AND 30) AND a!=29)
   18555          OR ((a BETWEEN 57 AND 59) AND a!=58)
   18556          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   18557          OR f='pqrstuvwx'
   18558   }
   18559 } {15 25 28 30 41 57 59 67 93 scan 0 sort 0}
   18560 do_test where7-2.796.1 {
   18561   count_steps_sort {
   18562      SELECT a FROM t2
   18563       WHERE b=440
   18564          OR ((a BETWEEN 52 AND 54) AND a!=53)
   18565   }
   18566 } {40 52 54 scan 0 sort 0}
   18567 do_test where7-2.796.2 {
   18568   count_steps_sort {
   18569      SELECT a FROM t3
   18570       WHERE b=440
   18571          OR ((a BETWEEN 52 AND 54) AND a!=53)
   18572   }
   18573 } {40 52 54 scan 0 sort 0}
   18574 do_test where7-2.797.1 {
   18575   count_steps_sort {
   18576      SELECT a FROM t2
   18577       WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
   18578          OR f='abcdefghi'
   18579   }
   18580 } {26 52 78 95 scan 0 sort 0}
   18581 do_test where7-2.797.2 {
   18582   count_steps_sort {
   18583      SELECT a FROM t3
   18584       WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
   18585          OR f='abcdefghi'
   18586   }
   18587 } {26 52 78 95 scan 0 sort 0}
   18588 do_test where7-2.798.1 {
   18589   count_steps_sort {
   18590      SELECT a FROM t2
   18591       WHERE a=19
   18592          OR a=29
   18593          OR b=476
   18594          OR (g='qponmlk' AND f GLOB 'pqrst*')
   18595          OR b=91
   18596   }
   18597 } {19 29 41 scan 0 sort 0}
   18598 do_test where7-2.798.2 {
   18599   count_steps_sort {
   18600      SELECT a FROM t3
   18601       WHERE a=19
   18602          OR a=29
   18603          OR b=476
   18604          OR (g='qponmlk' AND f GLOB 'pqrst*')
   18605          OR b=91
   18606   }
   18607 } {19 29 41 scan 0 sort 0}
   18608 do_test where7-2.799.1 {
   18609   count_steps_sort {
   18610      SELECT a FROM t2
   18611       WHERE f='lmnopqrst'
   18612          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   18613          OR a=47
   18614          OR a=71
   18615   }
   18616 } {8 11 37 47 63 71 89 scan 0 sort 0}
   18617 do_test where7-2.799.2 {
   18618   count_steps_sort {
   18619      SELECT a FROM t3
   18620       WHERE f='lmnopqrst'
   18621          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   18622          OR a=47
   18623          OR a=71
   18624   }
   18625 } {8 11 37 47 63 71 89 scan 0 sort 0}
   18626 do_test where7-2.800.1 {
   18627   count_steps_sort {
   18628      SELECT a FROM t2
   18629       WHERE b=531
   18630          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   18631          OR ((a BETWEEN 95 AND 97) AND a!=96)
   18632          OR ((a BETWEEN 32 AND 34) AND a!=33)
   18633          OR b=44
   18634          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   18635          OR (g='onmlkji' AND f GLOB 'xyzab*')
   18636          OR b=707
   18637          OR b=322
   18638   }
   18639 } {4 12 32 34 49 84 95 97 scan 0 sort 0}
   18640 do_test where7-2.800.2 {
   18641   count_steps_sort {
   18642      SELECT a FROM t3
   18643       WHERE b=531
   18644          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   18645          OR ((a BETWEEN 95 AND 97) AND a!=96)
   18646          OR ((a BETWEEN 32 AND 34) AND a!=33)
   18647          OR b=44
   18648          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   18649          OR (g='onmlkji' AND f GLOB 'xyzab*')
   18650          OR b=707
   18651          OR b=322
   18652   }
   18653 } {4 12 32 34 49 84 95 97 scan 0 sort 0}
   18654 do_test where7-2.801.1 {
   18655   count_steps_sort {
   18656      SELECT a FROM t2
   18657       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   18658          OR (g='ihgfedc' AND f GLOB 'efghi*')
   18659          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   18660          OR f='jklmnopqr'
   18661   }
   18662 } {3 9 29 35 55 61 81 82 87 89 scan 0 sort 0}
   18663 do_test where7-2.801.2 {
   18664   count_steps_sort {
   18665      SELECT a FROM t3
   18666       WHERE (f GLOB '?efgh*' AND f GLOB 'defg*')
   18667          OR (g='ihgfedc' AND f GLOB 'efghi*')
   18668          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   18669          OR f='jklmnopqr'
   18670   }
   18671 } {3 9 29 35 55 61 81 82 87 89 scan 0 sort 0}
   18672 do_test where7-2.802.1 {
   18673   count_steps_sort {
   18674      SELECT a FROM t2
   18675       WHERE b=946
   18676          OR (g='ihgfedc' AND f GLOB 'abcde*')
   18677          OR a=47
   18678          OR (g='qponmlk' AND f GLOB 'qrstu*')
   18679          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   18680          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   18681          OR b=80
   18682          OR ((a BETWEEN 60 AND 62) AND a!=61)
   18683          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   18684   }
   18685 } {8 23 42 47 60 62 78 86 93 scan 0 sort 0}
   18686 do_test where7-2.802.2 {
   18687   count_steps_sort {
   18688      SELECT a FROM t3
   18689       WHERE b=946
   18690          OR (g='ihgfedc' AND f GLOB 'abcde*')
   18691          OR a=47
   18692          OR (g='qponmlk' AND f GLOB 'qrstu*')
   18693          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   18694          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   18695          OR b=80
   18696          OR ((a BETWEEN 60 AND 62) AND a!=61)
   18697          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   18698   }
   18699 } {8 23 42 47 60 62 78 86 93 scan 0 sort 0}
   18700 do_test where7-2.803.1 {
   18701   count_steps_sort {
   18702      SELECT a FROM t2
   18703       WHERE a=48
   18704          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   18705          OR b=1015
   18706          OR a=57
   18707          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18708          OR ((a BETWEEN 47 AND 49) AND a!=48)
   18709          OR ((a BETWEEN 98 AND 100) AND a!=99)
   18710          OR (g='onmlkji' AND f GLOB 'yzabc*')
   18711          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   18712          OR b=165
   18713   }
   18714 } {4 9 15 35 47 48 49 50 55 57 61 87 98 100 scan 0 sort 0}
   18715 do_test where7-2.803.2 {
   18716   count_steps_sort {
   18717      SELECT a FROM t3
   18718       WHERE a=48
   18719          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   18720          OR b=1015
   18721          OR a=57
   18722          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18723          OR ((a BETWEEN 47 AND 49) AND a!=48)
   18724          OR ((a BETWEEN 98 AND 100) AND a!=99)
   18725          OR (g='onmlkji' AND f GLOB 'yzabc*')
   18726          OR (d>=4.0 AND d<5.0 AND d NOT NULL)
   18727          OR b=165
   18728   }
   18729 } {4 9 15 35 47 48 49 50 55 57 61 87 98 100 scan 0 sort 0}
   18730 do_test where7-2.804.1 {
   18731   count_steps_sort {
   18732      SELECT a FROM t2
   18733       WHERE ((a BETWEEN 97 AND 99) AND a!=98)
   18734          OR a=73
   18735          OR b=1048
   18736          OR c>=34035
   18737          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   18738          OR a=72
   18739          OR ((a BETWEEN 91 AND 93) AND a!=92)
   18740          OR b=638
   18741   }
   18742 } {58 72 73 80 91 93 97 99 scan 0 sort 0}
   18743 do_test where7-2.804.2 {
   18744   count_steps_sort {
   18745      SELECT a FROM t3
   18746       WHERE ((a BETWEEN 97 AND 99) AND a!=98)
   18747          OR a=73
   18748          OR b=1048
   18749          OR c>=34035
   18750          OR (g='ihgfedc' AND f GLOB 'cdefg*')
   18751          OR a=72
   18752          OR ((a BETWEEN 91 AND 93) AND a!=92)
   18753          OR b=638
   18754   }
   18755 } {58 72 73 80 91 93 97 99 scan 0 sort 0}
   18756 do_test where7-2.805.1 {
   18757   count_steps_sort {
   18758      SELECT a FROM t2
   18759       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   18760          OR a=39
   18761          OR b=165
   18762   }
   18763 } {15 28 30 39 scan 0 sort 0}
   18764 do_test where7-2.805.2 {
   18765   count_steps_sort {
   18766      SELECT a FROM t3
   18767       WHERE ((a BETWEEN 28 AND 30) AND a!=29)
   18768          OR a=39
   18769          OR b=165
   18770   }
   18771 } {15 28 30 39 scan 0 sort 0}
   18772 do_test where7-2.806.1 {
   18773   count_steps_sort {
   18774      SELECT a FROM t2
   18775       WHERE a=50
   18776          OR ((a BETWEEN 61 AND 63) AND a!=62)
   18777          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   18778          OR a=32
   18779          OR ((a BETWEEN 93 AND 95) AND a!=94)
   18780          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   18781          OR a=14
   18782          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   18783          OR b=946
   18784          OR ((a BETWEEN 53 AND 55) AND a!=54)
   18785          OR b=124
   18786   }
   18787 } {14 17 32 43 45 50 53 55 61 63 69 86 93 95 97 scan 0 sort 0}
   18788 do_test where7-2.806.2 {
   18789   count_steps_sort {
   18790      SELECT a FROM t3
   18791       WHERE a=50
   18792          OR ((a BETWEEN 61 AND 63) AND a!=62)
   18793          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   18794          OR a=32
   18795          OR ((a BETWEEN 93 AND 95) AND a!=94)
   18796          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   18797          OR a=14
   18798          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   18799          OR b=946
   18800          OR ((a BETWEEN 53 AND 55) AND a!=54)
   18801          OR b=124
   18802   }
   18803 } {14 17 32 43 45 50 53 55 61 63 69 86 93 95 97 scan 0 sort 0}
   18804 do_test where7-2.807.1 {
   18805   count_steps_sort {
   18806      SELECT a FROM t2
   18807       WHERE ((a BETWEEN 88 AND 90) AND a!=89)
   18808          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18809          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   18810          OR (g='gfedcba' AND f GLOB 'klmno*')
   18811   }
   18812 } {52 66 88 90 scan 0 sort 0}
   18813 do_test where7-2.807.2 {
   18814   count_steps_sort {
   18815      SELECT a FROM t3
   18816       WHERE ((a BETWEEN 88 AND 90) AND a!=89)
   18817          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   18818          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   18819          OR (g='gfedcba' AND f GLOB 'klmno*')
   18820   }
   18821 } {52 66 88 90 scan 0 sort 0}
   18822 do_test where7-2.808.1 {
   18823   count_steps_sort {
   18824      SELECT a FROM t2
   18825       WHERE a=6
   18826          OR f='tuvwxyzab'
   18827          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   18828          OR b=286
   18829          OR b=781
   18830   }
   18831 } {6 19 26 45 59 71 97 scan 0 sort 0}
   18832 do_test where7-2.808.2 {
   18833   count_steps_sort {
   18834      SELECT a FROM t3
   18835       WHERE a=6
   18836          OR f='tuvwxyzab'
   18837          OR (g='mlkjihg' AND f GLOB 'hijkl*')
   18838          OR b=286
   18839          OR b=781
   18840   }
   18841 } {6 19 26 45 59 71 97 scan 0 sort 0}
   18842 do_test where7-2.809.1 {
   18843   count_steps_sort {
   18844      SELECT a FROM t2
   18845       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   18846          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   18847          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   18848          OR ((a BETWEEN 79 AND 81) AND a!=80)
   18849          OR (g='edcbazy' AND f GLOB 'wxyza*')
   18850          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18851          OR f='vwxyzabcd'
   18852          OR b=275
   18853   }
   18854 } {9 11 21 25 35 37 43 47 61 63 73 77 79 81 87 89 99 100 scan 0 sort 0}
   18855 do_test where7-2.809.2 {
   18856   count_steps_sort {
   18857      SELECT a FROM t3
   18858       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   18859          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   18860          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   18861          OR ((a BETWEEN 79 AND 81) AND a!=80)
   18862          OR (g='edcbazy' AND f GLOB 'wxyza*')
   18863          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   18864          OR f='vwxyzabcd'
   18865          OR b=275
   18866   }
   18867 } {9 11 21 25 35 37 43 47 61 63 73 77 79 81 87 89 99 100 scan 0 sort 0}
   18868 do_test where7-2.810.1 {
   18869   count_steps_sort {
   18870      SELECT a FROM t2
   18871       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
   18872          OR (g='xwvutsr' AND f GLOB 'efghi*')
   18873          OR (g='gfedcba' AND f GLOB 'lmnop*')
   18874          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   18875          OR (g='gfedcba' AND f GLOB 'nopqr*')
   18876          OR a=59
   18877   }
   18878 } {4 30 59 64 89 91 scan 0 sort 0}
   18879 do_test where7-2.810.2 {
   18880   count_steps_sort {
   18881      SELECT a FROM t3
   18882       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
   18883          OR (g='xwvutsr' AND f GLOB 'efghi*')
   18884          OR (g='gfedcba' AND f GLOB 'lmnop*')
   18885          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   18886          OR (g='gfedcba' AND f GLOB 'nopqr*')
   18887          OR a=59
   18888   }
   18889 } {4 30 59 64 89 91 scan 0 sort 0}
   18890 do_test where7-2.811.1 {
   18891   count_steps_sort {
   18892      SELECT a FROM t2
   18893       WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   18894          OR ((a BETWEEN 8 AND 10) AND a!=9)
   18895          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   18896          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   18897          OR b=663
   18898          OR f='ghijklmno'
   18899          OR ((a BETWEEN 14 AND 16) AND a!=15)
   18900          OR f='ghijklmno'
   18901          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   18902          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   18903          OR b=1081
   18904   }
   18905 } {6 8 10 14 16 19 22 32 48 58 64 71 74 84 99 100 scan 0 sort 0}
   18906 do_test where7-2.811.2 {
   18907   count_steps_sort {
   18908      SELECT a FROM t3
   18909       WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   18910          OR ((a BETWEEN 8 AND 10) AND a!=9)
   18911          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   18912          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   18913          OR b=663
   18914          OR f='ghijklmno'
   18915          OR ((a BETWEEN 14 AND 16) AND a!=15)
   18916          OR f='ghijklmno'
   18917          OR (d>=64.0 AND d<65.0 AND d NOT NULL)
   18918          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   18919          OR b=1081
   18920   }
   18921 } {6 8 10 14 16 19 22 32 48 58 64 71 74 84 99 100 scan 0 sort 0}
   18922 do_test where7-2.812.1 {
   18923   count_steps_sort {
   18924      SELECT a FROM t2
   18925       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   18926          OR a=96
   18927          OR b=355
   18928          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   18929          OR b=597
   18930          OR ((a BETWEEN 92 AND 94) AND a!=93)
   18931          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   18932          OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
   18933          OR b=168
   18934          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   18935   }
   18936 } {10 15 30 32 36 62 81 88 92 94 96 scan 0 sort 0}
   18937 do_test where7-2.812.2 {
   18938   count_steps_sort {
   18939      SELECT a FROM t3
   18940       WHERE ((a BETWEEN 30 AND 32) AND a!=31)
   18941          OR a=96
   18942          OR b=355
   18943          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   18944          OR b=597
   18945          OR ((a BETWEEN 92 AND 94) AND a!=93)
   18946          OR (d>=88.0 AND d<89.0 AND d NOT NULL)
   18947          OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
   18948          OR b=168
   18949          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   18950   }
   18951 } {10 15 30 32 36 62 81 88 92 94 96 scan 0 sort 0}
   18952 do_test where7-2.813.1 {
   18953   count_steps_sort {
   18954      SELECT a FROM t2
   18955       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   18956          OR b=957
   18957          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   18958          OR ((a BETWEEN 87 AND 89) AND a!=88)
   18959          OR ((a BETWEEN 58 AND 60) AND a!=59)
   18960          OR a=40
   18961   }
   18962 } {9 40 47 58 60 87 89 scan 0 sort 0}
   18963 do_test where7-2.813.2 {
   18964   count_steps_sort {
   18965      SELECT a FROM t3
   18966       WHERE (d>=47.0 AND d<48.0 AND d NOT NULL)
   18967          OR b=957
   18968          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   18969          OR ((a BETWEEN 87 AND 89) AND a!=88)
   18970          OR ((a BETWEEN 58 AND 60) AND a!=59)
   18971          OR a=40
   18972   }
   18973 } {9 40 47 58 60 87 89 scan 0 sort 0}
   18974 do_test where7-2.814.1 {
   18975   count_steps_sort {
   18976      SELECT a FROM t2
   18977       WHERE ((a BETWEEN 12 AND 14) AND a!=13)
   18978          OR a=36
   18979          OR a=75
   18980          OR b=179
   18981          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   18982          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   18983          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   18984          OR b=850
   18985          OR a=62
   18986   }
   18987 } {12 14 18 36 43 62 65 75 scan 0 sort 0}
   18988 do_test where7-2.814.2 {
   18989   count_steps_sort {
   18990      SELECT a FROM t3
   18991       WHERE ((a BETWEEN 12 AND 14) AND a!=13)
   18992          OR a=36
   18993          OR a=75
   18994          OR b=179
   18995          OR (d>=43.0 AND d<44.0 AND d NOT NULL)
   18996          OR (g='utsrqpo' AND f GLOB 'stuvw*')
   18997          OR (d>=65.0 AND d<66.0 AND d NOT NULL)
   18998          OR b=850
   18999          OR a=62
   19000   }
   19001 } {12 14 18 36 43 62 65 75 scan 0 sort 0}
   19002 do_test where7-2.815.1 {
   19003   count_steps_sort {
   19004      SELECT a FROM t2
   19005       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   19006          OR a=79
   19007          OR a=66
   19008          OR b=487
   19009          OR a=1
   19010          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   19011          OR c=5005
   19012          OR a=47
   19013          OR c=5005
   19014          OR b=319
   19015          OR b=1037
   19016   }
   19017 } {1 13 14 15 21 23 29 47 54 66 79 scan 0 sort 0}
   19018 do_test where7-2.815.2 {
   19019   count_steps_sort {
   19020      SELECT a FROM t3
   19021       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   19022          OR a=79
   19023          OR a=66
   19024          OR b=487
   19025          OR a=1
   19026          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   19027          OR c=5005
   19028          OR a=47
   19029          OR c=5005
   19030          OR b=319
   19031          OR b=1037
   19032   }
   19033 } {1 13 14 15 21 23 29 47 54 66 79 scan 0 sort 0}
   19034 do_test where7-2.816.1 {
   19035   count_steps_sort {
   19036      SELECT a FROM t2
   19037       WHERE b=176
   19038          OR b=297
   19039          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   19040          OR f='ijklmnopq'
   19041   }
   19042 } {8 16 25 27 34 60 86 scan 0 sort 0}
   19043 do_test where7-2.816.2 {
   19044   count_steps_sort {
   19045      SELECT a FROM t3
   19046       WHERE b=176
   19047          OR b=297
   19048          OR (g='tsrqpon' AND f GLOB 'zabcd*')
   19049          OR f='ijklmnopq'
   19050   }
   19051 } {8 16 25 27 34 60 86 scan 0 sort 0}
   19052 do_test where7-2.817.1 {
   19053   count_steps_sort {
   19054      SELECT a FROM t2
   19055       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   19056          OR ((a BETWEEN 90 AND 92) AND a!=91)
   19057          OR b=319
   19058          OR ((a BETWEEN 31 AND 33) AND a!=32)
   19059          OR ((a BETWEEN 9 AND 11) AND a!=10)
   19060          OR a=21
   19061          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   19062   }
   19063 } {9 10 11 21 29 31 33 72 90 92 scan 0 sort 0}
   19064 do_test where7-2.817.2 {
   19065   count_steps_sort {
   19066      SELECT a FROM t3
   19067       WHERE (d>=10.0 AND d<11.0 AND d NOT NULL)
   19068          OR ((a BETWEEN 90 AND 92) AND a!=91)
   19069          OR b=319
   19070          OR ((a BETWEEN 31 AND 33) AND a!=32)
   19071          OR ((a BETWEEN 9 AND 11) AND a!=10)
   19072          OR a=21
   19073          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   19074   }
   19075 } {9 10 11 21 29 31 33 72 90 92 scan 0 sort 0}
   19076 do_test where7-2.818.1 {
   19077   count_steps_sort {
   19078      SELECT a FROM t2
   19079       WHERE (d>=22.0 AND d<23.0 AND d NOT NULL)
   19080          OR b=396
   19081          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19082          OR b=1012
   19083          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   19084          OR b=784
   19085          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   19086          OR b=979
   19087          OR c<=10
   19088          OR b=913
   19089          OR b=66
   19090   }
   19091 } {6 9 22 35 36 60 61 72 83 87 89 92 scan 0 sort 0}
   19092 do_test where7-2.818.2 {
   19093   count_steps_sort {
   19094      SELECT a FROM t3
   19095       WHERE (d>=22.0 AND d<23.0 AND d NOT NULL)
   19096          OR b=396
   19097          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19098          OR b=1012
   19099          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   19100          OR b=784
   19101          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   19102          OR b=979
   19103          OR c<=10
   19104          OR b=913
   19105          OR b=66
   19106   }
   19107 } {6 9 22 35 36 60 61 72 83 87 89 92 scan 0 sort 0}
   19108 do_test where7-2.819.1 {
   19109   count_steps_sort {
   19110      SELECT a FROM t2
   19111       WHERE a=3
   19112          OR b=803
   19113   }
   19114 } {3 73 scan 0 sort 0}
   19115 do_test where7-2.819.2 {
   19116   count_steps_sort {
   19117      SELECT a FROM t3
   19118       WHERE a=3
   19119          OR b=803
   19120   }
   19121 } {3 73 scan 0 sort 0}
   19122 do_test where7-2.820.1 {
   19123   count_steps_sort {
   19124      SELECT a FROM t2
   19125       WHERE ((a BETWEEN 79 AND 81) AND a!=80)
   19126          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   19127          OR ((a BETWEEN 23 AND 25) AND a!=24)
   19128          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   19129   }
   19130 } {16 19 23 25 42 45 68 71 79 81 94 97 scan 0 sort 0}
   19131 do_test where7-2.820.2 {
   19132   count_steps_sort {
   19133      SELECT a FROM t3
   19134       WHERE ((a BETWEEN 79 AND 81) AND a!=80)
   19135          OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
   19136          OR ((a BETWEEN 23 AND 25) AND a!=24)
   19137          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   19138   }
   19139 } {16 19 23 25 42 45 68 71 79 81 94 97 scan 0 sort 0}
   19140 do_test where7-2.821.1 {
   19141   count_steps_sort {
   19142      SELECT a FROM t2
   19143       WHERE c=1001
   19144          OR a=16
   19145          OR b=132
   19146          OR b=1012
   19147          OR f='xyzabcdef'
   19148          OR b=682
   19149          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   19150   }
   19151 } {1 2 3 12 16 23 49 52 62 75 92 scan 0 sort 0}
   19152 do_test where7-2.821.2 {
   19153   count_steps_sort {
   19154      SELECT a FROM t3
   19155       WHERE c=1001
   19156          OR a=16
   19157          OR b=132
   19158          OR b=1012
   19159          OR f='xyzabcdef'
   19160          OR b=682
   19161          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   19162   }
   19163 } {1 2 3 12 16 23 49 52 62 75 92 scan 0 sort 0}
   19164 do_test where7-2.822.1 {
   19165   count_steps_sort {
   19166      SELECT a FROM t2
   19167       WHERE a=96
   19168          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   19169   }
   19170 } {19 96 scan 0 sort 0}
   19171 do_test where7-2.822.2 {
   19172   count_steps_sort {
   19173      SELECT a FROM t3
   19174       WHERE a=96
   19175          OR (d>=19.0 AND d<20.0 AND d NOT NULL)
   19176   }
   19177 } {19 96 scan 0 sort 0}
   19178 do_test where7-2.823.1 {
   19179   count_steps_sort {
   19180      SELECT a FROM t2
   19181       WHERE a=2
   19182          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   19183          OR a=23
   19184          OR b=1092
   19185          OR c=19019
   19186          OR b=245
   19187          OR ((a BETWEEN 97 AND 99) AND a!=98)
   19188          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19189          OR ((a BETWEEN 68 AND 70) AND a!=69)
   19190          OR b=572
   19191          OR ((a BETWEEN 22 AND 24) AND a!=23)
   19192   }
   19193 } {2 11 12 22 23 24 38 52 55 56 57 64 68 70 90 97 99 scan 0 sort 0}
   19194 do_test where7-2.823.2 {
   19195   count_steps_sort {
   19196      SELECT a FROM t3
   19197       WHERE a=2
   19198          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   19199          OR a=23
   19200          OR b=1092
   19201          OR c=19019
   19202          OR b=245
   19203          OR ((a BETWEEN 97 AND 99) AND a!=98)
   19204          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19205          OR ((a BETWEEN 68 AND 70) AND a!=69)
   19206          OR b=572
   19207          OR ((a BETWEEN 22 AND 24) AND a!=23)
   19208   }
   19209 } {2 11 12 22 23 24 38 52 55 56 57 64 68 70 90 97 99 scan 0 sort 0}
   19210 do_test where7-2.824.1 {
   19211   count_steps_sort {
   19212      SELECT a FROM t2
   19213       WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
   19214          OR b=993
   19215          OR c=17017
   19216          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19217          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   19218          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   19219          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   19220          OR b=333
   19221   }
   19222 } {16 29 37 49 50 51 53 85 scan 0 sort 0}
   19223 do_test where7-2.824.2 {
   19224   count_steps_sort {
   19225      SELECT a FROM t3
   19226       WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
   19227          OR b=993
   19228          OR c=17017
   19229          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19230          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   19231          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   19232          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   19233          OR b=333
   19234   }
   19235 } {16 29 37 49 50 51 53 85 scan 0 sort 0}
   19236 do_test where7-2.825.1 {
   19237   count_steps_sort {
   19238      SELECT a FROM t2
   19239       WHERE b=330
   19240          OR a=73
   19241          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   19242          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   19243          OR b=828
   19244          OR b=363
   19245          OR (g='rqponml' AND f GLOB 'lmnop*')
   19246   }
   19247 } {30 33 37 40 61 73 scan 0 sort 0}
   19248 do_test where7-2.825.2 {
   19249   count_steps_sort {
   19250      SELECT a FROM t3
   19251       WHERE b=330
   19252          OR a=73
   19253          OR (d>=61.0 AND d<62.0 AND d NOT NULL)
   19254          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   19255          OR b=828
   19256          OR b=363
   19257          OR (g='rqponml' AND f GLOB 'lmnop*')
   19258   }
   19259 } {30 33 37 40 61 73 scan 0 sort 0}
   19260 do_test where7-2.826.1 {
   19261   count_steps_sort {
   19262      SELECT a FROM t2
   19263       WHERE (g='gfedcba' AND f GLOB 'lmnop*')
   19264          OR a=41
   19265          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   19266          OR b=825
   19267   }
   19268 } {29 41 75 89 scan 0 sort 0}
   19269 do_test where7-2.826.2 {
   19270   count_steps_sort {
   19271      SELECT a FROM t3
   19272       WHERE (g='gfedcba' AND f GLOB 'lmnop*')
   19273          OR a=41
   19274          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   19275          OR b=825
   19276   }
   19277 } {29 41 75 89 scan 0 sort 0}
   19278 do_test where7-2.827.1 {
   19279   count_steps_sort {
   19280      SELECT a FROM t2
   19281       WHERE ((a BETWEEN 46 AND 48) AND a!=47)
   19282          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   19283          OR b=905
   19284          OR b=176
   19285          OR ((a BETWEEN 89 AND 91) AND a!=90)
   19286          OR b=561
   19287          OR c=8008
   19288          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   19289          OR b=935
   19290          OR c=1001
   19291   }
   19292 } {1 2 3 10 16 22 23 24 46 48 51 84 85 89 91 scan 0 sort 0}
   19293 do_test where7-2.827.2 {
   19294   count_steps_sort {
   19295      SELECT a FROM t3
   19296       WHERE ((a BETWEEN 46 AND 48) AND a!=47)
   19297          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   19298          OR b=905
   19299          OR b=176
   19300          OR ((a BETWEEN 89 AND 91) AND a!=90)
   19301          OR b=561
   19302          OR c=8008
   19303          OR (g='hgfedcb' AND f GLOB 'ghijk*')
   19304          OR b=935
   19305          OR c=1001
   19306   }
   19307 } {1 2 3 10 16 22 23 24 46 48 51 84 85 89 91 scan 0 sort 0}
   19308 do_test where7-2.828.1 {
   19309   count_steps_sort {
   19310      SELECT a FROM t2
   19311       WHERE ((a BETWEEN 75 AND 77) AND a!=76)
   19312          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19313   }
   19314 } {72 75 77 scan 0 sort 0}
   19315 do_test where7-2.828.2 {
   19316   count_steps_sort {
   19317      SELECT a FROM t3
   19318       WHERE ((a BETWEEN 75 AND 77) AND a!=76)
   19319          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19320   }
   19321 } {72 75 77 scan 0 sort 0}
   19322 do_test where7-2.829.1 {
   19323   count_steps_sort {
   19324      SELECT a FROM t2
   19325       WHERE ((a BETWEEN 5 AND 7) AND a!=6)
   19326          OR a=28
   19327   }
   19328 } {5 7 28 scan 0 sort 0}
   19329 do_test where7-2.829.2 {
   19330   count_steps_sort {
   19331      SELECT a FROM t3
   19332       WHERE ((a BETWEEN 5 AND 7) AND a!=6)
   19333          OR a=28
   19334   }
   19335 } {5 7 28 scan 0 sort 0}
   19336 do_test where7-2.830.1 {
   19337   count_steps_sort {
   19338      SELECT a FROM t2
   19339       WHERE b=781
   19340          OR b=410
   19341   }
   19342 } {71 scan 0 sort 0}
   19343 do_test where7-2.830.2 {
   19344   count_steps_sort {
   19345      SELECT a FROM t3
   19346       WHERE b=781
   19347          OR b=410
   19348   }
   19349 } {71 scan 0 sort 0}
   19350 do_test where7-2.831.1 {
   19351   count_steps_sort {
   19352      SELECT a FROM t2
   19353       WHERE ((a BETWEEN 18 AND 20) AND a!=19)
   19354          OR ((a BETWEEN 40 AND 42) AND a!=41)
   19355          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   19356          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   19357          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19358          OR f='zabcdefgh'
   19359          OR b=861
   19360          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   19361          OR a=28
   19362          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   19363          OR b=311
   19364   }
   19365 } {6 15 18 20 25 28 32 40 42 51 56 58 63 72 77 84 scan 0 sort 0}
   19366 do_test where7-2.831.2 {
   19367   count_steps_sort {
   19368      SELECT a FROM t3
   19369       WHERE ((a BETWEEN 18 AND 20) AND a!=19)
   19370          OR ((a BETWEEN 40 AND 42) AND a!=41)
   19371          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   19372          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   19373          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19374          OR f='zabcdefgh'
   19375          OR b=861
   19376          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   19377          OR a=28
   19378          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   19379          OR b=311
   19380   }
   19381 } {6 15 18 20 25 28 32 40 42 51 56 58 63 72 77 84 scan 0 sort 0}
   19382 do_test where7-2.832.1 {
   19383   count_steps_sort {
   19384      SELECT a FROM t2
   19385       WHERE b=575
   19386          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19387          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   19388          OR b=418
   19389          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   19390          OR b=792
   19391          OR b=861
   19392          OR b=220
   19393          OR ((a BETWEEN 89 AND 91) AND a!=90)
   19394   }
   19395 } {12 15 20 38 41 64 67 72 73 89 90 91 93 scan 0 sort 0}
   19396 do_test where7-2.832.2 {
   19397   count_steps_sort {
   19398      SELECT a FROM t3
   19399       WHERE b=575
   19400          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19401          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   19402          OR b=418
   19403          OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
   19404          OR b=792
   19405          OR b=861
   19406          OR b=220
   19407          OR ((a BETWEEN 89 AND 91) AND a!=90)
   19408   }
   19409 } {12 15 20 38 41 64 67 72 73 89 90 91 93 scan 0 sort 0}
   19410 do_test where7-2.833.1 {
   19411   count_steps_sort {
   19412      SELECT a FROM t2
   19413       WHERE b=517
   19414          OR b=913
   19415          OR b=253
   19416          OR b=198
   19417          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   19418          OR a=17
   19419          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19420   }
   19421 } {17 18 23 27 47 83 85 scan 0 sort 0}
   19422 do_test where7-2.833.2 {
   19423   count_steps_sort {
   19424      SELECT a FROM t3
   19425       WHERE b=517
   19426          OR b=913
   19427          OR b=253
   19428          OR b=198
   19429          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   19430          OR a=17
   19431          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19432   }
   19433 } {17 18 23 27 47 83 85 scan 0 sort 0}
   19434 do_test where7-2.834.1 {
   19435   count_steps_sort {
   19436      SELECT a FROM t2
   19437       WHERE (g='qponmlk' AND f GLOB 'qrstu*')
   19438          OR b=693
   19439          OR a=73
   19440          OR b=627
   19441          OR c=5005
   19442          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   19443          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   19444          OR b=267
   19445          OR b=872
   19446          OR a=27
   19447          OR (g='gfedcba' AND f GLOB 'klmno*')
   19448   }
   19449 } {13 14 15 27 28 42 57 62 63 73 88 scan 0 sort 0}
   19450 do_test where7-2.834.2 {
   19451   count_steps_sort {
   19452      SELECT a FROM t3
   19453       WHERE (g='qponmlk' AND f GLOB 'qrstu*')
   19454          OR b=693
   19455          OR a=73
   19456          OR b=627
   19457          OR c=5005
   19458          OR (d>=62.0 AND d<63.0 AND d NOT NULL)
   19459          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   19460          OR b=267
   19461          OR b=872
   19462          OR a=27
   19463          OR (g='gfedcba' AND f GLOB 'klmno*')
   19464   }
   19465 } {13 14 15 27 28 42 57 62 63 73 88 scan 0 sort 0}
   19466 do_test where7-2.835.1 {
   19467   count_steps_sort {
   19468      SELECT a FROM t2
   19469       WHERE a=10
   19470          OR ((a BETWEEN 95 AND 97) AND a!=96)
   19471          OR ((a BETWEEN 13 AND 15) AND a!=14)
   19472          OR b=1059
   19473          OR a=70
   19474          OR a=93
   19475   }
   19476 } {10 13 15 70 93 95 97 scan 0 sort 0}
   19477 do_test where7-2.835.2 {
   19478   count_steps_sort {
   19479      SELECT a FROM t3
   19480       WHERE a=10
   19481          OR ((a BETWEEN 95 AND 97) AND a!=96)
   19482          OR ((a BETWEEN 13 AND 15) AND a!=14)
   19483          OR b=1059
   19484          OR a=70
   19485          OR a=93
   19486   }
   19487 } {10 13 15 70 93 95 97 scan 0 sort 0}
   19488 do_test where7-2.836.1 {
   19489   count_steps_sort {
   19490      SELECT a FROM t2
   19491       WHERE a=30
   19492          OR a=32
   19493          OR b=1037
   19494          OR b=198
   19495          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   19496          OR a=25
   19497   }
   19498 } {13 18 25 30 32 scan 0 sort 0}
   19499 do_test where7-2.836.2 {
   19500   count_steps_sort {
   19501      SELECT a FROM t3
   19502       WHERE a=30
   19503          OR a=32
   19504          OR b=1037
   19505          OR b=198
   19506          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   19507          OR a=25
   19508   }
   19509 } {13 18 25 30 32 scan 0 sort 0}
   19510 do_test where7-2.837.1 {
   19511   count_steps_sort {
   19512      SELECT a FROM t2
   19513       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   19514          OR b=66
   19515          OR b=322
   19516          OR b=465
   19517          OR (g='gfedcba' AND f GLOB 'lmnop*')
   19518          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   19519          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   19520          OR ((a BETWEEN 77 AND 79) AND a!=78)
   19521          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   19522          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   19523          OR b=454
   19524   }
   19525 } {6 7 38 46 64 77 79 89 scan 0 sort 0}
   19526 do_test where7-2.837.2 {
   19527   count_steps_sort {
   19528      SELECT a FROM t3
   19529       WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
   19530          OR b=66
   19531          OR b=322
   19532          OR b=465
   19533          OR (g='gfedcba' AND f GLOB 'lmnop*')
   19534          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   19535          OR (d>=7.0 AND d<8.0 AND d NOT NULL)
   19536          OR ((a BETWEEN 77 AND 79) AND a!=78)
   19537          OR (g='lkjihgf' AND f GLOB 'mnopq*')
   19538          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   19539          OR b=454
   19540   }
   19541 } {6 7 38 46 64 77 79 89 scan 0 sort 0}
   19542 do_test where7-2.838.1 {
   19543   count_steps_sort {
   19544      SELECT a FROM t2
   19545       WHERE b=924
   19546          OR ((a BETWEEN 35 AND 37) AND a!=36)
   19547          OR c=15015
   19548          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   19549          OR ((a BETWEEN 3 AND 5) AND a!=4)
   19550          OR (g='onmlkji' AND f GLOB 'abcde*')
   19551          OR b=803
   19552   }
   19553 } {3 5 35 37 43 44 45 52 73 84 scan 0 sort 0}
   19554 do_test where7-2.838.2 {
   19555   count_steps_sort {
   19556      SELECT a FROM t3
   19557       WHERE b=924
   19558          OR ((a BETWEEN 35 AND 37) AND a!=36)
   19559          OR c=15015
   19560          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   19561          OR ((a BETWEEN 3 AND 5) AND a!=4)
   19562          OR (g='onmlkji' AND f GLOB 'abcde*')
   19563          OR b=803
   19564   }
   19565 } {3 5 35 37 43 44 45 52 73 84 scan 0 sort 0}
   19566 do_test where7-2.839.1 {
   19567   count_steps_sort {
   19568      SELECT a FROM t2
   19569       WHERE b=1100
   19570          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   19571          OR ((a BETWEEN 72 AND 74) AND a!=73)
   19572          OR ((a BETWEEN 68 AND 70) AND a!=69)
   19573          OR a=75
   19574          OR a=45
   19575          OR (g='gfedcba' AND f GLOB 'mnopq*')
   19576          OR a=27
   19577          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   19578          OR b=850
   19579          OR ((a BETWEEN 55 AND 57) AND a!=56)
   19580   }
   19581 } {12 27 45 55 57 68 70 72 74 75 77 90 100 scan 0 sort 0}
   19582 do_test where7-2.839.2 {
   19583   count_steps_sort {
   19584      SELECT a FROM t3
   19585       WHERE b=1100
   19586          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   19587          OR ((a BETWEEN 72 AND 74) AND a!=73)
   19588          OR ((a BETWEEN 68 AND 70) AND a!=69)
   19589          OR a=75
   19590          OR a=45
   19591          OR (g='gfedcba' AND f GLOB 'mnopq*')
   19592          OR a=27
   19593          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   19594          OR b=850
   19595          OR ((a BETWEEN 55 AND 57) AND a!=56)
   19596   }
   19597 } {12 27 45 55 57 68 70 72 74 75 77 90 100 scan 0 sort 0}
   19598 do_test where7-2.840.1 {
   19599   count_steps_sort {
   19600      SELECT a FROM t2
   19601       WHERE b=751
   19602          OR ((a BETWEEN 96 AND 98) AND a!=97)
   19603          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   19604          OR (g='gfedcba' AND f GLOB 'lmnop*')
   19605          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   19606          OR a=89
   19607          OR ((a BETWEEN 36 AND 38) AND a!=37)
   19608   }
   19609 } {36 38 56 71 89 96 98 scan 0 sort 0}
   19610 do_test where7-2.840.2 {
   19611   count_steps_sort {
   19612      SELECT a FROM t3
   19613       WHERE b=751
   19614          OR ((a BETWEEN 96 AND 98) AND a!=97)
   19615          OR (d>=71.0 AND d<72.0 AND d NOT NULL)
   19616          OR (g='gfedcba' AND f GLOB 'lmnop*')
   19617          OR (d>=56.0 AND d<57.0 AND d NOT NULL)
   19618          OR a=89
   19619          OR ((a BETWEEN 36 AND 38) AND a!=37)
   19620   }
   19621 } {36 38 56 71 89 96 98 scan 0 sort 0}
   19622 do_test where7-2.841.1 {
   19623   count_steps_sort {
   19624      SELECT a FROM t2
   19625       WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
   19626          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   19627          OR a=1
   19628          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   19629   }
   19630 } {1 9 19 scan 0 sort 0}
   19631 do_test where7-2.841.2 {
   19632   count_steps_sort {
   19633      SELECT a FROM t3
   19634       WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
   19635          OR (g='yxwvuts' AND f GLOB 'bcdef*')
   19636          OR a=1
   19637          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   19638   }
   19639 } {1 9 19 scan 0 sort 0}
   19640 do_test where7-2.842.1 {
   19641   count_steps_sort {
   19642      SELECT a FROM t2
   19643       WHERE b=927
   19644          OR c=15015
   19645          OR f='klmnopqrs'
   19646          OR c=8008
   19647          OR ((a BETWEEN 41 AND 43) AND a!=42)
   19648          OR b=960
   19649          OR (g='jihgfed' AND f GLOB 'yzabc*')
   19650          OR b=443
   19651          OR (g='rqponml' AND f GLOB 'ijklm*')
   19652   }
   19653 } {10 22 23 24 34 36 41 43 44 45 62 76 88 scan 0 sort 0}
   19654 do_test where7-2.842.2 {
   19655   count_steps_sort {
   19656      SELECT a FROM t3
   19657       WHERE b=927
   19658          OR c=15015
   19659          OR f='klmnopqrs'
   19660          OR c=8008
   19661          OR ((a BETWEEN 41 AND 43) AND a!=42)
   19662          OR b=960
   19663          OR (g='jihgfed' AND f GLOB 'yzabc*')
   19664          OR b=443
   19665          OR (g='rqponml' AND f GLOB 'ijklm*')
   19666   }
   19667 } {10 22 23 24 34 36 41 43 44 45 62 76 88 scan 0 sort 0}
   19668 do_test where7-2.843.1 {
   19669   count_steps_sort {
   19670      SELECT a FROM t2
   19671       WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
   19672          OR b=212
   19673          OR f='cdefghijk'
   19674   }
   19675 } {2 28 37 54 80 scan 0 sort 0}
   19676 do_test where7-2.843.2 {
   19677   count_steps_sort {
   19678      SELECT a FROM t3
   19679       WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
   19680          OR b=212
   19681          OR f='cdefghijk'
   19682   }
   19683 } {2 28 37 54 80 scan 0 sort 0}
   19684 do_test where7-2.844.1 {
   19685   count_steps_sort {
   19686      SELECT a FROM t2
   19687       WHERE b=685
   19688          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   19689          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19690          OR b=520
   19691          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   19692          OR a=53
   19693          OR ((a BETWEEN 91 AND 93) AND a!=92)
   19694          OR b=938
   19695          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   19696          OR c=25025
   19697   }
   19698 } {43 53 63 73 74 75 76 91 93 scan 0 sort 0}
   19699 do_test where7-2.844.2 {
   19700   count_steps_sort {
   19701      SELECT a FROM t3
   19702       WHERE b=685
   19703          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   19704          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19705          OR b=520
   19706          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   19707          OR a=53
   19708          OR ((a BETWEEN 91 AND 93) AND a!=92)
   19709          OR b=938
   19710          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   19711          OR c=25025
   19712   }
   19713 } {43 53 63 73 74 75 76 91 93 scan 0 sort 0}
   19714 do_test where7-2.845.1 {
   19715   count_steps_sort {
   19716      SELECT a FROM t2
   19717       WHERE b=583
   19718          OR b=894
   19719          OR c=26026
   19720          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   19721   }
   19722 } {53 76 77 78 84 scan 0 sort 0}
   19723 do_test where7-2.845.2 {
   19724   count_steps_sort {
   19725      SELECT a FROM t3
   19726       WHERE b=583
   19727          OR b=894
   19728          OR c=26026
   19729          OR (d>=84.0 AND d<85.0 AND d NOT NULL)
   19730   }
   19731 } {53 76 77 78 84 scan 0 sort 0}
   19732 do_test where7-2.846.1 {
   19733   count_steps_sort {
   19734      SELECT a FROM t2
   19735       WHERE f='abcdefghi'
   19736          OR (g='edcbazy' AND f GLOB 'wxyza*')
   19737   }
   19738 } {26 52 78 100 scan 0 sort 0}
   19739 do_test where7-2.846.2 {
   19740   count_steps_sort {
   19741      SELECT a FROM t3
   19742       WHERE f='abcdefghi'
   19743          OR (g='edcbazy' AND f GLOB 'wxyza*')
   19744   }
   19745 } {26 52 78 100 scan 0 sort 0}
   19746 do_test where7-2.847.1 {
   19747   count_steps_sort {
   19748      SELECT a FROM t2
   19749       WHERE b=1103
   19750          OR b=638
   19751          OR b=792
   19752          OR b=1034
   19753          OR b=308
   19754          OR f='nopqrstuv'
   19755          OR b=264
   19756          OR ((a BETWEEN 33 AND 35) AND a!=34)
   19757          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   19758   }
   19759 } {13 24 28 33 35 39 58 65 72 91 94 scan 0 sort 0}
   19760 do_test where7-2.847.2 {
   19761   count_steps_sort {
   19762      SELECT a FROM t3
   19763       WHERE b=1103
   19764          OR b=638
   19765          OR b=792
   19766          OR b=1034
   19767          OR b=308
   19768          OR f='nopqrstuv'
   19769          OR b=264
   19770          OR ((a BETWEEN 33 AND 35) AND a!=34)
   19771          OR (d>=58.0 AND d<59.0 AND d NOT NULL)
   19772   }
   19773 } {13 24 28 33 35 39 58 65 72 91 94 scan 0 sort 0}
   19774 do_test where7-2.848.1 {
   19775   count_steps_sort {
   19776      SELECT a FROM t2
   19777       WHERE f='defghijkl'
   19778          OR b=814
   19779          OR f='yzabcdefg'
   19780   }
   19781 } {3 24 29 50 55 74 76 81 scan 0 sort 0}
   19782 do_test where7-2.848.2 {
   19783   count_steps_sort {
   19784      SELECT a FROM t3
   19785       WHERE f='defghijkl'
   19786          OR b=814
   19787          OR f='yzabcdefg'
   19788   }
   19789 } {3 24 29 50 55 74 76 81 scan 0 sort 0}
   19790 do_test where7-2.849.1 {
   19791   count_steps_sort {
   19792      SELECT a FROM t2
   19793       WHERE b=209
   19794          OR b=806
   19795          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   19796          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   19797   }
   19798 } {8 17 19 scan 0 sort 0}
   19799 do_test where7-2.849.2 {
   19800   count_steps_sort {
   19801      SELECT a FROM t3
   19802       WHERE b=209
   19803          OR b=806
   19804          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   19805          OR (g='vutsrqp' AND f GLOB 'rstuv*')
   19806   }
   19807 } {8 17 19 scan 0 sort 0}
   19808 do_test where7-2.850.1 {
   19809   count_steps_sort {
   19810      SELECT a FROM t2
   19811       WHERE f='opqrstuvw'
   19812          OR b=69
   19813          OR b=366
   19814   }
   19815 } {14 40 66 92 scan 0 sort 0}
   19816 do_test where7-2.850.2 {
   19817   count_steps_sort {
   19818      SELECT a FROM t3
   19819       WHERE f='opqrstuvw'
   19820          OR b=69
   19821          OR b=366
   19822   }
   19823 } {14 40 66 92 scan 0 sort 0}
   19824 do_test where7-2.851.1 {
   19825   count_steps_sort {
   19826      SELECT a FROM t2
   19827       WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
   19828          OR a=45
   19829          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19830          OR a=69
   19831          OR ((a BETWEEN 69 AND 71) AND a!=70)
   19832          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19833   }
   19834 } {4 45 69 71 72 scan 0 sort 0}
   19835 do_test where7-2.851.2 {
   19836   count_steps_sort {
   19837      SELECT a FROM t3
   19838       WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
   19839          OR a=45
   19840          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19841          OR a=69
   19842          OR ((a BETWEEN 69 AND 71) AND a!=70)
   19843          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   19844   }
   19845 } {4 45 69 71 72 scan 0 sort 0}
   19846 do_test where7-2.852.1 {
   19847   count_steps_sort {
   19848      SELECT a FROM t2
   19849       WHERE c=9009
   19850          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19851          OR (g='wvutsrq' AND f GLOB 'klmno*')
   19852          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   19853          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   19854   }
   19855 } {9 10 25 26 27 67 85 scan 0 sort 0}
   19856 do_test where7-2.852.2 {
   19857   count_steps_sort {
   19858      SELECT a FROM t3
   19859       WHERE c=9009
   19860          OR (d>=85.0 AND d<86.0 AND d NOT NULL)
   19861          OR (g='wvutsrq' AND f GLOB 'klmno*')
   19862          OR (d>=9.0 AND d<10.0 AND d NOT NULL)
   19863          OR (g='lkjihgf' AND f GLOB 'pqrst*')
   19864   }
   19865 } {9 10 25 26 27 67 85 scan 0 sort 0}
   19866 do_test where7-2.853.1 {
   19867   count_steps_sort {
   19868      SELECT a FROM t2
   19869       WHERE a=98
   19870          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   19871          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19872          OR a=47
   19873          OR c=24024
   19874          OR a=27
   19875          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   19876          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   19877   }
   19878 } {20 27 45 47 63 70 71 72 98 100 scan 0 sort 0}
   19879 do_test where7-2.853.2 {
   19880   count_steps_sort {
   19881      SELECT a FROM t3
   19882       WHERE a=98
   19883          OR (d>=100.0 AND d<101.0 AND d NOT NULL)
   19884          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   19885          OR a=47
   19886          OR c=24024
   19887          OR a=27
   19888          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   19889          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   19890   }
   19891 } {20 27 45 47 63 70 71 72 98 100 scan 0 sort 0}
   19892 do_test where7-2.854.1 {
   19893   count_steps_sort {
   19894      SELECT a FROM t2
   19895       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   19896          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   19897          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   19898          OR a=19
   19899   }
   19900 } {19 22 44 scan 0 sort 0}
   19901 do_test where7-2.854.2 {
   19902   count_steps_sort {
   19903      SELECT a FROM t3
   19904       WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
   19905          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   19906          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   19907          OR a=19
   19908   }
   19909 } {19 22 44 scan 0 sort 0}
   19910 do_test where7-2.855.1 {
   19911   count_steps_sort {
   19912      SELECT a FROM t2
   19913       WHERE c=12012
   19914          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   19915          OR ((a BETWEEN 16 AND 18) AND a!=17)
   19916          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   19917   }
   19918 } {16 18 34 35 36 80 98 scan 0 sort 0}
   19919 do_test where7-2.855.2 {
   19920   count_steps_sort {
   19921      SELECT a FROM t3
   19922       WHERE c=12012
   19923          OR (d>=80.0 AND d<81.0 AND d NOT NULL)
   19924          OR ((a BETWEEN 16 AND 18) AND a!=17)
   19925          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   19926   }
   19927 } {16 18 34 35 36 80 98 scan 0 sort 0}
   19928 do_test where7-2.856.1 {
   19929   count_steps_sort {
   19930      SELECT a FROM t2
   19931       WHERE ((a BETWEEN 38 AND 40) AND a!=39)
   19932          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19933          OR b=429
   19934          OR f='jklmnopqr'
   19935          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   19936          OR ((a BETWEEN 77 AND 79) AND a!=78)
   19937   }
   19938 } {9 12 35 38 39 40 48 61 64 77 79 87 90 scan 0 sort 0}
   19939 do_test where7-2.856.2 {
   19940   count_steps_sort {
   19941      SELECT a FROM t3
   19942       WHERE ((a BETWEEN 38 AND 40) AND a!=39)
   19943          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   19944          OR b=429
   19945          OR f='jklmnopqr'
   19946          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   19947          OR ((a BETWEEN 77 AND 79) AND a!=78)
   19948   }
   19949 } {9 12 35 38 39 40 48 61 64 77 79 87 90 scan 0 sort 0}
   19950 do_test where7-2.857.1 {
   19951   count_steps_sort {
   19952      SELECT a FROM t2
   19953       WHERE (g='lkjihgf' AND f GLOB 'mnopq*')
   19954          OR b=190
   19955   }
   19956 } {64 scan 0 sort 0}
   19957 do_test where7-2.857.2 {
   19958   count_steps_sort {
   19959      SELECT a FROM t3
   19960       WHERE (g='lkjihgf' AND f GLOB 'mnopq*')
   19961          OR b=190
   19962   }
   19963 } {64 scan 0 sort 0}
   19964 do_test where7-2.858.1 {
   19965   count_steps_sort {
   19966      SELECT a FROM t2
   19967       WHERE (g='jihgfed' AND f GLOB 'yzabc*')
   19968          OR b=674
   19969          OR b=289
   19970   }
   19971 } {76 scan 0 sort 0}
   19972 do_test where7-2.858.2 {
   19973   count_steps_sort {
   19974      SELECT a FROM t3
   19975       WHERE (g='jihgfed' AND f GLOB 'yzabc*')
   19976          OR b=674
   19977          OR b=289
   19978   }
   19979 } {76 scan 0 sort 0}
   19980 do_test where7-2.859.1 {
   19981   count_steps_sort {
   19982      SELECT a FROM t2
   19983       WHERE a=17
   19984          OR b=539
   19985          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   19986          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   19987   }
   19988 } {17 21 47 49 scan 0 sort 0}
   19989 do_test where7-2.859.2 {
   19990   count_steps_sort {
   19991      SELECT a FROM t3
   19992       WHERE a=17
   19993          OR b=539
   19994          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   19995          OR (g='utsrqpo' AND f GLOB 'vwxyz*')
   19996   }
   19997 } {17 21 47 49 scan 0 sort 0}
   19998 do_test where7-2.860.1 {
   19999   count_steps_sort {
   20000      SELECT a FROM t2
   20001       WHERE b=924
   20002          OR c=27027
   20003          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20004   }
   20005 } {65 67 79 80 81 84 scan 0 sort 0}
   20006 do_test where7-2.860.2 {
   20007   count_steps_sort {
   20008      SELECT a FROM t3
   20009       WHERE b=924
   20010          OR c=27027
   20011          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20012   }
   20013 } {65 67 79 80 81 84 scan 0 sort 0}
   20014 do_test where7-2.861.1 {
   20015   count_steps_sort {
   20016      SELECT a FROM t2
   20017       WHERE b=564
   20018          OR f='mnopqrstu'
   20019          OR ((a BETWEEN 28 AND 30) AND a!=29)
   20020          OR b=1103
   20021   }
   20022 } {12 28 30 38 64 90 scan 0 sort 0}
   20023 do_test where7-2.861.2 {
   20024   count_steps_sort {
   20025      SELECT a FROM t3
   20026       WHERE b=564
   20027          OR f='mnopqrstu'
   20028          OR ((a BETWEEN 28 AND 30) AND a!=29)
   20029          OR b=1103
   20030   }
   20031 } {12 28 30 38 64 90 scan 0 sort 0}
   20032 do_test where7-2.862.1 {
   20033   count_steps_sort {
   20034      SELECT a FROM t2
   20035       WHERE b=231
   20036          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   20037          OR a=38
   20038          OR a=4
   20039          OR b=784
   20040   }
   20041 } {4 21 24 38 scan 0 sort 0}
   20042 do_test where7-2.862.2 {
   20043   count_steps_sort {
   20044      SELECT a FROM t3
   20045       WHERE b=231
   20046          OR (d>=24.0 AND d<25.0 AND d NOT NULL)
   20047          OR a=38
   20048          OR a=4
   20049          OR b=784
   20050   }
   20051 } {4 21 24 38 scan 0 sort 0}
   20052 do_test where7-2.863.1 {
   20053   count_steps_sort {
   20054      SELECT a FROM t2
   20055       WHERE f='ghijklmno'
   20056          OR a=26
   20057          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20058          OR a=81
   20059          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   20060          OR ((a BETWEEN 28 AND 30) AND a!=29)
   20061          OR b=275
   20062          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   20063          OR b=311
   20064          OR b=894
   20065          OR b=872
   20066   }
   20067 } {3 6 25 26 28 30 32 58 68 81 84 87 scan 0 sort 0}
   20068 do_test where7-2.863.2 {
   20069   count_steps_sort {
   20070      SELECT a FROM t3
   20071       WHERE f='ghijklmno'
   20072          OR a=26
   20073          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20074          OR a=81
   20075          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   20076          OR ((a BETWEEN 28 AND 30) AND a!=29)
   20077          OR b=275
   20078          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   20079          OR b=311
   20080          OR b=894
   20081          OR b=872
   20082   }
   20083 } {3 6 25 26 28 30 32 58 68 81 84 87 scan 0 sort 0}
   20084 do_test where7-2.864.1 {
   20085   count_steps_sort {
   20086      SELECT a FROM t2
   20087       WHERE a=91
   20088          OR b=619
   20089   }
   20090 } {91 scan 0 sort 0}
   20091 do_test where7-2.864.2 {
   20092   count_steps_sort {
   20093      SELECT a FROM t3
   20094       WHERE a=91
   20095          OR b=619
   20096   }
   20097 } {91 scan 0 sort 0}
   20098 do_test where7-2.865.1 {
   20099   count_steps_sort {
   20100      SELECT a FROM t2
   20101       WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
   20102          OR a=85
   20103          OR f IS NULL
   20104          OR ((a BETWEEN 49 AND 51) AND a!=50)
   20105          OR ((a BETWEEN 66 AND 68) AND a!=67)
   20106          OR b=154
   20107          OR ((a BETWEEN 40 AND 42) AND a!=41)
   20108          OR ((a BETWEEN 87 AND 89) AND a!=88)
   20109          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   20110   }
   20111 } {4 14 25 40 42 49 51 66 68 85 87 89 scan 0 sort 0}
   20112 do_test where7-2.865.2 {
   20113   count_steps_sort {
   20114      SELECT a FROM t3
   20115       WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
   20116          OR a=85
   20117          OR f IS NULL
   20118          OR ((a BETWEEN 49 AND 51) AND a!=50)
   20119          OR ((a BETWEEN 66 AND 68) AND a!=67)
   20120          OR b=154
   20121          OR ((a BETWEEN 40 AND 42) AND a!=41)
   20122          OR ((a BETWEEN 87 AND 89) AND a!=88)
   20123          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   20124   }
   20125 } {4 14 25 40 42 49 51 66 68 85 87 89 scan 0 sort 0}
   20126 do_test where7-2.866.1 {
   20127   count_steps_sort {
   20128      SELECT a FROM t2
   20129       WHERE a=44
   20130          OR b=55
   20131          OR a=30
   20132          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   20133          OR 1000000<b
   20134          OR a=24
   20135          OR b=1089
   20136          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   20137          OR (g='rqponml' AND f GLOB 'hijkl*')
   20138   }
   20139 } {5 19 24 30 33 44 45 71 75 97 99 scan 0 sort 0}
   20140 do_test where7-2.866.2 {
   20141   count_steps_sort {
   20142      SELECT a FROM t3
   20143       WHERE a=44
   20144          OR b=55
   20145          OR a=30
   20146          OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   20147          OR 1000000<b
   20148          OR a=24
   20149          OR b=1089
   20150          OR (d>=75.0 AND d<76.0 AND d NOT NULL)
   20151          OR (g='rqponml' AND f GLOB 'hijkl*')
   20152   }
   20153 } {5 19 24 30 33 44 45 71 75 97 99 scan 0 sort 0}
   20154 do_test where7-2.867.1 {
   20155   count_steps_sort {
   20156      SELECT a FROM t2
   20157       WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
   20158          OR ((a BETWEEN 80 AND 82) AND a!=81)
   20159          OR b=36
   20160          OR ((a BETWEEN 33 AND 35) AND a!=34)
   20161   }
   20162 } {16 33 35 80 82 scan 0 sort 0}
   20163 do_test where7-2.867.2 {
   20164   count_steps_sort {
   20165      SELECT a FROM t3
   20166       WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
   20167          OR ((a BETWEEN 80 AND 82) AND a!=81)
   20168          OR b=36
   20169          OR ((a BETWEEN 33 AND 35) AND a!=34)
   20170   }
   20171 } {16 33 35 80 82 scan 0 sort 0}
   20172 do_test where7-2.868.1 {
   20173   count_steps_sort {
   20174      SELECT a FROM t2
   20175       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   20176          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   20177          OR c=26026
   20178          OR ((a BETWEEN 37 AND 39) AND a!=38)
   20179          OR a=56
   20180          OR b=506
   20181          OR b=781
   20182          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   20183   }
   20184 } {28 35 37 39 46 56 71 76 77 78 97 scan 0 sort 0}
   20185 do_test where7-2.868.2 {
   20186   count_steps_sort {
   20187      SELECT a FROM t3
   20188       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   20189          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   20190          OR c=26026
   20191          OR ((a BETWEEN 37 AND 39) AND a!=38)
   20192          OR a=56
   20193          OR b=506
   20194          OR b=781
   20195          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   20196   }
   20197 } {28 35 37 39 46 56 71 76 77 78 97 scan 0 sort 0}
   20198 do_test where7-2.869.1 {
   20199   count_steps_sort {
   20200      SELECT a FROM t2
   20201       WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
   20202          OR ((a BETWEEN 25 AND 27) AND a!=26)
   20203          OR (g='qponmlk' AND f GLOB 'nopqr*')
   20204          OR ((a BETWEEN 89 AND 91) AND a!=90)
   20205          OR f='xyzabcdef'
   20206          OR b=517
   20207          OR (g='jihgfed' AND f GLOB 'yzabc*')
   20208          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20209   }
   20210 } {23 25 27 39 47 49 68 75 76 89 91 98 scan 0 sort 0}
   20211 do_test where7-2.869.2 {
   20212   count_steps_sort {
   20213      SELECT a FROM t3
   20214       WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
   20215          OR ((a BETWEEN 25 AND 27) AND a!=26)
   20216          OR (g='qponmlk' AND f GLOB 'nopqr*')
   20217          OR ((a BETWEEN 89 AND 91) AND a!=90)
   20218          OR f='xyzabcdef'
   20219          OR b=517
   20220          OR (g='jihgfed' AND f GLOB 'yzabc*')
   20221          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20222   }
   20223 } {23 25 27 39 47 49 68 75 76 89 91 98 scan 0 sort 0}
   20224 do_test where7-2.870.1 {
   20225   count_steps_sort {
   20226      SELECT a FROM t2
   20227       WHERE a=54
   20228          OR a=59
   20229   }
   20230 } {54 59 scan 0 sort 0}
   20231 do_test where7-2.870.2 {
   20232   count_steps_sort {
   20233      SELECT a FROM t3
   20234       WHERE a=54
   20235          OR a=59
   20236   }
   20237 } {54 59 scan 0 sort 0}
   20238 do_test where7-2.871.1 {
   20239   count_steps_sort {
   20240      SELECT a FROM t2
   20241       WHERE (g='tsrqpon' AND f GLOB 'yzabc*')
   20242          OR b=762
   20243          OR (g='onmlkji' AND f GLOB 'wxyza*')
   20244          OR a=25
   20245          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20246   }
   20247 } {24 25 48 65 67 scan 0 sort 0}
   20248 do_test where7-2.871.2 {
   20249   count_steps_sort {
   20250      SELECT a FROM t3
   20251       WHERE (g='tsrqpon' AND f GLOB 'yzabc*')
   20252          OR b=762
   20253          OR (g='onmlkji' AND f GLOB 'wxyza*')
   20254          OR a=25
   20255          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20256   }
   20257 } {24 25 48 65 67 scan 0 sort 0}
   20258 do_test where7-2.872.1 {
   20259   count_steps_sort {
   20260      SELECT a FROM t2
   20261       WHERE (d>=59.0 AND d<60.0 AND d NOT NULL)
   20262          OR ((a BETWEEN 14 AND 16) AND a!=15)
   20263          OR b=839
   20264          OR f='defghijkl'
   20265          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   20266          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   20267          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   20268          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   20269          OR b=498
   20270   }
   20271 } {3 14 16 29 52 55 59 60 81 85 95 scan 0 sort 0}
   20272 do_test where7-2.872.2 {
   20273   count_steps_sort {
   20274      SELECT a FROM t3
   20275       WHERE (d>=59.0 AND d<60.0 AND d NOT NULL)
   20276          OR ((a BETWEEN 14 AND 16) AND a!=15)
   20277          OR b=839
   20278          OR f='defghijkl'
   20279          OR (d>=95.0 AND d<96.0 AND d NOT NULL)
   20280          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   20281          OR (d>=52.0 AND d<53.0 AND d NOT NULL)
   20282          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   20283          OR b=498
   20284   }
   20285 } {3 14 16 29 52 55 59 60 81 85 95 scan 0 sort 0}
   20286 do_test where7-2.873.1 {
   20287   count_steps_sort {
   20288      SELECT a FROM t2
   20289       WHERE b=256
   20290          OR c=19019
   20291          OR a=54
   20292          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   20293          OR b=498
   20294          OR b=77
   20295   }
   20296 } {7 46 54 55 56 57 scan 0 sort 0}
   20297 do_test where7-2.873.2 {
   20298   count_steps_sort {
   20299      SELECT a FROM t3
   20300       WHERE b=256
   20301          OR c=19019
   20302          OR a=54
   20303          OR (d>=46.0 AND d<47.0 AND d NOT NULL)
   20304          OR b=498
   20305          OR b=77
   20306   }
   20307 } {7 46 54 55 56 57 scan 0 sort 0}
   20308 do_test where7-2.874.1 {
   20309   count_steps_sort {
   20310      SELECT a FROM t2
   20311       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   20312          OR b=256
   20313          OR b=586
   20314          OR a=74
   20315          OR b=113
   20316          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   20317          OR b=495
   20318   }
   20319 } {45 61 74 99 scan 0 sort 0}
   20320 do_test where7-2.874.2 {
   20321   count_steps_sort {
   20322      SELECT a FROM t3
   20323       WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
   20324          OR b=256
   20325          OR b=586
   20326          OR a=74
   20327          OR b=113
   20328          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   20329          OR b=495
   20330   }
   20331 } {45 61 74 99 scan 0 sort 0}
   20332 do_test where7-2.875.1 {
   20333   count_steps_sort {
   20334      SELECT a FROM t2
   20335       WHERE a=12
   20336          OR a=50
   20337          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   20338          OR ((a BETWEEN 66 AND 68) AND a!=67)
   20339   }
   20340 } {12 33 50 66 68 scan 0 sort 0}
   20341 do_test where7-2.875.2 {
   20342   count_steps_sort {
   20343      SELECT a FROM t3
   20344       WHERE a=12
   20345          OR a=50
   20346          OR (d>=33.0 AND d<34.0 AND d NOT NULL)
   20347          OR ((a BETWEEN 66 AND 68) AND a!=67)
   20348   }
   20349 } {12 33 50 66 68 scan 0 sort 0}
   20350 do_test where7-2.876.1 {
   20351   count_steps_sort {
   20352      SELECT a FROM t2
   20353       WHERE b=308
   20354          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   20355          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   20356          OR a=83
   20357          OR c=23023
   20358          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   20359          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   20360          OR a=58
   20361          OR ((a BETWEEN 17 AND 19) AND a!=18)
   20362          OR (g='srqponm' AND f GLOB 'efghi*')
   20363          OR c=4004
   20364   }
   20365 } {10 11 12 17 19 28 30 53 57 58 65 67 68 69 73 83 scan 0 sort 0}
   20366 do_test where7-2.876.2 {
   20367   count_steps_sort {
   20368      SELECT a FROM t3
   20369       WHERE b=308
   20370          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   20371          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   20372          OR a=83
   20373          OR c=23023
   20374          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   20375          OR (g='lkjihgf' AND f GLOB 'nopqr*')
   20376          OR a=58
   20377          OR ((a BETWEEN 17 AND 19) AND a!=18)
   20378          OR (g='srqponm' AND f GLOB 'efghi*')
   20379          OR c=4004
   20380   }
   20381 } {10 11 12 17 19 28 30 53 57 58 65 67 68 69 73 83 scan 0 sort 0}
   20382 do_test where7-2.877.1 {
   20383   count_steps_sort {
   20384      SELECT a FROM t2
   20385       WHERE b=476
   20386          OR a=26
   20387          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   20388          OR b=762
   20389          OR b=157
   20390          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   20391          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   20392   }
   20393 } {17 26 54 87 scan 0 sort 0}
   20394 do_test where7-2.877.2 {
   20395   count_steps_sort {
   20396      SELECT a FROM t3
   20397       WHERE b=476
   20398          OR a=26
   20399          OR (d>=87.0 AND d<88.0 AND d NOT NULL)
   20400          OR b=762
   20401          OR b=157
   20402          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   20403          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   20404   }
   20405 } {17 26 54 87 scan 0 sort 0}
   20406 do_test where7-2.878.1 {
   20407   count_steps_sort {
   20408      SELECT a FROM t2
   20409       WHERE (d>=77.0 AND d<78.0 AND d NOT NULL)
   20410          OR a=1
   20411          OR ((a BETWEEN 93 AND 95) AND a!=94)
   20412          OR b=278
   20413          OR (g='xwvutsr' AND f GLOB 'defgh*')
   20414          OR f='qrstuvwxy'
   20415          OR (g='onmlkji' AND f GLOB 'abcde*')
   20416          OR ((a BETWEEN 82 AND 84) AND a!=83)
   20417          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   20418          OR (g='jihgfed' AND f GLOB 'wxyza*')
   20419          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   20420   }
   20421 } {1 3 16 42 52 68 72 74 77 82 84 93 94 95 98 scan 0 sort 0}
   20422 do_test where7-2.878.2 {
   20423   count_steps_sort {
   20424      SELECT a FROM t3
   20425       WHERE (d>=77.0 AND d<78.0 AND d NOT NULL)
   20426          OR a=1
   20427          OR ((a BETWEEN 93 AND 95) AND a!=94)
   20428          OR b=278
   20429          OR (g='xwvutsr' AND f GLOB 'defgh*')
   20430          OR f='qrstuvwxy'
   20431          OR (g='onmlkji' AND f GLOB 'abcde*')
   20432          OR ((a BETWEEN 82 AND 84) AND a!=83)
   20433          OR (g='edcbazy' AND f GLOB 'uvwxy*')
   20434          OR (g='jihgfed' AND f GLOB 'wxyza*')
   20435          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   20436   }
   20437 } {1 3 16 42 52 68 72 74 77 82 84 93 94 95 98 scan 0 sort 0}
   20438 do_test where7-2.879.1 {
   20439   count_steps_sort {
   20440      SELECT a FROM t2
   20441       WHERE b=124
   20442          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   20443          OR ((a BETWEEN 41 AND 43) AND a!=42)
   20444          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   20445          OR b=759
   20446          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   20447          OR ((a BETWEEN 45 AND 47) AND a!=46)
   20448          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   20449   }
   20450 } {12 38 41 43 45 47 64 69 72 90 92 96 scan 0 sort 0}
   20451 do_test where7-2.879.2 {
   20452   count_steps_sort {
   20453      SELECT a FROM t3
   20454       WHERE b=124
   20455          OR (d>=92.0 AND d<93.0 AND d NOT NULL)
   20456          OR ((a BETWEEN 41 AND 43) AND a!=42)
   20457          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   20458          OR b=759
   20459          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   20460          OR ((a BETWEEN 45 AND 47) AND a!=46)
   20461          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   20462   }
   20463 } {12 38 41 43 45 47 64 69 72 90 92 96 scan 0 sort 0}
   20464 do_test where7-2.880.1 {
   20465   count_steps_sort {
   20466      SELECT a FROM t2
   20467       WHERE b=872
   20468          OR b=267
   20469          OR b=814
   20470          OR b=99
   20471          OR c<=10
   20472          OR ((a BETWEEN 8 AND 10) AND a!=9)
   20473          OR b=44
   20474          OR f='zabcdefgh'
   20475          OR b=979
   20476          OR (g='rqponml' AND f GLOB 'hijkl*')
   20477   }
   20478 } {4 8 9 10 25 33 51 74 77 89 scan 0 sort 0}
   20479 do_test where7-2.880.2 {
   20480   count_steps_sort {
   20481      SELECT a FROM t3
   20482       WHERE b=872
   20483          OR b=267
   20484          OR b=814
   20485          OR b=99
   20486          OR c<=10
   20487          OR ((a BETWEEN 8 AND 10) AND a!=9)
   20488          OR b=44
   20489          OR f='zabcdefgh'
   20490          OR b=979
   20491          OR (g='rqponml' AND f GLOB 'hijkl*')
   20492   }
   20493 } {4 8 9 10 25 33 51 74 77 89 scan 0 sort 0}
   20494 do_test where7-2.881.1 {
   20495   count_steps_sort {
   20496      SELECT a FROM t2
   20497       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   20498          OR f='xyzabcdef'
   20499   }
   20500 } {23 26 49 75 scan 0 sort 0}
   20501 do_test where7-2.881.2 {
   20502   count_steps_sort {
   20503      SELECT a FROM t3
   20504       WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
   20505          OR f='xyzabcdef'
   20506   }
   20507 } {23 26 49 75 scan 0 sort 0}
   20508 do_test where7-2.882.1 {
   20509   count_steps_sort {
   20510      SELECT a FROM t2
   20511       WHERE b=487
   20512          OR b=355
   20513          OR c=9009
   20514          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   20515          OR ((a BETWEEN 32 AND 34) AND a!=33)
   20516          OR b=113
   20517          OR ((a BETWEEN 24 AND 26) AND a!=25)
   20518          OR a=90
   20519          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   20520          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   20521          OR f='nopqrstuv'
   20522   }
   20523 } {8 13 24 25 26 27 32 34 39 65 66 87 90 91 scan 0 sort 0}
   20524 do_test where7-2.882.2 {
   20525   count_steps_sort {
   20526      SELECT a FROM t3
   20527       WHERE b=487
   20528          OR b=355
   20529          OR c=9009
   20530          OR (d>=8.0 AND d<9.0 AND d NOT NULL)
   20531          OR ((a BETWEEN 32 AND 34) AND a!=33)
   20532          OR b=113
   20533          OR ((a BETWEEN 24 AND 26) AND a!=25)
   20534          OR a=90
   20535          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   20536          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   20537          OR f='nopqrstuv'
   20538   }
   20539 } {8 13 24 25 26 27 32 34 39 65 66 87 90 91 scan 0 sort 0}
   20540 do_test where7-2.883.1 {
   20541   count_steps_sort {
   20542      SELECT a FROM t2
   20543       WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
   20544          OR b=275
   20545   }
   20546 } {25 34 scan 0 sort 0}
   20547 do_test where7-2.883.2 {
   20548   count_steps_sort {
   20549      SELECT a FROM t3
   20550       WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
   20551          OR b=275
   20552   }
   20553 } {25 34 scan 0 sort 0}
   20554 do_test where7-2.884.1 {
   20555   count_steps_sort {
   20556      SELECT a FROM t2
   20557       WHERE b=355
   20558          OR a=44
   20559          OR b=374
   20560          OR c=25025
   20561          OR b=198
   20562          OR ((a BETWEEN 4 AND 6) AND a!=5)
   20563          OR ((a BETWEEN 69 AND 71) AND a!=70)
   20564          OR d<0.0
   20565          OR (g='qponmlk' AND f GLOB 'pqrst*')
   20566          OR c=9009
   20567   }
   20568 } {4 6 18 25 26 27 34 41 44 69 71 73 74 75 scan 0 sort 0}
   20569 do_test where7-2.884.2 {
   20570   count_steps_sort {
   20571      SELECT a FROM t3
   20572       WHERE b=355
   20573          OR a=44
   20574          OR b=374
   20575          OR c=25025
   20576          OR b=198
   20577          OR ((a BETWEEN 4 AND 6) AND a!=5)
   20578          OR ((a BETWEEN 69 AND 71) AND a!=70)
   20579          OR d<0.0
   20580          OR (g='qponmlk' AND f GLOB 'pqrst*')
   20581          OR c=9009
   20582   }
   20583 } {4 6 18 25 26 27 34 41 44 69 71 73 74 75 scan 0 sort 0}
   20584 do_test where7-2.885.1 {
   20585   count_steps_sort {
   20586      SELECT a FROM t2
   20587       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   20588          OR b=814
   20589          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   20590   }
   20591 } {19 45 54 71 74 97 scan 0 sort 0}
   20592 do_test where7-2.885.2 {
   20593   count_steps_sort {
   20594      SELECT a FROM t3
   20595       WHERE (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
   20596          OR b=814
   20597          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   20598   }
   20599 } {19 45 54 71 74 97 scan 0 sort 0}
   20600 do_test where7-2.886.1 {
   20601   count_steps_sort {
   20602      SELECT a FROM t2
   20603       WHERE (g='lkjihgf' AND f GLOB 'mnopq*')
   20604          OR b=333
   20605          OR b=275
   20606   }
   20607 } {25 64 scan 0 sort 0}
   20608 do_test where7-2.886.2 {
   20609   count_steps_sort {
   20610      SELECT a FROM t3
   20611       WHERE (g='lkjihgf' AND f GLOB 'mnopq*')
   20612          OR b=333
   20613          OR b=275
   20614   }
   20615 } {25 64 scan 0 sort 0}
   20616 do_test where7-2.887.1 {
   20617   count_steps_sort {
   20618      SELECT a FROM t2
   20619       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   20620          OR ((a BETWEEN 33 AND 35) AND a!=34)
   20621   }
   20622 } {33 35 82 scan 0 sort 0}
   20623 do_test where7-2.887.2 {
   20624   count_steps_sort {
   20625      SELECT a FROM t3
   20626       WHERE (g='ihgfedc' AND f GLOB 'efghi*')
   20627          OR ((a BETWEEN 33 AND 35) AND a!=34)
   20628   }
   20629 } {33 35 82 scan 0 sort 0}
   20630 do_test where7-2.888.1 {
   20631   count_steps_sort {
   20632      SELECT a FROM t2
   20633       WHERE ((a BETWEEN 11 AND 13) AND a!=12)
   20634          OR b=253
   20635          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20636          OR b=286
   20637          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   20638   }
   20639 } {10 11 13 14 23 26 40 66 92 scan 0 sort 0}
   20640 do_test where7-2.888.2 {
   20641   count_steps_sort {
   20642      SELECT a FROM t3
   20643       WHERE ((a BETWEEN 11 AND 13) AND a!=12)
   20644          OR b=253
   20645          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20646          OR b=286
   20647          OR (d>=10.0 AND d<11.0 AND d NOT NULL)
   20648   }
   20649 } {10 11 13 14 23 26 40 66 92 scan 0 sort 0}
   20650 do_test where7-2.889.1 {
   20651   count_steps_sort {
   20652      SELECT a FROM t2
   20653       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   20654          OR (g='gfedcba' AND f GLOB 'mnopq*')
   20655          OR ((a BETWEEN 26 AND 28) AND a!=27)
   20656          OR b=421
   20657          OR (g='xwvutsr' AND f GLOB 'fghij*')
   20658          OR f='ijklmnopq'
   20659          OR b=891
   20660          OR b=1056
   20661   }
   20662 } {5 8 15 26 28 34 60 81 86 90 96 scan 0 sort 0}
   20663 do_test where7-2.889.2 {
   20664   count_steps_sort {
   20665      SELECT a FROM t3
   20666       WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
   20667          OR (g='gfedcba' AND f GLOB 'mnopq*')
   20668          OR ((a BETWEEN 26 AND 28) AND a!=27)
   20669          OR b=421
   20670          OR (g='xwvutsr' AND f GLOB 'fghij*')
   20671          OR f='ijklmnopq'
   20672          OR b=891
   20673          OR b=1056
   20674   }
   20675 } {5 8 15 26 28 34 60 81 86 90 96 scan 0 sort 0}
   20676 do_test where7-2.890.1 {
   20677   count_steps_sort {
   20678      SELECT a FROM t2
   20679       WHERE f='fghijklmn'
   20680          OR (g='qponmlk' AND f GLOB 'nopqr*')
   20681          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   20682          OR b=671
   20683          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   20684   }
   20685 } {5 7 31 39 57 61 83 99 scan 0 sort 0}
   20686 do_test where7-2.890.2 {
   20687   count_steps_sort {
   20688      SELECT a FROM t3
   20689       WHERE f='fghijklmn'
   20690          OR (g='qponmlk' AND f GLOB 'nopqr*')
   20691          OR (g='edcbazy' AND f GLOB 'vwxyz*')
   20692          OR b=671
   20693          OR (g='xwvutsr' AND f GLOB 'hijkl*')
   20694   }
   20695 } {5 7 31 39 57 61 83 99 scan 0 sort 0}
   20696 do_test where7-2.891.1 {
   20697   count_steps_sort {
   20698      SELECT a FROM t2
   20699       WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
   20700          OR (g='srqponm' AND f GLOB 'fghij*')
   20701          OR ((a BETWEEN 4 AND 6) AND a!=5)
   20702          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20703          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   20704   }
   20705 } {4 6 11 31 63 68 scan 0 sort 0}
   20706 do_test where7-2.891.2 {
   20707   count_steps_sort {
   20708      SELECT a FROM t3
   20709       WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
   20710          OR (g='srqponm' AND f GLOB 'fghij*')
   20711          OR ((a BETWEEN 4 AND 6) AND a!=5)
   20712          OR (g='kjihgfe' AND f GLOB 'qrstu*')
   20713          OR (d>=11.0 AND d<12.0 AND d NOT NULL)
   20714   }
   20715 } {4 6 11 31 63 68 scan 0 sort 0}
   20716 do_test where7-2.892.1 {
   20717   count_steps_sort {
   20718      SELECT a FROM t2
   20719       WHERE c=11011
   20720          OR a=20
   20721          OR b=432
   20722          OR b=410
   20723          OR a=86
   20724          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   20725          OR b=638
   20726          OR ((a BETWEEN 58 AND 60) AND a!=59)
   20727          OR b=190
   20728   }
   20729 } {20 31 32 33 58 60 86 89 scan 0 sort 0}
   20730 do_test where7-2.892.2 {
   20731   count_steps_sort {
   20732      SELECT a FROM t3
   20733       WHERE c=11011
   20734          OR a=20
   20735          OR b=432
   20736          OR b=410
   20737          OR a=86
   20738          OR (d>=89.0 AND d<90.0 AND d NOT NULL)
   20739          OR b=638
   20740          OR ((a BETWEEN 58 AND 60) AND a!=59)
   20741          OR b=190
   20742   }
   20743 } {20 31 32 33 58 60 86 89 scan 0 sort 0}
   20744 do_test where7-2.893.1 {
   20745   count_steps_sort {
   20746      SELECT a FROM t2
   20747       WHERE b=88
   20748          OR ((a BETWEEN 42 AND 44) AND a!=43)
   20749          OR a=76
   20750          OR b=69
   20751          OR b=847
   20752          OR b=275
   20753   }
   20754 } {8 25 42 44 76 77 scan 0 sort 0}
   20755 do_test where7-2.893.2 {
   20756   count_steps_sort {
   20757      SELECT a FROM t3
   20758       WHERE b=88
   20759          OR ((a BETWEEN 42 AND 44) AND a!=43)
   20760          OR a=76
   20761          OR b=69
   20762          OR b=847
   20763          OR b=275
   20764   }
   20765 } {8 25 42 44 76 77 scan 0 sort 0}
   20766 do_test where7-2.894.1 {
   20767   count_steps_sort {
   20768      SELECT a FROM t2
   20769       WHERE b=781
   20770          OR b=77
   20771          OR b=58
   20772          OR ((a BETWEEN 67 AND 69) AND a!=68)
   20773   }
   20774 } {7 67 69 71 scan 0 sort 0}
   20775 do_test where7-2.894.2 {
   20776   count_steps_sort {
   20777      SELECT a FROM t3
   20778       WHERE b=781
   20779          OR b=77
   20780          OR b=58
   20781          OR ((a BETWEEN 67 AND 69) AND a!=68)
   20782   }
   20783 } {7 67 69 71 scan 0 sort 0}
   20784 do_test where7-2.895.1 {
   20785   count_steps_sort {
   20786      SELECT a FROM t2
   20787       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   20788          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   20789          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   20790          OR a=46
   20791          OR b=187
   20792          OR ((a BETWEEN 69 AND 71) AND a!=70)
   20793          OR (g='onmlkji' AND f GLOB 'yzabc*')
   20794   }
   20795 } {17 20 46 50 67 69 71 scan 0 sort 0}
   20796 do_test where7-2.895.2 {
   20797   count_steps_sort {
   20798      SELECT a FROM t3
   20799       WHERE ((a BETWEEN 67 AND 69) AND a!=68)
   20800          OR (d>=69.0 AND d<70.0 AND d NOT NULL)
   20801          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   20802          OR a=46
   20803          OR b=187
   20804          OR ((a BETWEEN 69 AND 71) AND a!=70)
   20805          OR (g='onmlkji' AND f GLOB 'yzabc*')
   20806   }
   20807 } {17 20 46 50 67 69 71 scan 0 sort 0}
   20808 do_test where7-2.896.1 {
   20809   count_steps_sort {
   20810      SELECT a FROM t2
   20811       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   20812          OR a=99
   20813          OR c=3003
   20814          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   20815          OR b=300
   20816          OR b=718
   20817          OR c>=34035
   20818          OR b=264
   20819   }
   20820 } {7 8 9 24 57 97 99 scan 0 sort 0}
   20821 do_test where7-2.896.2 {
   20822   count_steps_sort {
   20823      SELECT a FROM t3
   20824       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   20825          OR a=99
   20826          OR c=3003
   20827          OR (d>=57.0 AND d<58.0 AND d NOT NULL)
   20828          OR b=300
   20829          OR b=718
   20830          OR c>=34035
   20831          OR b=264
   20832   }
   20833 } {7 8 9 24 57 97 99 scan 0 sort 0}
   20834 do_test where7-2.897.1 {
   20835   count_steps_sort {
   20836      SELECT a FROM t2
   20837       WHERE b=872
   20838          OR b=209
   20839          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20840          OR b=355
   20841          OR b=729
   20842          OR ((a BETWEEN 81 AND 83) AND a!=82)
   20843          OR a=58
   20844          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20845          OR b=608
   20846   }
   20847 } {14 19 40 58 65 66 67 81 83 92 scan 0 sort 0}
   20848 do_test where7-2.897.2 {
   20849   count_steps_sort {
   20850      SELECT a FROM t3
   20851       WHERE b=872
   20852          OR b=209
   20853          OR ((a BETWEEN 65 AND 67) AND a!=66)
   20854          OR b=355
   20855          OR b=729
   20856          OR ((a BETWEEN 81 AND 83) AND a!=82)
   20857          OR a=58
   20858          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20859          OR b=608
   20860   }
   20861 } {14 19 40 58 65 66 67 81 83 92 scan 0 sort 0}
   20862 do_test where7-2.898.1 {
   20863   count_steps_sort {
   20864      SELECT a FROM t2
   20865       WHERE c=29029
   20866          OR f='efghijklm'
   20867          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   20868          OR a=26
   20869          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   20870   }
   20871 } {3 4 26 29 30 48 55 56 81 82 85 86 87 scan 0 sort 0}
   20872 do_test where7-2.898.2 {
   20873   count_steps_sort {
   20874      SELECT a FROM t3
   20875       WHERE c=29029
   20876          OR f='efghijklm'
   20877          OR (d>=48.0 AND d<49.0 AND d NOT NULL)
   20878          OR a=26
   20879          OR (f GLOB '?efgh*' AND f GLOB 'defg*')
   20880   }
   20881 } {3 4 26 29 30 48 55 56 81 82 85 86 87 scan 0 sort 0}
   20882 do_test where7-2.899.1 {
   20883   count_steps_sort {
   20884      SELECT a FROM t2
   20885       WHERE a=59
   20886          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   20887          OR a=7
   20888          OR (g='tsrqpon' AND f GLOB 'abcde*')
   20889          OR b=762
   20890          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20891   }
   20892 } {7 12 14 26 40 59 66 92 scan 0 sort 0}
   20893 do_test where7-2.899.2 {
   20894   count_steps_sort {
   20895      SELECT a FROM t3
   20896       WHERE a=59
   20897          OR (g='wvutsrq' AND f GLOB 'mnopq*')
   20898          OR a=7
   20899          OR (g='tsrqpon' AND f GLOB 'abcde*')
   20900          OR b=762
   20901          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   20902   }
   20903 } {7 12 14 26 40 59 66 92 scan 0 sort 0}
   20904 do_test where7-2.900.1 {
   20905   count_steps_sort {
   20906      SELECT a FROM t2
   20907       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   20908          OR b=539
   20909          OR b=399
   20910   }
   20911 } {49 91 scan 0 sort 0}
   20912 do_test where7-2.900.2 {
   20913   count_steps_sort {
   20914      SELECT a FROM t3
   20915       WHERE (g='gfedcba' AND f GLOB 'nopqr*')
   20916          OR b=539
   20917          OR b=399
   20918   }
   20919 } {49 91 scan 0 sort 0}
   20920 do_test where7-2.901.1 {
   20921   count_steps_sort {
   20922      SELECT a FROM t2
   20923       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   20924          OR ((a BETWEEN 96 AND 98) AND a!=97)
   20925          OR a=92
   20926   }
   20927 } {71 73 92 96 98 scan 0 sort 0}
   20928 do_test where7-2.901.2 {
   20929   count_steps_sort {
   20930      SELECT a FROM t3
   20931       WHERE ((a BETWEEN 71 AND 73) AND a!=72)
   20932          OR ((a BETWEEN 96 AND 98) AND a!=97)
   20933          OR a=92
   20934   }
   20935 } {71 73 92 96 98 scan 0 sort 0}
   20936 do_test where7-2.902.1 {
   20937   count_steps_sort {
   20938      SELECT a FROM t2
   20939       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   20940          OR (g='rqponml' AND f GLOB 'klmno*')
   20941          OR f='lmnopqrst'
   20942          OR (g='nmlkjih' AND f GLOB 'fghij*')
   20943   }
   20944 } {9 11 35 36 37 57 61 63 87 89 scan 0 sort 0}
   20945 do_test where7-2.902.2 {
   20946   count_steps_sort {
   20947      SELECT a FROM t3
   20948       WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
   20949          OR (g='rqponml' AND f GLOB 'klmno*')
   20950          OR f='lmnopqrst'
   20951          OR (g='nmlkjih' AND f GLOB 'fghij*')
   20952   }
   20953 } {9 11 35 36 37 57 61 63 87 89 scan 0 sort 0}
   20954 do_test where7-2.903.1 {
   20955   count_steps_sort {
   20956      SELECT a FROM t2
   20957       WHERE ((a BETWEEN 69 AND 71) AND a!=70)
   20958          OR ((a BETWEEN 91 AND 93) AND a!=92)
   20959          OR b=652
   20960   }
   20961 } {69 71 91 93 scan 0 sort 0}
   20962 do_test where7-2.903.2 {
   20963   count_steps_sort {
   20964      SELECT a FROM t3
   20965       WHERE ((a BETWEEN 69 AND 71) AND a!=70)
   20966          OR ((a BETWEEN 91 AND 93) AND a!=92)
   20967          OR b=652
   20968   }
   20969 } {69 71 91 93 scan 0 sort 0}
   20970 do_test where7-2.904.1 {
   20971   count_steps_sort {
   20972      SELECT a FROM t2
   20973       WHERE b=1067
   20974          OR ((a BETWEEN 53 AND 55) AND a!=54)
   20975          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   20976          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   20977          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   20978          OR b=520
   20979          OR b=399
   20980          OR b=209
   20981          OR a=68
   20982          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   20983   }
   20984 } {18 19 53 54 55 68 73 94 97 scan 0 sort 0}
   20985 do_test where7-2.904.2 {
   20986   count_steps_sort {
   20987      SELECT a FROM t3
   20988       WHERE b=1067
   20989          OR ((a BETWEEN 53 AND 55) AND a!=54)
   20990          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   20991          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   20992          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   20993          OR b=520
   20994          OR b=399
   20995          OR b=209
   20996          OR a=68
   20997          OR (g='fedcbaz' AND f GLOB 'qrstu*')
   20998   }
   20999 } {18 19 53 54 55 68 73 94 97 scan 0 sort 0}
   21000 do_test where7-2.905.1 {
   21001   count_steps_sort {
   21002      SELECT a FROM t2
   21003       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   21004          OR a=57
   21005          OR b=55
   21006          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   21007          OR ((a BETWEEN 20 AND 22) AND a!=21)
   21008          OR (g='rqponml' AND f GLOB 'lmnop*')
   21009          OR ((a BETWEEN 0 AND 2) AND a!=1)
   21010          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21011   }
   21012 } {2 5 20 21 22 23 34 37 57 79 scan 0 sort 0}
   21013 do_test where7-2.905.2 {
   21014   count_steps_sort {
   21015      SELECT a FROM t3
   21016       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   21017          OR a=57
   21018          OR b=55
   21019          OR (d>=34.0 AND d<35.0 AND d NOT NULL)
   21020          OR ((a BETWEEN 20 AND 22) AND a!=21)
   21021          OR (g='rqponml' AND f GLOB 'lmnop*')
   21022          OR ((a BETWEEN 0 AND 2) AND a!=1)
   21023          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21024   }
   21025 } {2 5 20 21 22 23 34 37 57 79 scan 0 sort 0}
   21026 do_test where7-2.906.1 {
   21027   count_steps_sort {
   21028      SELECT a FROM t2
   21029       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   21030          OR a=2
   21031          OR b=784
   21032          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21033          OR (g='ihgfedc' AND f GLOB 'defgh*')
   21034          OR b=850
   21035   }
   21036 } {2 21 23 81 scan 0 sort 0}
   21037 do_test where7-2.906.2 {
   21038   count_steps_sort {
   21039      SELECT a FROM t3
   21040       WHERE ((a BETWEEN 21 AND 23) AND a!=22)
   21041          OR a=2
   21042          OR b=784
   21043          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21044          OR (g='ihgfedc' AND f GLOB 'defgh*')
   21045          OR b=850
   21046   }
   21047 } {2 21 23 81 scan 0 sort 0}
   21048 do_test where7-2.907.1 {
   21049   count_steps_sort {
   21050      SELECT a FROM t2
   21051       WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
   21052          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   21053          OR b=748
   21054          OR b=209
   21055          OR a=100
   21056   }
   21057 } {19 45 51 68 100 scan 0 sort 0}
   21058 do_test where7-2.907.2 {
   21059   count_steps_sort {
   21060      SELECT a FROM t3
   21061       WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
   21062          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   21063          OR b=748
   21064          OR b=209
   21065          OR a=100
   21066   }
   21067 } {19 45 51 68 100 scan 0 sort 0}
   21068 do_test where7-2.908.1 {
   21069   count_steps_sort {
   21070      SELECT a FROM t2
   21071       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   21072          OR a=18
   21073          OR a=30
   21074          OR ((a BETWEEN 9 AND 11) AND a!=10)
   21075          OR ((a BETWEEN 84 AND 86) AND a!=85)
   21076          OR ((a BETWEEN 8 AND 10) AND a!=9)
   21077          OR b=792
   21078          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   21079          OR ((a BETWEEN 19 AND 21) AND a!=20)
   21080          OR c=26026
   21081          OR (g='rqponml' AND f GLOB 'hijkl*')
   21082   }
   21083 } {8 9 10 11 18 19 21 30 33 37 63 72 76 77 78 84 86 89 scan 0 sort 0}
   21084 do_test where7-2.908.2 {
   21085   count_steps_sort {
   21086      SELECT a FROM t3
   21087       WHERE (g='jihgfed' AND f GLOB 'zabcd*')
   21088          OR a=18
   21089          OR a=30
   21090          OR ((a BETWEEN 9 AND 11) AND a!=10)
   21091          OR ((a BETWEEN 84 AND 86) AND a!=85)
   21092          OR ((a BETWEEN 8 AND 10) AND a!=9)
   21093          OR b=792
   21094          OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
   21095          OR ((a BETWEEN 19 AND 21) AND a!=20)
   21096          OR c=26026
   21097          OR (g='rqponml' AND f GLOB 'hijkl*')
   21098   }
   21099 } {8 9 10 11 18 19 21 30 33 37 63 72 76 77 78 84 86 89 scan 0 sort 0}
   21100 do_test where7-2.909.1 {
   21101   count_steps_sort {
   21102      SELECT a FROM t2
   21103       WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
   21104          OR b=968
   21105          OR ((a BETWEEN 63 AND 65) AND a!=64)
   21106          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   21107          OR (g='jihgfed' AND f GLOB 'wxyza*')
   21108          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   21109          OR a=78
   21110          OR ((a BETWEEN 90 AND 92) AND a!=91)
   21111   }
   21112 } {16 22 48 63 65 72 74 78 88 90 92 100 scan 0 sort 0}
   21113 do_test where7-2.909.2 {
   21114   count_steps_sort {
   21115      SELECT a FROM t3
   21116       WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
   21117          OR b=968
   21118          OR ((a BETWEEN 63 AND 65) AND a!=64)
   21119          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   21120          OR (g='jihgfed' AND f GLOB 'wxyza*')
   21121          OR (d>=72.0 AND d<73.0 AND d NOT NULL)
   21122          OR a=78
   21123          OR ((a BETWEEN 90 AND 92) AND a!=91)
   21124   }
   21125 } {16 22 48 63 65 72 74 78 88 90 92 100 scan 0 sort 0}
   21126 do_test where7-2.910.1 {
   21127   count_steps_sort {
   21128      SELECT a FROM t2
   21129       WHERE c=10010
   21130          OR f='pqrstuvwx'
   21131   }
   21132 } {15 28 29 30 41 67 93 scan 0 sort 0}
   21133 do_test where7-2.910.2 {
   21134   count_steps_sort {
   21135      SELECT a FROM t3
   21136       WHERE c=10010
   21137          OR f='pqrstuvwx'
   21138   }
   21139 } {15 28 29 30 41 67 93 scan 0 sort 0}
   21140 do_test where7-2.911.1 {
   21141   count_steps_sort {
   21142      SELECT a FROM t2
   21143       WHERE a=86
   21144          OR a=10
   21145          OR b=528
   21146          OR b=253
   21147          OR a=80
   21148          OR a=87
   21149          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   21150   }
   21151 } {10 23 37 48 80 86 87 scan 0 sort 0}
   21152 do_test where7-2.911.2 {
   21153   count_steps_sort {
   21154      SELECT a FROM t3
   21155       WHERE a=86
   21156          OR a=10
   21157          OR b=528
   21158          OR b=253
   21159          OR a=80
   21160          OR a=87
   21161          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   21162   }
   21163 } {10 23 37 48 80 86 87 scan 0 sort 0}
   21164 do_test where7-2.912.1 {
   21165   count_steps_sort {
   21166      SELECT a FROM t2
   21167       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   21168          OR b=825
   21169          OR a=100
   21170          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   21171          OR a=60
   21172   }
   21173 } {42 60 75 77 100 scan 0 sort 0}
   21174 do_test where7-2.912.2 {
   21175   count_steps_sort {
   21176      SELECT a FROM t3
   21177       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   21178          OR b=825
   21179          OR a=100
   21180          OR (d>=77.0 AND d<78.0 AND d NOT NULL)
   21181          OR a=60
   21182   }
   21183 } {42 60 75 77 100 scan 0 sort 0}
   21184 do_test where7-2.913.1 {
   21185   count_steps_sort {
   21186      SELECT a FROM t2
   21187       WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
   21188          OR b=883
   21189          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   21190          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   21191          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   21192          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   21193          OR a=81
   21194          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21195          OR f='mnopqrstu'
   21196   }
   21197 } {3 4 12 30 35 38 45 56 64 78 81 82 90 94 scan 0 sort 0}
   21198 do_test where7-2.913.2 {
   21199   count_steps_sort {
   21200      SELECT a FROM t3
   21201       WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
   21202          OR b=883
   21203          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   21204          OR (d>=3.0 AND d<4.0 AND d NOT NULL)
   21205          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   21206          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   21207          OR a=81
   21208          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21209          OR f='mnopqrstu'
   21210   }
   21211 } {3 4 12 30 35 38 45 56 64 78 81 82 90 94 scan 0 sort 0}
   21212 do_test where7-2.914.1 {
   21213   count_steps_sort {
   21214      SELECT a FROM t2
   21215       WHERE b=443
   21216          OR ((a BETWEEN 14 AND 16) AND a!=15)
   21217          OR b=663
   21218          OR b=905
   21219          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   21220          OR b=883
   21221          OR c=22022
   21222          OR b=638
   21223   }
   21224 } {14 16 58 64 65 66 96 scan 0 sort 0}
   21225 do_test where7-2.914.2 {
   21226   count_steps_sort {
   21227      SELECT a FROM t3
   21228       WHERE b=443
   21229          OR ((a BETWEEN 14 AND 16) AND a!=15)
   21230          OR b=663
   21231          OR b=905
   21232          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   21233          OR b=883
   21234          OR c=22022
   21235          OR b=638
   21236   }
   21237 } {14 16 58 64 65 66 96 scan 0 sort 0}
   21238 do_test where7-2.915.1 {
   21239   count_steps_sort {
   21240      SELECT a FROM t2
   21241       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   21242          OR b=234
   21243          OR a=53
   21244          OR ((a BETWEEN 20 AND 22) AND a!=21)
   21245          OR ((a BETWEEN 27 AND 29) AND a!=28)
   21246          OR b=319
   21247          OR (g='qponmlk' AND f GLOB 'opqrs*')
   21248          OR ((a BETWEEN 14 AND 16) AND a!=15)
   21249   }
   21250 } {14 16 20 22 27 29 40 53 84 86 scan 0 sort 0}
   21251 do_test where7-2.915.2 {
   21252   count_steps_sort {
   21253      SELECT a FROM t3
   21254       WHERE ((a BETWEEN 84 AND 86) AND a!=85)
   21255          OR b=234
   21256          OR a=53
   21257          OR ((a BETWEEN 20 AND 22) AND a!=21)
   21258          OR ((a BETWEEN 27 AND 29) AND a!=28)
   21259          OR b=319
   21260          OR (g='qponmlk' AND f GLOB 'opqrs*')
   21261          OR ((a BETWEEN 14 AND 16) AND a!=15)
   21262   }
   21263 } {14 16 20 22 27 29 40 53 84 86 scan 0 sort 0}
   21264 do_test where7-2.916.1 {
   21265   count_steps_sort {
   21266      SELECT a FROM t2
   21267       WHERE b=179
   21268          OR ((a BETWEEN 95 AND 97) AND a!=96)
   21269          OR a=46
   21270          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   21271          OR ((a BETWEEN 53 AND 55) AND a!=54)
   21272          OR a=25
   21273          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   21274          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   21275          OR f='opqrstuvw'
   21276          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   21277          OR b=938
   21278   }
   21279 } {5 13 14 25 40 46 53 55 66 72 92 95 97 scan 0 sort 0}
   21280 do_test where7-2.916.2 {
   21281   count_steps_sort {
   21282      SELECT a FROM t3
   21283       WHERE b=179
   21284          OR ((a BETWEEN 95 AND 97) AND a!=96)
   21285          OR a=46
   21286          OR (g='kjihgfe' AND f GLOB 'uvwxy*')
   21287          OR ((a BETWEEN 53 AND 55) AND a!=54)
   21288          OR a=25
   21289          OR (d>=5.0 AND d<6.0 AND d NOT NULL)
   21290          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   21291          OR f='opqrstuvw'
   21292          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   21293          OR b=938
   21294   }
   21295 } {5 13 14 25 40 46 53 55 66 72 92 95 97 scan 0 sort 0}
   21296 do_test where7-2.917.1 {
   21297   count_steps_sort {
   21298      SELECT a FROM t2
   21299       WHERE (g='nmlkjih' AND f GLOB 'fghij*')
   21300          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   21301   }
   21302 } {15 57 scan 0 sort 0}
   21303 do_test where7-2.917.2 {
   21304   count_steps_sort {
   21305      SELECT a FROM t3
   21306       WHERE (g='nmlkjih' AND f GLOB 'fghij*')
   21307          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   21308   }
   21309 } {15 57 scan 0 sort 0}
   21310 do_test where7-2.918.1 {
   21311   count_steps_sort {
   21312      SELECT a FROM t2
   21313       WHERE b=748
   21314          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   21315          OR a=32
   21316          OR b=110
   21317          OR b=297
   21318          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   21319          OR ((a BETWEEN 60 AND 62) AND a!=61)
   21320          OR f='ghijklmno'
   21321          OR b=473
   21322          OR b=135
   21323   }
   21324 } {6 10 13 22 27 32 43 58 60 62 68 84 scan 0 sort 0}
   21325 do_test where7-2.918.2 {
   21326   count_steps_sort {
   21327      SELECT a FROM t3
   21328       WHERE b=748
   21329          OR (g='utsrqpo' AND f GLOB 'wxyza*')
   21330          OR a=32
   21331          OR b=110
   21332          OR b=297
   21333          OR (d>=13.0 AND d<14.0 AND d NOT NULL)
   21334          OR ((a BETWEEN 60 AND 62) AND a!=61)
   21335          OR f='ghijklmno'
   21336          OR b=473
   21337          OR b=135
   21338   }
   21339 } {6 10 13 22 27 32 43 58 60 62 68 84 scan 0 sort 0}
   21340 do_test where7-2.919.1 {
   21341   count_steps_sort {
   21342      SELECT a FROM t2
   21343       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   21344          OR b=905
   21345          OR a=97
   21346          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   21347          OR c=27027
   21348          OR f='bcdefghij'
   21349          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   21350          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   21351          OR ((a BETWEEN 38 AND 40) AND a!=39)
   21352          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21353   }
   21354 } {1 4 25 27 30 33 38 40 53 54 56 79 80 81 82 85 97 scan 0 sort 0}
   21355 do_test where7-2.919.2 {
   21356   count_steps_sort {
   21357      SELECT a FROM t3
   21358       WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
   21359          OR b=905
   21360          OR a=97
   21361          OR (g='hgfedcb' AND f GLOB 'hijkl*')
   21362          OR c=27027
   21363          OR f='bcdefghij'
   21364          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   21365          OR (d>=25.0 AND d<26.0 AND d NOT NULL)
   21366          OR ((a BETWEEN 38 AND 40) AND a!=39)
   21367          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21368   }
   21369 } {1 4 25 27 30 33 38 40 53 54 56 79 80 81 82 85 97 scan 0 sort 0}
   21370 do_test where7-2.920.1 {
   21371   count_steps_sort {
   21372      SELECT a FROM t2
   21373       WHERE ((a BETWEEN 64 AND 66) AND a!=65)
   21374          OR ((a BETWEEN 90 AND 92) AND a!=91)
   21375   }
   21376 } {64 66 90 92 scan 0 sort 0}
   21377 do_test where7-2.920.2 {
   21378   count_steps_sort {
   21379      SELECT a FROM t3
   21380       WHERE ((a BETWEEN 64 AND 66) AND a!=65)
   21381          OR ((a BETWEEN 90 AND 92) AND a!=91)
   21382   }
   21383 } {64 66 90 92 scan 0 sort 0}
   21384 do_test where7-2.921.1 {
   21385   count_steps_sort {
   21386      SELECT a FROM t2
   21387       WHERE b=594
   21388          OR b=80
   21389          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   21390          OR (g='qponmlk' AND f GLOB 'mnopq*')
   21391          OR b=421
   21392          OR b=418
   21393          OR b=828
   21394          OR a=88
   21395          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   21396          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   21397   }
   21398 } {23 27 38 54 60 88 scan 0 sort 0}
   21399 do_test where7-2.921.2 {
   21400   count_steps_sort {
   21401      SELECT a FROM t3
   21402       WHERE b=594
   21403          OR b=80
   21404          OR (g='tsrqpon' AND f GLOB 'bcdef*')
   21405          OR (g='qponmlk' AND f GLOB 'mnopq*')
   21406          OR b=421
   21407          OR b=418
   21408          OR b=828
   21409          OR a=88
   21410          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   21411          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   21412   }
   21413 } {23 27 38 54 60 88 scan 0 sort 0}
   21414 do_test where7-2.922.1 {
   21415   count_steps_sort {
   21416      SELECT a FROM t2
   21417       WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
   21418          OR (g='jihgfed' AND f GLOB 'xyzab*')
   21419          OR b=366
   21420          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   21421          OR c=16016
   21422          OR (g='edcbazy' AND f GLOB 'wxyza*')
   21423          OR c=9009
   21424   }
   21425 } {17 25 26 27 28 46 47 48 75 100 scan 0 sort 0}
   21426 do_test where7-2.922.2 {
   21427   count_steps_sort {
   21428      SELECT a FROM t3
   21429       WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
   21430          OR (g='jihgfed' AND f GLOB 'xyzab*')
   21431          OR b=366
   21432          OR (d>=28.0 AND d<29.0 AND d NOT NULL)
   21433          OR c=16016
   21434          OR (g='edcbazy' AND f GLOB 'wxyza*')
   21435          OR c=9009
   21436   }
   21437 } {17 25 26 27 28 46 47 48 75 100 scan 0 sort 0}
   21438 do_test where7-2.923.1 {
   21439   count_steps_sort {
   21440      SELECT a FROM t2
   21441       WHERE b=33
   21442          OR f='qrstuvwxy'
   21443          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   21444          OR b=858
   21445   }
   21446 } {3 16 20 42 68 78 94 scan 0 sort 0}
   21447 do_test where7-2.923.2 {
   21448   count_steps_sort {
   21449      SELECT a FROM t3
   21450       WHERE b=33
   21451          OR f='qrstuvwxy'
   21452          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   21453          OR b=858
   21454   }
   21455 } {3 16 20 42 68 78 94 scan 0 sort 0}
   21456 do_test where7-2.924.1 {
   21457   count_steps_sort {
   21458      SELECT a FROM t2
   21459       WHERE b=861
   21460          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   21461          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   21462          OR b=682
   21463          OR ((a BETWEEN 93 AND 95) AND a!=94)
   21464          OR b=286
   21465   }
   21466 } {22 26 29 48 62 74 93 95 100 scan 0 sort 0}
   21467 do_test where7-2.924.2 {
   21468   count_steps_sort {
   21469      SELECT a FROM t3
   21470       WHERE b=861
   21471          OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
   21472          OR (d>=29.0 AND d<30.0 AND d NOT NULL)
   21473          OR b=682
   21474          OR ((a BETWEEN 93 AND 95) AND a!=94)
   21475          OR b=286
   21476   }
   21477 } {22 26 29 48 62 74 93 95 100 scan 0 sort 0}
   21478 do_test where7-2.925.1 {
   21479   count_steps_sort {
   21480      SELECT a FROM t2
   21481       WHERE b=740
   21482          OR ((a BETWEEN 27 AND 29) AND a!=28)
   21483          OR a=88
   21484   }
   21485 } {27 29 88 scan 0 sort 0}
   21486 do_test where7-2.925.2 {
   21487   count_steps_sort {
   21488      SELECT a FROM t3
   21489       WHERE b=740
   21490          OR ((a BETWEEN 27 AND 29) AND a!=28)
   21491          OR a=88
   21492   }
   21493 } {27 29 88 scan 0 sort 0}
   21494 do_test where7-2.926.1 {
   21495   count_steps_sort {
   21496      SELECT a FROM t2
   21497       WHERE f='abcdefghi'
   21498          OR c=9009
   21499          OR b=663
   21500          OR (g='wvutsrq' AND f GLOB 'klmno*')
   21501          OR b=91
   21502   }
   21503 } {10 25 26 27 52 78 scan 0 sort 0}
   21504 do_test where7-2.926.2 {
   21505   count_steps_sort {
   21506      SELECT a FROM t3
   21507       WHERE f='abcdefghi'
   21508          OR c=9009
   21509          OR b=663
   21510          OR (g='wvutsrq' AND f GLOB 'klmno*')
   21511          OR b=91
   21512   }
   21513 } {10 25 26 27 52 78 scan 0 sort 0}
   21514 do_test where7-2.927.1 {
   21515   count_steps_sort {
   21516      SELECT a FROM t2
   21517       WHERE (g='kjihgfe' AND f GLOB 'qrstu*')
   21518          OR ((a BETWEEN 29 AND 31) AND a!=30)
   21519          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   21520          OR b=1015
   21521          OR (g='qponmlk' AND f GLOB 'qrstu*')
   21522          OR b=916
   21523          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   21524          OR b=69
   21525          OR (g='hgfedcb' AND f GLOB 'fghij*')
   21526   }
   21527 } {13 29 31 39 42 65 68 83 91 scan 0 sort 0}
   21528 do_test where7-2.927.2 {
   21529   count_steps_sort {
   21530      SELECT a FROM t3
   21531       WHERE (g='kjihgfe' AND f GLOB 'qrstu*')
   21532          OR ((a BETWEEN 29 AND 31) AND a!=30)
   21533          OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
   21534          OR b=1015
   21535          OR (g='qponmlk' AND f GLOB 'qrstu*')
   21536          OR b=916
   21537          OR (d>=31.0 AND d<32.0 AND d NOT NULL)
   21538          OR b=69
   21539          OR (g='hgfedcb' AND f GLOB 'fghij*')
   21540   }
   21541 } {13 29 31 39 42 65 68 83 91 scan 0 sort 0}
   21542 do_test where7-2.928.1 {
   21543   count_steps_sort {
   21544      SELECT a FROM t2
   21545       WHERE a=88
   21546          OR a=1
   21547          OR f='uvwxyzabc'
   21548          OR b=498
   21549          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   21550          OR a=63
   21551          OR f='mnopqrstu'
   21552          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   21553          OR b=495
   21554          OR a=35
   21555          OR a=22
   21556   }
   21557 } {1 12 20 22 35 38 45 46 60 63 64 72 88 90 98 scan 0 sort 0}
   21558 do_test where7-2.928.2 {
   21559   count_steps_sort {
   21560      SELECT a FROM t3
   21561       WHERE a=88
   21562          OR a=1
   21563          OR f='uvwxyzabc'
   21564          OR b=498
   21565          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   21566          OR a=63
   21567          OR f='mnopqrstu'
   21568          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   21569          OR b=495
   21570          OR a=35
   21571          OR a=22
   21572   }
   21573 } {1 12 20 22 35 38 45 46 60 63 64 72 88 90 98 scan 0 sort 0}
   21574 do_test where7-2.929.1 {
   21575   count_steps_sort {
   21576      SELECT a FROM t2
   21577       WHERE b=869
   21578          OR (g='rqponml' AND f GLOB 'jklmn*')
   21579          OR b=289
   21580          OR a=62
   21581          OR ((a BETWEEN 9 AND 11) AND a!=10)
   21582   }
   21583 } {9 11 35 62 79 scan 0 sort 0}
   21584 do_test where7-2.929.2 {
   21585   count_steps_sort {
   21586      SELECT a FROM t3
   21587       WHERE b=869
   21588          OR (g='rqponml' AND f GLOB 'jklmn*')
   21589          OR b=289
   21590          OR a=62
   21591          OR ((a BETWEEN 9 AND 11) AND a!=10)
   21592   }
   21593 } {9 11 35 62 79 scan 0 sort 0}
   21594 do_test where7-2.930.1 {
   21595   count_steps_sort {
   21596      SELECT a FROM t2
   21597       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   21598          OR b=542
   21599          OR ((a BETWEEN 19 AND 21) AND a!=20)
   21600          OR a=7
   21601          OR f='klmnopqrs'
   21602   }
   21603 } {7 10 19 21 22 24 36 62 88 scan 0 sort 0}
   21604 do_test where7-2.930.2 {
   21605   count_steps_sort {
   21606      SELECT a FROM t3
   21607       WHERE ((a BETWEEN 22 AND 24) AND a!=23)
   21608          OR b=542
   21609          OR ((a BETWEEN 19 AND 21) AND a!=20)
   21610          OR a=7
   21611          OR f='klmnopqrs'
   21612   }
   21613 } {7 10 19 21 22 24 36 62 88 scan 0 sort 0}
   21614 do_test where7-2.931.1 {
   21615   count_steps_sort {
   21616      SELECT a FROM t2
   21617       WHERE ((a BETWEEN 57 AND 59) AND a!=58)
   21618          OR b=1078
   21619          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21620          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   21621          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   21622          OR b=429
   21623   }
   21624 } {20 21 23 39 57 59 60 98 scan 0 sort 0}
   21625 do_test where7-2.931.2 {
   21626   count_steps_sort {
   21627      SELECT a FROM t3
   21628       WHERE ((a BETWEEN 57 AND 59) AND a!=58)
   21629          OR b=1078
   21630          OR ((a BETWEEN 21 AND 23) AND a!=22)
   21631          OR (g='mlkjihg' AND f GLOB 'ijklm*')
   21632          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   21633          OR b=429
   21634   }
   21635 } {20 21 23 39 57 59 60 98 scan 0 sort 0}
   21636 do_test where7-2.932.1 {
   21637   count_steps_sort {
   21638      SELECT a FROM t2
   21639       WHERE (d>=82.0 AND d<83.0 AND d NOT NULL)
   21640          OR b=264
   21641          OR ((a BETWEEN 85 AND 87) AND a!=86)
   21642          OR b=1048
   21643          OR a=15
   21644   }
   21645 } {15 24 82 85 87 scan 0 sort 0}
   21646 do_test where7-2.932.2 {
   21647   count_steps_sort {
   21648      SELECT a FROM t3
   21649       WHERE (d>=82.0 AND d<83.0 AND d NOT NULL)
   21650          OR b=264
   21651          OR ((a BETWEEN 85 AND 87) AND a!=86)
   21652          OR b=1048
   21653          OR a=15
   21654   }
   21655 } {15 24 82 85 87 scan 0 sort 0}
   21656 do_test where7-2.933.1 {
   21657   count_steps_sort {
   21658      SELECT a FROM t2
   21659       WHERE a=93
   21660          OR f='ijklmnopq'
   21661          OR f='mnopqrstu'
   21662          OR ((a BETWEEN 67 AND 69) AND a!=68)
   21663   }
   21664 } {8 12 34 38 60 64 67 69 86 90 93 scan 0 sort 0}
   21665 do_test where7-2.933.2 {
   21666   count_steps_sort {
   21667      SELECT a FROM t3
   21668       WHERE a=93
   21669          OR f='ijklmnopq'
   21670          OR f='mnopqrstu'
   21671          OR ((a BETWEEN 67 AND 69) AND a!=68)
   21672   }
   21673 } {8 12 34 38 60 64 67 69 86 90 93 scan 0 sort 0}
   21674 do_test where7-2.934.1 {
   21675   count_steps_sort {
   21676      SELECT a FROM t2
   21677       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   21678          OR b=858
   21679          OR a=58
   21680          OR (g='onmlkji' AND f GLOB 'xyzab*')
   21681          OR c=21021
   21682          OR ((a BETWEEN 45 AND 47) AND a!=46)
   21683          OR b=616
   21684          OR b=784
   21685          OR b=55
   21686   }
   21687 } {5 45 47 49 56 58 61 62 63 78 scan 0 sort 0}
   21688 do_test where7-2.934.2 {
   21689   count_steps_sort {
   21690      SELECT a FROM t3
   21691       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   21692          OR b=858
   21693          OR a=58
   21694          OR (g='onmlkji' AND f GLOB 'xyzab*')
   21695          OR c=21021
   21696          OR ((a BETWEEN 45 AND 47) AND a!=46)
   21697          OR b=616
   21698          OR b=784
   21699          OR b=55
   21700   }
   21701 } {5 45 47 49 56 58 61 62 63 78 scan 0 sort 0}
   21702 do_test where7-2.935.1 {
   21703   count_steps_sort {
   21704      SELECT a FROM t2
   21705       WHERE b=682
   21706          OR b=99
   21707          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   21708          OR b=531
   21709   }
   21710 } {2 9 28 54 62 80 scan 0 sort 0}
   21711 do_test where7-2.935.2 {
   21712   count_steps_sort {
   21713      SELECT a FROM t3
   21714       WHERE b=682
   21715          OR b=99
   21716          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   21717          OR b=531
   21718   }
   21719 } {2 9 28 54 62 80 scan 0 sort 0}
   21720 do_test where7-2.936.1 {
   21721   count_steps_sort {
   21722      SELECT a FROM t2
   21723       WHERE ((a BETWEEN 56 AND 58) AND a!=57)
   21724          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   21725          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   21726          OR b=726
   21727          OR a=79
   21728          OR a=47
   21729          OR b=212
   21730          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   21731          OR c=8008
   21732   }
   21733 } {8 22 23 24 26 34 47 52 56 58 60 66 70 78 79 86 scan 0 sort 0}
   21734 do_test where7-2.936.2 {
   21735   count_steps_sort {
   21736      SELECT a FROM t3
   21737       WHERE ((a BETWEEN 56 AND 58) AND a!=57)
   21738          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   21739          OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
   21740          OR b=726
   21741          OR a=79
   21742          OR a=47
   21743          OR b=212
   21744          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   21745          OR c=8008
   21746   }
   21747 } {8 22 23 24 26 34 47 52 56 58 60 66 70 78 79 86 scan 0 sort 0}
   21748 do_test where7-2.937.1 {
   21749   count_steps_sort {
   21750      SELECT a FROM t2
   21751       WHERE f='uvwxyzabc'
   21752          OR ((a BETWEEN 60 AND 62) AND a!=61)
   21753          OR a=5
   21754          OR b=33
   21755          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   21756          OR a=59
   21757          OR b=44
   21758          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   21759          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   21760   }
   21761 } {3 4 5 14 20 23 46 49 59 60 62 72 75 98 scan 0 sort 0}
   21762 do_test where7-2.937.2 {
   21763   count_steps_sort {
   21764      SELECT a FROM t3
   21765       WHERE f='uvwxyzabc'
   21766          OR ((a BETWEEN 60 AND 62) AND a!=61)
   21767          OR a=5
   21768          OR b=33
   21769          OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
   21770          OR a=59
   21771          OR b=44
   21772          OR (d>=14.0 AND d<15.0 AND d NOT NULL)
   21773          OR (d>=59.0 AND d<60.0 AND d NOT NULL)
   21774   }
   21775 } {3 4 5 14 20 23 46 49 59 60 62 72 75 98 scan 0 sort 0}
   21776 do_test where7-2.938.1 {
   21777   count_steps_sort {
   21778      SELECT a FROM t2
   21779       WHERE b=564
   21780          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   21781          OR b=451
   21782          OR b=330
   21783          OR a=47
   21784          OR ((a BETWEEN 17 AND 19) AND a!=18)
   21785   }
   21786 } {17 19 30 41 47 93 scan 0 sort 0}
   21787 do_test where7-2.938.2 {
   21788   count_steps_sort {
   21789      SELECT a FROM t3
   21790       WHERE b=564
   21791          OR (d>=93.0 AND d<94.0 AND d NOT NULL)
   21792          OR b=451
   21793          OR b=330
   21794          OR a=47
   21795          OR ((a BETWEEN 17 AND 19) AND a!=18)
   21796   }
   21797 } {17 19 30 41 47 93 scan 0 sort 0}
   21798 do_test where7-2.939.1 {
   21799   count_steps_sort {
   21800      SELECT a FROM t2
   21801       WHERE a=40
   21802          OR b=333
   21803   }
   21804 } {40 scan 0 sort 0}
   21805 do_test where7-2.939.2 {
   21806   count_steps_sort {
   21807      SELECT a FROM t3
   21808       WHERE a=40
   21809          OR b=333
   21810   }
   21811 } {40 scan 0 sort 0}
   21812 do_test where7-2.940.1 {
   21813   count_steps_sort {
   21814      SELECT a FROM t2
   21815       WHERE b=924
   21816          OR ((a BETWEEN 6 AND 8) AND a!=7)
   21817          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   21818          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   21819          OR a=100
   21820          OR c=15015
   21821          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   21822          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   21823   }
   21824 } {2 6 8 36 40 43 44 45 82 84 100 scan 0 sort 0}
   21825 do_test where7-2.940.2 {
   21826   count_steps_sort {
   21827      SELECT a FROM t3
   21828       WHERE b=924
   21829          OR ((a BETWEEN 6 AND 8) AND a!=7)
   21830          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   21831          OR (d>=40.0 AND d<41.0 AND d NOT NULL)
   21832          OR a=100
   21833          OR c=15015
   21834          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   21835          OR (d>=2.0 AND d<3.0 AND d NOT NULL)
   21836   }
   21837 } {2 6 8 36 40 43 44 45 82 84 100 scan 0 sort 0}
   21838 do_test where7-2.941.1 {
   21839   count_steps_sort {
   21840      SELECT a FROM t2
   21841       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   21842          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   21843          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   21844   }
   21845 } {36 44 63 scan 0 sort 0}
   21846 do_test where7-2.941.2 {
   21847   count_steps_sort {
   21848      SELECT a FROM t3
   21849       WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
   21850          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   21851          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   21852   }
   21853 } {36 44 63 scan 0 sort 0}
   21854 do_test where7-2.942.1 {
   21855   count_steps_sort {
   21856      SELECT a FROM t2
   21857       WHERE b=58
   21858          OR ((a BETWEEN 7 AND 9) AND a!=8)
   21859          OR ((a BETWEEN 63 AND 65) AND a!=64)
   21860          OR a=31
   21861          OR f='tuvwxyzab'
   21862          OR b=341
   21863          OR b=47
   21864          OR ((a BETWEEN 95 AND 97) AND a!=96)
   21865          OR a=49
   21866          OR b=223
   21867          OR f='qrstuvwxy'
   21868   }
   21869 } {7 9 16 19 31 42 45 49 63 65 68 71 94 95 97 scan 0 sort 0}
   21870 do_test where7-2.942.2 {
   21871   count_steps_sort {
   21872      SELECT a FROM t3
   21873       WHERE b=58
   21874          OR ((a BETWEEN 7 AND 9) AND a!=8)
   21875          OR ((a BETWEEN 63 AND 65) AND a!=64)
   21876          OR a=31
   21877          OR f='tuvwxyzab'
   21878          OR b=341
   21879          OR b=47
   21880          OR ((a BETWEEN 95 AND 97) AND a!=96)
   21881          OR a=49
   21882          OR b=223
   21883          OR f='qrstuvwxy'
   21884   }
   21885 } {7 9 16 19 31 42 45 49 63 65 68 71 94 95 97 scan 0 sort 0}
   21886 do_test where7-2.943.1 {
   21887   count_steps_sort {
   21888      SELECT a FROM t2
   21889       WHERE a=96
   21890          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   21891          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   21892          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21893          OR ((a BETWEEN 37 AND 39) AND a!=38)
   21894          OR a=85
   21895          OR ((a BETWEEN 10 AND 12) AND a!=11)
   21896          OR c=11011
   21897          OR b=641
   21898          OR f='vwxyzabcd'
   21899          OR b=286
   21900   }
   21901 } {4 10 12 21 23 26 30 31 32 33 37 39 47 56 73 82 85 96 99 scan 0 sort 0}
   21902 do_test where7-2.943.2 {
   21903   count_steps_sort {
   21904      SELECT a FROM t3
   21905       WHERE a=96
   21906          OR (d>=23.0 AND d<24.0 AND d NOT NULL)
   21907          OR (g='ponmlkj' AND f GLOB 'vwxyz*')
   21908          OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
   21909          OR ((a BETWEEN 37 AND 39) AND a!=38)
   21910          OR a=85
   21911          OR ((a BETWEEN 10 AND 12) AND a!=11)
   21912          OR c=11011
   21913          OR b=641
   21914          OR f='vwxyzabcd'
   21915          OR b=286
   21916   }
   21917 } {4 10 12 21 23 26 30 31 32 33 37 39 47 56 73 82 85 96 99 scan 0 sort 0}
   21918 do_test where7-2.944.1 {
   21919   count_steps_sort {
   21920      SELECT a FROM t2
   21921       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   21922          OR b=1012
   21923          OR a=7
   21924          OR b=773
   21925          OR a=1
   21926          OR b=726
   21927          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   21928          OR ((a BETWEEN 87 AND 89) AND a!=88)
   21929          OR b=110
   21930   }
   21931 } {1 3 5 7 10 66 87 89 92 99 scan 0 sort 0}
   21932 do_test where7-2.944.2 {
   21933   count_steps_sort {
   21934      SELECT a FROM t3
   21935       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   21936          OR b=1012
   21937          OR a=7
   21938          OR b=773
   21939          OR a=1
   21940          OR b=726
   21941          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   21942          OR ((a BETWEEN 87 AND 89) AND a!=88)
   21943          OR b=110
   21944   }
   21945 } {1 3 5 7 10 66 87 89 92 99 scan 0 sort 0}
   21946 do_test where7-2.945.1 {
   21947   count_steps_sort {
   21948      SELECT a FROM t2
   21949       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   21950          OR a=60
   21951          OR a=4
   21952          OR b=520
   21953          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   21954          OR a=44
   21955          OR a=36
   21956          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   21957          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   21958          OR b=715
   21959          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   21960   }
   21961 } {4 7 16 36 44 60 65 76 79 scan 0 sort 0}
   21962 do_test where7-2.945.2 {
   21963   count_steps_sort {
   21964      SELECT a FROM t3
   21965       WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
   21966          OR a=60
   21967          OR a=4
   21968          OR b=520
   21969          OR (g='ihgfedc' AND f GLOB 'bcdef*')
   21970          OR a=44
   21971          OR a=36
   21972          OR (d>=76.0 AND d<77.0 AND d NOT NULL)
   21973          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   21974          OR b=715
   21975          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   21976   }
   21977 } {4 7 16 36 44 60 65 76 79 scan 0 sort 0}
   21978 do_test where7-2.946.1 {
   21979   count_steps_sort {
   21980      SELECT a FROM t2
   21981       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   21982          OR ((a BETWEEN 56 AND 58) AND a!=57)
   21983          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   21984          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   21985          OR (g='jihgfed' AND f GLOB 'yzabc*')
   21986          OR a=24
   21987          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   21988          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   21989   }
   21990 } {3 5 15 24 26 52 55 56 58 76 78 99 scan 0 sort 0}
   21991 do_test where7-2.946.2 {
   21992   count_steps_sort {
   21993      SELECT a FROM t3
   21994       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   21995          OR ((a BETWEEN 56 AND 58) AND a!=57)
   21996          OR (d>=15.0 AND d<16.0 AND d NOT NULL)
   21997          OR (d>=55.0 AND d<56.0 AND d NOT NULL)
   21998          OR (g='jihgfed' AND f GLOB 'yzabc*')
   21999          OR a=24
   22000          OR (d>=99.0 AND d<100.0 AND d NOT NULL)
   22001          OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
   22002   }
   22003 } {3 5 15 24 26 52 55 56 58 76 78 99 scan 0 sort 0}
   22004 do_test where7-2.947.1 {
   22005   count_steps_sort {
   22006      SELECT a FROM t2
   22007       WHERE (g='utsrqpo' AND f GLOB 'vwxyz*')
   22008          OR b=132
   22009          OR f='ghijklmno'
   22010          OR b=740
   22011          OR (g='qponmlk' AND f GLOB 'mnopq*')
   22012          OR (g='tsrqpon' AND f GLOB 'abcde*')
   22013          OR b=1059
   22014   }
   22015 } {6 12 21 26 32 38 58 84 scan 0 sort 0}
   22016 do_test where7-2.947.2 {
   22017   count_steps_sort {
   22018      SELECT a FROM t3
   22019       WHERE (g='utsrqpo' AND f GLOB 'vwxyz*')
   22020          OR b=132
   22021          OR f='ghijklmno'
   22022          OR b=740
   22023          OR (g='qponmlk' AND f GLOB 'mnopq*')
   22024          OR (g='tsrqpon' AND f GLOB 'abcde*')
   22025          OR b=1059
   22026   }
   22027 } {6 12 21 26 32 38 58 84 scan 0 sort 0}
   22028 do_test where7-2.948.1 {
   22029   count_steps_sort {
   22030      SELECT a FROM t2
   22031       WHERE a=28
   22032          OR b=927
   22033          OR b=520
   22034          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   22035          OR b=638
   22036          OR f='vwxyzabcd'
   22037   }
   22038 } {21 28 47 53 58 73 99 scan 0 sort 0}
   22039 do_test where7-2.948.2 {
   22040   count_steps_sort {
   22041      SELECT a FROM t3
   22042       WHERE a=28
   22043          OR b=927
   22044          OR b=520
   22045          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   22046          OR b=638
   22047          OR f='vwxyzabcd'
   22048   }
   22049 } {21 28 47 53 58 73 99 scan 0 sort 0}
   22050 do_test where7-2.949.1 {
   22051   count_steps_sort {
   22052      SELECT a FROM t2
   22053       WHERE (g='nmlkjih' AND f GLOB 'cdefg*')
   22054          OR b=1026
   22055          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   22056          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   22057          OR b=355
   22058          OR b=641
   22059          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   22060   }
   22061 } {1 11 53 54 scan 0 sort 0}
   22062 do_test where7-2.949.2 {
   22063   count_steps_sort {
   22064      SELECT a FROM t3
   22065       WHERE (g='nmlkjih' AND f GLOB 'cdefg*')
   22066          OR b=1026
   22067          OR (d>=1.0 AND d<2.0 AND d NOT NULL)
   22068          OR (g='wvutsrq' AND f GLOB 'lmnop*')
   22069          OR b=355
   22070          OR b=641
   22071          OR (d>=53.0 AND d<54.0 AND d NOT NULL)
   22072   }
   22073 } {1 11 53 54 scan 0 sort 0}
   22074 do_test where7-2.950.1 {
   22075   count_steps_sort {
   22076      SELECT a FROM t2
   22077       WHERE ((a BETWEEN 46 AND 48) AND a!=47)
   22078          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22079          OR b=641
   22080          OR a=3
   22081          OR a=35
   22082          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   22083          OR f='opqrstuvw'
   22084          OR a=41
   22085          OR a=83
   22086          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   22087          OR b=751
   22088   }
   22089 } {3 14 35 40 41 46 48 54 60 62 66 81 83 92 scan 0 sort 0}
   22090 do_test where7-2.950.2 {
   22091   count_steps_sort {
   22092      SELECT a FROM t3
   22093       WHERE ((a BETWEEN 46 AND 48) AND a!=47)
   22094          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22095          OR b=641
   22096          OR a=3
   22097          OR a=35
   22098          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   22099          OR f='opqrstuvw'
   22100          OR a=41
   22101          OR a=83
   22102          OR (g='nmlkjih' AND f GLOB 'cdefg*')
   22103          OR b=751
   22104   }
   22105 } {3 14 35 40 41 46 48 54 60 62 66 81 83 92 scan 0 sort 0}
   22106 do_test where7-2.951.1 {
   22107   count_steps_sort {
   22108      SELECT a FROM t2
   22109       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   22110          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22111          OR c=15015
   22112          OR b=146
   22113          OR b=1092
   22114          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   22115   }
   22116 } {3 5 43 44 45 60 62 scan 0 sort 0}
   22117 do_test where7-2.951.2 {
   22118   count_steps_sort {
   22119      SELECT a FROM t3
   22120       WHERE ((a BETWEEN 3 AND 5) AND a!=4)
   22121          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22122          OR c=15015
   22123          OR b=146
   22124          OR b=1092
   22125          OR (d>=60.0 AND d<61.0 AND d NOT NULL)
   22126   }
   22127 } {3 5 43 44 45 60 62 scan 0 sort 0}
   22128 do_test where7-2.952.1 {
   22129   count_steps_sort {
   22130      SELECT a FROM t2
   22131       WHERE (g='qponmlk' AND f GLOB 'qrstu*')
   22132          OR f='bcdefghij'
   22133          OR f='hijklmnop'
   22134          OR a=65
   22135          OR f='ijklmnopq'
   22136          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   22137          OR g IS NULL
   22138          OR a=26
   22139          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22140          OR a=9
   22141          OR (d>=32.0 AND d<33.0 AND d NOT NULL)
   22142   }
   22143 } {1 7 8 9 26 27 32 33 34 38 40 42 53 59 60 65 79 85 86 scan 0 sort 0}
   22144 do_test where7-2.952.2 {
   22145   count_steps_sort {
   22146      SELECT a FROM t3
   22147       WHERE (g='qponmlk' AND f GLOB 'qrstu*')
   22148          OR f='bcdefghij'
   22149          OR f='hijklmnop'
   22150          OR a=65
   22151          OR f='ijklmnopq'
   22152          OR (d>=79.0 AND d<80.0 AND d NOT NULL)
   22153          OR g IS NULL
   22154          OR a=26
   22155          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22156          OR a=9
   22157          OR (d>=32.0 AND d<33.0 AND d NOT NULL)
   22158   }
   22159 } {1 7 8 9 26 27 32 33 34 38 40 42 53 59 60 65 79 85 86 scan 0 sort 0}
   22160 do_test where7-2.953.1 {
   22161   count_steps_sort {
   22162      SELECT a FROM t2
   22163       WHERE (g='jihgfed' AND f GLOB 'vwxyz*')
   22164          OR ((a BETWEEN 10 AND 12) AND a!=11)
   22165          OR ((a BETWEEN 79 AND 81) AND a!=80)
   22166          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   22167          OR (g='qponmlk' AND f GLOB 'pqrst*')
   22168          OR b=1100
   22169          OR c=6006
   22170          OR c=4004
   22171          OR ((a BETWEEN 24 AND 26) AND a!=25)
   22172          OR c=33033
   22173   }
   22174 } {10 11 12 16 17 18 24 26 41 70 73 79 81 97 98 99 100 scan 0 sort 0}
   22175 do_test where7-2.953.2 {
   22176   count_steps_sort {
   22177      SELECT a FROM t3
   22178       WHERE (g='jihgfed' AND f GLOB 'vwxyz*')
   22179          OR ((a BETWEEN 10 AND 12) AND a!=11)
   22180          OR ((a BETWEEN 79 AND 81) AND a!=80)
   22181          OR (g='kjihgfe' AND f GLOB 'stuvw*')
   22182          OR (g='qponmlk' AND f GLOB 'pqrst*')
   22183          OR b=1100
   22184          OR c=6006
   22185          OR c=4004
   22186          OR ((a BETWEEN 24 AND 26) AND a!=25)
   22187          OR c=33033
   22188   }
   22189 } {10 11 12 16 17 18 24 26 41 70 73 79 81 97 98 99 100 scan 0 sort 0}
   22190 do_test where7-2.954.1 {
   22191   count_steps_sort {
   22192      SELECT a FROM t2
   22193       WHERE a=17
   22194          OR ((a BETWEEN 95 AND 97) AND a!=96)
   22195   }
   22196 } {17 95 97 scan 0 sort 0}
   22197 do_test where7-2.954.2 {
   22198   count_steps_sort {
   22199      SELECT a FROM t3
   22200       WHERE a=17
   22201          OR ((a BETWEEN 95 AND 97) AND a!=96)
   22202   }
   22203 } {17 95 97 scan 0 sort 0}
   22204 do_test where7-2.955.1 {
   22205   count_steps_sort {
   22206      SELECT a FROM t2
   22207       WHERE c=3003
   22208          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   22209          OR a=93
   22210   }
   22211 } {7 8 9 67 93 scan 0 sort 0}
   22212 do_test where7-2.955.2 {
   22213   count_steps_sort {
   22214      SELECT a FROM t3
   22215       WHERE c=3003
   22216          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   22217          OR a=93
   22218   }
   22219 } {7 8 9 67 93 scan 0 sort 0}
   22220 do_test where7-2.956.1 {
   22221   count_steps_sort {
   22222      SELECT a FROM t2
   22223       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   22224          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   22225          OR ((a BETWEEN 21 AND 23) AND a!=22)
   22226          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   22227          OR b=737
   22228   }
   22229 } {12 21 23 42 44 67 scan 0 sort 0}
   22230 do_test where7-2.956.2 {
   22231   count_steps_sort {
   22232      SELECT a FROM t3
   22233       WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
   22234          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   22235          OR ((a BETWEEN 21 AND 23) AND a!=22)
   22236          OR (d>=12.0 AND d<13.0 AND d NOT NULL)
   22237          OR b=737
   22238   }
   22239 } {12 21 23 42 44 67 scan 0 sort 0}
   22240 do_test where7-2.957.1 {
   22241   count_steps_sort {
   22242      SELECT a FROM t2
   22243       WHERE (g='rqponml' AND f GLOB 'klmno*')
   22244          OR ((a BETWEEN 5 AND 7) AND a!=6)
   22245   }
   22246 } {5 7 36 scan 0 sort 0}
   22247 do_test where7-2.957.2 {
   22248   count_steps_sort {
   22249      SELECT a FROM t3
   22250       WHERE (g='rqponml' AND f GLOB 'klmno*')
   22251          OR ((a BETWEEN 5 AND 7) AND a!=6)
   22252   }
   22253 } {5 7 36 scan 0 sort 0}
   22254 do_test where7-2.958.1 {
   22255   count_steps_sort {
   22256      SELECT a FROM t2
   22257       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   22258          OR c=32032
   22259          OR f='opqrstuvw'
   22260          OR ((a BETWEEN 66 AND 68) AND a!=67)
   22261          OR ((a BETWEEN 49 AND 51) AND a!=50)
   22262          OR b=993
   22263   }
   22264 } {14 40 49 51 66 68 85 92 94 95 96 scan 0 sort 0}
   22265 do_test where7-2.958.2 {
   22266   count_steps_sort {
   22267      SELECT a FROM t3
   22268       WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
   22269          OR c=32032
   22270          OR f='opqrstuvw'
   22271          OR ((a BETWEEN 66 AND 68) AND a!=67)
   22272          OR ((a BETWEEN 49 AND 51) AND a!=50)
   22273          OR b=993
   22274   }
   22275 } {14 40 49 51 66 68 85 92 94 95 96 scan 0 sort 0}
   22276 do_test where7-2.959.1 {
   22277   count_steps_sort {
   22278      SELECT a FROM t2
   22279       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   22280          OR ((a BETWEEN 59 AND 61) AND a!=60)
   22281          OR ((a BETWEEN 86 AND 88) AND a!=87)
   22282          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   22283          OR b=245
   22284          OR b=528
   22285          OR b=366
   22286          OR a=73
   22287          OR a=49
   22288          OR b=421
   22289          OR a=58
   22290   }
   22291 } {12 38 48 49 58 59 61 73 86 88 scan 0 sort 0}
   22292 do_test where7-2.959.2 {
   22293   count_steps_sort {
   22294      SELECT a FROM t3
   22295       WHERE (d>=12.0 AND d<13.0 AND d NOT NULL)
   22296          OR ((a BETWEEN 59 AND 61) AND a!=60)
   22297          OR ((a BETWEEN 86 AND 88) AND a!=87)
   22298          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   22299          OR b=245
   22300          OR b=528
   22301          OR b=366
   22302          OR a=73
   22303          OR a=49
   22304          OR b=421
   22305          OR a=58
   22306   }
   22307 } {12 38 48 49 58 59 61 73 86 88 scan 0 sort 0}
   22308 do_test where7-2.960.1 {
   22309   count_steps_sort {
   22310      SELECT a FROM t2
   22311       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   22312          OR ((a BETWEEN 8 AND 10) AND a!=9)
   22313          OR ((a BETWEEN 86 AND 88) AND a!=87)
   22314          OR b=146
   22315          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   22316          OR ((a BETWEEN 73 AND 75) AND a!=74)
   22317          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   22318          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22319          OR (g='ihgfedc' AND f GLOB 'efghi*')
   22320          OR b=704
   22321   }
   22322 } {8 10 20 43 60 62 64 73 75 82 86 88 100 scan 0 sort 0}
   22323 do_test where7-2.960.2 {
   22324   count_steps_sort {
   22325      SELECT a FROM t3
   22326       WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
   22327          OR ((a BETWEEN 8 AND 10) AND a!=9)
   22328          OR ((a BETWEEN 86 AND 88) AND a!=87)
   22329          OR b=146
   22330          OR (g='ponmlkj' AND f GLOB 'rstuv*')
   22331          OR ((a BETWEEN 73 AND 75) AND a!=74)
   22332          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   22333          OR ((a BETWEEN 60 AND 62) AND a!=61)
   22334          OR (g='ihgfedc' AND f GLOB 'efghi*')
   22335          OR b=704
   22336   }
   22337 } {8 10 20 43 60 62 64 73 75 82 86 88 100 scan 0 sort 0}
   22338 do_test where7-2.961.1 {
   22339   count_steps_sort {
   22340      SELECT a FROM t2
   22341       WHERE ((a BETWEEN 65 AND 67) AND a!=66)
   22342          OR b=14
   22343          OR ((a BETWEEN 3 AND 5) AND a!=4)
   22344          OR a=49
   22345          OR b=333
   22346   }
   22347 } {3 5 49 65 67 scan 0 sort 0}
   22348 do_test where7-2.961.2 {
   22349   count_steps_sort {
   22350      SELECT a FROM t3
   22351       WHERE ((a BETWEEN 65 AND 67) AND a!=66)
   22352          OR b=14
   22353          OR ((a BETWEEN 3 AND 5) AND a!=4)
   22354          OR a=49
   22355          OR b=333
   22356   }
   22357 } {3 5 49 65 67 scan 0 sort 0}
   22358 do_test where7-2.962.1 {
   22359   count_steps_sort {
   22360      SELECT a FROM t2
   22361       WHERE c=17017
   22362          OR (g='qponmlk' AND f GLOB 'mnopq*')
   22363          OR b=971
   22364          OR a=37
   22365          OR a=7
   22366          OR b=641
   22367          OR a=13
   22368          OR b=597
   22369   }
   22370 } {7 13 37 38 49 50 51 scan 0 sort 0}
   22371 do_test where7-2.962.2 {
   22372   count_steps_sort {
   22373      SELECT a FROM t3
   22374       WHERE c=17017
   22375          OR (g='qponmlk' AND f GLOB 'mnopq*')
   22376          OR b=971
   22377          OR a=37
   22378          OR a=7
   22379          OR b=641
   22380          OR a=13
   22381          OR b=597
   22382   }
   22383 } {7 13 37 38 49 50 51 scan 0 sort 0}
   22384 do_test where7-2.963.1 {
   22385   count_steps_sort {
   22386      SELECT a FROM t2
   22387       WHERE f='tuvwxyzab'
   22388          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   22389   }
   22390 } {17 19 43 45 69 71 95 97 scan 0 sort 0}
   22391 do_test where7-2.963.2 {
   22392   count_steps_sort {
   22393      SELECT a FROM t3
   22394       WHERE f='tuvwxyzab'
   22395          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   22396   }
   22397 } {17 19 43 45 69 71 95 97 scan 0 sort 0}
   22398 do_test where7-2.964.1 {
   22399   count_steps_sort {
   22400      SELECT a FROM t2
   22401       WHERE b=638
   22402          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   22403          OR (g='gfedcba' AND f GLOB 'lmnop*')
   22404          OR b=165
   22405          OR ((a BETWEEN 10 AND 12) AND a!=11)
   22406          OR f='stuvwxyza'
   22407          OR b=652
   22408          OR b=66
   22409          OR b=770
   22410          OR b=91
   22411   }
   22412 } {6 10 12 15 18 44 58 70 89 96 scan 0 sort 0}
   22413 do_test where7-2.964.2 {
   22414   count_steps_sort {
   22415      SELECT a FROM t3
   22416       WHERE b=638
   22417          OR (d>=44.0 AND d<45.0 AND d NOT NULL)
   22418          OR (g='gfedcba' AND f GLOB 'lmnop*')
   22419          OR b=165
   22420          OR ((a BETWEEN 10 AND 12) AND a!=11)
   22421          OR f='stuvwxyza'
   22422          OR b=652
   22423          OR b=66
   22424          OR b=770
   22425          OR b=91
   22426   }
   22427 } {6 10 12 15 18 44 58 70 89 96 scan 0 sort 0}
   22428 do_test where7-2.965.1 {
   22429   count_steps_sort {
   22430      SELECT a FROM t2
   22431       WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
   22432          OR f='opqrstuvw'
   22433          OR a=83
   22434          OR a=93
   22435          OR b=858
   22436          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   22437          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   22438   }
   22439 } {14 18 40 52 66 73 78 83 92 93 scan 0 sort 0}
   22440 do_test where7-2.965.2 {
   22441   count_steps_sort {
   22442      SELECT a FROM t3
   22443       WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
   22444          OR f='opqrstuvw'
   22445          OR a=83
   22446          OR a=93
   22447          OR b=858
   22448          OR (d>=18.0 AND d<19.0 AND d NOT NULL)
   22449          OR (g='jihgfed' AND f GLOB 'vwxyz*')
   22450   }
   22451 } {14 18 40 52 66 73 78 83 92 93 scan 0 sort 0}
   22452 do_test where7-2.966.1 {
   22453   count_steps_sort {
   22454      SELECT a FROM t2
   22455       WHERE c=3003
   22456          OR ((a BETWEEN 40 AND 42) AND a!=41)
   22457          OR a=38
   22458   }
   22459 } {7 8 9 38 40 42 scan 0 sort 0}
   22460 do_test where7-2.966.2 {
   22461   count_steps_sort {
   22462      SELECT a FROM t3
   22463       WHERE c=3003
   22464          OR ((a BETWEEN 40 AND 42) AND a!=41)
   22465          OR a=38
   22466   }
   22467 } {7 8 9 38 40 42 scan 0 sort 0}
   22468 do_test where7-2.967.1 {
   22469   count_steps_sort {
   22470      SELECT a FROM t2
   22471       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   22472          OR ((a BETWEEN 50 AND 52) AND a!=51)
   22473   }
   22474 } {50 52 60 scan 0 sort 0}
   22475 do_test where7-2.967.2 {
   22476   count_steps_sort {
   22477      SELECT a FROM t3
   22478       WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
   22479          OR ((a BETWEEN 50 AND 52) AND a!=51)
   22480   }
   22481 } {50 52 60 scan 0 sort 0}
   22482 do_test where7-2.968.1 {
   22483   count_steps_sort {
   22484      SELECT a FROM t2
   22485       WHERE (g='qponmlk' AND f GLOB 'mnopq*')
   22486          OR ((a BETWEEN 24 AND 26) AND a!=25)
   22487          OR a=5
   22488          OR b=396
   22489          OR a=13
   22490   }
   22491 } {5 13 24 26 36 38 scan 0 sort 0}
   22492 do_test where7-2.968.2 {
   22493   count_steps_sort {
   22494      SELECT a FROM t3
   22495       WHERE (g='qponmlk' AND f GLOB 'mnopq*')
   22496          OR ((a BETWEEN 24 AND 26) AND a!=25)
   22497          OR a=5
   22498          OR b=396
   22499          OR a=13
   22500   }
   22501 } {5 13 24 26 36 38 scan 0 sort 0}
   22502 do_test where7-2.969.1 {
   22503   count_steps_sort {
   22504      SELECT a FROM t2
   22505       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   22506          OR b=748
   22507          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   22508          OR ((a BETWEEN 69 AND 71) AND a!=70)
   22509          OR b=531
   22510          OR b=1092
   22511          OR b=418
   22512   }
   22513 } {38 68 69 71 95 97 scan 0 sort 0}
   22514 do_test where7-2.969.2 {
   22515   count_steps_sort {
   22516      SELECT a FROM t3
   22517       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   22518          OR b=748
   22519          OR (d>=97.0 AND d<98.0 AND d NOT NULL)
   22520          OR ((a BETWEEN 69 AND 71) AND a!=70)
   22521          OR b=531
   22522          OR b=1092
   22523          OR b=418
   22524   }
   22525 } {38 68 69 71 95 97 scan 0 sort 0}
   22526 do_test where7-2.970.1 {
   22527   count_steps_sort {
   22528      SELECT a FROM t2
   22529       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
   22530          OR ((a BETWEEN 8 AND 10) AND a!=9)
   22531          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   22532          OR a=50
   22533          OR a=46
   22534          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22535   }
   22536 } {8 10 14 30 38 40 46 50 66 92 scan 0 sort 0}
   22537 do_test where7-2.970.2 {
   22538   count_steps_sort {
   22539      SELECT a FROM t3
   22540       WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
   22541          OR ((a BETWEEN 8 AND 10) AND a!=9)
   22542          OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
   22543          OR a=50
   22544          OR a=46
   22545          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22546   }
   22547 } {8 10 14 30 38 40 46 50 66 92 scan 0 sort 0}
   22548 do_test where7-2.971.1 {
   22549   count_steps_sort {
   22550      SELECT a FROM t2
   22551       WHERE a=24
   22552          OR ((a BETWEEN 22 AND 24) AND a!=23)
   22553          OR b=487
   22554          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   22555          OR ((a BETWEEN 13 AND 15) AND a!=14)
   22556          OR b=132
   22557          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   22558          OR b=795
   22559          OR b=737
   22560   }
   22561 } {12 13 15 22 24 54 67 96 scan 0 sort 0}
   22562 do_test where7-2.971.2 {
   22563   count_steps_sort {
   22564      SELECT a FROM t3
   22565       WHERE a=24
   22566          OR ((a BETWEEN 22 AND 24) AND a!=23)
   22567          OR b=487
   22568          OR (d>=96.0 AND d<97.0 AND d NOT NULL)
   22569          OR ((a BETWEEN 13 AND 15) AND a!=14)
   22570          OR b=132
   22571          OR (d>=54.0 AND d<55.0 AND d NOT NULL)
   22572          OR b=795
   22573          OR b=737
   22574   }
   22575 } {12 13 15 22 24 54 67 96 scan 0 sort 0}
   22576 do_test where7-2.972.1 {
   22577   count_steps_sort {
   22578      SELECT a FROM t2
   22579       WHERE (d>=88.0 AND d<89.0 AND d NOT NULL)
   22580          OR a=34
   22581          OR c=16016
   22582          OR b=1078
   22583          OR b=960
   22584          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   22585   }
   22586 } {34 46 47 48 87 88 98 scan 0 sort 0}
   22587 do_test where7-2.972.2 {
   22588   count_steps_sort {
   22589      SELECT a FROM t3
   22590       WHERE (d>=88.0 AND d<89.0 AND d NOT NULL)
   22591          OR a=34
   22592          OR c=16016
   22593          OR b=1078
   22594          OR b=960
   22595          OR (g='hgfedcb' AND f GLOB 'jklmn*')
   22596   }
   22597 } {34 46 47 48 87 88 98 scan 0 sort 0}
   22598 do_test where7-2.973.1 {
   22599   count_steps_sort {
   22600      SELECT a FROM t2
   22601       WHERE b=1081
   22602          OR ((a BETWEEN 19 AND 21) AND a!=20)
   22603          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   22604          OR ((a BETWEEN 73 AND 75) AND a!=74)
   22605          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   22606          OR a=6
   22607   }
   22608 } {6 19 21 38 45 73 75 scan 0 sort 0}
   22609 do_test where7-2.973.2 {
   22610   count_steps_sort {
   22611      SELECT a FROM t3
   22612       WHERE b=1081
   22613          OR ((a BETWEEN 19 AND 21) AND a!=20)
   22614          OR (g='ponmlkj' AND f GLOB 'tuvwx*')
   22615          OR ((a BETWEEN 73 AND 75) AND a!=74)
   22616          OR (d>=38.0 AND d<39.0 AND d NOT NULL)
   22617          OR a=6
   22618   }
   22619 } {6 19 21 38 45 73 75 scan 0 sort 0}
   22620 do_test where7-2.974.1 {
   22621   count_steps_sort {
   22622      SELECT a FROM t2
   22623       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   22624          OR (g='rqponml' AND f GLOB 'lmnop*')
   22625          OR a=92
   22626          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   22627          OR f='fghijklmn'
   22628          OR a=100
   22629          OR b=209
   22630          OR c=9009
   22631          OR ((a BETWEEN 52 AND 54) AND a!=53)
   22632          OR a=73
   22633          OR b=902
   22634   }
   22635 } {5 9 19 25 26 27 31 35 37 52 54 57 61 73 82 83 87 92 95 100 scan 0 sort 0}
   22636 do_test where7-2.974.2 {
   22637   count_steps_sort {
   22638      SELECT a FROM t3
   22639       WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
   22640          OR (g='rqponml' AND f GLOB 'lmnop*')
   22641          OR a=92
   22642          OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
   22643          OR f='fghijklmn'
   22644          OR a=100
   22645          OR b=209
   22646          OR c=9009
   22647          OR ((a BETWEEN 52 AND 54) AND a!=53)
   22648          OR a=73
   22649          OR b=902
   22650   }
   22651 } {5 9 19 25 26 27 31 35 37 52 54 57 61 73 82 83 87 92 95 100 scan 0 sort 0}
   22652 do_test where7-2.975.1 {
   22653   count_steps_sort {
   22654      SELECT a FROM t2
   22655       WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
   22656          OR b=110
   22657          OR f='ghijklmno'
   22658          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   22659   }
   22660 } {6 10 21 32 40 58 84 scan 0 sort 0}
   22661 do_test where7-2.975.2 {
   22662   count_steps_sort {
   22663      SELECT a FROM t3
   22664       WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
   22665          OR b=110
   22666          OR f='ghijklmno'
   22667          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   22668   }
   22669 } {6 10 21 32 40 58 84 scan 0 sort 0}
   22670 do_test where7-2.976.1 {
   22671   count_steps_sort {
   22672      SELECT a FROM t2
   22673       WHERE ((a BETWEEN 51 AND 53) AND a!=52)
   22674          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   22675          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   22676          OR b=91
   22677          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   22678          OR b=77
   22679          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   22680          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   22681   }
   22682 } {1 7 15 20 27 45 46 51 53 79 scan 0 sort 0}
   22683 do_test where7-2.976.2 {
   22684   count_steps_sort {
   22685      SELECT a FROM t3
   22686       WHERE ((a BETWEEN 51 AND 53) AND a!=52)
   22687          OR (g='utsrqpo' AND f GLOB 'uvwxy*')
   22688          OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
   22689          OR b=91
   22690          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   22691          OR b=77
   22692          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   22693          OR (g='vutsrqp' AND f GLOB 'pqrst*')
   22694   }
   22695 } {1 7 15 20 27 45 46 51 53 79 scan 0 sort 0}
   22696 do_test where7-2.977.1 {
   22697   count_steps_sort {
   22698      SELECT a FROM t2
   22699       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   22700          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   22701          OR b=693
   22702          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   22703          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   22704          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   22705          OR a=52
   22706          OR b=377
   22707   }
   22708 } {21 26 42 52 56 63 78 scan 0 sort 0}
   22709 do_test where7-2.977.2 {
   22710   count_steps_sort {
   22711      SELECT a FROM t3
   22712       WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
   22713          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   22714          OR b=693
   22715          OR (d>=21.0 AND d<22.0 AND d NOT NULL)
   22716          OR (d>=26.0 AND d<27.0 AND d NOT NULL)
   22717          OR (d>=42.0 AND d<43.0 AND d NOT NULL)
   22718          OR a=52
   22719          OR b=377
   22720   }
   22721 } {21 26 42 52 56 63 78 scan 0 sort 0}
   22722 do_test where7-2.978.1 {
   22723   count_steps_sort {
   22724      SELECT a FROM t2
   22725       WHERE a=99
   22726          OR a=36
   22727          OR b=297
   22728          OR ((a BETWEEN 66 AND 68) AND a!=67)
   22729          OR b=1004
   22730          OR b=872
   22731          OR a=95
   22732          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   22733          OR b=176
   22734          OR b=300
   22735   }
   22736 } {16 27 36 66 68 95 99 scan 0 sort 0}
   22737 do_test where7-2.978.2 {
   22738   count_steps_sort {
   22739      SELECT a FROM t3
   22740       WHERE a=99
   22741          OR a=36
   22742          OR b=297
   22743          OR ((a BETWEEN 66 AND 68) AND a!=67)
   22744          OR b=1004
   22745          OR b=872
   22746          OR a=95
   22747          OR (d>=27.0 AND d<28.0 AND d NOT NULL)
   22748          OR b=176
   22749          OR b=300
   22750   }
   22751 } {16 27 36 66 68 95 99 scan 0 sort 0}
   22752 do_test where7-2.979.1 {
   22753   count_steps_sort {
   22754      SELECT a FROM t2
   22755       WHERE b=737
   22756          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   22757          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   22758          OR a=40
   22759          OR f='uvwxyzabc'
   22760          OR b=311
   22761          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   22762          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   22763          OR b=927
   22764          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   22765   }
   22766 } {5 6 8 20 31 32 40 46 50 53 57 58 67 72 83 84 98 scan 0 sort 0}
   22767 do_test where7-2.979.2 {
   22768   count_steps_sort {
   22769      SELECT a FROM t3
   22770       WHERE b=737
   22771          OR (g='wvutsrq' AND f GLOB 'ijklm*')
   22772          OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
   22773          OR a=40
   22774          OR f='uvwxyzabc'
   22775          OR b=311
   22776          OR (g='nmlkjih' AND f GLOB 'bcdef*')
   22777          OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
   22778          OR b=927
   22779          OR (d>=50.0 AND d<51.0 AND d NOT NULL)
   22780   }
   22781 } {5 6 8 20 31 32 40 46 50 53 57 58 67 72 83 84 98 scan 0 sort 0}
   22782 do_test where7-2.980.1 {
   22783   count_steps_sort {
   22784      SELECT a FROM t2
   22785       WHERE f='fghijklmn'
   22786          OR b=1078
   22787          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   22788          OR f='fghijklmn'
   22789   }
   22790 } {5 31 35 57 83 98 scan 0 sort 0}
   22791 do_test where7-2.980.2 {
   22792   count_steps_sort {
   22793      SELECT a FROM t3
   22794       WHERE f='fghijklmn'
   22795          OR b=1078
   22796          OR (d>=35.0 AND d<36.0 AND d NOT NULL)
   22797          OR f='fghijklmn'
   22798   }
   22799 } {5 31 35 57 83 98 scan 0 sort 0}
   22800 do_test where7-2.981.1 {
   22801   count_steps_sort {
   22802      SELECT a FROM t2
   22803       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   22804          OR b=487
   22805          OR f='tuvwxyzab'
   22806          OR (g='onmlkji' AND f GLOB 'wxyza*')
   22807          OR b=971
   22808          OR c=19019
   22809          OR a=39
   22810          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   22811          OR b=550
   22812          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   22813          OR b=660
   22814   }
   22815 } {6 12 19 38 39 45 48 50 55 56 57 60 64 71 90 97 scan 0 sort 0}
   22816 do_test where7-2.981.2 {
   22817   count_steps_sort {
   22818      SELECT a FROM t3
   22819       WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
   22820          OR b=487
   22821          OR f='tuvwxyzab'
   22822          OR (g='onmlkji' AND f GLOB 'wxyza*')
   22823          OR b=971
   22824          OR c=19019
   22825          OR a=39
   22826          OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
   22827          OR b=550
   22828          OR (g='kjihgfe' AND f GLOB 'tuvwx*')
   22829          OR b=660
   22830   }
   22831 } {6 12 19 38 39 45 48 50 55 56 57 60 64 71 90 97 scan 0 sort 0}
   22832 do_test where7-2.982.1 {
   22833   count_steps_sort {
   22834      SELECT a FROM t2
   22835       WHERE b=80
   22836          OR b=839
   22837   }
   22838 } { scan 0 sort 0}
   22839 do_test where7-2.982.2 {
   22840   count_steps_sort {
   22841      SELECT a FROM t3
   22842       WHERE b=80
   22843          OR b=839
   22844   }
   22845 } { scan 0 sort 0}
   22846 do_test where7-2.983.1 {
   22847   count_steps_sort {
   22848      SELECT a FROM t2
   22849       WHERE b=363
   22850          OR b=630
   22851          OR b=935
   22852          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   22853          OR (g='srqponm' AND f GLOB 'defgh*')
   22854          OR f='yzabcdefg'
   22855          OR ((a BETWEEN 37 AND 39) AND a!=38)
   22856   }
   22857 } {20 24 29 33 37 39 50 76 85 scan 0 sort 0}
   22858 do_test where7-2.983.2 {
   22859   count_steps_sort {
   22860      SELECT a FROM t3
   22861       WHERE b=363
   22862          OR b=630
   22863          OR b=935
   22864          OR (d>=20.0 AND d<21.0 AND d NOT NULL)
   22865          OR (g='srqponm' AND f GLOB 'defgh*')
   22866          OR f='yzabcdefg'
   22867          OR ((a BETWEEN 37 AND 39) AND a!=38)
   22868   }
   22869 } {20 24 29 33 37 39 50 76 85 scan 0 sort 0}
   22870 do_test where7-2.984.1 {
   22871   count_steps_sort {
   22872      SELECT a FROM t2
   22873       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   22874          OR a=40
   22875          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   22876          OR f='abcdefghi'
   22877          OR b=696
   22878          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   22879          OR b=682
   22880          OR a=32
   22881          OR ((a BETWEEN 34 AND 36) AND a!=35)
   22882          OR b=671
   22883          OR a=15
   22884   }
   22885 } {15 16 26 32 34 36 40 52 61 62 78 86 97 scan 0 sort 0}
   22886 do_test where7-2.984.2 {
   22887   count_steps_sort {
   22888      SELECT a FROM t3
   22889       WHERE (d>=97.0 AND d<98.0 AND d NOT NULL)
   22890          OR a=40
   22891          OR (d>=86.0 AND d<87.0 AND d NOT NULL)
   22892          OR f='abcdefghi'
   22893          OR b=696
   22894          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   22895          OR b=682
   22896          OR a=32
   22897          OR ((a BETWEEN 34 AND 36) AND a!=35)
   22898          OR b=671
   22899          OR a=15
   22900   }
   22901 } {15 16 26 32 34 36 40 52 61 62 78 86 97 scan 0 sort 0}
   22902 do_test where7-2.985.1 {
   22903   count_steps_sort {
   22904      SELECT a FROM t2
   22905       WHERE (g='gfedcba' AND f GLOB 'lmnop*')
   22906          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   22907          OR b=311
   22908   }
   22909 } {7 33 59 85 89 scan 0 sort 0}
   22910 do_test where7-2.985.2 {
   22911   count_steps_sort {
   22912      SELECT a FROM t3
   22913       WHERE (g='gfedcba' AND f GLOB 'lmnop*')
   22914          OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
   22915          OR b=311
   22916   }
   22917 } {7 33 59 85 89 scan 0 sort 0}
   22918 do_test where7-2.986.1 {
   22919   count_steps_sort {
   22920      SELECT a FROM t2
   22921       WHERE (d>=96.0 AND d<97.0 AND d NOT NULL)
   22922          OR a=73
   22923          OR b=729
   22924          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   22925          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   22926          OR a=32
   22927   }
   22928 } {32 67 73 81 96 scan 0 sort 0}
   22929 do_test where7-2.986.2 {
   22930   count_steps_sort {
   22931      SELECT a FROM t3
   22932       WHERE (d>=96.0 AND d<97.0 AND d NOT NULL)
   22933          OR a=73
   22934          OR b=729
   22935          OR (d>=81.0 AND d<82.0 AND d NOT NULL)
   22936          OR (d>=67.0 AND d<68.0 AND d NOT NULL)
   22937          OR a=32
   22938   }
   22939 } {32 67 73 81 96 scan 0 sort 0}
   22940 do_test where7-2.987.1 {
   22941   count_steps_sort {
   22942      SELECT a FROM t2
   22943       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   22944          OR b=110
   22945          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22946          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   22947          OR b=484
   22948          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   22949   }
   22950 } {10 23 38 40 44 82 98 100 scan 0 sort 0}
   22951 do_test where7-2.987.2 {
   22952   count_steps_sort {
   22953      SELECT a FROM t3
   22954       WHERE ((a BETWEEN 98 AND 100) AND a!=99)
   22955          OR b=110
   22956          OR ((a BETWEEN 38 AND 40) AND a!=39)
   22957          OR (g='tsrqpon' AND f GLOB 'xyzab*')
   22958          OR b=484
   22959          OR (d>=82.0 AND d<83.0 AND d NOT NULL)
   22960   }
   22961 } {10 23 38 40 44 82 98 100 scan 0 sort 0}
   22962 do_test where7-2.988.1 {
   22963   count_steps_sort {
   22964      SELECT a FROM t2
   22965       WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
   22966          OR b=135
   22967          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   22968          OR b=209
   22969          OR b=363
   22970          OR c=27027
   22971          OR b=1026
   22972          OR c=6006
   22973          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   22974          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   22975   }
   22976 } {16 17 18 19 33 46 66 73 79 80 81 99 scan 0 sort 0}
   22977 do_test where7-2.988.2 {
   22978   count_steps_sort {
   22979      SELECT a FROM t3
   22980       WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
   22981          OR b=135
   22982          OR (d>=66.0 AND d<67.0 AND d NOT NULL)
   22983          OR b=209
   22984          OR b=363
   22985          OR c=27027
   22986          OR b=1026
   22987          OR c=6006
   22988          OR (g='ponmlkj' AND f GLOB 'uvwxy*')
   22989          OR (d>=73.0 AND d<74.0 AND d NOT NULL)
   22990   }
   22991 } {16 17 18 19 33 46 66 73 79 80 81 99 scan 0 sort 0}
   22992 do_test where7-2.989.1 {
   22993   count_steps_sort {
   22994      SELECT a FROM t2
   22995       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   22996          OR ((a BETWEEN 18 AND 20) AND a!=19)
   22997          OR (g='qponmlk' AND f GLOB 'nopqr*')
   22998          OR a=97
   22999          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   23000          OR ((a BETWEEN 22 AND 24) AND a!=23)
   23001          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   23002          OR b=674
   23003          OR c=14014
   23004          OR b=69
   23005   }
   23006 } {18 20 22 24 39 40 41 42 45 58 79 97 scan 0 sort 0}
   23007 do_test where7-2.989.2 {
   23008   count_steps_sort {
   23009      SELECT a FROM t3
   23010       WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
   23011          OR ((a BETWEEN 18 AND 20) AND a!=19)
   23012          OR (g='qponmlk' AND f GLOB 'nopqr*')
   23013          OR a=97
   23014          OR (d>=45.0 AND d<46.0 AND d NOT NULL)
   23015          OR ((a BETWEEN 22 AND 24) AND a!=23)
   23016          OR (g='mlkjihg' AND f GLOB 'ghijk*')
   23017          OR b=674
   23018          OR c=14014
   23019          OR b=69
   23020   }
   23021 } {18 20 22 24 39 40 41 42 45 58 79 97 scan 0 sort 0}
   23022 do_test where7-2.990.1 {
   23023   count_steps_sort {
   23024      SELECT a FROM t2
   23025       WHERE b=297
   23026          OR a=83
   23027          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   23028          OR ((a BETWEEN 16 AND 18) AND a!=17)
   23029   }
   23030 } {16 18 27 78 83 scan 0 sort 0}
   23031 do_test where7-2.990.2 {
   23032   count_steps_sort {
   23033      SELECT a FROM t3
   23034       WHERE b=297
   23035          OR a=83
   23036          OR (d>=78.0 AND d<79.0 AND d NOT NULL)
   23037          OR ((a BETWEEN 16 AND 18) AND a!=17)
   23038   }
   23039 } {16 18 27 78 83 scan 0 sort 0}
   23040 do_test where7-2.991.1 {
   23041   count_steps_sort {
   23042      SELECT a FROM t2
   23043       WHERE b=451
   23044          OR ((a BETWEEN 11 AND 13) AND a!=12)
   23045          OR (g='tsrqpon' AND f GLOB 'abcde*')
   23046          OR b=539
   23047          OR a=26
   23048          OR (g='srqponm' AND f GLOB 'efghi*')
   23049          OR b=465
   23050          OR (g='jihgfed' AND f GLOB 'wxyza*')
   23051   }
   23052 } {11 13 26 30 41 49 74 scan 0 sort 0}
   23053 do_test where7-2.991.2 {
   23054   count_steps_sort {
   23055      SELECT a FROM t3
   23056       WHERE b=451
   23057          OR ((a BETWEEN 11 AND 13) AND a!=12)
   23058          OR (g='tsrqpon' AND f GLOB 'abcde*')
   23059          OR b=539
   23060          OR a=26
   23061          OR (g='srqponm' AND f GLOB 'efghi*')
   23062          OR b=465
   23063          OR (g='jihgfed' AND f GLOB 'wxyza*')
   23064   }
   23065 } {11 13 26 30 41 49 74 scan 0 sort 0}
   23066 do_test where7-2.992.1 {
   23067   count_steps_sort {
   23068      SELECT a FROM t2
   23069       WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
   23070          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   23071   }
   23072 } {45 63 scan 0 sort 0}
   23073 do_test where7-2.992.2 {
   23074   count_steps_sort {
   23075      SELECT a FROM t3
   23076       WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
   23077          OR (d>=63.0 AND d<64.0 AND d NOT NULL)
   23078   }
   23079 } {45 63 scan 0 sort 0}
   23080 do_test where7-2.993.1 {
   23081   count_steps_sort {
   23082      SELECT a FROM t2
   23083       WHERE ((a BETWEEN 16 AND 18) AND a!=17)
   23084          OR b=872
   23085          OR c=31031
   23086   }
   23087 } {16 18 91 92 93 scan 0 sort 0}
   23088 do_test where7-2.993.2 {
   23089   count_steps_sort {
   23090      SELECT a FROM t3
   23091       WHERE ((a BETWEEN 16 AND 18) AND a!=17)
   23092          OR b=872
   23093          OR c=31031
   23094   }
   23095 } {16 18 91 92 93 scan 0 sort 0}
   23096 do_test where7-2.994.1 {
   23097   count_steps_sort {
   23098      SELECT a FROM t2
   23099       WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*')
   23100          OR a=13
   23101          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   23102          OR b=322
   23103          OR ((a BETWEEN 33 AND 35) AND a!=34)
   23104          OR b=377
   23105          OR f='cdefghijk'
   23106          OR b=286
   23107          OR ((a BETWEEN 61 AND 63) AND a!=62)
   23108   }
   23109 } {1 2 13 17 26 27 28 33 35 43 53 54 61 63 69 79 80 95 scan 0 sort 0}
   23110 do_test where7-2.994.2 {
   23111   count_steps_sort {
   23112      SELECT a FROM t3
   23113       WHERE (f GLOB '?cdef*' AND f GLOB 'bcde*')
   23114          OR a=13
   23115          OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
   23116          OR b=322
   23117          OR ((a BETWEEN 33 AND 35) AND a!=34)
   23118          OR b=377
   23119          OR f='cdefghijk'
   23120          OR b=286
   23121          OR ((a BETWEEN 61 AND 63) AND a!=62)
   23122   }
   23123 } {1 2 13 17 26 27 28 33 35 43 53 54 61 63 69 79 80 95 scan 0 sort 0}
   23124 do_test where7-2.995.1 {
   23125   count_steps_sort {
   23126      SELECT a FROM t2
   23127       WHERE a=41
   23128          OR b=990
   23129          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   23130          OR b=605
   23131          OR (g='srqponm' AND f GLOB 'cdefg*')
   23132          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   23133          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   23134          OR b=968
   23135          OR a=66
   23136   }
   23137 } {16 28 36 41 55 66 88 90 scan 0 sort 0}
   23138 do_test where7-2.995.2 {
   23139   count_steps_sort {
   23140      SELECT a FROM t3
   23141       WHERE a=41
   23142          OR b=990
   23143          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   23144          OR b=605
   23145          OR (g='srqponm' AND f GLOB 'cdefg*')
   23146          OR (d>=36.0 AND d<37.0 AND d NOT NULL)
   23147          OR (g='vutsrqp' AND f GLOB 'qrstu*')
   23148          OR b=968
   23149          OR a=66
   23150   }
   23151 } {16 28 36 41 55 66 88 90 scan 0 sort 0}
   23152 do_test where7-2.996.1 {
   23153   count_steps_sort {
   23154      SELECT a FROM t2
   23155       WHERE b=1059
   23156          OR (g='srqponm' AND f GLOB 'ghijk*')
   23157          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   23158          OR (g='nmlkjih' AND f GLOB 'fghij*')
   23159          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   23160          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   23161          OR (g='onmlkji' AND f GLOB 'abcde*')
   23162          OR ((a BETWEEN 39 AND 41) AND a!=40)
   23163   }
   23164 } {17 19 32 37 39 41 52 57 scan 0 sort 0}
   23165 do_test where7-2.996.2 {
   23166   count_steps_sort {
   23167      SELECT a FROM t3
   23168       WHERE b=1059
   23169          OR (g='srqponm' AND f GLOB 'ghijk*')
   23170          OR (g='utsrqpo' AND f GLOB 'tuvwx*')
   23171          OR (g='nmlkjih' AND f GLOB 'fghij*')
   23172          OR (d>=17.0 AND d<18.0 AND d NOT NULL)
   23173          OR (d>=37.0 AND d<38.0 AND d NOT NULL)
   23174          OR (g='onmlkji' AND f GLOB 'abcde*')
   23175          OR ((a BETWEEN 39 AND 41) AND a!=40)
   23176   }
   23177 } {17 19 32 37 39 41 52 57 scan 0 sort 0}
   23178 do_test where7-2.997.1 {
   23179   count_steps_sort {
   23180      SELECT a FROM t2
   23181       WHERE ((a BETWEEN 41 AND 43) AND a!=42)
   23182          OR f='nopqrstuv'
   23183          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   23184          OR a=42
   23185          OR b=729
   23186          OR b=297
   23187          OR a=77
   23188          OR b=781
   23189          OR ((a BETWEEN 36 AND 38) AND a!=37)
   23190   }
   23191 } {13 27 36 38 39 41 42 43 44 65 71 77 91 scan 0 sort 0}
   23192 do_test where7-2.997.2 {
   23193   count_steps_sort {
   23194      SELECT a FROM t3
   23195       WHERE ((a BETWEEN 41 AND 43) AND a!=42)
   23196          OR f='nopqrstuv'
   23197          OR (g='ponmlkj' AND f GLOB 'stuvw*')
   23198          OR a=42
   23199          OR b=729
   23200          OR b=297
   23201          OR a=77
   23202          OR b=781
   23203          OR ((a BETWEEN 36 AND 38) AND a!=37)
   23204   }
   23205 } {13 27 36 38 39 41 42 43 44 65 71 77 91 scan 0 sort 0}
   23206 do_test where7-2.998.1 {
   23207   count_steps_sort {
   23208      SELECT a FROM t2
   23209       WHERE a=12
   23210          OR f='qrstuvwxy'
   23211          OR a=47
   23212          OR b=135
   23213          OR a=25
   23214   }
   23215 } {12 16 25 42 47 68 94 scan 0 sort 0}
   23216 do_test where7-2.998.2 {
   23217   count_steps_sort {
   23218      SELECT a FROM t3
   23219       WHERE a=12
   23220          OR f='qrstuvwxy'
   23221          OR a=47
   23222          OR b=135
   23223          OR a=25
   23224   }
   23225 } {12 16 25 42 47 68 94 scan 0 sort 0}
   23226 do_test where7-2.999.1 {
   23227   count_steps_sort {
   23228      SELECT a FROM t2
   23229       WHERE b=451
   23230          OR b=660
   23231          OR (g='onmlkji' AND f GLOB 'yzabc*')
   23232          OR b=781
   23233          OR (g='jihgfed' AND f GLOB 'wxyza*')
   23234          OR b=198
   23235          OR b=1023
   23236          OR a=98
   23237          OR d<0.0
   23238          OR ((a BETWEEN 79 AND 81) AND a!=80)
   23239   }
   23240 } {18 41 50 60 71 74 79 81 93 98 scan 0 sort 0}
   23241 do_test where7-2.999.2 {
   23242   count_steps_sort {
   23243      SELECT a FROM t3
   23244       WHERE b=451
   23245          OR b=660
   23246          OR (g='onmlkji' AND f GLOB 'yzabc*')
   23247          OR b=781
   23248          OR (g='jihgfed' AND f GLOB 'wxyza*')
   23249          OR b=198
   23250          OR b=1023
   23251          OR a=98
   23252          OR d<0.0
   23253          OR ((a BETWEEN 79 AND 81) AND a!=80)
   23254   }
   23255 } {18 41 50 60 71 74 79 81 93 98 scan 0 sort 0}
   23256 do_test where7-2.1000.1 {
   23257   count_steps_sort {
   23258      SELECT a FROM t2
   23259       WHERE b=685
   23260          OR a=86
   23261          OR c=17017
   23262          OR ((a BETWEEN 85 AND 87) AND a!=86)
   23263          OR (g='gfedcba' AND f GLOB 'mnopq*')
   23264          OR a=80
   23265          OR b=773
   23266   }
   23267 } {49 50 51 80 85 86 87 90 scan 0 sort 0}
   23268 do_test where7-2.1000.2 {
   23269   count_steps_sort {
   23270      SELECT a FROM t3
   23271       WHERE b=685
   23272          OR a=86
   23273          OR c=17017
   23274          OR ((a BETWEEN 85 AND 87) AND a!=86)
   23275          OR (g='gfedcba' AND f GLOB 'mnopq*')
   23276          OR a=80
   23277          OR b=773
   23278   }
   23279 } {49 50 51 80 85 86 87 90 scan 0 sort 0}
   23280 do_test where7-2.1001.1 {
   23281   count_steps_sort {
   23282      SELECT a FROM t2
   23283       WHERE b=1092
   23284          OR a=23
   23285          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   23286          OR d<0.0
   23287          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   23288          OR a=91
   23289   }
   23290 } {2 22 23 28 54 80 91 scan 0 sort 0}
   23291 do_test where7-2.1001.2 {
   23292   count_steps_sort {
   23293      SELECT a FROM t3
   23294       WHERE b=1092
   23295          OR a=23
   23296          OR (f GLOB '?defg*' AND f GLOB 'cdef*')
   23297          OR d<0.0
   23298          OR (d>=22.0 AND d<23.0 AND d NOT NULL)
   23299          OR a=91
   23300   }
   23301 } {2 22 23 28 54 80 91 scan 0 sort 0}
   23302 
   23303 # test case for the performance regression fixed by
   23304 # check-in 28ba6255282b on 2010-10-21 02:05:06
   23305 #
   23306 # The test case that follows is code from an actual
   23307 # application with identifiers change and unused columns
   23308 # remove.
   23309 #
   23310 do_execsql_test where7-3.1 {
   23311   CREATE TABLE t301 (
   23312       c8 INTEGER PRIMARY KEY,
   23313       c6 INTEGER,
   23314       c4 INTEGER,
   23315       c7 INTEGER,
   23316       FOREIGN KEY (c4) REFERENCES series(c4)
   23317   );
   23318   CREATE INDEX t301_c6 on t301(c6);
   23319   CREATE INDEX t301_c4 on t301(c4);
   23320   CREATE INDEX t301_c7 on t301(c7);
   23321   
   23322   CREATE TABLE t302 (
   23323       c1 INTEGER PRIMARY KEY,
   23324       c8 INTEGER,
   23325       c5 INTEGER,
   23326       c3 INTEGER,
   23327       c2 INTEGER,
   23328       c4 INTEGER,
   23329       FOREIGN KEY (c8) REFERENCES t301(c8)
   23330   );
   23331   CREATE INDEX t302_c3 on t302(c3);
   23332   CREATE INDEX t302_c8_c3 on t302(c8, c3);
   23333   CREATE INDEX t302_c5 on t302(c5);
   23334   
   23335   EXPLAIN QUERY PLAN
   23336   SELECT t302.c1 
   23337     FROM t302 JOIN t301 ON t302.c8 = t301.c8
   23338     WHERE t302.c2 = 19571
   23339       AND t302.c3 > 1287603136
   23340       AND (t301.c4 = 1407449685622784
   23341            OR t301.c8 = 1407424651264000)
   23342    ORDER BY t302.c5 LIMIT 200;
   23343 } {
   23344   0 0 1 {SEARCH TABLE t301 USING COVERING INDEX t301_c4 (c4=?) (~10 rows)} 
   23345   0 0 1 {SEARCH TABLE t301 USING INTEGER PRIMARY KEY (rowid=?) (~1 rows)} 
   23346   0 1 0 {SEARCH TABLE t302 USING INDEX t302_c8_c3 (c8=? AND c3>?) (~2 rows)} 
   23347   0 0 0 {USE TEMP B-TREE FOR ORDER BY}
   23348 }
   23349 
   23350 finish_test
   23351