/ Artifact Content
Login

Artifact 88eb7c53bdbd900cfd130e8f40bb3036bfab031d:


# 2008 December 23
#
# The author disclaims copyright to this source code.  In place of
# a legal notice, here is a blessing:
#
#    May you do good and not evil.
#    May you find forgiveness for yourself and forgive others.
#    May you share freely, never taking more than you give.
#
#***********************************************************************
# This file implements regression tests for SQLite library.  The
# focus of this file is testing the multi-index OR clause optimizer.
#
# $Id: where7.test,v 1.6 2008/12/30 17:55:00 drh Exp $

set testdir [file dirname $argv0]
source $testdir/tester.tcl

ifcapable !or_opt {
  finish_test
  return
}

# Evaluate SQL.  Return the result set followed by the
# and the number of full-scan steps.
#
proc count_steps {sql} {
  set r [db eval $sql]
  lappend r scan [db status step] sort [db status sort]
}

# Build some test data
#
do_test where7-1.1 {
  execsql {
    CREATE TABLE t1(a INTEGER PRIMARY KEY,b,c,d);
    INSERT INTO t1 VALUES(1,2,3,4);
    INSERT INTO t1 VALUES(2,3,4,5);
    INSERT INTO t1 VALUES(3,4,6,8);
    INSERT INTO t1 VALUES(4,5,10,15);
    INSERT INTO t1 VALUES(5,10,100,1000);
    CREATE INDEX t1b ON t1(b);
    CREATE INDEX t1c ON t1(c);
    SELECT * FROM t1;
  }
} {1 2 3 4 2 3 4 5 3 4 6 8 4 5 10 15 5 10 100 1000}
do_test where7-1.2 {
  count_steps {
    SELECT a FROM t1 WHERE b=3 OR c=6 ORDER BY a
  }
} {2 3 scan 0 sort 0}
do_test where7-1.3 {
  count_steps {
    SELECT a FROM t1 WHERE b=3 OR +c=6 ORDER BY a
  }
} {2 3 scan 4 sort 0}
do_test where7-1.4 {
  count_steps {
    SELECT a FROM t1 WHERE +b=3 OR c=6 ORDER BY 1
  }
} {2 3 scan 4 sort 0}
do_test where7-1.5 {
  count_steps {
    SELECT a FROM t1 WHERE 3=b OR c=6 ORDER BY rowid
  }
} {2 3 scan 0 sort 0}
do_test where7-1.6 {
  count_steps {
    SELECT a FROM t1 WHERE (3=b OR c=6) AND +a>0 ORDER BY a
  }
} {2 3 scan 0 sort 0}
do_test where7-1.7 {
  count_steps {
    SELECT a FROM t1 WHERE (b=3 OR c>10) ORDER BY a
  }
} {2 5 scan 0 sort 0}
do_test where7-1.8 {
  count_steps {
    SELECT a FROM t1 WHERE (b=3 OR c>=10) ORDER BY a
  }
} {2 4 5 scan 0 sort 0}
do_test where7-1.9 {
  count_steps {
    SELECT a FROM t1 WHERE (b=3 OR c>=10 OR c=4) ORDER BY a
  }
} {2 4 5 scan 0 sort 0}
do_test where7-1.10 {
  count_steps {
    SELECT a FROM t1 WHERE (b=3 OR c>=10 OR c=4 OR b>10) ORDER BY a
  }
} {2 4 5 scan 0 sort 0}
do_test where7-1.11 {
  count_steps {
    SELECT a FROM t1 WHERE (d=5 AND b=3) OR c==100 ORDER BY a;
  }
} {2 5 scan 0 sort 0}
do_test where7-1.12 {
  count_steps {
    SELECT a FROM t1 WHERE (b BETWEEN 2 AND 4) OR c=100 ORDER BY a
  }
} {1 2 3 5 scan 0 sort 0}
do_test where7-1.13 {
  count_steps {
    SELECT a FROM t1 WHERE (b BETWEEN 0 AND 2) OR (c BETWEEN 9 AND 999)
    ORDER BY a DESC
  }
} {5 4 1 scan 0 sort 1}

do_test where7-1.14 {
  count_steps {
    SELECT a FROM t1 WHERE (d=8 OR c=6 OR b=4) AND +a>0
  }
} {3 scan 4 sort 0}
do_test where7-1.15 {
  count_steps {
    SELECT a FROM t1 WHERE +a>=0 AND (d=8 OR c=6 OR b=4)
  }
} {3 scan 4 sort 0}

do_test where7-1.20 {
  set sql "SELECT a FROM t1 WHERE a=11 OR b=11"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR a=$i OR b=$i"
  }
  append sql " ORDER BY a"
  count_steps $sql
} {scan 0 sort 0}
do_test where7-1.21 {
  set sql "SELECT a FROM t1 WHERE b=11 OR c=11"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR b=$i OR c=$i"
  }
  append sql " ORDER BY a"
  count_steps $sql
} {5 scan 0 sort 0}
do_test where7-1.22 {
  set sql "SELECT a FROM t1 WHERE (b=11 OR c=11"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR b=$i OR c=$i"
  }
  append sql ") AND d>=0 AND d<9999 ORDER BY a"
  count_steps $sql
} {5 scan 0 sort 0}
do_test where7-1.23 {
  set sql "SELECT a FROM t1 WHERE (b=11 OR c=11"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR (b=$i AND d!=0) OR (c=$i AND d IS NOT NULL)"
  }
  append sql ") AND d>=0 AND d<9999 ORDER BY a"
  count_steps $sql
} {5 scan 0 sort 0}

do_test where7-1.31 {
  set sql "SELECT a FROM t1 WHERE (a=11 AND b=11)"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR (a=$i AND b=$i)"
  }
  append sql " ORDER BY a"
  count_steps $sql
} {scan 0 sort 0}
do_test where7-1.32 {
  set sql "SELECT a FROM t1 WHERE (b=11 AND c=11)"
  for {set i 12} {$i<400} {incr i} {
    append sql " OR (b=$i AND c=$i)"
  }
  append sql " ORDER BY a"
  count_steps $sql
} {scan 0 sort 0}

# Lots of randomly generated OR-clause processing tests.
#
do_test where7-2.1 {
  db eval {
    CREATE TABLE t2(a INTEGER PRIMARY KEY,b,c,d,e,f,g);
    INSERT INTO t2 VALUES(1,11,1001,1.001,100.1,'bcdefghij','yxwvuts');
    INSERT INTO t2 VALUES(2,22,1001,2.002,100.1,'cdefghijk','yxwvuts');
    INSERT INTO t2 VALUES(3,33,1001,3.003,100.1,'defghijkl','xwvutsr');
    INSERT INTO t2 VALUES(4,44,2002,4.004,200.2,'efghijklm','xwvutsr');
    INSERT INTO t2 VALUES(5,55,2002,5.005,200.2,'fghijklmn','xwvutsr');
    INSERT INTO t2 VALUES(6,66,2002,6.006,200.2,'ghijklmno','xwvutsr');
    INSERT INTO t2 VALUES(7,77,3003,7.007,300.3,'hijklmnop','xwvutsr');
    INSERT INTO t2 VALUES(8,88,3003,8.008,300.3,'ijklmnopq','wvutsrq');
    INSERT INTO t2 VALUES(9,99,3003,9.009,300.3,'jklmnopqr','wvutsrq');
    INSERT INTO t2 VALUES(10,110,4004,10.01,400.4,'klmnopqrs','wvutsrq');
    INSERT INTO t2 VALUES(11,121,4004,11.011,400.4,'lmnopqrst','wvutsrq');
    INSERT INTO t2 VALUES(12,132,4004,12.012,400.4,'mnopqrstu','wvutsrq');
    INSERT INTO t2 VALUES(13,143,5005,13.013,500.5,'nopqrstuv','vutsrqp');
    INSERT INTO t2 VALUES(14,154,5005,14.014,500.5,'opqrstuvw','vutsrqp');
    INSERT INTO t2 VALUES(15,165,5005,15.015,500.5,'pqrstuvwx','vutsrqp');
    INSERT INTO t2 VALUES(16,176,6006,16.016,600.6,'qrstuvwxy','vutsrqp');
    INSERT INTO t2 VALUES(17,187,6006,17.017,600.6,'rstuvwxyz','vutsrqp');
    INSERT INTO t2 VALUES(18,198,6006,18.018,600.6,'stuvwxyza','utsrqpo');
    INSERT INTO t2 VALUES(19,209,7007,19.019,700.7,'tuvwxyzab','utsrqpo');
    INSERT INTO t2 VALUES(20,220,7007,20.02,700.7,'uvwxyzabc','utsrqpo');
    INSERT INTO t2 VALUES(21,231,7007,21.021,700.7,'vwxyzabcd','utsrqpo');
    INSERT INTO t2 VALUES(22,242,8008,22.022,800.8,'wxyzabcde','utsrqpo');
    INSERT INTO t2 VALUES(23,253,8008,23.023,800.8,'xyzabcdef','tsrqpon');
    INSERT INTO t2 VALUES(24,264,8008,24.024,800.8,'yzabcdefg','tsrqpon');
    INSERT INTO t2 VALUES(25,275,9009,25.025,900.9,'zabcdefgh','tsrqpon');
    INSERT INTO t2 VALUES(26,286,9009,26.026,900.9,'abcdefghi','tsrqpon');
    INSERT INTO t2 VALUES(27,297,9009,27.027,900.9,'bcdefghij','tsrqpon');
    INSERT INTO t2 VALUES(28,308,10010,28.028,1001.0,'cdefghijk','srqponm');
    INSERT INTO t2 VALUES(29,319,10010,29.029,1001.0,'defghijkl','srqponm');
    INSERT INTO t2 VALUES(30,330,10010,30.03,1001.0,'efghijklm','srqponm');
    INSERT INTO t2 VALUES(31,341,11011,31.031,1101.1,'fghijklmn','srqponm');
    INSERT INTO t2 VALUES(32,352,11011,32.032,1101.1,'ghijklmno','srqponm');
    INSERT INTO t2 VALUES(33,363,11011,33.033,1101.1,'hijklmnop','rqponml');
    INSERT INTO t2 VALUES(34,374,12012,34.034,1201.2,'ijklmnopq','rqponml');
    INSERT INTO t2 VALUES(35,385,12012,35.035,1201.2,'jklmnopqr','rqponml');
    INSERT INTO t2 VALUES(36,396,12012,36.036,1201.2,'klmnopqrs','rqponml');
    INSERT INTO t2 VALUES(37,407,13013,37.037,1301.3,'lmnopqrst','rqponml');
    INSERT INTO t2 VALUES(38,418,13013,38.038,1301.3,'mnopqrstu','qponmlk');
    INSERT INTO t2 VALUES(39,429,13013,39.039,1301.3,'nopqrstuv','qponmlk');
    INSERT INTO t2 VALUES(40,440,14014,40.04,1401.4,'opqrstuvw','qponmlk');
    INSERT INTO t2 VALUES(41,451,14014,41.041,1401.4,'pqrstuvwx','qponmlk');
    INSERT INTO t2 VALUES(42,462,14014,42.042,1401.4,'qrstuvwxy','qponmlk');
    INSERT INTO t2 VALUES(43,473,15015,43.043,1501.5,'rstuvwxyz','ponmlkj');
    INSERT INTO t2 VALUES(44,484,15015,44.044,1501.5,'stuvwxyza','ponmlkj');
    INSERT INTO t2 VALUES(45,495,15015,45.045,1501.5,'tuvwxyzab','ponmlkj');
    INSERT INTO t2 VALUES(46,506,16016,46.046,1601.6,'uvwxyzabc','ponmlkj');
    INSERT INTO t2 VALUES(47,517,16016,47.047,1601.6,'vwxyzabcd','ponmlkj');
    INSERT INTO t2 VALUES(48,528,16016,48.048,1601.6,'wxyzabcde','onmlkji');
    INSERT INTO t2 VALUES(49,539,17017,49.049,1701.7,'xyzabcdef','onmlkji');
    INSERT INTO t2 VALUES(50,550,17017,50.05,1701.7,'yzabcdefg','onmlkji');
    INSERT INTO t2 VALUES(51,561,17017,51.051,1701.7,'zabcdefgh','onmlkji');
    INSERT INTO t2 VALUES(52,572,18018,52.052,1801.8,'abcdefghi','onmlkji');
    INSERT INTO t2 VALUES(53,583,18018,53.053,1801.8,'bcdefghij','nmlkjih');
    INSERT INTO t2 VALUES(54,594,18018,54.054,1801.8,'cdefghijk','nmlkjih');
    INSERT INTO t2 VALUES(55,605,19019,55.055,1901.9,'defghijkl','nmlkjih');
    INSERT INTO t2 VALUES(56,616,19019,56.056,1901.9,'efghijklm','nmlkjih');
    INSERT INTO t2 VALUES(57,627,19019,57.057,1901.9,'fghijklmn','nmlkjih');
    INSERT INTO t2 VALUES(58,638,20020,58.058,2002.0,'ghijklmno','mlkjihg');
    INSERT INTO t2 VALUES(59,649,20020,59.059,2002.0,'hijklmnop','mlkjihg');
    INSERT INTO t2 VALUES(60,660,20020,60.06,2002.0,'ijklmnopq','mlkjihg');
    INSERT INTO t2 VALUES(61,671,21021,61.061,2102.1,'jklmnopqr','mlkjihg');
    INSERT INTO t2 VALUES(62,682,21021,62.062,2102.1,'klmnopqrs','mlkjihg');
    INSERT INTO t2 VALUES(63,693,21021,63.063,2102.1,'lmnopqrst','lkjihgf');
    INSERT INTO t2 VALUES(64,704,22022,64.064,2202.2,'mnopqrstu','lkjihgf');
    INSERT INTO t2 VALUES(65,715,22022,65.065,2202.2,'nopqrstuv','lkjihgf');
    INSERT INTO t2 VALUES(66,726,22022,66.066,2202.2,'opqrstuvw','lkjihgf');
    INSERT INTO t2 VALUES(67,737,23023,67.067,2302.3,'pqrstuvwx','lkjihgf');
    INSERT INTO t2 VALUES(68,748,23023,68.068,2302.3,'qrstuvwxy','kjihgfe');
    INSERT INTO t2 VALUES(69,759,23023,69.069,2302.3,'rstuvwxyz','kjihgfe');
    INSERT INTO t2 VALUES(70,770,24024,70.07,2402.4,'stuvwxyza','kjihgfe');
    INSERT INTO t2 VALUES(71,781,24024,71.071,2402.4,'tuvwxyzab','kjihgfe');
    INSERT INTO t2 VALUES(72,792,24024,72.072,2402.4,'uvwxyzabc','kjihgfe');
    INSERT INTO t2 VALUES(73,803,25025,73.073,2502.5,'vwxyzabcd','jihgfed');
    INSERT INTO t2 VALUES(74,814,25025,74.074,2502.5,'wxyzabcde','jihgfed');
    INSERT INTO t2 VALUES(75,825,25025,75.075,2502.5,'xyzabcdef','jihgfed');
    INSERT INTO t2 VALUES(76,836,26026,76.076,2602.6,'yzabcdefg','jihgfed');
    INSERT INTO t2 VALUES(77,847,26026,77.077,2602.6,'zabcdefgh','jihgfed');
    INSERT INTO t2 VALUES(78,858,26026,78.078,2602.6,'abcdefghi','ihgfedc');
    INSERT INTO t2 VALUES(79,869,27027,79.079,2702.7,'bcdefghij','ihgfedc');
    INSERT INTO t2 VALUES(80,880,27027,80.08,2702.7,'cdefghijk','ihgfedc');
    INSERT INTO t2 VALUES(81,891,27027,81.081,2702.7,'defghijkl','ihgfedc');
    INSERT INTO t2 VALUES(82,902,28028,82.082,2802.8,'efghijklm','ihgfedc');
    INSERT INTO t2 VALUES(83,913,28028,83.083,2802.8,'fghijklmn','hgfedcb');
    INSERT INTO t2 VALUES(84,924,28028,84.084,2802.8,'ghijklmno','hgfedcb');
    INSERT INTO t2 VALUES(85,935,29029,85.085,2902.9,'hijklmnop','hgfedcb');
    INSERT INTO t2 VALUES(86,946,29029,86.086,2902.9,'ijklmnopq','hgfedcb');
    INSERT INTO t2 VALUES(87,957,29029,87.087,2902.9,'jklmnopqr','hgfedcb');
    INSERT INTO t2 VALUES(88,968,30030,88.088,3003.0,'klmnopqrs','gfedcba');
    INSERT INTO t2 VALUES(89,979,30030,89.089,3003.0,'lmnopqrst','gfedcba');
    INSERT INTO t2 VALUES(90,990,30030,90.09,3003.0,'mnopqrstu','gfedcba');
    INSERT INTO t2 VALUES(91,1001,31031,91.091,3103.1,'nopqrstuv','gfedcba');
    INSERT INTO t2 VALUES(92,1012,31031,92.092,3103.1,'opqrstuvw','gfedcba');
    INSERT INTO t2 VALUES(93,1023,31031,93.093,3103.1,'pqrstuvwx','fedcbaz');
    INSERT INTO t2 VALUES(94,1034,32032,94.094,3203.2,'qrstuvwxy','fedcbaz');
    INSERT INTO t2 VALUES(95,1045,32032,95.095,3203.2,'rstuvwxyz','fedcbaz');
    INSERT INTO t2 VALUES(96,1056,32032,96.096,3203.2,'stuvwxyza','fedcbaz');
    INSERT INTO t2 VALUES(97,1067,33033,97.097,3303.3,'tuvwxyzab','fedcbaz');
    INSERT INTO t2 VALUES(98,1078,33033,98.098,3303.3,'uvwxyzabc','edcbazy');
    INSERT INTO t2 VALUES(99,1089,33033,99.099,3303.3,'vwxyzabcd','edcbazy');
    INSERT INTO t2 VALUES(100,1100,34034,100.1,3403.4,'wxyzabcde','edcbazy');
    CREATE INDEX t2b ON t2(b);
    CREATE INDEX t2c ON t2(c);
    CREATE INDEX t2d ON t2(d);
    CREATE INDEX t2e ON t2(e);
    CREATE INDEX t2f ON t2(f);
    CREATE INDEX t2g ON t2(g);
    CREATE TABLE t3(a INTEGER PRIMARY KEY,b,c,d,e,f,g);
    INSERT INTO t3 SELECT * FROM t2;
    CREATE INDEX t3b ON t3(b,c);
    CREATE INDEX t3c ON t3(c,e);
    CREATE INDEX t3d ON t3(d,g);
    CREATE INDEX t3e ON t3(e,f,g);
    CREATE INDEX t3f ON t3(f,b,d,c);
    CREATE INDEX t3g ON t3(g,f);
  }
} {}
do_test where7-2.2.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=979
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {5 7 62 89 91 93 scan 0 sort 0}
do_test where7-2.2.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=979
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {5 7 62 89 91 93 scan 0 sort 0}
do_test where7-2.3.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='yxwvuts' AND f GLOB 'cdefg*')
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 27 47 scan 0 sort 0}
do_test where7-2.3.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='yxwvuts' AND f GLOB 'cdefg*')
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 27 47 scan 0 sort 0}
do_test where7-2.4.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=20020
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 58 59 60 75 scan 0 sort 0}
do_test where7-2.4.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=20020
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 58 59 60 75 scan 0 sort 0}
do_test where7-2.5.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='xyzabcdef'
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=245
         OR a=27
      ORDER BY a
  }
} {23 27 49 75 96 scan 0 sort 0}
do_test where7-2.5.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='xyzabcdef'
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=245
         OR a=27
      ORDER BY a
  }
} {23 27 49 75 96 scan 0 sort 0}
do_test where7-2.6.1 {
  count_steps {
     SELECT a FROM t2
      WHERE d>1e10
         OR c=28028
         OR a=40
      ORDER BY a
  }
} {40 82 83 84 scan 0 sort 0}
do_test where7-2.6.2 {
  count_steps {
     SELECT a FROM t3
      WHERE d>1e10
         OR c=28028
         OR a=40
      ORDER BY a
  }
} {40 82 83 84 scan 0 sort 0}
do_test where7-2.7.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=27027
         OR ((a BETWEEN 8 AND 10) AND a!=9)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR a=18
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR c=29029
         OR a=14
         OR b=520
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {8 10 14 18 31 43 79 80 81 85 86 87 99 scan 0 sort 0}
do_test where7-2.7.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=27027
         OR ((a BETWEEN 8 AND 10) AND a!=9)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR a=18
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR c=29029
         OR a=14
         OR b=520
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {8 10 14 18 31 43 79 80 81 85 86 87 99 scan 0 sort 0}
do_test where7-2.8.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=311
      ORDER BY a
  }
} {26 35 37 65 67 scan 0 sort 0}
do_test where7-2.8.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=311
      ORDER BY a
  }
} {26 35 37 65 67 scan 0 sort 0}
do_test where7-2.9.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=24024
         OR a=29
         OR b=99
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 29 48 70 71 72 scan 0 sort 0}
do_test where7-2.9.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=24024
         OR a=29
         OR b=99
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 29 48 70 71 72 scan 0 sort 0}
do_test where7-2.10.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c<=10
         OR a=4
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 49 scan 0 sort 0}
do_test where7-2.10.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c<=10
         OR a=4
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 49 scan 0 sort 0}
do_test where7-2.11.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR b=143
         OR b=209
      ORDER BY a
  }
} {13 19 31 scan 0 sort 0}
do_test where7-2.11.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR b=143
         OR b=209
      ORDER BY a
  }
} {13 19 31 scan 0 sort 0}
do_test where7-2.12.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=542
         OR (g='qponmlk' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {38 69 86 scan 0 sort 0}
do_test where7-2.12.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=542
         OR (g='qponmlk' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {38 69 86 scan 0 sort 0}
do_test where7-2.13.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=960
         OR a=82
         OR a=89
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR g IS NULL
         OR (g='nmlkjih' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {32 56 82 89 91 scan 0 sort 0}
do_test where7-2.13.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=960
         OR a=82
         OR a=89
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR g IS NULL
         OR (g='nmlkjih' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {32 56 82 89 91 scan 0 sort 0}
do_test where7-2.14.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=407
         OR c=11011
         OR a=3
         OR b=583
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=308
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=341
      ORDER BY a
  }
} {3 28 31 32 33 37 47 53 56 94 96 scan 0 sort 0}
do_test where7-2.14.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=407
         OR c=11011
         OR a=3
         OR b=583
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=308
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=341
      ORDER BY a
  }
} {3 28 31 32 33 37 47 53 56 94 96 scan 0 sort 0}
do_test where7-2.15.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=509
         OR b=839
         OR b=1089
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR b=363
         OR c=8008
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {10 11 19 22 23 24 33 35 36 45 47 62 88 93 95 99 scan 0 sort 0}
do_test where7-2.15.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=509
         OR b=839
         OR b=1089
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR b=363
         OR c=8008
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {10 11 19 22 23 24 33 35 36 45 47 62 88 93 95 99 scan 0 sort 0}
do_test where7-2.16.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=825
         OR a=41
         OR b=454
         OR b=817
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
      ORDER BY a
  }
} {30 41 47 49 75 scan 0 sort 0}
do_test where7-2.16.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=825
         OR a=41
         OR b=454
         OR b=817
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
      ORDER BY a
  }
} {30 41 47 49 75 scan 0 sort 0}
do_test where7-2.17.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR c=15015
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=1015
         OR a=92
         OR c=15015
         OR b=407
         OR c>=34035
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=539
         OR a=61
      ORDER BY a
  }
} {36 37 38 43 44 45 49 61 92 93 scan 0 sort 0}
do_test where7-2.17.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR c=15015
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=1015
         OR a=92
         OR c=15015
         OR b=407
         OR c>=34035
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=539
         OR a=61
      ORDER BY a
  }
} {36 37 38 43 44 45 49 61 92 93 scan 0 sort 0}
do_test where7-2.18.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=674
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=572
         OR c=8008
         OR f='yzabcdefg'
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR a=49
         OR b=641
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {15 22 23 24 41 48 49 50 52 55 67 76 93 scan 0 sort 0}
do_test where7-2.18.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=674
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=572
         OR c=8008
         OR f='yzabcdefg'
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR a=49
         OR b=641
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {15 22 23 24 41 48 49 50 52 55 67 76 93 scan 0 sort 0}
do_test where7-2.19.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=894
         OR b=165
      ORDER BY a
  }
} {15 scan 0 sort 1}
do_test where7-2.19.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=894
         OR b=165
      ORDER BY a
  }
} {15 scan 0 sort 1}
do_test where7-2.20.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=49
         OR b=847
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR a=41
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=454
         OR b=363
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
      ORDER BY a
  }
} {8 10 12 26 33 41 49 77 85 87 scan 0 sort 0}
do_test where7-2.20.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=49
         OR b=847
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR a=41
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=454
         OR b=363
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
      ORDER BY a
  }
} {8 10 12 26 33 41 49 77 85 87 scan 0 sort 0}
do_test where7-2.21.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
      ORDER BY a
  }
} {20 26 46 72 98 scan 0 sort 0}
do_test where7-2.21.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
      ORDER BY a
  }
} {20 26 46 72 98 scan 0 sort 0}
do_test where7-2.22.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=396
         OR b=894
      ORDER BY a
  }
} {36 scan 0 sort 1}
do_test where7-2.22.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=396
         OR b=894
      ORDER BY a
  }
} {36 scan 0 sort 1}
do_test where7-2.23.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=671
         OR b=330
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {30 32 34 61 scan 0 sort 0}
do_test where7-2.23.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=671
         OR b=330
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {30 32 34 61 scan 0 sort 0}
do_test where7-2.24.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=916
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=121
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR c=15015
         OR c=1001
         OR b=132
      ORDER BY a
  }
} {1 2 3 11 12 24 43 44 45 86 96 scan 0 sort 0}
do_test where7-2.24.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=916
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=121
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR c=15015
         OR c=1001
         OR b=132
      ORDER BY a
  }
} {1 2 3 11 12 24 43 44 45 86 96 scan 0 sort 0}
do_test where7-2.25.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=68
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR b=1100
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR b=58
         OR a=65
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=124
      ORDER BY a
  }
} {49 65 68 77 79 91 100 scan 0 sort 0}
do_test where7-2.25.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=68
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR b=1100
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR b=58
         OR a=65
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=124
      ORDER BY a
  }
} {49 65 68 77 79 91 100 scan 0 sort 0}
do_test where7-2.26.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR f='nopqrstuv'
         OR c=8008
         OR b=1089
         OR b=396
         OR a=26
      ORDER BY a
  }
} {2 13 22 23 24 26 36 39 64 65 66 72 74 91 99 scan 0 sort 0}
do_test where7-2.26.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR f='nopqrstuv'
         OR c=8008
         OR b=1089
         OR b=396
         OR a=26
      ORDER BY a
  }
} {2 13 22 23 24 26 36 39 64 65 66 72 74 91 99 scan 0 sort 0}
do_test where7-2.27.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR b=429
         OR a=26
         OR b=267
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR a=24
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=9
      ORDER BY a
  }
} {9 21 24 26 39 54 56 82 90 92 scan 0 sort 0}
do_test where7-2.27.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR b=429
         OR a=26
         OR b=267
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR a=24
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=9
      ORDER BY a
  }
} {9 21 24 26 39 54 56 82 90 92 scan 0 sort 0}
do_test where7-2.28.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=23
         OR b=803
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR b=157
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR b=234
         OR b=212
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=685
         OR a=71
         OR c=22022
      ORDER BY a
  }
} {23 30 32 52 54 64 65 66 67 69 71 73 scan 0 sort 0}
do_test where7-2.28.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=23
         OR b=803
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR b=157
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR b=234
         OR b=212
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=685
         OR a=71
         OR c=22022
      ORDER BY a
  }
} {23 30 32 52 54 64 65 66 67 69 71 73 scan 0 sort 0}
do_test where7-2.29.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 98 AND 100) AND a!=99)
         OR c=3003
      ORDER BY a
  }
} {7 8 9 98 100 scan 0 sort 0}
do_test where7-2.29.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 98 AND 100) AND a!=99)
         OR c=3003
      ORDER BY a
  }
} {7 8 9 98 100 scan 0 sort 0}
do_test where7-2.30.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='efghijklm'
         OR a=17
      ORDER BY a
  }
} {4 17 30 56 82 scan 0 sort 0}
do_test where7-2.30.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='efghijklm'
         OR a=17
      ORDER BY a
  }
} {4 17 30 56 82 scan 0 sort 0}
do_test where7-2.31.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 0 AND 2) AND a!=1)
         OR b=33
         OR b=729
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
      ORDER BY a
  }
} {2 3 65 scan 0 sort 0}
do_test where7-2.31.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 0 AND 2) AND a!=1)
         OR b=33
         OR b=729
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
      ORDER BY a
  }
} {2 3 65 scan 0 sort 0}
do_test where7-2.32.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=586
         OR b=267
         OR b=795
         OR b=704
         OR b=242
         OR a=80
         OR f='lmnopqrst'
         OR 1000000<b
         OR ((a BETWEEN 59 AND 61) AND a!=60)
      ORDER BY a
  }
} {11 22 32 37 59 61 63 64 80 89 scan 0 sort 0}
do_test where7-2.32.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=586
         OR b=267
         OR b=795
         OR b=704
         OR b=242
         OR a=80
         OR f='lmnopqrst'
         OR 1000000<b
         OR ((a BETWEEN 59 AND 61) AND a!=60)
      ORDER BY a
  }
} {11 22 32 37 59 61 63 64 80 89 scan 0 sort 0}
do_test where7-2.33.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1059
         OR a=73
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 73 scan 0 sort 0}
do_test where7-2.33.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1059
         OR a=73
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 73 scan 0 sort 0}
do_test where7-2.34.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=572
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR a=54
         OR a=90
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 37 52 54 88 90 scan 0 sort 0}
do_test where7-2.34.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=572
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR a=54
         OR a=90
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 37 52 54 88 90 scan 0 sort 0}
do_test where7-2.35.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR c=16016
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR b=1100
         OR a=14
         OR b=473
      ORDER BY a
  }
} {14 43 46 47 48 54 77 82 100 scan 0 sort 0}
do_test where7-2.35.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR c=16016
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR b=1100
         OR a=14
         OR b=473
      ORDER BY a
  }
} {14 43 46 47 48 54 77 82 100 scan 0 sort 0}
do_test where7-2.36.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR b=1078
         OR b=80
         OR b=223
      ORDER BY a
  }
} {49 51 98 scan 0 sort 0}
do_test where7-2.36.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR b=1078
         OR b=80
         OR b=223
      ORDER BY a
  }
} {49 51 98 scan 0 sort 0}
do_test where7-2.37.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=297
         OR b=825
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=297
         OR b=847
         OR b=69
      ORDER BY a
  }
} {16 18 27 75 77 scan 0 sort 0}
do_test where7-2.37.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=297
         OR b=825
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=297
         OR b=847
         OR b=69
      ORDER BY a
  }
} {16 18 27 75 77 scan 0 sort 0}
do_test where7-2.38.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='efghijklm'
         OR a=74
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
      ORDER BY a
  }
} {1 4 27 30 35 37 53 56 73 74 79 82 84 99 scan 0 sort 0}
do_test where7-2.38.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='efghijklm'
         OR a=74
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
      ORDER BY a
  }
} {1 4 27 30 35 37 53 56 73 74 79 82 84 99 scan 0 sort 0}
do_test where7-2.39.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=286
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=627
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=31031
      ORDER BY a
  }
} {2 26 28 38 54 57 62 80 81 91 92 93 scan 0 sort 0}
do_test where7-2.39.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=286
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=627
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=31031
      ORDER BY a
  }
} {2 26 28 38 54 57 62 80 81 91 92 93 scan 0 sort 0}
do_test where7-2.40.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=333
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR c=22022
      ORDER BY a
  }
} {8 64 65 66 67 scan 0 sort 0}
do_test where7-2.40.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=333
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR c=22022
      ORDER BY a
  }
} {8 64 65 66 67 scan 0 sort 0}
do_test where7-2.41.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=18
         OR c=31031
         OR c=7007
         OR b=1100
         OR b=715
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=773
         OR b=487
         OR b=421
         OR b=1015
         OR b=124
      ORDER BY a
  }
} {18 19 20 21 65 81 91 92 93 100 scan 0 sort 0}
do_test where7-2.41.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=18
         OR c=31031
         OR c=7007
         OR b=1100
         OR b=715
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=773
         OR b=487
         OR b=421
         OR b=1015
         OR b=124
      ORDER BY a
  }
} {18 19 20 21 65 81 91 92 93 100 scan 0 sort 0}
do_test where7-2.42.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=704
         OR b=289
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR b=47
      ORDER BY a
  }
} {64 82 scan 0 sort 0}
do_test where7-2.42.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=704
         OR b=289
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR b=47
      ORDER BY a
  }
} {64 82 scan 0 sort 0}
do_test where7-2.43.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR b=770
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
         OR b=14
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR a=37
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {35 37 39 41 46 48 49 51 70 scan 0 sort 0}
do_test where7-2.43.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR b=770
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
         OR b=14
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR a=37
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {35 37 39 41 46 48 49 51 70 scan 0 sort 0}
do_test where7-2.44.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=135
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
      ORDER BY a
  }
} {16 38 40 51 scan 0 sort 0}
do_test where7-2.44.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=135
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
      ORDER BY a
  }
} {16 38 40 51 scan 0 sort 0}
do_test where7-2.45.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=29
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR a=47
         OR c>=34035
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 29 47 51 72 91 scan 0 sort 0}
do_test where7-2.45.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=29
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR a=47
         OR c>=34035
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 29 47 51 72 91 scan 0 sort 0}
do_test where7-2.46.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR b=454
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=638
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR c=25025
         OR f='yzabcdefg'
         OR c=16016
      ORDER BY a
  }
} {24 34 46 47 48 50 58 65 67 73 74 75 76 88 91 93 95 scan 0 sort 0}
do_test where7-2.46.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR b=454
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=638
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR c=25025
         OR f='yzabcdefg'
         OR c=16016
      ORDER BY a
  }
} {24 34 46 47 48 50 58 65 67 73 74 75 76 88 91 93 95 scan 0 sort 0}
do_test where7-2.47.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=352
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
      ORDER BY a
  }
} {23 32 68 91 scan 0 sort 0}
do_test where7-2.47.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=352
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
      ORDER BY a
  }
} {23 32 68 91 scan 0 sort 0}
do_test where7-2.48.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=418
         OR c=23023
         OR b=869
         OR b=781
      ORDER BY a
  }
} {38 67 68 69 71 79 scan 0 sort 0}
do_test where7-2.48.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=418
         OR c=23023
         OR b=869
         OR b=781
      ORDER BY a
  }
} {38 67 68 69 71 79 scan 0 sort 0}
do_test where7-2.49.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=69
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 7 24 30 45 47 56 82 92 scan 0 sort 0}
do_test where7-2.49.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=69
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 7 24 30 45 47 56 82 92 scan 0 sort 0}
do_test where7-2.50.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=22022
         OR b=264
         OR f='lmnopqrst'
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR a=45
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {3 11 13 24 36 37 45 58 63 64 65 66 89 scan 0 sort 0}
do_test where7-2.50.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=22022
         OR b=264
         OR f='lmnopqrst'
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR a=45
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {3 11 13 24 36 37 45 58 63 64 65 66 89 scan 0 sort 0}
do_test where7-2.51.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1012
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=51
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR a=77
      ORDER BY a
  }
} {51 73 75 77 92 97 scan 0 sort 0}
do_test where7-2.51.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1012
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=51
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR a=77
      ORDER BY a
  }
} {51 73 75 77 92 97 scan 0 sort 0}
do_test where7-2.52.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=22
         OR c<=10
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR b=531
         OR c=22022
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=847
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR a=78
      ORDER BY a
  }
} {6 8 22 24 25 26 40 64 65 66 77 78 scan 0 sort 0}
do_test where7-2.52.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=22
         OR c<=10
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR b=531
         OR c=22022
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=847
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR a=78
      ORDER BY a
  }
} {6 8 22 24 25 26 40 64 65 66 77 78 scan 0 sort 0}
do_test where7-2.53.1 {
  count_steps {
     SELECT a FROM t2
      WHERE 1000000<b
         OR c=18018
         OR c=27027
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=73
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {15 27 29 52 53 54 73 79 80 81 scan 0 sort 0}
do_test where7-2.53.2 {
  count_steps {
     SELECT a FROM t3
      WHERE 1000000<b
         OR c=18018
         OR c=27027
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=73
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {15 27 29 52 53 54 73 79 80 81 scan 0 sort 0}
do_test where7-2.54.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='vutsrqp' AND f GLOB 'pqrst*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=1081
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=399
      ORDER BY a
  }
} {2 6 12 14 15 18 32 39 58 70 72 84 92 94 99 scan 0 sort 0}
do_test where7-2.54.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='vutsrqp' AND f GLOB 'pqrst*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=1081
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=399
      ORDER BY a
  }
} {2 6 12 14 15 18 32 39 58 70 72 84 92 94 99 scan 0 sort 0}
do_test where7-2.55.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=352
         OR e IS NULL
         OR b=1034
         OR b=1048
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=47
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 35 37 40 59 76 94 scan 0 sort 0}
do_test where7-2.55.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=352
         OR e IS NULL
         OR b=1034
         OR b=1048
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=47
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 35 37 40 59 76 94 scan 0 sort 0}
do_test where7-2.56.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=14
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 14 75 92 94 scan 0 sort 0}
do_test where7-2.56.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=14
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 14 75 92 94 scan 0 sort 0}
do_test where7-2.57.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=707
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR b=473
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=352
         OR b=693
      ORDER BY a
  }
} {26 28 32 43 63 66 90 91 98 scan 0 sort 0}
do_test where7-2.57.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=707
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR b=473
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=352
         OR b=693
      ORDER BY a
  }
} {26 28 32 43 63 66 90 91 98 scan 0 sort 0}
do_test where7-2.58.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 81 AND 83) AND a!=82)
         OR f='hijklmnop'
         OR b=748
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR f='defghijkl'
         OR c=27027
         OR g IS NULL
         OR a=40
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {2 3 7 28 29 33 40 54 55 59 68 78 79 80 81 83 85 scan 0 sort 0}
do_test where7-2.58.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 81 AND 83) AND a!=82)
         OR f='hijklmnop'
         OR b=748
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR f='defghijkl'
         OR c=27027
         OR g IS NULL
         OR a=40
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {2 3 7 28 29 33 40 54 55 59 68 78 79 80 81 83 85 scan 0 sort 0}
do_test where7-2.59.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=62
         OR b=839
         OR a=36
         OR b=638
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR a=73
         OR a=48
         OR a=86
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {26 36 48 58 62 73 79 86 scan 0 sort 0}
do_test where7-2.59.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=62
         OR b=839
         OR a=36
         OR b=638
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR a=73
         OR a=48
         OR a=86
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {26 36 48 58 62 73 79 86 scan 0 sort 0}
do_test where7-2.60.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=641
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR b=880
         OR a=94
      ORDER BY a
  }
} {4 6 9 11 14 80 94 scan 0 sort 0}
do_test where7-2.60.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=641
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR b=880
         OR a=94
      ORDER BY a
  }
} {4 6 9 11 14 80 94 scan 0 sort 0}
do_test where7-2.61.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
      ORDER BY a
  }
} {29 31 71 scan 0 sort 0}
do_test where7-2.61.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
      ORDER BY a
  }
} {29 31 71 scan 0 sort 0}
do_test where7-2.62.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR b=971
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=726
         OR b=858
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR a=56
      ORDER BY a
  }
} {9 11 13 24 26 50 56 66 68 70 76 78 scan 0 sort 0}
do_test where7-2.62.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR b=971
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=726
         OR b=858
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR a=56
      ORDER BY a
  }
} {9 11 13 24 26 50 56 66 68 70 76 78 scan 0 sort 0}
do_test where7-2.63.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=21021
         OR b=795
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR f='rstuvwxyz'
         OR a=46
         OR b=773
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR a=1
         OR ((a BETWEEN 12 AND 14) AND a!=13)
      ORDER BY a
  }
} {1 12 14 17 43 46 61 62 63 69 77 95 scan 0 sort 0}
do_test where7-2.63.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=21021
         OR b=795
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR f='rstuvwxyz'
         OR a=46
         OR b=773
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR a=1
         OR ((a BETWEEN 12 AND 14) AND a!=13)
      ORDER BY a
  }
} {1 12 14 17 43 46 61 62 63 69 77 95 scan 0 sort 0}
do_test where7-2.64.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR a=77
      ORDER BY a
  }
} {35 37 38 70 77 scan 0 sort 0}
do_test where7-2.64.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR a=77
      ORDER BY a
  }
} {35 37 38 70 77 scan 0 sort 0}
do_test where7-2.65.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='jklmnopqr'
         OR b=517
      ORDER BY a
  }
} {9 35 47 61 87 scan 0 sort 0}
do_test where7-2.65.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='jklmnopqr'
         OR b=517
      ORDER BY a
  }
} {9 35 47 61 87 scan 0 sort 0}
do_test where7-2.66.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=330
         OR b=410
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=102
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR b=168
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 5 27 30 53 73 78 79 scan 0 sort 0}
do_test where7-2.66.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=330
         OR b=410
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=102
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR b=168
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 5 27 30 53 73 78 79 scan 0 sort 0}
do_test where7-2.67.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR a=37
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {8 37 43 45 60 scan 0 sort 0}
do_test where7-2.67.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR a=37
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {8 37 43 45 60 scan 0 sort 0}
do_test where7-2.68.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=91
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR b=564
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=43
         OR b=773
      ORDER BY a
  }
} {13 43 66 69 70 72 81 83 91 scan 0 sort 0}
do_test where7-2.68.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=91
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR b=564
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=43
         OR b=773
      ORDER BY a
  }
} {13 43 66 69 70 72 81 83 91 scan 0 sort 0}
do_test where7-2.69.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='defghijkl'
         OR c>=34035
      ORDER BY a
  }
} {3 29 55 81 scan 0 sort 0}
do_test where7-2.69.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='defghijkl'
         OR c>=34035
      ORDER BY a
  }
} {3 29 55 81 scan 0 sort 0}
do_test where7-2.70.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 79 AND 81) AND a!=80)
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 43 69 79 81 89 91 95 scan 0 sort 0}
do_test where7-2.70.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 79 AND 81) AND a!=80)
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 43 69 79 81 89 91 95 scan 0 sort 0}
do_test where7-2.71.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {25 26 28 43 56 scan 0 sort 0}
do_test where7-2.71.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {25 26 28 43 56 scan 0 sort 0}
do_test where7-2.72.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=451
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR a=91
      ORDER BY a
  }
} {14 16 28 41 91 scan 0 sort 0}
do_test where7-2.72.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=451
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR a=91
      ORDER BY a
  }
} {14 16 28 41 91 scan 0 sort 0}
do_test where7-2.73.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=7
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR b=1001
      ORDER BY a
  }
} {7 77 91 scan 0 sort 0}
do_test where7-2.73.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=7
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR b=1001
      ORDER BY a
  }
} {7 77 91 scan 0 sort 0}
do_test where7-2.74.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=704
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=542
         OR b=968
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 45 64 88 scan 0 sort 0}
do_test where7-2.74.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=704
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=542
         OR b=968
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 45 64 88 scan 0 sort 0}
do_test where7-2.75.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=92
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR b=902
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR b=487
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR b=495
      ORDER BY a
  }
} {9 19 21 23 45 48 50 80 82 92 98 scan 0 sort 0}
do_test where7-2.75.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=92
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR b=902
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR b=487
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR b=495
      ORDER BY a
  }
} {9 19 21 23 45 48 50 80 82 92 98 scan 0 sort 0}
do_test where7-2.76.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=74
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR a=25
         OR a=5
         OR f='hijklmnop'
         OR f='zabcdefgh'
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 7 25 29 33 51 59 74 77 85 87 scan 0 sort 0}
do_test where7-2.76.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=74
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR a=25
         OR a=5
         OR f='hijklmnop'
         OR f='zabcdefgh'
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 7 25 29 33 51 59 74 77 85 87 scan 0 sort 0}
do_test where7-2.77.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=770
         OR b=143
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=740
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR c=34034
      ORDER BY a
  }
} {5 7 13 37 40 49 51 70 100 scan 0 sort 0}
do_test where7-2.77.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=770
         OR b=143
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=740
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR c=34034
      ORDER BY a
  }
} {5 7 13 37 40 49 51 70 100 scan 0 sort 0}
do_test where7-2.78.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=18
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR a=6
         OR c=25025
         OR b=641
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR b=506
      ORDER BY a
  }
} {6 18 27 43 46 61 73 74 75 81 scan 0 sort 0}
do_test where7-2.78.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=18
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR a=6
         OR c=25025
         OR b=641
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR b=506
      ORDER BY a
  }
} {6 18 27 43 46 61 73 74 75 81 scan 0 sort 0}
do_test where7-2.79.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=79
         OR b=363
      ORDER BY a
  }
} {33 79 scan 0 sort 0}
do_test where7-2.79.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=79
         OR b=363
      ORDER BY a
  }
} {33 79 scan 0 sort 0}
do_test where7-2.80.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
      ORDER BY a
  }
} {6 22 24 scan 0 sort 0}
do_test where7-2.80.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
      ORDER BY a
  }
} {6 22 24 scan 0 sort 0}
do_test where7-2.81.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=31031
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {8 15 31 41 67 91 92 93 scan 0 sort 0}
do_test where7-2.81.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=31031
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {8 15 31 41 67 91 92 93 scan 0 sort 0}
do_test where7-2.82.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR a=6
         OR a=88
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {6 7 18 20 32 76 83 84 86 88 95 97 98 scan 0 sort 0}
do_test where7-2.82.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'hijkl*')
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR a=6
         OR a=88
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {6 7 18 20 32 76 83 84 86 88 95 97 98 scan 0 sort 0}
do_test where7-2.83.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=278
         OR b=561
         OR b=286
         OR f='efghijklm'
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=201
      ORDER BY a
  }
} {4 26 30 32 34 36 38 51 56 82 scan 0 sort 0}
do_test where7-2.83.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=278
         OR b=561
         OR b=286
         OR f='efghijklm'
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=201
      ORDER BY a
  }
} {4 26 30 32 34 36 38 51 56 82 scan 0 sort 0}
do_test where7-2.84.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR b=209
         OR b=861
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR b=682
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR b=616
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 67 AND 69) AND a!=68)
      ORDER BY a
  }
} {19 26 52 56 58 60 62 67 69 72 73 74 75 78 scan 0 sort 0}
do_test where7-2.84.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR b=209
         OR b=861
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR b=682
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR b=616
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 67 AND 69) AND a!=68)
      ORDER BY a
  }
} {19 26 52 56 58 60 62 67 69 72 73 74 75 78 scan 0 sort 0}
do_test where7-2.85.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=231
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=861
         OR a=53
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {15 21 24 26 46 53 56 scan 0 sort 0}
do_test where7-2.85.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=231
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=861
         OR a=53
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {15 21 24 26 46 53 56 scan 0 sort 0}
do_test where7-2.86.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR c=13013
      ORDER BY a
  }
} {37 38 39 91 93 scan 0 sort 0}
do_test where7-2.86.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR c=13013
      ORDER BY a
  }
} {37 38 39 91 93 scan 0 sort 0}
do_test where7-2.87.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 1 AND 3) AND a!=2)
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR b=385
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR c=33033
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=1004
         OR b=927
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {1 2 3 14 16 18 20 28 35 42 46 54 68 72 80 94 97 98 99 scan 0 sort 0}
do_test where7-2.87.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 1 AND 3) AND a!=2)
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR b=385
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR c=33033
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=1004
         OR b=927
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {1 2 3 14 16 18 20 28 35 42 46 54 68 72 80 94 97 98 99 scan 0 sort 0}
do_test where7-2.88.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR f IS NULL
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR a=81
         OR a=99
      ORDER BY a
  }
} {48 50 77 81 90 99 scan 0 sort 0}
do_test where7-2.88.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR f IS NULL
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR a=81
         OR a=99
      ORDER BY a
  }
} {48 50 77 81 90 99 scan 0 sort 0}
do_test where7-2.89.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=19
         OR b=454
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {1 19 49 64 scan 0 sort 0}
do_test where7-2.89.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=19
         OR b=454
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {1 19 49 64 scan 0 sort 0}
do_test where7-2.90.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=24024
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR a=93
         OR b=33
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {3 15 17 27 29 34 46 48 70 71 72 93 scan 0 sort 0}
do_test where7-2.90.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=24024
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR a=93
         OR b=33
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {3 15 17 27 29 34 46 48 70 71 72 93 scan 0 sort 0}
do_test where7-2.91.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=924
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
      ORDER BY a
  }
} {48 84 scan 0 sort 0}
do_test where7-2.91.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=924
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
      ORDER BY a
  }
} {48 84 scan 0 sort 0}
do_test where7-2.92.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR c=26026
         OR a=8
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=1048
      ORDER BY a
  }
} {8 25 27 35 37 72 76 77 78 81 scan 0 sort 0}
do_test where7-2.92.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR c=26026
         OR a=8
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=1048
      ORDER BY a
  }
} {8 25 27 35 37 72 76 77 78 81 scan 0 sort 0}
do_test where7-2.93.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=905
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 scan 0 sort 0}
do_test where7-2.93.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=905
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 scan 0 sort 0}
do_test where7-2.94.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=21
         OR f='jklmnopqr'
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR a=86
         OR b=1070
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=803
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR a=27
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=1001
      ORDER BY a
  }
} {9 11 13 21 26 27 28 35 61 73 86 87 91 scan 0 sort 0}
do_test where7-2.94.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=21
         OR f='jklmnopqr'
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR a=86
         OR b=1070
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=803
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR a=27
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=1001
      ORDER BY a
  }
} {9 11 13 21 26 27 28 35 61 73 86 87 91 scan 0 sort 0}
do_test where7-2.95.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'stuvw*')
         OR b=825
         OR c=31031
         OR c=14014
         OR a=84
         OR c=31031
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR f='vwxyzabcd'
         OR ((a BETWEEN 54 AND 56) AND a!=55)
      ORDER BY a
  }
} {18 21 40 41 42 47 54 56 58 73 75 84 91 92 93 94 99 scan 0 sort 0}
do_test where7-2.95.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'stuvw*')
         OR b=825
         OR c=31031
         OR c=14014
         OR a=84
         OR c=31031
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR f='vwxyzabcd'
         OR ((a BETWEEN 54 AND 56) AND a!=55)
      ORDER BY a
  }
} {18 21 40 41 42 47 54 56 58 73 75 84 91 92 93 94 99 scan 0 sort 0}
do_test where7-2.96.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 36 AND 38) AND a!=37)
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR g IS NULL
         OR a=46
      ORDER BY a
  }
} {36 38 46 48 50 scan 0 sort 0}
do_test where7-2.96.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 36 AND 38) AND a!=37)
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR g IS NULL
         OR a=46
      ORDER BY a
  }
} {36 38 46 48 50 scan 0 sort 0}
do_test where7-2.97.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=11
         OR a=98
      ORDER BY a
  }
} {6 11 32 58 84 98 scan 0 sort 0}
do_test where7-2.97.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=11
         OR a=98
      ORDER BY a
  }
} {6 11 32 58 84 98 scan 0 sort 0}
do_test where7-2.98.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR b=924
         OR a=30
         OR b=1048
         OR f='vwxyzabcd'
         OR a=61
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 16 21 23 30 42 47 61 68 73 76 78 84 94 99 scan 0 sort 0}
do_test where7-2.98.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR b=924
         OR a=30
         OR b=1048
         OR f='vwxyzabcd'
         OR a=61
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 16 21 23 30 42 47 61 68 73 76 78 84 94 99 scan 0 sort 0}
do_test where7-2.99.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=176
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=817
         OR f='qrstuvwxy'
         OR a=94
         OR b=880
      ORDER BY a
  }
} {9 16 35 42 61 68 80 87 94 scan 0 sort 0}
do_test where7-2.99.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=176
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=817
         OR f='qrstuvwxy'
         OR a=94
         OR b=880
      ORDER BY a
  }
} {9 16 35 42 61 68 80 87 94 scan 0 sort 0}
do_test where7-2.100.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=96
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=770
         OR b=828
         OR f='cdefghijk'
         OR f='qrstuvwxy'
         OR b=660
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=869
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {2 16 28 39 42 54 60 66 68 70 79 80 94 96 scan 0 sort 0}
do_test where7-2.100.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=96
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=770
         OR b=828
         OR f='cdefghijk'
         OR f='qrstuvwxy'
         OR b=660
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=869
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {2 16 28 39 42 54 60 66 68 70 79 80 94 96 scan 0 sort 0}
do_test where7-2.101.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=23023
         OR a=29
         OR b=484
         OR 1000000<b
         OR a=62
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=201
         OR a=67
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {10 14 16 19 21 29 36 44 62 67 68 69 88 scan 0 sort 0}
do_test where7-2.101.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=23023
         OR a=29
         OR b=484
         OR 1000000<b
         OR a=62
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=201
         OR a=67
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {10 14 16 19 21 29 36 44 62 67 68 69 88 scan 0 sort 0}
do_test where7-2.102.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1015
         OR f='cdefghijk'
      ORDER BY a
  }
} {2 28 54 80 scan 0 sort 0}
do_test where7-2.102.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1015
         OR f='cdefghijk'
      ORDER BY a
  }
} {2 28 54 80 scan 0 sort 0}
do_test where7-2.103.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR b=220
         OR b=421
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=487
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR a=59
      ORDER BY a
  }
} {20 21 59 71 77 97 scan 0 sort 0}
do_test where7-2.103.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR b=220
         OR b=421
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=487
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR a=59
      ORDER BY a
  }
} {20 21 59 71 77 97 scan 0 sort 0}
do_test where7-2.104.1 {
  count_steps {
     SELECT a FROM t2
      WHERE 1000000<b
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=880
         OR b=220
         OR b=825
         OR b=696
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR b=278
      ORDER BY a
  }
} {1 3 20 72 75 80 scan 0 sort 0}
do_test where7-2.104.2 {
  count_steps {
     SELECT a FROM t3
      WHERE 1000000<b
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=880
         OR b=220
         OR b=825
         OR b=696
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR b=278
      ORDER BY a
  }
} {1 3 20 72 75 80 scan 0 sort 0}
do_test where7-2.105.1 {
  count_steps {
     SELECT a FROM t2
      WHERE g IS NULL
         OR a=89
         OR b=377
         OR a=93
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=93
         OR b=154
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR ((a BETWEEN 44 AND 46) AND a!=45)
      ORDER BY a
  }
} {14 23 25 36 44 46 89 93 scan 0 sort 0}
do_test where7-2.105.2 {
  count_steps {
     SELECT a FROM t3
      WHERE g IS NULL
         OR a=89
         OR b=377
         OR a=93
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=93
         OR b=154
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR ((a BETWEEN 44 AND 46) AND a!=45)
      ORDER BY a
  }
} {14 23 25 36 44 46 89 93 scan 0 sort 0}
do_test where7-2.106.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=25025
         OR b=990
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR c=15015
         OR c=19019
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 43 44 45 55 56 57 69 73 74 75 81 90 scan 0 sort 0}
do_test where7-2.106.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=25025
         OR b=990
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR c=15015
         OR c=19019
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 43 44 45 55 56 57 69 73 74 75 81 90 scan 0 sort 0}
do_test where7-2.107.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=43
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=98
      ORDER BY a
  }
} {43 86 98 scan 0 sort 0}
do_test where7-2.107.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=43
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=98
      ORDER BY a
  }
} {43 86 98 scan 0 sort 0}
do_test where7-2.108.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=46
         OR b=388
         OR b=913
         OR b=451
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {41 46 63 73 75 83 85 scan 0 sort 0}
do_test where7-2.108.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR a=46
         OR b=388
         OR b=913
         OR b=451
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {41 46 63 73 75 83 85 scan 0 sort 0}
do_test where7-2.109.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=388
         OR c=14014
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=311
         OR c=34034
         OR c=3003
         OR c=34034
         OR b=421
         OR a=47
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=39
      ORDER BY a
  }
} {7 8 9 13 39 40 41 42 47 48 100 scan 0 sort 0}
do_test where7-2.109.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=388
         OR c=14014
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=311
         OR c=34034
         OR c=3003
         OR c=34034
         OR b=421
         OR a=47
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=39
      ORDER BY a
  }
} {7 8 9 13 39 40 41 42 47 48 100 scan 0 sort 0}
do_test where7-2.110.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR f='uvwxyzabc'
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR g IS NULL
         OR b=583
      ORDER BY a
  }
} {4 6 17 20 25 32 43 46 48 53 58 65 67 69 72 84 95 98 scan 0 sort 0}
do_test where7-2.110.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR f='uvwxyzabc'
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR g IS NULL
         OR b=583
      ORDER BY a
  }
} {4 6 17 20 25 32 43 46 48 53 58 65 67 69 72 84 95 98 scan 0 sort 0}
do_test where7-2.111.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='fghijklmn'
         OR c=22022
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {5 10 31 36 57 62 64 65 66 83 88 scan 0 sort 0}
do_test where7-2.111.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='fghijklmn'
         OR c=22022
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {5 10 31 36 57 62 64 65 66 83 88 scan 0 sort 0}
do_test where7-2.112.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=90
         OR a=68
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR a=65
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR a=74
         OR b=429
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {25 27 39 62 64 65 68 74 90 scan 0 sort 0}
do_test where7-2.112.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=90
         OR a=68
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR a=65
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR a=74
         OR b=429
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {25 27 39 62 64 65 68 74 90 scan 0 sort 0}
do_test where7-2.113.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR a=51
         OR b=817
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR ((a BETWEEN 26 AND 28) AND a!=27)
      ORDER BY a
  }
} {19 26 28 46 48 50 51 95 scan 0 sort 0}
do_test where7-2.113.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR a=51
         OR b=817
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR ((a BETWEEN 26 AND 28) AND a!=27)
      ORDER BY a
  }
} {19 26 28 46 48 50 51 95 scan 0 sort 0}
do_test where7-2.114.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='zabcdefgh'
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=1037
         OR b=938
      ORDER BY a
  }
} {25 51 77 85 87 scan 0 sort 0}
do_test where7-2.114.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='zabcdefgh'
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=1037
         OR b=938
      ORDER BY a
  }
} {25 51 77 85 87 scan 0 sort 0}
do_test where7-2.115.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR b=245
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR c=21021
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR f='wxyzabcde'
         OR b=784
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 17 22 31 48 51 53 61 62 63 74 79 100 scan 0 sort 0}
do_test where7-2.115.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR b=245
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR c=21021
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR f='wxyzabcde'
         OR b=784
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 17 22 31 48 51 53 61 62 63 74 79 100 scan 0 sort 0}
do_test where7-2.116.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=8008
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=660
         OR b=363
         OR f='lmnopqrst'
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR a=14
      ORDER BY a
  }
} {1 11 14 22 23 24 33 37 60 63 67 87 89 scan 0 sort 0}
do_test where7-2.116.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=8008
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=660
         OR b=363
         OR f='lmnopqrst'
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR a=14
      ORDER BY a
  }
} {1 11 14 22 23 24 33 37 60 63 67 87 89 scan 0 sort 0}
do_test where7-2.117.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=594
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=784
         OR b=333
         OR a=19
         OR b=146
         OR a=26
         OR c=4004
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=50
      ORDER BY a
  }
} {2 9 10 11 12 19 26 50 54 scan 0 sort 0}
do_test where7-2.117.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=594
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=784
         OR b=333
         OR a=19
         OR b=146
         OR a=26
         OR c=4004
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=50
      ORDER BY a
  }
} {2 9 10 11 12 19 26 50 54 scan 0 sort 0}
do_test where7-2.118.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=58
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=77
         OR a=18
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR f='mnopqrstu'
         OR a=73
         OR a=70
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {7 12 18 33 38 42 44 58 59 64 70 73 77 85 87 90 scan 0 sort 0}
do_test where7-2.118.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=58
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=77
         OR a=18
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR f='mnopqrstu'
         OR a=73
         OR a=70
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {7 12 18 33 38 42 44 58 59 64 70 73 77 85 87 90 scan 0 sort 0}
do_test where7-2.119.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=96
         OR b=25
         OR b=429
         OR b=638
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=43
         OR a=61
         OR b=836
         OR b=627
      ORDER BY a
  }
} {36 38 39 43 57 58 61 76 87 96 scan 0 sort 0}
do_test where7-2.119.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=96
         OR b=25
         OR b=429
         OR b=638
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=43
         OR a=61
         OR b=836
         OR b=627
      ORDER BY a
  }
} {36 38 39 43 57 58 61 76 87 96 scan 0 sort 0}
do_test where7-2.120.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR b=528
         OR c=5005
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {13 14 15 24 43 48 63 66 scan 0 sort 0}
do_test where7-2.120.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR b=528
         OR c=5005
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {13 14 15 24 43 48 63 66 scan 0 sort 0}
do_test where7-2.121.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=828
         OR c<=10
         OR b=891
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR b=344
         OR a=25
         OR b=201
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {1 25 31 33 68 75 81 scan 0 sort 0}
do_test where7-2.121.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=828
         OR c<=10
         OR b=891
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR b=344
         OR a=25
         OR b=201
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {1 25 31 33 68 75 81 scan 0 sort 0}
do_test where7-2.122.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=87
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=528
         OR f='ghijklmno'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR a=86
         OR b=454
      ORDER BY a
  }
} {5 6 7 28 30 31 32 48 49 57 58 83 84 86 87 scan 0 sort 0}
do_test where7-2.122.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=87
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=528
         OR f='ghijklmno'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR a=86
         OR b=454
      ORDER BY a
  }
} {5 6 7 28 30 31 32 48 49 57 58 83 84 86 87 scan 0 sort 0}
do_test where7-2.123.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=22
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=586
      ORDER BY a
  }
} {2 69 scan 0 sort 0}
do_test where7-2.123.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=22
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=586
      ORDER BY a
  }
} {2 69 scan 0 sort 0}
do_test where7-2.124.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=374
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=11
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 34 38 40 96 99 scan 0 sort 0}
do_test where7-2.124.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=374
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=11
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 34 38 40 96 99 scan 0 sort 0}
do_test where7-2.125.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR a=86
         OR b=231
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR b=22
         OR b=597
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR a=34
      ORDER BY a
  }
} {2 21 34 62 86 94 scan 0 sort 0}
do_test where7-2.125.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR a=86
         OR b=231
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR b=22
         OR b=597
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR a=34
      ORDER BY a
  }
} {2 21 34 62 86 94 scan 0 sort 0}
do_test where7-2.126.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=67
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR c=16016
      ORDER BY a
  }
} {16 31 46 47 48 67 scan 0 sort 0}
do_test where7-2.126.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=67
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR c=16016
      ORDER BY a
  }
} {16 31 46 47 48 67 scan 0 sort 0}
do_test where7-2.127.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=286
         OR b=14
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR a=51
         OR b=542
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {1 26 27 51 53 68 72 79 scan 0 sort 0}
do_test where7-2.127.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=286
         OR b=14
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR a=51
         OR b=542
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {1 26 27 51 53 68 72 79 scan 0 sort 0}
do_test where7-2.128.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=858
         OR b=759
         OR b=308
         OR c>=34035
      ORDER BY a
  }
} {28 69 78 scan 0 sort 0}
do_test where7-2.128.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=858
         OR b=759
         OR b=308
         OR c>=34035
      ORDER BY a
  }
} {28 69 78 scan 0 sort 0}
do_test where7-2.129.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=674
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=891
         OR b=1067
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=63
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {7 17 33 37 43 59 63 69 81 85 95 97 scan 0 sort 0}
do_test where7-2.129.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=674
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=891
         OR b=1067
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=63
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {7 17 33 37 43 59 63 69 81 85 95 97 scan 0 sort 0}
do_test where7-2.130.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=11
         OR a=85
         OR b=572
         OR a=65
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=726
         OR b=198
      ORDER BY a
  }
} {11 18 29 52 53 55 65 66 85 88 scan 0 sort 0}
do_test where7-2.130.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=11
         OR a=85
         OR b=572
         OR a=65
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=726
         OR b=198
      ORDER BY a
  }
} {11 18 29 52 53 55 65 66 85 88 scan 0 sort 0}
do_test where7-2.131.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=34
         OR b=440
         OR b=770
         OR b=916
         OR a=46
         OR b=388
         OR b=660
         OR b=256
      ORDER BY a
  }
} {34 40 46 60 70 scan 0 sort 0}
do_test where7-2.131.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=34
         OR b=440
         OR b=770
         OR b=916
         OR a=46
         OR b=388
         OR b=660
         OR b=256
      ORDER BY a
  }
} {34 40 46 60 70 scan 0 sort 0}
do_test where7-2.132.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=872
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=87
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=51
      ORDER BY a
  }
} {7 29 31 40 51 77 78 87 scan 0 sort 0}
do_test where7-2.132.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=872
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=87
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=51
      ORDER BY a
  }
} {7 29 31 40 51 77 78 87 scan 0 sort 0}
do_test where7-2.133.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=50
         OR c=25025
         OR c=34034
         OR b=36
      ORDER BY a
  }
} {50 73 74 75 100 scan 0 sort 0}
do_test where7-2.133.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=50
         OR c=25025
         OR c=34034
         OR b=36
      ORDER BY a
  }
} {50 73 74 75 100 scan 0 sort 0}
do_test where7-2.134.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=35.0 AND d<36.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {35 54 scan 0 sort 0}
do_test where7-2.134.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=35.0 AND d<36.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {35 54 scan 0 sort 0}
do_test where7-2.135.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=2
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR b=616
      ORDER BY a
  }
} {2 20 22 24 29 31 56 76 scan 0 sort 0}
do_test where7-2.135.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=2
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR b=616
      ORDER BY a
  }
} {2 20 22 24 29 31 56 76 scan 0 sort 0}
do_test where7-2.136.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR a=56
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR b=1023
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=1012
         OR b=1048
      ORDER BY a
  }
} {5 7 11 20 22 48 50 52 54 56 62 92 93 scan 0 sort 0}
do_test where7-2.136.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR a=56
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR b=1023
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=1012
         OR b=1048
      ORDER BY a
  }
} {5 7 11 20 22 48 50 52 54 56 62 92 93 scan 0 sort 0}
do_test where7-2.137.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=1089
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=223
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=572
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 28 29 36 44 52 70 74 85 88 96 99 scan 0 sort 0}
do_test where7-2.137.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=1089
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=223
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=572
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 28 29 36 44 52 70 74 85 88 96 99 scan 0 sort 0}
do_test where7-2.138.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=57
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=341
         OR ((a BETWEEN 15 AND 17) AND a!=16)
      ORDER BY a
  }
} {2 4 15 17 31 57 65 scan 0 sort 0}
do_test where7-2.138.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=57
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=341
         OR ((a BETWEEN 15 AND 17) AND a!=16)
      ORDER BY a
  }
} {2 4 15 17 31 57 65 scan 0 sort 0}
do_test where7-2.139.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c<=10
         OR b=498
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR b=872
         OR a=36
         OR ((a BETWEEN 51 AND 53) AND a!=52)
      ORDER BY a
  }
} {36 45 51 53 76 scan 0 sort 0}
do_test where7-2.139.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c<=10
         OR b=498
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR b=872
         OR a=36
         OR ((a BETWEEN 51 AND 53) AND a!=52)
      ORDER BY a
  }
} {36 45 51 53 76 scan 0 sort 0}
do_test where7-2.140.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=850
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
      ORDER BY a
  }
} {12 26 51 53 83 scan 0 sort 0}
do_test where7-2.140.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=850
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
      ORDER BY a
  }
} {12 26 51 53 83 scan 0 sort 0}
do_test where7-2.141.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=31
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR c=20020
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (g='nmlkjih' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {16 17 31 55 58 59 60 99 scan 0 sort 0}
do_test where7-2.141.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=31
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR c=20020
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (g='nmlkjih' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {16 17 31 55 58 59 60 99 scan 0 sort 0}
do_test where7-2.142.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR b=495
         OR b=344
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=784
      ORDER BY a
  }
} {2 12 28 38 45 54 64 72 80 83 90 scan 0 sort 0}
do_test where7-2.142.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR b=495
         OR b=344
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=784
      ORDER BY a
  }
} {2 12 28 38 45 54 64 72 80 83 90 scan 0 sort 0}
do_test where7-2.143.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR a=91
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 6 8 10 13 24 28 36 54 59 61 62 80 82 88 91 scan 0 sort 0}
do_test where7-2.143.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR a=91
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 6 8 10 13 24 28 36 54 59 61 62 80 82 88 91 scan 0 sort 0}
do_test where7-2.144.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=94
         OR b=839
         OR b=322
         OR a=13
         OR f='abcdefghi'
         OR a=82
         OR b=839
         OR b=583
         OR b=113
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 26 34 52 53 78 82 94 scan 0 sort 0}
do_test where7-2.144.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=94
         OR b=839
         OR b=322
         OR a=13
         OR f='abcdefghi'
         OR a=82
         OR b=839
         OR b=583
         OR b=113
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 26 34 52 53 78 82 94 scan 0 sort 0}
do_test where7-2.145.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=26
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=751
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR b=399
         OR a=33
      ORDER BY a
  }
} {22 26 33 42 52 54 90 92 scan 0 sort 0}
do_test where7-2.145.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=26
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=751
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR b=399
         OR a=33
      ORDER BY a
  }
} {22 26 33 42 52 54 90 92 scan 0 sort 0}
do_test where7-2.146.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=696
         OR a=1
         OR b=1023
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR a=66
         OR c=25025
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 32 66 73 74 75 80 82 93 scan 0 sort 0}
do_test where7-2.146.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=696
         OR a=1
         OR b=1023
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR a=66
         OR c=25025
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 32 66 73 74 75 80 82 93 scan 0 sort 0}
do_test where7-2.147.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=212
         OR b=660
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 7 16 35 60 68 70 72 81 scan 0 sort 0}
do_test where7-2.147.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=212
         OR b=660
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 7 16 35 60 68 70 72 81 scan 0 sort 0}
do_test where7-2.148.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR f='yzabcdefg'
         OR a=62
         OR b=916
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 24 46 50 60 62 65 76 scan 0 sort 0}
do_test where7-2.148.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR f='yzabcdefg'
         OR a=62
         OR b=916
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 24 46 50 60 62 65 76 scan 0 sort 0}
do_test where7-2.149.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=198
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR a=54
         OR 1000000<b
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 18 39 54 scan 0 sort 0}
do_test where7-2.149.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=198
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR a=54
         OR 1000000<b
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 18 39 54 scan 0 sort 0}
do_test where7-2.150.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='xyzabcdef'
         OR a=75
         OR a=47
         OR b=25
         OR b=968
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR f='xyzabcdef'
         OR a=19
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {11 19 23 47 49 75 79 81 88 scan 0 sort 0}
do_test where7-2.150.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='xyzabcdef'
         OR a=75
         OR a=47
         OR b=25
         OR b=968
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR f='xyzabcdef'
         OR a=19
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {11 19 23 47 49 75 79 81 88 scan 0 sort 0}
do_test where7-2.151.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=311
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR a=88
         OR b=693
         OR f='stuvwxyza'
      ORDER BY a
  }
} {18 44 58 63 70 76 88 96 scan 0 sort 0}
do_test where7-2.151.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=311
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR a=88
         OR b=693
         OR f='stuvwxyza'
      ORDER BY a
  }
} {18 44 58 63 70 76 88 96 scan 0 sort 0}
do_test where7-2.152.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=300
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR c=32032
      ORDER BY a
  }
} {16 64 66 86 94 95 96 scan 0 sort 0}
do_test where7-2.152.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=300
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR c=32032
      ORDER BY a
  }
} {16 64 66 86 94 95 96 scan 0 sort 0}
do_test where7-2.153.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR a=28
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR c=12012
         OR b=14
         OR a=58
         OR ((a BETWEEN 95 AND 97) AND a!=96)
      ORDER BY a
  }
} {4 28 30 33 34 35 36 56 58 59 82 95 97 scan 0 sort 0}
do_test where7-2.153.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR a=28
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR c=12012
         OR b=14
         OR a=58
         OR ((a BETWEEN 95 AND 97) AND a!=96)
      ORDER BY a
  }
} {4 28 30 33 34 35 36 56 58 59 82 95 97 scan 0 sort 0}
do_test where7-2.154.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR f='zabcdefgh'
         OR b=80
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 84 AND 86) AND a!=85)
      ORDER BY a
  }
} {11 16 23 25 51 77 84 86 93 scan 0 sort 0}
do_test where7-2.154.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR f='zabcdefgh'
         OR b=80
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 84 AND 86) AND a!=85)
      ORDER BY a
  }
} {11 16 23 25 51 77 84 86 93 scan 0 sort 0}
do_test where7-2.155.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {27 29 46 50 58 60 scan 0 sort 0}
do_test where7-2.155.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {27 29 46 50 58 60 scan 0 sort 0}
do_test where7-2.156.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=76
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=935
         OR b=1023
      ORDER BY a
  }
} {76 81 85 93 scan 0 sort 0}
do_test where7-2.156.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=76
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=935
         OR b=1023
      ORDER BY a
  }
} {76 81 85 93 scan 0 sort 0}
do_test where7-2.157.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=15
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b<0
         OR b=209
      ORDER BY a
  }
} {15 19 42 44 scan 0 sort 0}
do_test where7-2.157.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=15
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b<0
         OR b=209
      ORDER BY a
  }
} {15 19 42 44 scan 0 sort 0}
do_test where7-2.158.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=421
         OR a=27
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR a=67
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b<0
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {2 10 27 29 60 67 scan 0 sort 0}
do_test where7-2.158.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=421
         OR a=27
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR a=67
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b<0
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {2 10 27 29 60 67 scan 0 sort 0}
do_test where7-2.159.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR c=32032
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=12
         OR f='stuvwxyza'
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {12 18 24 26 42 44 61 68 70 78 94 95 96 scan 0 sort 0}
do_test where7-2.159.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR c=32032
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=12
         OR f='stuvwxyza'
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {12 18 24 26 42 44 61 68 70 78 94 95 96 scan 0 sort 0}
do_test where7-2.160.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=53
         OR a=42
         OR c=21021
         OR c=14014
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR b=583
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=245
      ORDER BY a
  }
} {4 11 29 30 37 40 41 42 51 53 56 61 62 63 82 89 93 95 scan 0 sort 0}
do_test where7-2.160.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=53
         OR a=42
         OR c=21021
         OR c=14014
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR b=583
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=245
      ORDER BY a
  }
} {4 11 29 30 37 40 41 42 51 53 56 61 62 63 82 89 93 95 scan 0 sort 0}
do_test where7-2.161.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=608
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=330
         OR a=32
         OR a=70
         OR b=517
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
      ORDER BY a
  }
} {23 29 30 32 47 70 scan 0 sort 0}
do_test where7-2.161.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=608
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=330
         OR a=32
         OR a=70
         OR b=517
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
      ORDER BY a
  }
} {23 29 30 32 47 70 scan 0 sort 0}
do_test where7-2.162.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=2
         OR b=594
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR b=773
      ORDER BY a
  }
} {2 6 54 scan 0 sort 0}
do_test where7-2.162.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=2
         OR b=594
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR b=773
      ORDER BY a
  }
} {2 6 54 scan 0 sort 0}
do_test where7-2.163.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=73
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (g='gfedcba' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {61 73 90 scan 0 sort 0}
do_test where7-2.163.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=73
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (g='gfedcba' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {61 73 90 scan 0 sort 0}
do_test where7-2.164.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='mnopqrstu'
         OR b=1103
      ORDER BY a
  }
} {12 38 64 90 scan 0 sort 0}
do_test where7-2.164.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='mnopqrstu'
         OR b=1103
      ORDER BY a
  }
} {12 38 64 90 scan 0 sort 0}
do_test where7-2.165.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=26026
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR b=828
         OR c=22022
      ORDER BY a
  }
} {11 59 64 65 66 76 77 78 scan 0 sort 0}
do_test where7-2.165.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=26026
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR b=828
         OR c=22022
      ORDER BY a
  }
} {11 59 64 65 66 76 77 78 scan 0 sort 0}
do_test where7-2.166.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=616
         OR a=43
         OR c=27027
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR ((a BETWEEN 17 AND 19) AND a!=18)
      ORDER BY a
  }
} {3 17 19 29 43 55 56 79 80 81 83 85 scan 0 sort 0}
do_test where7-2.166.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=616
         OR a=43
         OR c=27027
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR ((a BETWEEN 17 AND 19) AND a!=18)
      ORDER BY a
  }
} {3 17 19 29 43 55 56 79 80 81 83 85 scan 0 sort 0}
do_test where7-2.167.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR ((a BETWEEN 57 AND 59) AND a!=58)
      ORDER BY a
  }
} {16 38 57 59 scan 0 sort 0}
do_test where7-2.167.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR ((a BETWEEN 57 AND 59) AND a!=58)
      ORDER BY a
  }
} {16 38 57 59 scan 0 sort 0}
do_test where7-2.168.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=30
         OR b=1081
         OR b=113
         OR b=869
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR b=946
      ORDER BY a
  }
} {30 46 79 86 scan 0 sort 0}
do_test where7-2.168.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=30
         OR b=1081
         OR b=113
         OR b=869
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR b=946
      ORDER BY a
  }
} {30 46 79 86 scan 0 sort 0}
do_test where7-2.169.1 {
  count_steps {
     SELECT a FROM t2
      WHERE d>1e10
         OR a=22
         OR b=638
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=29
         OR a=49
      ORDER BY a
  }
} {22 29 49 58 67 scan 0 sort 0}
do_test where7-2.169.2 {
  count_steps {
     SELECT a FROM t3
      WHERE d>1e10
         OR a=22
         OR b=638
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=29
         OR a=49
      ORDER BY a
  }
} {22 29 49 58 67 scan 0 sort 0}
do_test where7-2.170.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=77
      ORDER BY a
  }
} {7 67 78 scan 0 sort 0}
do_test where7-2.170.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=77
      ORDER BY a
  }
} {7 67 78 scan 0 sort 0}
do_test where7-2.171.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=363
         OR f='pqrstuvwx'
         OR b=308
         OR b=187
      ORDER BY a
  }
} {15 16 17 28 33 41 42 67 68 93 94 scan 0 sort 0}
do_test where7-2.171.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=363
         OR f='pqrstuvwx'
         OR b=308
         OR b=187
      ORDER BY a
  }
} {15 16 17 28 33 41 42 67 68 93 94 scan 0 sort 0}
do_test where7-2.172.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=264
         OR a=65
         OR b=135
         OR b=594
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {21 24 39 54 65 scan 0 sort 0}
do_test where7-2.172.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=264
         OR a=65
         OR b=135
         OR b=594
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {21 24 39 54 65 scan 0 sort 0}
do_test where7-2.173.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 41 AND 43) AND a!=42)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR b=517
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=1023
         OR a=40
      ORDER BY a
  }
} {34 40 41 43 47 48 64 66 72 73 74 93 scan 0 sort 0}
do_test where7-2.173.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 41 AND 43) AND a!=42)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR b=517
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=1023
         OR a=40
      ORDER BY a
  }
} {34 40 41 43 47 48 64 66 72 73 74 93 scan 0 sort 0}
do_test where7-2.174.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=46
         OR a=6
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR a=49
      ORDER BY a
  }
} {6 9 12 14 35 46 49 61 87 scan 0 sort 0}
do_test where7-2.174.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=46
         OR a=6
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR a=49
      ORDER BY a
  }
} {6 9 12 14 35 46 49 61 87 scan 0 sort 0}
do_test where7-2.175.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=87
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR a=83
         OR ((a BETWEEN 96 AND 98) AND a!=97)
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 34 50 52 83 87 93 96 98 scan 0 sort 0}
do_test where7-2.175.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=87
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR a=83
         OR ((a BETWEEN 96 AND 98) AND a!=97)
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 34 50 52 83 87 93 96 98 scan 0 sort 0}
do_test where7-2.176.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR c=15015
      ORDER BY a
  }
} {10 43 44 45 58 71 73 93 95 99 scan 0 sort 0}
do_test where7-2.176.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR c=15015
      ORDER BY a
  }
} {10 43 44 45 58 71 73 93 95 99 scan 0 sort 0}
do_test where7-2.177.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=968
         OR f='hijklmnop'
         OR b=99
         OR a=87
      ORDER BY a
  }
} {7 9 33 59 85 87 88 scan 0 sort 0}
do_test where7-2.177.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=968
         OR f='hijklmnop'
         OR b=99
         OR a=87
      ORDER BY a
  }
} {7 9 33 59 85 87 88 scan 0 sort 0}
do_test where7-2.178.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 69 AND 71) AND a!=70)
         OR b=913
         OR a=58
         OR b=960
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=176
         OR a=6
      ORDER BY a
  }
} {6 16 58 69 71 83 98 scan 0 sort 0}
do_test where7-2.178.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 69 AND 71) AND a!=70)
         OR b=913
         OR a=58
         OR b=960
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=176
         OR a=6
      ORDER BY a
  }
} {6 16 58 69 71 83 98 scan 0 sort 0}
do_test where7-2.179.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=84
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=594
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {14 15 16 41 49 50 52 54 67 81 82 83 84 93 scan 0 sort 0}
do_test where7-2.179.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=84
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=594
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {14 15 16 41 49 50 52 54 67 81 82 83 84 93 scan 0 sort 0}
do_test where7-2.180.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=58
         OR b=663
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.180.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=58
         OR b=663
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.181.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=56
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=946
      ORDER BY a
  }
} {10 56 86 scan 0 sort 0}
do_test where7-2.181.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=56
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=946
      ORDER BY a
  }
} {10 56 86 scan 0 sort 0}
do_test where7-2.182.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=627
         OR b=905
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR f='xyzabcdef'
         OR a=29
      ORDER BY a
  }
} {4 6 23 29 49 57 75 scan 0 sort 0}
do_test where7-2.182.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=627
         OR b=905
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR f='xyzabcdef'
         OR a=29
      ORDER BY a
  }
} {4 6 23 29 49 57 75 scan 0 sort 0}
do_test where7-2.183.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=850
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
      ORDER BY a
  }
} {19 45 71 74 97 scan 0 sort 0}
do_test where7-2.183.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=850
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
      ORDER BY a
  }
} {19 45 71 74 97 scan 0 sort 0}
do_test where7-2.184.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=462
         OR b=1089
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR a=53
         OR d>1e10
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR c=23023
         OR b=561
      ORDER BY a
  }
} {39 42 44 51 53 54 56 57 65 67 68 69 99 scan 0 sort 0}
do_test where7-2.184.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=462
         OR b=1089
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR a=53
         OR d>1e10
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR c=23023
         OR b=561
      ORDER BY a
  }
} {39 42 44 51 53 54 56 57 65 67 68 69 99 scan 0 sort 0}
do_test where7-2.185.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=561
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=55
         OR a=94
      ORDER BY a
  }
} {5 9 11 19 45 51 56 71 94 97 scan 0 sort 0}
do_test where7-2.185.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=561
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=55
         OR a=94
      ORDER BY a
  }
} {5 9 11 19 45 51 56 71 94 97 scan 0 sort 0}
do_test where7-2.186.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR a=1
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR f='fghijklmn'
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=96
      ORDER BY a
  }
} {1 5 13 14 15 31 37 39 40 41 57 59 65 66 67 83 91 92 93 96 scan 0 sort 0}
do_test where7-2.186.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR a=1
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR f='fghijklmn'
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=96
      ORDER BY a
  }
} {1 5 13 14 15 31 37 39 40 41 57 59 65 66 67 83 91 92 93 96 scan 0 sort 0}
do_test where7-2.187.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=495
         OR b=231
         OR b=795
         OR a=1
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=861
         OR b=388
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=4
      ORDER BY a
  }
} {1 4 13 15 17 19 21 45 scan 0 sort 0}
do_test where7-2.187.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=495
         OR b=231
         OR b=795
         OR a=1
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=861
         OR b=388
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=4
      ORDER BY a
  }
} {1 4 13 15 17 19 21 45 scan 0 sort 0}
do_test where7-2.188.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=286
         OR b=553
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR b=839
      ORDER BY a
  }
} {26 51 53 77 scan 0 sort 0}
do_test where7-2.188.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=286
         OR b=553
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR b=839
      ORDER BY a
  }
} {26 51 53 77 scan 0 sort 0}
do_test where7-2.189.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR b=487
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR a=90
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {3 17 24 60 62 90 scan 0 sort 0}
do_test where7-2.189.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR b=487
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR a=90
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {3 17 24 60 62 90 scan 0 sort 0}
do_test where7-2.190.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=671
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=57
      ORDER BY a
  }
} {6 15 17 19 36 57 61 scan 0 sort 0}
do_test where7-2.190.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=671
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=57
      ORDER BY a
  }
} {6 15 17 19 36 57 61 scan 0 sort 0}
do_test where7-2.191.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=891
         OR a=64
      ORDER BY a
  }
} {64 66 81 scan 0 sort 0}
do_test where7-2.191.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'opqrs*')
         OR b=891
         OR a=64
      ORDER BY a
  }
} {64 66 81 scan 0 sort 0}
do_test where7-2.192.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 58 AND 60) AND a!=59)
         OR b=201
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=718
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 26 28 44 46 58 60 74 scan 0 sort 0}
do_test where7-2.192.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 58 AND 60) AND a!=59)
         OR b=201
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR b=718
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 26 28 44 46 58 60 74 scan 0 sort 0}
do_test where7-2.193.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR f='opqrstuvw'
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {8 14 34 40 66 92 scan 0 sort 0}
do_test where7-2.193.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR f='opqrstuvw'
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {8 14 34 40 66 92 scan 0 sort 0}
do_test where7-2.194.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=454
         OR b=33
         OR b=157
      ORDER BY a
  }
} {3 scan 0 sort 1}
do_test where7-2.194.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=454
         OR b=33
         OR b=157
      ORDER BY a
  }
} {3 scan 0 sort 1}
do_test where7-2.195.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR b=993
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR a=30
      ORDER BY a
  }
} {30 55 79 81 82 84 scan 0 sort 0}
do_test where7-2.195.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR b=993
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR a=30
      ORDER BY a
  }
} {30 55 79 81 82 84 scan 0 sort 0}
do_test where7-2.196.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=850
      ORDER BY a
  }
} {9 35 61 87 scan 0 sort 0}
do_test where7-2.196.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=850
      ORDER BY a
  }
} {9 35 61 87 scan 0 sort 0}
do_test where7-2.197.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=872
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR b=322
         OR a=6
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR c<=10
         OR b=784
         OR b=11
         OR b=759
         OR b=993
      ORDER BY a
  }
} {1 6 47 69 75 scan 0 sort 0}
do_test where7-2.197.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=872
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR b=322
         OR a=6
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR c<=10
         OR b=784
         OR b=11
         OR b=759
         OR b=993
      ORDER BY a
  }
} {1 6 47 69 75 scan 0 sort 0}
do_test where7-2.198.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 53 AND 55) AND a!=54)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=29
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR a=66
         OR a=55
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR b=14
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {29 53 55 63 65 66 67 81 83 88 scan 0 sort 0}
do_test where7-2.198.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 53 AND 55) AND a!=54)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=29
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR a=66
         OR a=55
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR b=14
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {29 53 55 63 65 66 67 81 83 88 scan 0 sort 0}
do_test where7-2.199.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=29029
         OR b=960
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR b=410
         OR c=27027
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR c=1001
      ORDER BY a
  }
} {1 2 3 6 23 32 49 51 58 73 75 79 80 81 84 85 86 87 scan 0 sort 0}
do_test where7-2.199.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=29029
         OR b=960
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR b=410
         OR c=27027
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR c=1001
      ORDER BY a
  }
} {1 2 3 6 23 32 49 51 58 73 75 79 80 81 84 85 86 87 scan 0 sort 0}
do_test where7-2.200.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR b=374
         OR a=69
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=33
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {3 4 15 17 29 34 53 69 78 84 86 87 89 scan 0 sort 0}
do_test where7-2.200.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR b=374
         OR a=69
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=33
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {3 4 15 17 29 34 53 69 78 84 86 87 89 scan 0 sort 0}
do_test where7-2.201.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=11011
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='lmnopqrst'
         OR a=52
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR b=242
         OR ((a BETWEEN 91 AND 93) AND a!=92)
      ORDER BY a
  }
} {7 11 22 25 31 32 33 35 37 52 63 89 91 93 95 scan 0 sort 0}
do_test where7-2.201.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=11011
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='lmnopqrst'
         OR a=52
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR b=242
         OR ((a BETWEEN 91 AND 93) AND a!=92)
      ORDER BY a
  }
} {7 11 22 25 31 32 33 35 37 52 63 89 91 93 95 scan 0 sort 0}
do_test where7-2.202.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=135
         OR a=49
         OR b=44
         OR b=377
      ORDER BY a
  }
} {4 49 scan 0 sort 0}
do_test where7-2.202.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=135
         OR a=49
         OR b=44
         OR b=377
      ORDER BY a
  }
} {4 49 scan 0 sort 0}
do_test where7-2.203.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1070
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=737
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=36
         OR b=707
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {3 53 67 73 99 scan 0 sort 0}
do_test where7-2.203.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1070
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=737
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=36
         OR b=707
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {3 53 67 73 99 scan 0 sort 0}
do_test where7-2.204.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 29 43 56 61 63 69 95 scan 0 sort 0}
do_test where7-2.204.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 29 43 56 61 63 69 95 scan 0 sort 0}
do_test where7-2.205.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=30
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR f='vwxyzabcd'
         OR b=506
      ORDER BY a
  }
} {15 17 21 30 46 47 73 99 scan 0 sort 0}
do_test where7-2.205.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=30
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR f='vwxyzabcd'
         OR b=506
      ORDER BY a
  }
} {15 17 21 30 46 47 73 99 scan 0 sort 0}
do_test where7-2.206.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
      ORDER BY a
  }
} {35 37 43 scan 0 sort 0}
do_test where7-2.206.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
      ORDER BY a
  }
} {35 37 43 scan 0 sort 0}
do_test where7-2.207.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR b=795
         OR c=16016
         OR a=44
         OR f='defghijkl'
      ORDER BY a
  }
} {3 29 44 46 47 48 55 78 81 scan 0 sort 0}
do_test where7-2.207.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR b=795
         OR c=16016
         OR a=44
         OR f='defghijkl'
      ORDER BY a
  }
} {3 29 44 46 47 48 55 78 81 scan 0 sort 0}
do_test where7-2.208.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {6 10 36 62 88 scan 0 sort 0}
do_test where7-2.208.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {6 10 36 62 88 scan 0 sort 0}
do_test where7-2.209.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=627
         OR c=11011
      ORDER BY a
  }
} {31 32 33 57 scan 0 sort 0}
do_test where7-2.209.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=627
         OR c=11011
      ORDER BY a
  }
} {31 32 33 57 scan 0 sort 0}
do_test where7-2.210.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=418
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR b=968
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=14
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {2 28 38 39 54 80 83 84 88 scan 0 sort 0}
do_test where7-2.210.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=418
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR b=968
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR b=14
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
      ORDER BY a
  }
} {2 28 38 39 54 80 83 84 88 scan 0 sort 0}
do_test where7-2.211.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=275
         OR b=630
         OR b=520
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR b=583
         OR a=94
         OR b=660
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 25 53 60 68 76 90 94 scan 0 sort 0}
do_test where7-2.211.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=275
         OR b=630
         OR b=520
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR b=583
         OR a=94
         OR b=660
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 25 53 60 68 76 90 94 scan 0 sort 0}
do_test where7-2.212.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=43
         OR c=7007
         OR a=42
         OR a=2
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR d<0.0
      ORDER BY a
  }
} {1 2 3 5 19 20 21 42 43 78 scan 0 sort 0}
do_test where7-2.212.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=43
         OR c=7007
         OR a=42
         OR a=2
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR d<0.0
      ORDER BY a
  }
} {1 2 3 5 19 20 21 42 43 78 scan 0 sort 0}
do_test where7-2.213.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR a=65
         OR b=913
         OR a=38
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {31 38 52 59 65 83 94 scan 0 sort 0}
do_test where7-2.213.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR a=65
         OR b=913
         OR a=38
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {31 38 52 59 65 83 94 scan 0 sort 0}
do_test where7-2.214.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=1001
         OR c=24024
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR b=726
      ORDER BY a
  }
} {1 2 3 66 70 71 72 91 93 95 scan 0 sort 0}
do_test where7-2.214.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=1001
         OR c=24024
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR b=726
      ORDER BY a
  }
} {1 2 3 66 70 71 72 91 93 95 scan 0 sort 0}
do_test where7-2.215.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1067
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
      ORDER BY a
  }
} {1 27 53 64 66 79 97 scan 0 sort 0}
do_test where7-2.215.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1067
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
      ORDER BY a
  }
} {1 27 53 64 66 79 97 scan 0 sort 0}
do_test where7-2.216.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR a=25
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {25 33 35 83 85 scan 0 sort 0}
do_test where7-2.216.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR a=25
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {25 33 35 83 85 scan 0 sort 0}
do_test where7-2.217.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=253
      ORDER BY a
  }
} {23 51 scan 0 sort 0}
do_test where7-2.217.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=253
      ORDER BY a
  }
} {23 51 scan 0 sort 0}
do_test where7-2.218.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {24 30 50 76 97 scan 0 sort 0}
do_test where7-2.218.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {24 30 50 76 97 scan 0 sort 0}
do_test where7-2.219.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=575
         OR f='wxyzabcde'
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=11
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=333
         OR b=432
         OR b=1081
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {1 22 40 48 54 62 64 74 100 scan 0 sort 0}
do_test where7-2.219.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=575
         OR f='wxyzabcde'
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=11
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=333
         OR b=432
         OR b=1081
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {1 22 40 48 54 62 64 74 100 scan 0 sort 0}
do_test where7-2.220.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'stuvw*')
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR c=30030
         OR b=124
         OR a=88
         OR b=1100
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (g='ihgfedc' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {12 37 38 64 72 81 88 89 90 96 100 scan 0 sort 0}
do_test where7-2.220.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'stuvw*')
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR c=30030
         OR b=124
         OR a=88
         OR b=1100
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (g='ihgfedc' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {12 37 38 64 72 81 88 89 90 96 100 scan 0 sort 0}
do_test where7-2.221.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 46 AND 48) AND a!=47)
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR a=23
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=418
         OR a=38
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=344
         OR a=1
      ORDER BY a
  }
} {1 23 30 32 38 40 45 46 47 48 51 53 87 scan 0 sort 0}
do_test where7-2.221.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 46 AND 48) AND a!=47)
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR a=23
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=418
         OR a=38
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=344
         OR a=1
      ORDER BY a
  }
} {1 23 30 32 38 40 45 46 47 48 51 53 87 scan 0 sort 0}
do_test where7-2.222.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR b=605
         OR b=528
      ORDER BY a
  }
} {48 55 68 scan 0 sort 0}
do_test where7-2.222.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR b=605
         OR b=528
      ORDER BY a
  }
} {48 55 68 scan 0 sort 0}
do_test where7-2.223.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=15
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 15 33 57 59 61 85 87 scan 0 sort 0}
do_test where7-2.223.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=15
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 15 33 57 59 61 85 87 scan 0 sort 0}
do_test where7-2.224.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=157
         OR c>=34035
         OR b=1103
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {20 scan 0 sort 0}
do_test where7-2.224.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=157
         OR c>=34035
         OR b=1103
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {20 scan 0 sort 0}
do_test where7-2.225.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=553
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR c=34034
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR a=58
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=550
      ORDER BY a
  }
} {4 5 6 31 48 50 57 58 83 98 100 scan 0 sort 0}
do_test where7-2.225.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=553
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR c=34034
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR a=58
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=550
      ORDER BY a
  }
} {4 5 6 31 48 50 57 58 83 98 100 scan 0 sort 0}
do_test where7-2.226.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=572
         OR a=72
         OR c=9009
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=704
         OR a=88
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR b=594
         OR a=35
         OR b=663
         OR b=751
      ORDER BY a
  }
} {2 4 25 26 27 30 35 52 54 64 72 88 scan 0 sort 0}
do_test where7-2.226.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=572
         OR a=72
         OR c=9009
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=704
         OR a=88
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR b=594
         OR a=35
         OR b=663
         OR b=751
      ORDER BY a
  }
} {2 4 25 26 27 30 35 52 54 64 72 88 scan 0 sort 0}
do_test where7-2.227.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=42
         OR a=21
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR g IS NULL
         OR b=1078
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR b=652
      ORDER BY a
  }
} {21 31 33 42 44 48 54 93 97 98 99 scan 0 sort 0}
do_test where7-2.227.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=42
         OR a=21
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR g IS NULL
         OR b=1078
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR b=652
      ORDER BY a
  }
} {21 31 33 42 44 48 54 93 97 98 99 scan 0 sort 0}
do_test where7-2.228.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='ihgfedc' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {32 81 scan 0 sort 0}
do_test where7-2.228.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='ihgfedc' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {32 81 scan 0 sort 0}
do_test where7-2.229.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=79
         OR ((a BETWEEN 2 AND 4) AND a!=3)
      ORDER BY a
  }
} {2 4 79 scan 0 sort 0}
do_test where7-2.229.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=79
         OR ((a BETWEEN 2 AND 4) AND a!=3)
      ORDER BY a
  }
} {2 4 79 scan 0 sort 0}
do_test where7-2.230.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR b=165
         OR b=322
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=979
         OR a=42
         OR ((a BETWEEN 89 AND 91) AND a!=90)
      ORDER BY a
  }
} {15 23 30 42 49 55 75 89 91 scan 0 sort 0}
do_test where7-2.230.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR b=165
         OR b=322
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=979
         OR a=42
         OR ((a BETWEEN 89 AND 91) AND a!=90)
      ORDER BY a
  }
} {15 23 30 42 49 55 75 89 91 scan 0 sort 0}
do_test where7-2.231.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=993
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=300
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR f='uvwxyzabc'
         OR b=473
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
      ORDER BY a
  }
} {5 7 17 19 20 33 43 46 59 72 84 85 87 89 98 scan 0 sort 0}
do_test where7-2.231.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=993
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=300
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR f='uvwxyzabc'
         OR b=473
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
      ORDER BY a
  }
} {5 7 17 19 20 33 43 46 59 72 84 85 87 89 98 scan 0 sort 0}
do_test where7-2.232.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=619
         OR b=451
         OR b=135
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {14 41 scan 0 sort 0}
do_test where7-2.232.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=619
         OR b=451
         OR b=135
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {14 41 scan 0 sort 0}
do_test where7-2.233.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (d>=74.0 AND d<75.0 AND d NOT NULL)
         OR a=55
         OR b=319
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR b=902
         OR (g='jihgfed' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {6 29 55 74 77 79 82 scan 0 sort 0}
do_test where7-2.233.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (d>=74.0 AND d<75.0 AND d NOT NULL)
         OR a=55
         OR b=319
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR b=902
         OR (g='jihgfed' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {6 29 55 74 77 79 82 scan 0 sort 0}
do_test where7-2.234.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=99
         OR b=641
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 16 34 60 86 98 99 100 scan 0 sort 0}
do_test where7-2.234.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=99
         OR b=641
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 16 34 60 86 98 99 100 scan 0 sort 0}
do_test where7-2.235.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=751
      ORDER BY a
  }
} {100 scan 0 sort 0}
do_test where7-2.235.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=751
      ORDER BY a
  }
} {100 scan 0 sort 0}
do_test where7-2.236.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1034
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 97 AND 99) AND a!=98)
      ORDER BY a
  }
} {41 92 94 97 99 scan 0 sort 0}
do_test where7-2.236.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1034
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 97 AND 99) AND a!=98)
      ORDER BY a
  }
} {41 92 94 97 99 scan 0 sort 0}
do_test where7-2.237.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=608
         OR a=87
         OR c=14014
      ORDER BY a
  }
} {40 41 42 87 scan 0 sort 0}
do_test where7-2.237.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=608
         OR a=87
         OR c=14014
      ORDER BY a
  }
} {40 41 42 87 scan 0 sort 0}
do_test where7-2.238.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=828
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=28
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR b=176
      ORDER BY a
  }
} {1 5 16 27 28 31 33 53 57 79 83 90 scan 0 sort 0}
do_test where7-2.238.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=828
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=28
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR b=176
      ORDER BY a
  }
} {1 5 16 27 28 31 33 53 57 79 83 90 scan 0 sort 0}
do_test where7-2.239.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=267
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=968
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=894
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {32 34 42 44 67 69 88 93 95 97 scan 0 sort 0}
do_test where7-2.239.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=267
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=968
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=894
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {32 34 42 44 67 69 88 93 95 97 scan 0 sort 0}
do_test where7-2.240.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=597
         OR b=553
         OR b=740
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.240.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=597
         OR b=553
         OR b=740
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.241.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 55 AND 57) AND a!=56)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=1059
      ORDER BY a
  }
} {55 57 69 scan 0 sort 0}
do_test where7-2.241.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 55 AND 57) AND a!=56)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=1059
      ORDER BY a
  }
} {55 57 69 scan 0 sort 0}
do_test where7-2.242.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=762
         OR a=66
         OR b=190
         OR ((a BETWEEN 87 AND 89) AND a!=88)
      ORDER BY a
  }
} {66 87 89 scan 0 sort 0}
do_test where7-2.242.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=762
         OR a=66
         OR b=190
         OR ((a BETWEEN 87 AND 89) AND a!=88)
      ORDER BY a
  }
} {66 87 89 scan 0 sort 0}
do_test where7-2.243.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {74 82 87 scan 0 sort 0}
do_test where7-2.243.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {74 82 87 scan 0 sort 0}
do_test where7-2.244.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=729
         OR b=825
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=399
      ORDER BY a
  }
} {37 39 75 100 scan 0 sort 0}
do_test where7-2.244.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=729
         OR b=825
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=399
      ORDER BY a
  }
} {37 39 75 100 scan 0 sort 0}
do_test where7-2.245.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR c<=10
         OR b=891
         OR b<0
         OR a=69
         OR b=476
         OR a=1
         OR a=86
      ORDER BY a
  }
} {1 63 65 69 81 86 92 scan 0 sort 0}
do_test where7-2.245.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR c<=10
         OR b=891
         OR b<0
         OR a=69
         OR b=476
         OR a=1
         OR a=86
      ORDER BY a
  }
} {1 63 65 69 81 86 92 scan 0 sort 0}
do_test where7-2.246.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=97
         OR a=44
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
      ORDER BY a
  }
} {24 44 50 76 97 scan 0 sort 0}
do_test where7-2.246.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=97
         OR a=44
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
      ORDER BY a
  }
} {24 44 50 76 97 scan 0 sort 0}
do_test where7-2.247.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=839
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR a=19
         OR b=938
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=1056
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=54
      ORDER BY a
  }
} {7 19 22 24 26 33 54 56 58 59 71 85 96 scan 0 sort 0}
do_test where7-2.247.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=839
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR a=19
         OR b=938
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=1056
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR a=54
      ORDER BY a
  }
} {7 19 22 24 26 33 54 56 58 59 71 85 96 scan 0 sort 0}
do_test where7-2.248.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=132
         OR a=11
         OR b=198
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {11 12 18 44 74 scan 0 sort 0}
do_test where7-2.248.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=132
         OR a=11
         OR b=198
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {11 12 18 44 74 scan 0 sort 0}
do_test where7-2.249.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR a=17
      ORDER BY a
  }
} {6 17 47 scan 0 sort 0}
do_test where7-2.249.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR a=17
      ORDER BY a
  }
} {6 17 47 scan 0 sort 0}
do_test where7-2.250.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=26026
         OR a=93
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=22
         OR b=1081
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR b=770
         OR a=46
      ORDER BY a
  }
} {2 18 46 70 76 77 78 87 93 97 scan 0 sort 0}
do_test where7-2.250.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=26026
         OR a=93
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=22
         OR b=1081
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR b=770
         OR a=46
      ORDER BY a
  }
} {2 18 46 70 76 77 78 87 93 97 scan 0 sort 0}
do_test where7-2.251.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=399
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=1092
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR b=795
         OR b=1056
      ORDER BY a
  }
} {18 22 38 40 96 scan 0 sort 0}
do_test where7-2.251.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=399
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=1092
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR b=795
         OR b=1056
      ORDER BY a
  }
} {18 22 38 40 96 scan 0 sort 0}
do_test where7-2.252.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=1045
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=883
         OR b=594
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=990
      ORDER BY a
  }
} {1 11 24 26 29 37 54 63 89 90 95 scan 0 sort 0}
do_test where7-2.252.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=1045
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=883
         OR b=594
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=990
      ORDER BY a
  }
} {1 11 24 26 29 37 54 63 89 90 95 scan 0 sort 0}
do_test where7-2.253.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=21
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=124
      ORDER BY a
  }
} {2 21 69 71 scan 0 sort 0}
do_test where7-2.253.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=21
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=124
      ORDER BY a
  }
} {2 21 69 71 scan 0 sort 0}
do_test where7-2.254.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=5
         OR c=33033
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=11
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=212
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=14
         OR c=18018
      ORDER BY a
  }
} {1 4 5 24 26 52 53 54 56 58 73 78 97 98 99 scan 0 sort 0}
do_test where7-2.254.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=5
         OR c=33033
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=11
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=212
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=14
         OR c=18018
      ORDER BY a
  }
} {1 4 5 24 26 52 53 54 56 58 73 78 97 98 99 scan 0 sort 0}
do_test where7-2.255.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=66
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {6 9 29 31 91 93 scan 0 sort 0}
do_test where7-2.255.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=66
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {6 9 29 31 91 93 scan 0 sort 0}
do_test where7-2.256.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=18
         OR b=157
         OR b=509
         OR b=451
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR a=35
         OR a=53
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 18 31 34 35 36 41 53 scan 0 sort 0}
do_test where7-2.256.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=18
         OR b=157
         OR b=509
         OR b=451
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR a=35
         OR a=53
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 18 31 34 35 36 41 53 scan 0 sort 0}
do_test where7-2.257.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=517
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR f='efghijklm'
         OR b=165
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR f='rstuvwxyz'
         OR ((a BETWEEN 86 AND 88) AND a!=87)
      ORDER BY a
  }
} {4 15 17 30 37 43 47 56 69 82 86 88 95 98 scan 0 sort 0}
do_test where7-2.257.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=517
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR f='efghijklm'
         OR b=165
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR f='rstuvwxyz'
         OR ((a BETWEEN 86 AND 88) AND a!=87)
      ORDER BY a
  }
} {4 15 17 30 37 43 47 56 69 82 86 88 95 98 scan 0 sort 0}
do_test where7-2.258.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=22
         OR b=850
      ORDER BY a
  }
} {22 scan 0 sort 0}
do_test where7-2.258.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=22
         OR b=850
      ORDER BY a
  }
} {22 scan 0 sort 0}
do_test where7-2.259.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=366
         OR a=89
         OR f='pqrstuvwx'
         OR b=220
      ORDER BY a
  }
} {15 20 41 67 89 93 scan 0 sort 0}
do_test where7-2.259.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=366
         OR a=89
         OR f='pqrstuvwx'
         OR b=220
      ORDER BY a
  }
} {15 20 41 67 89 93 scan 0 sort 0}
do_test where7-2.260.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 35 97 scan 0 sort 0}
do_test where7-2.260.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 35 97 scan 0 sort 0}
do_test where7-2.261.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=781
         OR b=762
         OR f='efghijklm'
      ORDER BY a
  }
} {4 30 56 71 82 scan 0 sort 0}
do_test where7-2.261.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=781
         OR b=762
         OR f='efghijklm'
      ORDER BY a
  }
} {4 30 56 71 82 scan 0 sort 0}
do_test where7-2.262.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=33
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=916
         OR a=97
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR a=56
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 20 33 34 46 56 72 76 82 84 97 98 scan 0 sort 0}
do_test where7-2.262.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=33
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=916
         OR a=97
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR a=56
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 20 33 34 46 56 72 76 82 84 97 98 scan 0 sort 0}
do_test where7-2.263.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f IS NULL
         OR b=14
         OR b=1001
         OR b=1048
         OR b=443
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR c=3003
         OR b=267
      ORDER BY a
  }
} {7 8 9 29 71 91 scan 0 sort 0}
do_test where7-2.263.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f IS NULL
         OR b=14
         OR b=1001
         OR b=1048
         OR b=443
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR c=3003
         OR b=267
      ORDER BY a
  }
} {7 8 9 29 71 91 scan 0 sort 0}
do_test where7-2.264.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR b=176
         OR f='tuvwxyzab'
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR a=33
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {9 16 19 27 29 33 45 70 71 74 97 scan 0 sort 0}
do_test where7-2.264.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR b=176
         OR f='tuvwxyzab'
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR a=33
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {9 16 19 27 29 33 45 70 71 74 97 scan 0 sort 0}
do_test where7-2.265.1 {
  count_steps {
     SELECT a FROM t2
      WHERE d>1e10
         OR c<=10
      ORDER BY a
  }
} {scan 0 sort 0}
do_test where7-2.265.2 {
  count_steps {
     SELECT a FROM t3
      WHERE d>1e10
         OR c<=10
      ORDER BY a
  }
} {scan 0 sort 0}
do_test where7-2.266.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=883
         OR b=487
         OR b=693
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=1078
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR a=50
         OR b=476
      ORDER BY a
  }
} {18 50 63 75 77 79 88 90 98 100 scan 0 sort 0}
do_test where7-2.266.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=883
         OR b=487
         OR b=693
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=1078
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR a=50
         OR b=476
      ORDER BY a
  }
} {18 50 63 75 77 79 88 90 98 100 scan 0 sort 0}
do_test where7-2.267.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 48 scan 0 sort 0}
do_test where7-2.267.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 48 scan 0 sort 0}
do_test where7-2.268.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=33
         OR a=48
         OR b=55
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR b=344
      ORDER BY a
  }
} {1 5 6 8 27 33 48 52 53 66 68 79 93 scan 0 sort 0}
do_test where7-2.268.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=33
         OR a=48
         OR b=55
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR b=344
      ORDER BY a
  }
} {1 5 6 8 27 33 48 52 53 66 68 79 93 scan 0 sort 0}
do_test where7-2.269.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=410
         OR b=737
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR a=27
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
      ORDER BY a
  }
} {27 45 47 49 51 67 70 85 87 scan 0 sort 0}
do_test where7-2.269.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=410
         OR b=737
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR a=27
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
      ORDER BY a
  }
} {27 45 47 49 51 67 70 85 87 scan 0 sort 0}
do_test where7-2.270.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=135
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR f='defghijkl'
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=37
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=509
      ORDER BY a
  }
} {3 12 14 29 37 38 49 51 55 81 95 97 scan 0 sort 0}
do_test where7-2.270.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=135
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR f='defghijkl'
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=37
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=509
      ORDER BY a
  }
} {3 12 14 29 37 38 49 51 55 81 95 97 scan 0 sort 0}
do_test where7-2.271.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=73
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR c=15015
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR b=267
         OR b=1081
         OR a=71
      ORDER BY a
  }
} {43 44 45 63 65 69 71 73 97 98 scan 0 sort 0}
do_test where7-2.271.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=73
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR c=15015
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR b=267
         OR b=1081
         OR a=71
      ORDER BY a
  }
} {43 44 45 63 65 69 71 73 97 98 scan 0 sort 0}
do_test where7-2.272.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=121
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR a=32
         OR b=91
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR a=8
         OR a=24
         OR a=2
      ORDER BY a
  }
} {2 8 11 24 26 32 51 68 70 scan 0 sort 0}
do_test where7-2.272.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=121
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR a=32
         OR b=91
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR a=8
         OR a=24
         OR a=2
      ORDER BY a
  }
} {2 8 11 24 26 32 51 68 70 scan 0 sort 0}
do_test where7-2.273.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=330
         OR a=2
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 4 30 scan 0 sort 0}
do_test where7-2.273.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=330
         OR a=2
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 4 30 scan 0 sort 0}
do_test where7-2.274.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR c=5005
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {13 14 15 23 32 34 47 49 75 77 79 scan 0 sort 0}
do_test where7-2.274.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR c=5005
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {13 14 15 23 32 34 47 49 75 77 79 scan 0 sort 0}
do_test where7-2.275.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=773
         OR 1000000<b
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=1078
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=509
      ORDER BY a
  }
} {13 39 48 65 67 91 98 scan 0 sort 0}
do_test where7-2.275.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=773
         OR 1000000<b
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=1078
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR b=509
      ORDER BY a
  }
} {13 39 48 65 67 91 98 scan 0 sort 0}
do_test where7-2.276.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR f='stuvwxyza'
         OR c=34034
         OR b=806
         OR b=264
         OR ((a BETWEEN 62 AND 64) AND a!=63)
      ORDER BY a
  }
} {18 24 44 48 50 62 64 70 96 100 scan 0 sort 0}
do_test where7-2.276.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR f='stuvwxyza'
         OR c=34034
         OR b=806
         OR b=264
         OR ((a BETWEEN 62 AND 64) AND a!=63)
      ORDER BY a
  }
} {18 24 44 48 50 62 64 70 96 100 scan 0 sort 0}
do_test where7-2.277.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR a=94
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR c=16016
         OR b=352
         OR b=410
         OR b=1100
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
      ORDER BY a
  }
} {32 41 46 47 48 62 75 91 94 100 scan 0 sort 0}
do_test where7-2.277.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR a=94
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR c=16016
         OR b=352
         OR b=410
         OR b=1100
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
      ORDER BY a
  }
} {32 41 46 47 48 62 75 91 94 100 scan 0 sort 0}
do_test where7-2.278.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=98
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
      ORDER BY a
  }
} {20 22 24 41 43 98 scan 0 sort 0}
do_test where7-2.278.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=98
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
      ORDER BY a
  }
} {20 22 24 41 43 98 scan 0 sort 0}
do_test where7-2.279.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=55
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR a=80
         OR b=462
         OR f='defghijkl'
         OR b=990
         OR b=938
         OR b=726
      ORDER BY a
  }
} {3 6 29 42 55 66 80 81 90 97 99 scan 0 sort 0}
do_test where7-2.279.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=55
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR a=80
         OR b=462
         OR f='defghijkl'
         OR b=990
         OR b=938
         OR b=726
      ORDER BY a
  }
} {3 6 29 42 55 66 80 81 90 97 99 scan 0 sort 0}
do_test where7-2.280.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=605
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR c=25025
         OR c=7007
         OR a=41
      ORDER BY a
  }
} {19 20 21 31 41 55 61 73 74 75 94 scan 0 sort 0}
do_test where7-2.280.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=605
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR c=25025
         OR c=7007
         OR a=41
      ORDER BY a
  }
} {19 20 21 31 41 55 61 73 74 75 94 scan 0 sort 0}
do_test where7-2.281.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR b=1089
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR c=8008
      ORDER BY a
  }
} {11 13 20 22 23 24 26 37 49 51 60 75 99 scan 0 sort 0}
do_test where7-2.281.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR b=1089
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR c=8008
      ORDER BY a
  }
} {11 13 20 22 23 24 26 37 49 51 60 75 99 scan 0 sort 0}
do_test where7-2.282.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=38
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR a=32
         OR b=979
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR a=96
         OR b=253
      ORDER BY a
  }
} {23 29 32 38 84 86 89 96 scan 0 sort 0}
do_test where7-2.282.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=38
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR a=32
         OR b=979
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR a=96
         OR b=253
      ORDER BY a
  }
} {23 29 32 38 84 86 89 96 scan 0 sort 0}
do_test where7-2.283.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=421
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
      ORDER BY a
  }
} {43 47 49 scan 0 sort 0}
do_test where7-2.283.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=421
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
      ORDER BY a
  }
} {43 47 49 scan 0 sort 0}
do_test where7-2.284.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR c=8008
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=71
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR a=75
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {14 17 19 22 23 24 71 75 79 82 88 90 91 scan 0 sort 0}
do_test where7-2.284.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR c=8008
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=71
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR a=75
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {14 17 19 22 23 24 71 75 79 82 88 90 91 scan 0 sort 0}
do_test where7-2.285.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=23
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {23 74 89 93 scan 0 sort 0}
do_test where7-2.285.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=23
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {23 74 89 93 scan 0 sort 0}
do_test where7-2.286.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=828
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=190
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR b=421
         OR b=1012
      ORDER BY a
  }
} {9 11 52 54 73 92 scan 0 sort 0}
do_test where7-2.286.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=828
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=190
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR b=421
         OR b=1012
      ORDER BY a
  }
} {9 11 52 54 73 92 scan 0 sort 0}
do_test where7-2.287.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=473
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=836
      ORDER BY a
  }
} {1 43 51 76 scan 0 sort 0}
do_test where7-2.287.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=473
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=836
      ORDER BY a
  }
} {1 43 51 76 scan 0 sort 0}
do_test where7-2.288.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR a=25
         OR b=440
         OR b=539
         OR a=70
      ORDER BY a
  }
} {25 40 49 60 70 scan 0 sort 0}
do_test where7-2.288.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR a=25
         OR b=440
         OR b=539
         OR a=70
      ORDER BY a
  }
} {25 40 49 60 70 scan 0 sort 0}
do_test where7-2.289.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='wxyzabcde'
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=990
      ORDER BY a
  }
} {22 42 48 57 74 89 90 91 100 scan 0 sort 0}
do_test where7-2.289.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='wxyzabcde'
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=990
      ORDER BY a
  }
} {22 42 48 57 74 89 90 91 100 scan 0 sort 0}
do_test where7-2.290.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=451
         OR b=586
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR c=16016
         OR b=993
         OR a=17
      ORDER BY a
  }
} {17 41 46 47 48 49 scan 0 sort 0}
do_test where7-2.290.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=451
         OR b=586
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR c=16016
         OR b=993
         OR a=17
      ORDER BY a
  }
} {17 41 46 47 48 49 scan 0 sort 0}
do_test where7-2.291.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR a=52
         OR b=132
      ORDER BY a
  }
} {9 12 52 scan 0 sort 0}
do_test where7-2.291.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR a=52
         OR b=132
      ORDER BY a
  }
} {9 12 52 scan 0 sort 0}
do_test where7-2.292.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR b=784
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {29 31 68 74 76 scan 0 sort 0}
do_test where7-2.292.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR b=784
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {29 31 68 74 76 scan 0 sort 0}
do_test where7-2.293.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='vwxyzabcd'
         OR a=16
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=333
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=55
         OR b=311
      ORDER BY a
  }
} {5 16 21 28 38 47 69 73 99 scan 0 sort 0}
do_test where7-2.293.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='vwxyzabcd'
         OR a=16
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=333
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=55
         OR b=311
      ORDER BY a
  }
} {5 16 21 28 38 47 69 73 99 scan 0 sort 0}
do_test where7-2.294.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR a=17
         OR a=100
         OR a=68
         OR b=1092
         OR a=75
         OR ((a BETWEEN 54 AND 56) AND a!=55)
      ORDER BY a
  }
} {4 17 30 54 56 68 75 82 100 scan 0 sort 0}
do_test where7-2.294.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR a=17
         OR a=100
         OR a=68
         OR b=1092
         OR a=75
         OR ((a BETWEEN 54 AND 56) AND a!=55)
      ORDER BY a
  }
} {4 17 30 54 56 68 75 82 100 scan 0 sort 0}
do_test where7-2.295.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR a=97
         OR b=696
         OR b=718
         OR b=1070
         OR a=17
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=37
      ORDER BY a
  }
} {17 32 37 43 45 57 97 scan 0 sort 0}
do_test where7-2.295.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR a=97
         OR b=696
         OR b=718
         OR b=1070
         OR a=17
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=37
      ORDER BY a
  }
} {17 32 37 43 45 57 97 scan 0 sort 0}
do_test where7-2.296.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=872
      ORDER BY a
  }
} {84 86 scan 0 sort 0}
do_test where7-2.296.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=872
      ORDER BY a
  }
} {84 86 scan 0 sort 0}
do_test where7-2.297.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=95
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR a=73
         OR c=31031
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 30 39 41 62 63 65 73 88 91 92 93 95 scan 0 sort 0}
do_test where7-2.297.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=95
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR a=73
         OR c=31031
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 30 39 41 62 63 65 73 88 91 92 93 95 scan 0 sort 0}
do_test where7-2.298.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=784
         OR a=18
         OR b=814
         OR b=817
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR f='wxyzabcde'
         OR b=696
      ORDER BY a
  }
} {18 22 32 48 74 99 100 scan 0 sort 0}
do_test where7-2.298.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=784
         OR a=18
         OR b=814
         OR b=817
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR f='wxyzabcde'
         OR b=696
      ORDER BY a
  }
} {18 22 32 48 74 99 100 scan 0 sort 0}
do_test where7-2.299.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=828
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=803
         OR c=18018
         OR a=78
         OR a=69
         OR a=62
      ORDER BY a
  }
} {8 16 18 34 45 52 53 54 60 62 69 73 78 86 scan 0 sort 0}
do_test where7-2.299.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=828
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=803
         OR c=18018
         OR a=78
         OR a=69
         OR a=62
      ORDER BY a
  }
} {8 16 18 34 45 52 53 54 60 62 69 73 78 86 scan 0 sort 0}
do_test where7-2.300.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=4004
         OR a=82
         OR b=792
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR d<0.0
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=586
      ORDER BY a
  }
} {10 11 12 26 38 40 64 66 72 82 scan 0 sort 0}
do_test where7-2.300.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=4004
         OR a=82
         OR b=792
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR d<0.0
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=586
      ORDER BY a
  }
} {10 11 12 26 38 40 64 66 72 82 scan 0 sort 0}
do_test where7-2.301.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='nmlkjih' AND f GLOB 'defgh*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {55 69 scan 0 sort 0}
do_test where7-2.301.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='nmlkjih' AND f GLOB 'defgh*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {55 69 scan 0 sort 0}
do_test where7-2.302.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='xyzabcdef'
         OR b=1070
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=102
      ORDER BY a
  }
} {10 23 36 49 62 75 88 scan 0 sort 0}
do_test where7-2.302.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='xyzabcdef'
         OR b=1070
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=102
      ORDER BY a
  }
} {10 23 36 49 62 75 88 scan 0 sort 0}
do_test where7-2.303.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=28
         OR c=5005
         OR f='opqrstuvw'
         OR c>=34035
         OR a=23
      ORDER BY a
  }
} {13 14 15 23 28 40 66 92 scan 0 sort 0}
do_test where7-2.303.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=28
         OR c=5005
         OR f='opqrstuvw'
         OR c>=34035
         OR a=23
      ORDER BY a
  }
} {13 14 15 23 28 40 66 92 scan 0 sort 0}
do_test where7-2.304.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR a=40
         OR b=168
         OR a=22
         OR a=5
      ORDER BY a
  }
} {5 22 35 40 scan 0 sort 0}
do_test where7-2.304.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR a=40
         OR b=168
         OR a=22
         OR a=5
      ORDER BY a
  }
} {5 22 35 40 scan 0 sort 0}
do_test where7-2.305.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'klmno*')
         OR c=23023
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 10 67 68 69 scan 0 sort 0}
do_test where7-2.305.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'klmno*')
         OR c=23023
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 10 67 68 69 scan 0 sort 0}
do_test where7-2.306.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b<0
         OR f='yzabcdefg'
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {24 50 76 87 scan 0 sort 0}
do_test where7-2.306.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b<0
         OR f='yzabcdefg'
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {24 50 76 87 scan 0 sort 0}
do_test where7-2.307.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=1026
      ORDER BY a
  }
} {23 25 33 35 93 95 scan 0 sort 0}
do_test where7-2.307.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=1026
      ORDER BY a
  }
} {23 25 33 35 93 95 scan 0 sort 0}
do_test where7-2.308.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='gfedcba' AND f GLOB 'klmno*')
         OR b=696
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR b=58
      ORDER BY a
  }
} {5 7 59 63 70 88 scan 0 sort 0}
do_test where7-2.308.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='gfedcba' AND f GLOB 'klmno*')
         OR b=696
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR b=58
      ORDER BY a
  }
} {5 7 59 63 70 88 scan 0 sort 0}
do_test where7-2.309.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1037
         OR b=220
         OR a=9
      ORDER BY a
  }
} {9 20 scan 0 sort 0}
do_test where7-2.309.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1037
         OR b=220
         OR a=9
      ORDER BY a
  }
} {9 20 scan 0 sort 0}
do_test where7-2.310.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR a=45
         OR a=27
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {13 27 45 85 scan 0 sort 0}
do_test where7-2.310.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR a=45
         OR a=27
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {13 27 45 85 scan 0 sort 0}
do_test where7-2.311.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=22
         OR b=968
         OR b=960
      ORDER BY a
  }
} {22 88 90 scan 0 sort 0}
do_test where7-2.311.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=22
         OR b=968
         OR b=960
      ORDER BY a
  }
} {22 88 90 scan 0 sort 0}
do_test where7-2.312.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 72 AND 74) AND a!=73)
         OR a=25
         OR b=363
      ORDER BY a
  }
} {25 33 72 74 scan 0 sort 0}
do_test where7-2.312.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 72 AND 74) AND a!=73)
         OR a=25
         OR b=363
      ORDER BY a
  }
} {25 33 72 74 scan 0 sort 0}
do_test where7-2.313.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=121
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=13
         OR b=627
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=84
         OR a=23
         OR b=495
      ORDER BY a
  }
} {10 11 13 23 45 57 62 84 scan 0 sort 0}
do_test where7-2.313.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=121
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=13
         OR b=627
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=84
         OR a=23
         OR b=495
      ORDER BY a
  }
} {10 11 13 23 45 57 62 84 scan 0 sort 0}
do_test where7-2.314.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR b=1100
      ORDER BY a
  }
} {8 69 71 100 scan 0 sort 0}
do_test where7-2.314.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR b=1100
      ORDER BY a
  }
} {8 69 71 100 scan 0 sort 0}
do_test where7-2.315.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR a=98
         OR b=91
         OR c=33033
         OR b=795
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR a=95
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
      ORDER BY a
  }
} {6 17 19 30 38 95 97 98 99 scan 0 sort 0}
do_test where7-2.315.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR a=98
         OR b=91
         OR c=33033
         OR b=795
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR a=95
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
      ORDER BY a
  }
} {6 17 19 30 38 95 97 98 99 scan 0 sort 0}
do_test where7-2.316.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR a=99
      ORDER BY a
  }
} {19 99 scan 0 sort 0}
do_test where7-2.316.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR a=99
      ORDER BY a
  }
} {19 99 scan 0 sort 0}
do_test where7-2.317.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=4004
         OR g IS NULL
         OR ((a BETWEEN 36 AND 38) AND a!=37)
      ORDER BY a
  }
} {10 11 12 36 38 scan 0 sort 0}
do_test where7-2.317.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=4004
         OR g IS NULL
         OR ((a BETWEEN 36 AND 38) AND a!=37)
      ORDER BY a
  }
} {10 11 12 36 38 scan 0 sort 0}
do_test where7-2.318.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {84 100 scan 0 sort 0}
do_test where7-2.318.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {84 100 scan 0 sort 0}
do_test where7-2.319.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=308
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 3 28 46 scan 0 sort 0}
do_test where7-2.319.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=308
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 3 28 46 scan 0 sort 0}
do_test where7-2.320.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=608
         OR a=10
         OR a=62
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR a=33
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {10 33 47 62 85 87 scan 0 sort 0}
do_test where7-2.320.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=608
         OR a=10
         OR a=62
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR a=33
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {10 33 47 62 85 87 scan 0 sort 0}
do_test where7-2.321.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=16016
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=825
         OR f='bcdefghij'
         OR c=30030
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=1070
         OR b=1059
         OR b=990
      ORDER BY a
  }
} {1 27 45 46 47 48 53 75 79 88 89 90 100 scan 0 sort 0}
do_test where7-2.321.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=16016
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=825
         OR f='bcdefghij'
         OR c=30030
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=1070
         OR b=1059
         OR b=990
      ORDER BY a
  }
} {1 27 45 46 47 48 53 75 79 88 89 90 100 scan 0 sort 0}
do_test where7-2.322.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 37 AND 39) AND a!=38)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=22
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR b=473
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 37 39 43 55 58 scan 0 sort 0}
do_test where7-2.322.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 37 AND 39) AND a!=38)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=22
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR b=473
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 37 39 43 55 58 scan 0 sort 0}
do_test where7-2.323.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=10010
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=1078
         OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR f='qrstuvwxy'
         OR b=462
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR a=53
      ORDER BY a
  }
} {3 16 26 28 29 30 39 41 42 52 53 68 78 86 88 89 94 98 scan 0 sort 0}
do_test where7-2.323.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=10010
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=1078
         OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR f='qrstuvwxy'
         OR b=462
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR a=53
      ORDER BY a
  }
} {3 16 26 28 29 30 39 41 42 52 53 68 78 86 88 89 94 98 scan 0 sort 0}
do_test where7-2.324.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=1015
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=718
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=561
      ORDER BY a
  }
} {2 4 30 51 56 64 69 82 scan 0 sort 0}
do_test where7-2.324.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=1015
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=718
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=561
      ORDER BY a
  }
} {2 4 30 51 56 64 69 82 scan 0 sort 0}
do_test where7-2.325.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=421
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
      ORDER BY a
  }
} {70 scan 0 sort 0}
do_test where7-2.325.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=421
         OR (d>=70.0 AND d<71.0 AND d NOT NULL)
      ORDER BY a
  }
} {70 scan 0 sort 0}
do_test where7-2.326.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR a=69
         OR b=1048
         OR b=762
         OR ((a BETWEEN 55 AND 57) AND a!=56)
      ORDER BY a
  }
} {8 10 51 53 55 57 69 scan 0 sort 0}
do_test where7-2.326.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR a=69
         OR b=1048
         OR b=762
         OR ((a BETWEEN 55 AND 57) AND a!=56)
      ORDER BY a
  }
} {8 10 51 53 55 57 69 scan 0 sort 0}
do_test where7-2.327.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1037
         OR e IS NULL
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR b=132
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR f='zabcdefgh'
         OR b=322
      ORDER BY a
  }
} {7 12 25 30 31 51 77 79 scan 0 sort 0}
do_test where7-2.327.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1037
         OR e IS NULL
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR b=132
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR f='zabcdefgh'
         OR b=322
      ORDER BY a
  }
} {7 12 25 30 31 51 77 79 scan 0 sort 0}
do_test where7-2.328.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=264
         OR b=751
         OR ((a BETWEEN 59 AND 61) AND a!=60)
         OR d>1e10
         OR b=674
         OR b=979
         OR b=828
         OR b=91
         OR b=935
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 26 59 61 85 89 scan 0 sort 0}
do_test where7-2.328.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=264
         OR b=751
         OR ((a BETWEEN 59 AND 61) AND a!=60)
         OR d>1e10
         OR b=674
         OR b=979
         OR b=828
         OR b=91
         OR b=935
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 26 59 61 85 89 scan 0 sort 0}
do_test where7-2.329.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=385
         OR a=100
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {35 49 51 64 66 82 100 scan 0 sort 0}
do_test where7-2.329.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=385
         OR a=100
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {35 49 51 64 66 82 100 scan 0 sort 0}
do_test where7-2.330.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=638
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=256
         OR b=1103
         OR b=891
         OR a=12
      ORDER BY a
  }
} {12 16 18 58 81 89 scan 0 sort 0}
do_test where7-2.330.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=638
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=256
         OR b=1103
         OR b=891
         OR a=12
      ORDER BY a
  }
} {12 16 18 58 81 89 scan 0 sort 0}
do_test where7-2.331.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=916
         OR f='nopqrstuv'
         OR ((a BETWEEN 73 AND 75) AND a!=74)
      ORDER BY a
  }
} {8 13 16 19 39 42 45 60 65 68 71 73 75 91 94 97 scan 0 sort 0}
do_test where7-2.331.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=916
         OR f='nopqrstuv'
         OR ((a BETWEEN 73 AND 75) AND a!=74)
      ORDER BY a
  }
} {8 13 16 19 39 42 45 60 65 68 71 73 75 91 94 97 scan 0 sort 0}
do_test where7-2.332.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR c=24024
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=476
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=1089
      ORDER BY a
  }
} {8 22 24 26 28 48 70 71 72 73 99 scan 0 sort 0}
do_test where7-2.332.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR c=24024
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=476
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR b=1089
      ORDER BY a
  }
} {8 22 24 26 28 48 70 71 72 73 99 scan 0 sort 0}
do_test where7-2.333.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=54
         OR b=1048
         OR b=938
      ORDER BY a
  }
} {53 54 67 71 scan 0 sort 0}
do_test where7-2.333.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=54
         OR b=1048
         OR b=938
      ORDER BY a
  }
} {53 54 67 71 scan 0 sort 0}
do_test where7-2.334.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=817
         OR f='qrstuvwxy'
         OR b=341
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR a=73
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 16 31 42 62 68 73 89 94 scan 0 sort 0}
do_test where7-2.334.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=817
         OR f='qrstuvwxy'
         OR b=341
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR a=73
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 16 31 42 62 68 73 89 94 scan 0 sort 0}
do_test where7-2.335.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR b=352
      ORDER BY a
  }
} {18 32 scan 0 sort 0}
do_test where7-2.335.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR b=352
      ORDER BY a
  }
} {18 32 scan 0 sort 0}
do_test where7-2.336.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR a=40
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=22
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR a=40
         OR b=289
         OR (g='wvutsrq' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {2 10 27 39 40 41 66 70 84 86 scan 0 sort 0}
do_test where7-2.336.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR a=40
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=22
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR a=40
         OR b=289
         OR (g='wvutsrq' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {2 10 27 39 40 41 66 70 84 86 scan 0 sort 0}
do_test where7-2.337.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=704
         OR c=12012
         OR b=803
         OR a=32
         OR a=4
         OR b=619
      ORDER BY a
  }
} {4 32 34 35 36 64 73 scan 0 sort 0}
do_test where7-2.337.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=704
         OR c=12012
         OR b=803
         OR a=32
         OR a=4
         OR b=619
      ORDER BY a
  }
} {4 32 34 35 36 64 73 scan 0 sort 0}
do_test where7-2.338.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR f='stuvwxyza'
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {14 16 18 44 70 96 scan 0 sort 0}
do_test where7-2.338.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR f='stuvwxyza'
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {14 16 18 44 70 96 scan 0 sort 0}
do_test where7-2.339.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=187
         OR f='bcdefghij'
         OR a=18
         OR f='zabcdefgh'
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR b<0
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 2 3 17 18 20 25 27 28 30 51 53 54 75 77 79 80 scan 0 sort 0}
do_test where7-2.339.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=187
         OR f='bcdefghij'
         OR a=18
         OR f='zabcdefgh'
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR b<0
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 2 3 17 18 20 25 27 28 30 51 53 54 75 77 79 80 scan 0 sort 0}
do_test where7-2.340.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=311
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR b=839
         OR b=693
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=715
         OR f='jklmnopqr'
         OR b=385
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 11 12 22 35 40 42 61 63 65 84 87 scan 0 sort 0}
do_test where7-2.340.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=311
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR b=839
         OR b=693
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=715
         OR f='jklmnopqr'
         OR b=385
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 11 12 22 35 40 42 61 63 65 84 87 scan 0 sort 0}
do_test where7-2.341.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=223
         OR b=498
         OR b=66
         OR b=14
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR c=6006
         OR a=34
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=407
      ORDER BY a
  }
} {6 16 17 18 22 34 37 73 scan 0 sort 0}
do_test where7-2.341.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=223
         OR b=498
         OR b=66
         OR b=14
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR c=6006
         OR a=34
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=407
      ORDER BY a
  }
} {6 16 17 18 22 34 37 73 scan 0 sort 0}
do_test where7-2.342.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
         OR b=88
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR a=56
         OR b=429
         OR a=3
      ORDER BY a
  }
} {3 8 39 53 56 69 71 79 95 scan 0 sort 0}
do_test where7-2.342.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ihgfedc' AND f GLOB 'bcdef*')
         OR b=88
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR a=56
         OR b=429
         OR a=3
      ORDER BY a
  }
} {3 8 39 53 56 69 71 79 95 scan 0 sort 0}
do_test where7-2.343.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1078
         OR a=2
         OR b=190
         OR b=289
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {2 10 14 16 36 47 62 76 88 98 scan 0 sort 0}
do_test where7-2.343.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1078
         OR a=2
         OR b=190
         OR b=289
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {2 10 14 16 36 47 62 76 88 98 scan 0 sort 0}
do_test where7-2.344.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 61 AND 63) AND a!=62)
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=946
         OR a=21
      ORDER BY a
  }
} {21 53 55 61 63 86 scan 0 sort 0}
do_test where7-2.344.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 61 AND 63) AND a!=62)
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=946
         OR a=21
      ORDER BY a
  }
} {21 53 55 61 63 86 scan 0 sort 0}
do_test where7-2.345.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=682
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=28
         OR (g='rqponml' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {19 27 28 29 31 36 45 62 64 scan 0 sort 0}
do_test where7-2.345.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=682
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR a=28
         OR (g='rqponml' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {19 27 28 29 31 36 45 62 64 scan 0 sort 0}
do_test where7-2.346.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=18
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR b=388
      ORDER BY a
  }
} {18 25 46 51 77 88 scan 0 sort 0}
do_test where7-2.346.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=18
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR b=388
      ORDER BY a
  }
} {18 25 46 51 77 88 scan 0 sort 0}
do_test where7-2.347.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {25 45 scan 0 sort 0}
do_test where7-2.347.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {25 45 scan 0 sort 0}
do_test where7-2.348.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'klmno*')
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=363
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=220
         OR f='yzabcdefg'
         OR b=715
         OR b=421
      ORDER BY a
  }
} {5 20 24 31 33 36 50 57 65 76 79 83 scan 0 sort 0}
do_test where7-2.348.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'klmno*')
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=363
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=220
         OR f='yzabcdefg'
         OR b=715
         OR b=421
      ORDER BY a
  }
} {5 20 24 31 33 36 50 57 65 76 79 83 scan 0 sort 0}
do_test where7-2.349.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=696
         OR a=23
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {3 10 12 13 14 23 29 36 39 55 62 65 81 85 86 88 91 scan 0 sort 0}
do_test where7-2.349.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=696
         OR a=23
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {3 10 12 13 14 23 29 36 39 55 62 65 81 85 86 88 91 scan 0 sort 0}
do_test where7-2.350.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=66
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR b=388
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=264
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=13
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 13 21 22 24 47 48 60 66 74 94 95 100 scan 0 sort 0}
do_test where7-2.350.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=66
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR b=388
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=264
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=13
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 13 21 22 24 47 48 60 66 74 94 95 100 scan 0 sort 0}
do_test where7-2.351.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=16
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=385
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=979
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=1026
      ORDER BY a
  }
} {16 31 35 51 56 58 77 89 scan 0 sort 0}
do_test where7-2.351.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=16
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=385
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b=979
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=1026
      ORDER BY a
  }
} {16 31 35 51 56 58 77 89 scan 0 sort 0}
do_test where7-2.352.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=168
         OR a=72
         OR f='klmnopqrs'
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=92
         OR a=47
      ORDER BY a
  }
} {10 36 45 47 62 66 68 72 88 92 scan 0 sort 0}
do_test where7-2.352.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=168
         OR a=72
         OR f='klmnopqrs'
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=92
         OR a=47
      ORDER BY a
  }
} {10 36 45 47 62 66 68 72 88 92 scan 0 sort 0}
do_test where7-2.353.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=92
         OR b=319
         OR b=792
         OR b=396
         OR b=498
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR d>1e10
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=1048
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 29 36 39 67 71 72 92 scan 0 sort 0}
do_test where7-2.353.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=92
         OR b=319
         OR b=792
         OR b=396
         OR b=498
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR d>1e10
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=1048
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 29 36 39 67 71 72 92 scan 0 sort 0}
do_test where7-2.354.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR b=1034
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=25
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=231
         OR a=85
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
      ORDER BY a
  }
} {21 24 26 41 53 70 72 78 85 94 scan 0 sort 0}
do_test where7-2.354.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR b=1034
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=25
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=231
         OR a=85
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
      ORDER BY a
  }
} {21 24 26 41 53 70 72 78 85 94 scan 0 sort 0}
do_test where7-2.355.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='opqrstuvw'
         OR c=10010
      ORDER BY a
  }
} {14 28 29 30 40 66 92 scan 0 sort 0}
do_test where7-2.355.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='opqrstuvw'
         OR c=10010
      ORDER BY a
  }
} {14 28 29 30 40 66 92 scan 0 sort 0}
do_test where7-2.356.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=454
         OR a=46
         OR b=102
      ORDER BY a
  }
} {37 40 42 46 84 scan 0 sort 0}
do_test where7-2.356.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=454
         OR a=46
         OR b=102
      ORDER BY a
  }
} {37 40 42 46 84 scan 0 sort 0}
do_test where7-2.357.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=56
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=86
         OR c=34034
      ORDER BY a
  }
} {56 66 68 86 99 100 scan 0 sort 0}
do_test where7-2.357.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=56
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR a=86
         OR c=34034
      ORDER BY a
  }
} {56 66 68 86 99 100 scan 0 sort 0}
do_test where7-2.358.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=92
         OR f='abcdefghi'
         OR a=15
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR a=15
         OR b=550
      ORDER BY a
  }
} {15 16 26 50 52 55 57 78 92 scan 0 sort 0}
do_test where7-2.358.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=92
         OR f='abcdefghi'
         OR a=15
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR a=15
         OR b=550
      ORDER BY a
  }
} {15 16 26 50 52 55 57 78 92 scan 0 sort 0}
do_test where7-2.359.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR b=1023
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 8 28 30 38 93 97 scan 0 sort 0}
do_test where7-2.359.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR b=1023
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 8 28 30 38 93 97 scan 0 sort 0}
do_test where7-2.360.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 63 AND 65) AND a!=64)
         OR f='opqrstuvw'
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR b=407
      ORDER BY a
  }
} {14 37 40 63 65 66 72 92 scan 0 sort 0}
do_test where7-2.360.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 63 AND 65) AND a!=64)
         OR f='opqrstuvw'
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR b=407
      ORDER BY a
  }
} {14 37 40 63 65 66 72 92 scan 0 sort 0}
do_test where7-2.361.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=740
         OR a=38
         OR (g='srqponm' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {20 30 38 scan 0 sort 0}
do_test where7-2.361.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=740
         OR a=38
         OR (g='srqponm' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {20 30 38 scan 0 sort 0}
do_test where7-2.362.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=410
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR b=25
         OR a=80
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR a=65
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR b=641
         OR b=352
      ORDER BY a
  }
} {1 3 23 32 64 65 66 80 scan 0 sort 0}
do_test where7-2.362.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=410
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR b=25
         OR a=80
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR a=65
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR b=641
         OR b=352
      ORDER BY a
  }
} {1 3 23 32 64 65 66 80 scan 0 sort 0}
do_test where7-2.363.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=135
         OR a=15
      ORDER BY a
  }
} {15 64 72 scan 0 sort 0}
do_test where7-2.363.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=135
         OR a=15
      ORDER BY a
  }
} {15 64 72 scan 0 sort 0}
do_test where7-2.364.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=572
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR a=84
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR f='xyzabcdef'
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR a=65
      ORDER BY a
  }
} {23 49 52 65 66 75 84 90 scan 0 sort 0}
do_test where7-2.364.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=572
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR a=84
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR f='xyzabcdef'
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR a=65
      ORDER BY a
  }
} {23 49 52 65 66 75 84 90 scan 0 sort 0}
do_test where7-2.365.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=6
         OR a=65
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR b=825
         OR c=29029
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 19 42 65 75 85 86 87 scan 0 sort 0}
do_test where7-2.365.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=6
         OR a=65
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR b=825
         OR c=29029
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 19 42 65 75 85 86 87 scan 0 sort 0}
do_test where7-2.366.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 55 AND 57) AND a!=56)
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR c=32032
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {21 22 26 55 57 80 82 94 95 96 scan 0 sort 0}
do_test where7-2.366.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 55 AND 57) AND a!=56)
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR c=32032
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {21 22 26 55 57 80 82 94 95 96 scan 0 sort 0}
do_test where7-2.367.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR a=27
      ORDER BY a
  }
} {27 98 scan 0 sort 0}
do_test where7-2.367.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR a=27
      ORDER BY a
  }
} {27 98 scan 0 sort 0}
do_test where7-2.368.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=806
         OR a=74
         OR a=28
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR b=751
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {28 50 59 74 scan 0 sort 0}
do_test where7-2.368.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=806
         OR a=74
         OR a=28
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR b=751
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
      ORDER BY a
  }
} {28 50 59 74 scan 0 sort 0}
do_test where7-2.369.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=729
         OR (g='xwvutsr' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {5 13 39 65 91 scan 0 sort 0}
do_test where7-2.369.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=729
         OR (g='xwvutsr' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {5 13 39 65 91 scan 0 sort 0}
do_test where7-2.370.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=630
      ORDER BY a
  }
} {6 32 40 53 55 58 84 scan 0 sort 0}
do_test where7-2.370.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=630
      ORDER BY a
  }
} {6 32 40 53 55 58 84 scan 0 sort 0}
do_test where7-2.371.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=605
         OR c=18018
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {46 52 53 54 55 scan 0 sort 0}
do_test where7-2.371.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=605
         OR c=18018
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {46 52 53 54 55 scan 0 sort 0}
do_test where7-2.372.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR a=22
         OR b=553
         OR b=443
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=1070
         OR b=179
         OR a=75
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR b=278
         OR a=38
      ORDER BY a
  }
} {6 22 38 75 95 97 100 scan 0 sort 0}
do_test where7-2.372.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR a=22
         OR b=553
         OR b=443
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=1070
         OR b=179
         OR a=75
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR b=278
         OR a=38
      ORDER BY a
  }
} {6 22 38 75 95 97 100 scan 0 sort 0}
do_test where7-2.373.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='hijklmnop'
         OR b=938
      ORDER BY a
  }
} {7 33 59 85 scan 0 sort 0}
do_test where7-2.373.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='hijklmnop'
         OR b=938
      ORDER BY a
  }
} {7 33 59 85 scan 0 sort 0}
do_test where7-2.374.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=927
      ORDER BY a
  }
} {6 scan 0 sort 0}
do_test where7-2.374.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=927
      ORDER BY a
  }
} {6 scan 0 sort 0}
do_test where7-2.375.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=11011
         OR a=54
      ORDER BY a
  }
} {31 32 33 54 scan 0 sort 0}
do_test where7-2.375.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=11011
         OR a=54
      ORDER BY a
  }
} {31 32 33 54 scan 0 sort 0}
do_test where7-2.376.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=44
         OR b=264
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=1001
         OR b=14
         OR a=67
         OR (g='nmlkjih' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {1 2 3 24 30 44 57 67 scan 0 sort 0}
do_test where7-2.376.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=44
         OR b=264
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=1001
         OR b=14
         OR a=67
         OR (g='nmlkjih' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {1 2 3 24 30 44 57 67 scan 0 sort 0}
do_test where7-2.377.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 26 AND 28) AND a!=27)
         OR f='wxyzabcde'
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=46
      ORDER BY a
  }
} {10 22 26 28 46 48 69 74 100 scan 0 sort 0}
do_test where7-2.377.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 26 AND 28) AND a!=27)
         OR f='wxyzabcde'
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=46
      ORDER BY a
  }
} {10 22 26 28 46 48 69 74 100 scan 0 sort 0}
do_test where7-2.378.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='abcdefghi'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR a=18
         OR a=42
         OR a=77
         OR b=605
      ORDER BY a
  }
} {18 26 42 52 55 61 63 77 78 scan 0 sort 0}
do_test where7-2.378.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='abcdefghi'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR a=18
         OR a=42
         OR a=77
         OR b=605
      ORDER BY a
  }
} {18 26 42 52 55 61 63 77 78 scan 0 sort 0}
do_test where7-2.379.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR a=65
         OR c=22022
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR c=31031
      ORDER BY a
  }
} {31 42 44 61 64 65 66 79 81 91 92 93 scan 0 sort 0}
do_test where7-2.379.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR a=65
         OR c=22022
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR c=31031
      ORDER BY a
  }
} {31 42 44 61 64 65 66 79 81 91 92 93 scan 0 sort 0}
do_test where7-2.380.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=12012
         OR b=792
      ORDER BY a
  }
} {34 35 36 72 scan 0 sort 0}
do_test where7-2.380.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=12012
         OR b=792
      ORDER BY a
  }
} {34 35 36 72 scan 0 sort 0}
do_test where7-2.381.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=880
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=443
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {29 31 32 80 scan 0 sort 0}
do_test where7-2.381.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=880
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=443
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {29 31 32 80 scan 0 sort 0}
do_test where7-2.382.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 92 AND 94) AND a!=93)
         OR b=707
         OR a=26
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 62 67 81 83 92 94 scan 0 sort 0}
do_test where7-2.382.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 92 AND 94) AND a!=93)
         OR b=707
         OR a=26
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 62 67 81 83 92 94 scan 0 sort 0}
do_test where7-2.383.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=55
         OR a=45
         OR b=25
         OR b=982
         OR b=696
         OR a=83
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {15 41 45 55 67 83 93 scan 0 sort 0}
do_test where7-2.383.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=55
         OR a=45
         OR b=25
         OR b=982
         OR b=696
         OR a=83
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {15 41 45 55 67 83 93 scan 0 sort 0}
do_test where7-2.384.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=84
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR b=891
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {17 19 65 78 80 81 82 84 95 scan 0 sort 0}
do_test where7-2.384.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=84
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR b=891
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR (g='ihgfedc' AND f GLOB 'efghi*')
      ORDER BY a
  }
} {17 19 65 78 80 81 82 84 95 scan 0 sort 0}
do_test where7-2.385.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=484
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=89
         OR a=34
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
      ORDER BY a
  }
} {3 5 14 34 40 44 63 65 66 89 92 scan 0 sort 0}
do_test where7-2.385.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=484
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=89
         OR a=34
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
      ORDER BY a
  }
} {3 5 14 34 40 44 63 65 66 89 92 scan 0 sort 0}
do_test where7-2.386.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=275
         OR f IS NULL
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR a=99
      ORDER BY a
  }
} {25 38 89 91 99 scan 0 sort 0}
do_test where7-2.386.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=275
         OR f IS NULL
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR a=99
      ORDER BY a
  }
} {25 38 89 91 99 scan 0 sort 0}
do_test where7-2.387.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b=330
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 27 29 30 72 86 scan 0 sort 0}
do_test where7-2.387.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b=330
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 27 29 30 72 86 scan 0 sort 0}
do_test where7-2.388.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR b=1026
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=30
         OR b=619
      ORDER BY a
  }
} {15 30 41 63 65 67 86 88 93 scan 0 sort 0}
do_test where7-2.388.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR b=1026
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=30
         OR b=619
      ORDER BY a
  }
} {15 30 41 63 65 67 86 88 93 scan 0 sort 0}
do_test where7-2.389.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=638
         OR ((a BETWEEN 62 AND 64) AND a!=63)
      ORDER BY a
  }
} {58 62 64 scan 0 sort 0}
do_test where7-2.389.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=638
         OR ((a BETWEEN 62 AND 64) AND a!=63)
      ORDER BY a
  }
} {58 62 64 scan 0 sort 0}
do_test where7-2.390.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=814
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR f='pqrstuvwx'
         OR a=29
      ORDER BY a
  }
} {15 29 41 52 54 67 74 93 96 98 scan 0 sort 0}
do_test where7-2.390.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=814
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR f='pqrstuvwx'
         OR a=29
      ORDER BY a
  }
} {15 29 41 52 54 67 74 93 96 98 scan 0 sort 0}
do_test where7-2.391.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=847
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
      ORDER BY a
  }
} {5 18 31 44 57 70 77 83 96 scan 0 sort 0}
do_test where7-2.391.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=847
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
      ORDER BY a
  }
} {5 18 31 44 57 70 77 83 96 scan 0 sort 0}
do_test where7-2.392.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=256
         OR b=597
         OR b=264
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR a=72
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=641
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR b=586
      ORDER BY a
  }
} {3 5 7 24 54 72 scan 0 sort 0}
do_test where7-2.392.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=256
         OR b=597
         OR b=264
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR a=72
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=641
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR b=586
      ORDER BY a
  }
} {3 5 7 24 54 72 scan 0 sort 0}
do_test where7-2.393.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=982
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR c=8008
         OR b=927
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR c=6006
      ORDER BY a
  }
} {12 14 16 17 18 20 22 23 24 50 76 scan 0 sort 0}
do_test where7-2.393.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=982
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR c=8008
         OR b=927
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR c=6006
      ORDER BY a
  }
} {12 14 16 17 18 20 22 23 24 50 76 scan 0 sort 0}
do_test where7-2.394.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=847
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR a=50
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {2 4 50 57 58 59 60 77 scan 0 sort 0}
do_test where7-2.394.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=847
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR a=50
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {2 4 50 57 58 59 60 77 scan 0 sort 0}
do_test where7-2.395.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR a=20
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=869
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR a=52
      ORDER BY a
  }
} {20 37 39 40 42 43 52 79 87 100 scan 0 sort 0}
do_test where7-2.395.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR a=20
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR b=869
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR a=52
      ORDER BY a
  }
} {20 37 39 40 42 43 52 79 87 100 scan 0 sort 0}
do_test where7-2.396.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=8
         OR a=60
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=352
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR b=847
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR a=54
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=671
         OR a=98
      ORDER BY a
  }
} {8 25 32 46 48 54 60 61 70 72 77 85 87 98 scan 0 sort 0}
do_test where7-2.396.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=8
         OR a=60
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=352
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR b=847
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR a=54
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=671
         OR a=98
      ORDER BY a
  }
} {8 25 32 46 48 54 60 61 70 72 77 85 87 98 scan 0 sort 0}
do_test where7-2.397.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=212
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=583
         OR ((a BETWEEN 97 AND 99) AND a!=98)
      ORDER BY a
  }
} {27 53 97 99 scan 0 sort 0}
do_test where7-2.397.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=212
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=583
         OR ((a BETWEEN 97 AND 99) AND a!=98)
      ORDER BY a
  }
} {27 53 97 99 scan 0 sort 0}
do_test where7-2.398.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR b=25
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR c=8008
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR b=759
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR a=89
      ORDER BY a
  }
} {8 10 22 23 24 25 58 60 68 69 70 73 89 95 scan 0 sort 0}
do_test where7-2.398.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 68 AND 70) AND a!=69)
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR b=25
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR c=8008
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR b=759
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR a=89
      ORDER BY a
  }
} {8 10 22 23 24 25 58 60 68 69 70 73 89 95 scan 0 sort 0}
do_test where7-2.399.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=113
         OR ((a BETWEEN 87 AND 89) AND a!=88)
      ORDER BY a
  }
} {87 89 98 scan 0 sort 0}
do_test where7-2.399.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=113
         OR ((a BETWEEN 87 AND 89) AND a!=88)
      ORDER BY a
  }
} {87 89 98 scan 0 sort 0}
do_test where7-2.400.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=267
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=652
         OR b=605
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR a=91
         OR c=28028
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=792
      ORDER BY a
  }
} {3 55 72 81 82 83 84 91 100 scan 0 sort 0}
do_test where7-2.400.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=267
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=652
         OR b=605
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR a=91
         OR c=28028
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=792
      ORDER BY a
  }
} {3 55 72 81 82 83 84 91 100 scan 0 sort 0}
do_test where7-2.401.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=762
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {14 62 92 94 95 scan 0 sort 0}
do_test where7-2.401.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=762
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {14 62 92 94 95 scan 0 sort 0}
do_test where7-2.402.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=190
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR a=93
         OR a=68
         OR b=91
         OR b=586
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 51 53 68 93 scan 0 sort 0}
do_test where7-2.402.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=190
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR a=93
         OR a=68
         OR b=91
         OR b=586
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 51 53 68 93 scan 0 sort 0}
do_test where7-2.403.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR b=880
         OR (g='mlkjihg' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {61 62 80 scan 0 sort 0}
do_test where7-2.403.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR b=880
         OR (g='mlkjihg' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {61 62 80 scan 0 sort 0}
do_test where7-2.404.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR b=627
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=616
         OR a=35
         OR a=24
         OR b=839
         OR a=42
         OR b=297
      ORDER BY a
  }
} {24 27 35 42 48 56 57 61 75 scan 0 sort 0}
do_test where7-2.404.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR b=627
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=616
         OR a=35
         OR a=24
         OR b=839
         OR a=42
         OR b=297
      ORDER BY a
  }
} {24 27 35 42 48 56 57 61 75 scan 0 sort 0}
do_test where7-2.405.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=36
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR b=25
      ORDER BY a
  }
} {5 7 11 37 63 89 95 99 scan 0 sort 0}
do_test where7-2.405.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=36
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR b=25
      ORDER BY a
  }
} {5 7 11 37 63 89 95 99 scan 0 sort 0}
do_test where7-2.406.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=740
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {74 77 90 92 96 scan 0 sort 0}
do_test where7-2.406.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=740
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {74 77 90 92 96 scan 0 sort 0}
do_test where7-2.407.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='hijklmnop'
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=528
         OR (g='xwvutsr' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {3 7 8 20 33 48 59 85 scan 0 sort 0}
do_test where7-2.407.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='hijklmnop'
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=528
         OR (g='xwvutsr' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {3 7 8 20 33 48 59 85 scan 0 sort 0}
do_test where7-2.408.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=253
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=869
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {14 22 23 24 33 50 76 79 scan 0 sort 0}
do_test where7-2.408.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=253
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=869
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {14 22 23 24 33 50 76 79 scan 0 sort 0}
do_test where7-2.409.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 57 AND 59) AND a!=58)
      ORDER BY a
  }
} {26 57 59 scan 0 sort 0}
do_test where7-2.409.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 57 AND 59) AND a!=58)
      ORDER BY a
  }
} {26 57 59 scan 0 sort 0}
do_test where7-2.410.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=781
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {33 35 71 scan 0 sort 0}
do_test where7-2.410.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=781
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {33 35 71 scan 0 sort 0}
do_test where7-2.411.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=803
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR b=1059
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
      ORDER BY a
  }
} {30 32 44 54 61 63 73 75 98 100 scan 0 sort 0}
do_test where7-2.411.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=803
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR b=1059
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
      ORDER BY a
  }
} {30 32 44 54 61 63 73 75 98 100 scan 0 sort 0}
do_test where7-2.412.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=1056
         OR a=49
         OR b=451
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR b=509
         OR c=32032
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR a=4
      ORDER BY a
  }
} {4 21 36 41 49 82 84 88 90 94 95 96 scan 0 sort 0}
do_test where7-2.412.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR b=1056
         OR a=49
         OR b=451
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR b=509
         OR c=32032
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR a=4
      ORDER BY a
  }
} {4 21 36 41 49 82 84 88 90 94 95 96 scan 0 sort 0}
do_test where7-2.413.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 16 AND 18) AND a!=17)
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR b=726
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=11
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR b=121
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 11 14 16 18 22 37 39 57 59 66 87 scan 0 sort 0}
do_test where7-2.413.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 16 AND 18) AND a!=17)
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR b=726
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=11
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR b=121
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 11 14 16 18 22 37 39 57 59 66 87 scan 0 sort 0}
do_test where7-2.414.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c<=10
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='onmlkji' AND f GLOB 'yzabc*')
         OR a=43
         OR b=553
         OR b=377
         OR b=462
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=198
      ORDER BY a
  }
} {13 18 39 42 43 48 50 65 83 85 91 scan 0 sort 0}
do_test where7-2.414.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c<=10
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='onmlkji' AND f GLOB 'yzabc*')
         OR a=43
         OR b=553
         OR b=377
         OR b=462
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=198
      ORDER BY a
  }
} {13 18 39 42 43 48 50 65 83 85 91 scan 0 sort 0}
do_test where7-2.415.1 {
  count_steps {
     SELECT a FROM t2
      WHERE 1000000<b
         OR f='rstuvwxyz'
         OR b=616
         OR a=30
         OR a=54
         OR b=990
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c>=34035
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR b=718
         OR c=29029
      ORDER BY a
  }
} {17 23 30 43 49 54 56 69 75 85 86 87 90 95 scan 0 sort 0}
do_test where7-2.415.2 {
  count_steps {
     SELECT a FROM t3
      WHERE 1000000<b
         OR f='rstuvwxyz'
         OR b=616
         OR a=30
         OR a=54
         OR b=990
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c>=34035
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR b=718
         OR c=29029
      ORDER BY a
  }
} {17 23 30 43 49 54 56 69 75 85 86 87 90 95 scan 0 sort 0}
do_test where7-2.416.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR c=34034
         OR b=704
         OR b=938
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
      ORDER BY a
  }
} {16 36 64 100 scan 0 sort 0}
do_test where7-2.416.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR c=34034
         OR b=704
         OR b=938
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
      ORDER BY a
  }
} {16 36 64 100 scan 0 sort 0}
do_test where7-2.417.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1092
         OR f='tuvwxyzab'
         OR c=12012
      ORDER BY a
  }
} {19 34 35 36 45 71 97 scan 0 sort 0}
do_test where7-2.417.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1092
         OR f='tuvwxyzab'
         OR c=12012
      ORDER BY a
  }
} {19 34 35 36 45 71 97 scan 0 sort 0}
do_test where7-2.418.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=19019
         OR a=53
         OR b=396
      ORDER BY a
  }
} {36 53 55 56 57 scan 0 sort 0}
do_test where7-2.418.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=19019
         OR a=53
         OR b=396
      ORDER BY a
  }
} {36 53 55 56 57 scan 0 sort 0}
do_test where7-2.419.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f IS NULL
         OR b=531
         OR a=55
         OR b=990
      ORDER BY a
  }
} {55 90 scan 0 sort 0}
do_test where7-2.419.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f IS NULL
         OR b=531
         OR a=55
         OR b=990
      ORDER BY a
  }
} {55 90 scan 0 sort 0}
do_test where7-2.420.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='opqrstuvw'
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR f='tuvwxyzab'
         OR a=89
         OR b=135
      ORDER BY a
  }
} {14 19 23 40 45 52 66 71 89 92 97 scan 0 sort 0}
do_test where7-2.420.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='opqrstuvw'
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR f='tuvwxyzab'
         OR a=89
         OR b=135
      ORDER BY a
  }
} {14 19 23 40 45 52 66 71 89 92 97 scan 0 sort 0}
do_test where7-2.421.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=399
         OR f='yzabcdefg'
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 4 9 16 24 42 44 50 51 53 62 64 76 scan 0 sort 0}
do_test where7-2.421.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=399
         OR f='yzabcdefg'
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 4 9 16 24 42 44 50 51 53 62 64 76 scan 0 sort 0}
do_test where7-2.422.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=858
         OR a=23
         OR b=506
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR c=19019
         OR b=363
      ORDER BY a
  }
} {23 33 46 48 55 56 57 78 scan 0 sort 0}
do_test where7-2.422.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=858
         OR a=23
         OR b=506
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR c=19019
         OR b=363
      ORDER BY a
  }
} {23 33 46 48 55 56 57 78 scan 0 sort 0}
do_test where7-2.423.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=38
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR a=5
         OR b=286
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {5 20 22 26 38 47 54 scan 0 sort 0}
do_test where7-2.423.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=38
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR a=5
         OR b=286
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=47.0 AND d<48.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {5 20 22 26 38 47 54 scan 0 sort 0}
do_test where7-2.424.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=506
         OR b=550
         OR b=1089
         OR b=267
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR f='wxyzabcde'
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR b=814
      ORDER BY a
  }
} {22 32 46 48 50 68 74 99 100 scan 0 sort 0}
do_test where7-2.424.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=506
         OR b=550
         OR b=1089
         OR b=267
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR f='wxyzabcde'
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR b=814
      ORDER BY a
  }
} {22 32 46 48 50 68 74 99 100 scan 0 sort 0}
do_test where7-2.425.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='bcdefghij'
         OR b=506
         OR f='opqrstuvw'
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
      ORDER BY a
  }
} {1 10 12 14 18 20 27 40 46 53 66 69 79 92 scan 0 sort 0}
do_test where7-2.425.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='bcdefghij'
         OR b=506
         OR f='opqrstuvw'
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
      ORDER BY a
  }
} {1 10 12 14 18 20 27 40 46 53 66 69 79 92 scan 0 sort 0}
do_test where7-2.426.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=22
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR b=399
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {2 3 29 55 61 81 scan 0 sort 0}
do_test where7-2.426.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=22
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR b=399
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {2 3 29 55 61 81 scan 0 sort 0}
do_test where7-2.427.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR a=66
         OR b=484
         OR a=42
      ORDER BY a
  }
} {39 41 42 44 66 scan 0 sort 0}
do_test where7-2.427.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR a=66
         OR b=484
         OR a=42
      ORDER BY a
  }
} {39 41 42 44 66 scan 0 sort 0}
do_test where7-2.428.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=905
         OR a=1
         OR b=22
         OR b=696
      ORDER BY a
  }
} {1 2 scan 0 sort 0}
do_test where7-2.428.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=905
         OR a=1
         OR b=22
         OR b=696
      ORDER BY a
  }
} {1 2 scan 0 sort 0}
do_test where7-2.429.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='klmnopqrs'
         OR a=62
      ORDER BY a
  }
} {10 36 62 88 scan 0 sort 0}
do_test where7-2.429.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='klmnopqrs'
         OR a=62
      ORDER BY a
  }
} {10 36 62 88 scan 0 sort 0}
do_test where7-2.430.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=42
         OR b=1001
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR a=62
      ORDER BY a
  }
} {17 42 43 49 62 69 91 95 scan 0 sort 0}
do_test where7-2.430.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=42
         OR b=1001
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR a=62
      ORDER BY a
  }
} {17 42 43 49 62 69 91 95 scan 0 sort 0}
do_test where7-2.431.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR b=209
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR f='mnopqrstu'
         OR b=374
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR f='pqrstuvwx'
         OR a=65
         OR a=23
      ORDER BY a
  }
} {12 15 18 19 23 34 38 41 64 65 67 85 88 90 93 98 99 100 scan 0 sort 0}
do_test where7-2.431.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR b=209
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR f='mnopqrstu'
         OR b=374
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR f='pqrstuvwx'
         OR a=65
         OR a=23
      ORDER BY a
  }
} {12 15 18 19 23 34 38 41 64 65 67 85 88 90 93 98 99 100 scan 0 sort 0}
do_test where7-2.432.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR a=64
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 7 9 10 11 18 20 64 69 scan 0 sort 0}
do_test where7-2.432.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR a=64
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 7 9 10 11 18 20 64 69 scan 0 sort 0}
do_test where7-2.433.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=91
         OR b=935
         OR a=82
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR b=300
      ORDER BY a
  }
} {14 43 82 85 91 scan 0 sort 0}
do_test where7-2.433.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=91
         OR b=935
         OR a=82
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR b=300
      ORDER BY a
  }
} {14 43 82 85 91 scan 0 sort 0}
do_test where7-2.434.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
         OR f='hijklmnop'
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR b=110
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {3 4 7 10 12 22 33 45 59 83 85 94 scan 0 sort 0}
do_test where7-2.434.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
         OR f='hijklmnop'
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR b=110
         OR ((a BETWEEN 83 AND 85) AND a!=84)
      ORDER BY a
  }
} {3 4 7 10 12 22 33 45 59 83 85 94 scan 0 sort 0}
do_test where7-2.435.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=66
         OR a=32
         OR b=487
         OR b=69
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (g='onmlkji' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {6 32 33 50 98 99 scan 0 sort 0}
do_test where7-2.435.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=66
         OR a=32
         OR b=487
         OR b=69
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (g='onmlkji' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {6 32 33 50 98 99 scan 0 sort 0}
do_test where7-2.436.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=814
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR c=25025
      ORDER BY a
  }
} {40 73 74 75 scan 0 sort 0}
do_test where7-2.436.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=814
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR c=25025
      ORDER BY a
  }
} {40 73 74 75 scan 0 sort 0}
do_test where7-2.437.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=960
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 62 92 scan 0 sort 0}
do_test where7-2.437.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=960
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 62 92 scan 0 sort 0}
do_test where7-2.438.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR a=7
         OR b=36
         OR b=528
         OR c=17017
         OR b=66
         OR b=674
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 7 48 49 50 51 56 69 96 scan 0 sort 0}
do_test where7-2.438.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR a=7
         OR b=36
         OR b=528
         OR c=17017
         OR b=66
         OR b=674
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 7 48 49 50 51 56 69 96 scan 0 sort 0}
do_test where7-2.439.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c>=34035
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR a=52
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR b=836
         OR a=46
         OR c=23023
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
      ORDER BY a
  }
} {11 13 20 46 52 61 67 68 69 71 72 73 76 98 scan 0 sort 0}
do_test where7-2.439.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c>=34035
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR a=52
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR b=836
         OR a=46
         OR c=23023
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
      ORDER BY a
  }
} {11 13 20 46 52 61 67 68 69 71 72 73 76 98 scan 0 sort 0}
do_test where7-2.440.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=770
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR b=726
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=49
         OR f='bcdefghij'
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR f='jklmnopqr'
      ORDER BY a
  }
} {1 9 27 31 35 37 43 49 53 61 62 66 70 79 87 scan 0 sort 0}
do_test where7-2.440.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=770
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR b=726
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=49
         OR f='bcdefghij'
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR f='jklmnopqr'
      ORDER BY a
  }
} {1 9 27 31 35 37 43 49 53 61 62 66 70 79 87 scan 0 sort 0}
do_test where7-2.441.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
      ORDER BY a
  }
} {13 23 25 48 49 51 57 75 77 scan 0 sort 0}
do_test where7-2.441.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
      ORDER BY a
  }
} {13 23 25 48 49 51 57 75 77 scan 0 sort 0}
do_test where7-2.442.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 46 AND 48) AND a!=47)
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=366
      ORDER BY a
  }
} {15 46 48 scan 0 sort 0}
do_test where7-2.442.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 46 AND 48) AND a!=47)
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=366
      ORDER BY a
  }
} {15 46 48 scan 0 sort 0}
do_test where7-2.443.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 88 AND 90) AND a!=89)
         OR b=421
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR b=531
         OR b=957
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR c=28028
      ORDER BY a
  }
} {9 55 82 83 84 87 88 90 91 scan 0 sort 0}
do_test where7-2.443.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 88 AND 90) AND a!=89)
         OR b=421
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR b=531
         OR b=957
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR c=28028
      ORDER BY a
  }
} {9 55 82 83 84 87 88 90 91 scan 0 sort 0}
do_test where7-2.444.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=100
         OR a=85
         OR b=847
      ORDER BY a
  }
} {77 85 100 scan 0 sort 0}
do_test where7-2.444.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=100
         OR a=85
         OR b=847
      ORDER BY a
  }
} {77 85 100 scan 0 sort 0}
do_test where7-2.445.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=25
         OR a=5
         OR 1000000<b
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=506
         OR a=30
         OR b=509
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 9 11 12 14 30 46 78 98 scan 0 sort 0}
do_test where7-2.445.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=25
         OR a=5
         OR 1000000<b
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=506
         OR a=30
         OR b=509
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 9 11 12 14 30 46 78 98 scan 0 sort 0}
do_test where7-2.446.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=792
         OR b=484
         OR a=34
         OR b=454
         OR b=1056
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=693
      ORDER BY a
  }
} {34 44 63 72 96 99 scan 0 sort 0}
do_test where7-2.446.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=792
         OR b=484
         OR a=34
         OR b=454
         OR b=1056
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=693
      ORDER BY a
  }
} {34 44 63 72 96 99 scan 0 sort 0}
do_test where7-2.447.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='fghijklmn'
         OR a=23
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR a=69
      ORDER BY a
  }
} {5 23 31 57 69 83 89 scan 0 sort 0}
do_test where7-2.447.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='fghijklmn'
         OR a=23
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR a=69
      ORDER BY a
  }
} {5 23 31 57 69 83 89 scan 0 sort 0}
do_test where7-2.448.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=17017
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=31
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=531
         OR b=322
         OR a=98
      ORDER BY a
  }
} {31 35 37 44 49 50 51 66 69 86 98 scan 0 sort 0}
do_test where7-2.448.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=17017
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=31
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=531
         OR b=322
         OR a=98
      ORDER BY a
  }
} {31 35 37 44 49 50 51 66 69 86 98 scan 0 sort 0}
do_test where7-2.449.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR a=60
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR f='ijklmnopq'
         OR b=572
         OR b=165
         OR c=24024
         OR b=355
      ORDER BY a
  }
} {8 15 34 52 60 70 71 72 86 88 90 92 100 scan 0 sort 0}
do_test where7-2.449.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR a=60
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR f='ijklmnopq'
         OR b=572
         OR b=165
         OR c=24024
         OR b=355
      ORDER BY a
  }
} {8 15 34 52 60 70 71 72 86 88 90 92 100 scan 0 sort 0}
do_test where7-2.450.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=264
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b=465
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR f='fghijklmn'
         OR b=363
         OR b=102
      ORDER BY a
  }
} {5 10 24 31 33 57 64 83 95 97 scan 0 sort 0}
do_test where7-2.450.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=264
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR b=465
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR f='fghijklmn'
         OR b=363
         OR b=102
      ORDER BY a
  }
} {5 10 24 31 33 57 64 83 95 97 scan 0 sort 0}
do_test where7-2.451.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 0 AND 2) AND a!=1)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=1045
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR b=366
      ORDER BY a
  }
} {2 9 11 21 35 61 81 87 93 95 scan 0 sort 0}
do_test where7-2.451.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 0 AND 2) AND a!=1)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=1045
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR b=366
      ORDER BY a
  }
} {2 9 11 21 35 61 81 87 93 95 scan 0 sort 0}
do_test where7-2.452.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=770
         OR b=726
         OR b=209
      ORDER BY a
  }
} {14 19 66 70 scan 0 sort 0}
do_test where7-2.452.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=770
         OR b=726
         OR b=209
      ORDER BY a
  }
} {14 19 66 70 scan 0 sort 0}
do_test where7-2.453.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=55
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR a=77
         OR b=308
         OR c=16016
         OR b=396
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
      ORDER BY a
  }
} {5 12 28 30 31 33 36 38 46 47 48 55 57 64 77 83 90 scan 0 sort 0}
do_test where7-2.453.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=55
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR a=77
         OR b=308
         OR c=16016
         OR b=396
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
      ORDER BY a
  }
} {5 12 28 30 31 33 36 38 46 47 48 55 57 64 77 83 90 scan 0 sort 0}
do_test where7-2.454.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=92
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=429
         OR a=65
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR a=13
      ORDER BY a
  }
} {13 20 28 39 62 65 66 89 91 92 scan 0 sort 0}
do_test where7-2.454.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=92
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=429
         OR a=65
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR a=13
      ORDER BY a
  }
} {13 20 28 39 62 65 66 89 91 92 scan 0 sort 0}
do_test where7-2.455.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=660
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
      ORDER BY a
  }
} {4 30 56 60 82 scan 0 sort 0}
do_test where7-2.455.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=660
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
      ORDER BY a
  }
} {4 30 56 60 82 scan 0 sort 0}
do_test where7-2.456.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=817
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=1092
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=685
         OR b=1081
         OR f='xyzabcdef'
         OR b=660
      ORDER BY a
  }
} {23 41 48 49 50 60 75 87 93 scan 0 sort 0}
do_test where7-2.456.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=817
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=1092
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=685
         OR b=1081
         OR f='xyzabcdef'
         OR b=660
      ORDER BY a
  }
} {23 41 48 49 50 60 75 87 93 scan 0 sort 0}
do_test where7-2.457.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1015
         OR a=78
         OR b=322
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=542
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {4 21 47 62 64 73 78 95 97 99 scan 0 sort 0}
do_test where7-2.457.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1015
         OR a=78
         OR b=322
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=542
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {4 21 47 62 64 73 78 95 97 99 scan 0 sort 0}
do_test where7-2.458.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR b=561
         OR b=509
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=1078
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=47
         OR b=410
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 19 21 35 38 47 51 98 scan 0 sort 0}
do_test where7-2.458.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR b=561
         OR b=509
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=1078
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=47
         OR b=410
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 19 21 35 38 47 51 98 scan 0 sort 0}
do_test where7-2.459.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=586
         OR b<0
         OR a=58
         OR b=289
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {12 14 22 30 32 33 35 58 87 89 scan 0 sort 0}
do_test where7-2.459.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=586
         OR b<0
         OR a=58
         OR b=289
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {12 14 22 30 32 33 35 58 87 89 scan 0 sort 0}
do_test where7-2.460.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1001
         OR c=19019
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=28
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 28 55 56 57 82 91 scan 0 sort 0}
do_test where7-2.460.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1001
         OR c=19019
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=28
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 28 55 56 57 82 91 scan 0 sort 0}
do_test where7-2.461.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=286
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=924
      ORDER BY a
  }
} {26 84 91 93 scan 0 sort 0}
do_test where7-2.461.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=286
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=924
      ORDER BY a
  }
} {26 84 91 93 scan 0 sort 0}
do_test where7-2.462.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR f='ghijklmno'
      ORDER BY a
  }
} {6 32 58 64 84 scan 0 sort 0}
do_test where7-2.462.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR f='ghijklmno'
      ORDER BY a
  }
} {6 32 58 64 84 scan 0 sort 0}
do_test where7-2.463.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1056
         OR b=539
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=990
         OR b=979
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {24 26 38 49 67 86 89 90 96 scan 0 sort 0}
do_test where7-2.463.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1056
         OR b=539
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=990
         OR b=979
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {24 26 38 49 67 86 89 90 96 scan 0 sort 0}
do_test where7-2.464.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=660
         OR b=696
         OR b=1059
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR f='cdefghijk'
         OR e IS NULL
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=1045
         OR b=960
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {2 9 28 30 35 54 60 61 73 80 87 95 scan 0 sort 0}
do_test where7-2.464.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=660
         OR b=696
         OR b=1059
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR f='cdefghijk'
         OR e IS NULL
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=1045
         OR b=960
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {2 9 28 30 35 54 60 61 73 80 87 95 scan 0 sort 0}
do_test where7-2.465.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=256
         OR b=759
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR f='vwxyzabcd'
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR a=14
         OR b=113
         OR ((a BETWEEN 66 AND 68) AND a!=67)
      ORDER BY a
  }
} {14 21 25 38 43 45 47 51 66 68 69 73 77 96 99 scan 0 sort 0}
do_test where7-2.465.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=256
         OR b=759
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR f='vwxyzabcd'
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR a=14
         OR b=113
         OR ((a BETWEEN 66 AND 68) AND a!=67)
      ORDER BY a
  }
} {14 21 25 38 43 45 47 51 66 68 69 73 77 96 99 scan 0 sort 0}
do_test where7-2.466.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=77
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=828
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=65
         OR ((a BETWEEN 74 AND 76) AND a!=75)
         OR d>1e10
         OR b=759
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 5 7 10 15 41 57 65 67 69 74 76 93 scan 0 sort 0}
do_test where7-2.466.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=77
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=828
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR a=65
         OR ((a BETWEEN 74 AND 76) AND a!=75)
         OR d>1e10
         OR b=759
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 5 7 10 15 41 57 65 67 69 74 76 93 scan 0 sort 0}
do_test where7-2.467.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=311
         OR a=19
         OR b<0
         OR b=77
         OR b=751
         OR a=96
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR c=1001
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=135
      ORDER BY a
  }
} {1 2 3 7 19 76 78 86 96 scan 0 sort 0}
do_test where7-2.467.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=311
         OR a=19
         OR b<0
         OR b=77
         OR b=751
         OR a=96
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR c=1001
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=135
      ORDER BY a
  }
} {1 2 3 7 19 76 78 86 96 scan 0 sort 0}
do_test where7-2.468.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=34034
         OR a=21
         OR b=1015
         OR a=30
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=1078
      ORDER BY a
  }
} {1 21 26 27 30 53 57 79 98 100 scan 0 sort 0}
do_test where7-2.468.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=34034
         OR a=21
         OR b=1015
         OR a=30
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR (g='tsrqpon' AND f GLOB 'abcde*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=1078
      ORDER BY a
  }
} {1 21 26 27 30 53 57 79 98 100 scan 0 sort 0}
do_test where7-2.469.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 47 AND 49) AND a!=48)
         OR a=81
         OR a=60
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR a=82
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR a=72
         OR a=80
         OR b=440
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 34 40 47 49 56 58 59 60 72 80 81 82 scan 0 sort 0}
do_test where7-2.469.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 47 AND 49) AND a!=48)
         OR a=81
         OR a=60
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR a=82
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR a=72
         OR a=80
         OR b=440
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 34 40 47 49 56 58 59 60 72 80 81 82 scan 0 sort 0}
do_test where7-2.470.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=10
         OR a=79
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {10 14 58 60 67 79 81 84 87 scan 0 sort 0}
do_test where7-2.470.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=10
         OR a=79
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {10 14 58 60 67 79 81 84 87 scan 0 sort 0}
do_test where7-2.471.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='tuvwxyzab'
         OR a=38
         OR b=374
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR b=539
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
      ORDER BY a
  }
} {19 34 37 38 45 49 64 66 71 75 97 scan 0 sort 0}
do_test where7-2.471.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='tuvwxyzab'
         OR a=38
         OR b=374
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR b=539
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
      ORDER BY a
  }
} {19 34 37 38 45 49 64 66 71 75 97 scan 0 sort 0}
do_test where7-2.472.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=18018
         OR b=979
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR c=7007
      ORDER BY a
  }
} {16 19 20 21 29 38 40 42 52 53 54 64 68 72 76 89 94 scan 0 sort 0}
do_test where7-2.472.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=18018
         OR b=979
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR c=7007
      ORDER BY a
  }
} {16 19 20 21 29 38 40 42 52 53 54 64 68 72 76 89 94 scan 0 sort 0}
do_test where7-2.473.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='nmlkjih' AND f GLOB 'fghij*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=59
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 57 59 67 scan 0 sort 0}
do_test where7-2.473.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='nmlkjih' AND f GLOB 'fghij*')
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR a=59
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 57 59 67 scan 0 sort 0}
do_test where7-2.474.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=220
         OR a=52
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR f='defghijkl'
         OR a=10
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 10 16 18 20 29 30 32 52 55 81 82 84 88 90 93 95 scan 0 sort 0}
do_test where7-2.474.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=84.0 AND d<85.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 16 AND 18) AND a!=17)
         OR b=220
         OR a=52
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR f='defghijkl'
         OR a=10
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 10 16 18 20 29 30 32 52 55 81 82 84 88 90 93 95 scan 0 sort 0}
do_test where7-2.475.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=13013
         OR b=1059
         OR c>=34035
         OR b=465
         OR b=487
         OR a=85
         OR b=619
      ORDER BY a
  }
} {37 38 39 85 scan 0 sort 0}
do_test where7-2.475.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=13013
         OR b=1059
         OR c>=34035
         OR b=465
         OR b=487
         OR a=85
         OR b=619
      ORDER BY a
  }
} {37 38 39 85 scan 0 sort 0}
do_test where7-2.476.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=98
         OR c=21021
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR d<0.0
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 18 32 61 62 63 97 98 scan 0 sort 0}
do_test where7-2.476.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=98
         OR c=21021
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR d<0.0
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 18 32 61 62 63 97 98 scan 0 sort 0}
do_test where7-2.477.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 20 75 scan 0 sort 0}
do_test where7-2.477.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 20 75 scan 0 sort 0}
do_test where7-2.478.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=982
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR a=26
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR c=1001
      ORDER BY a
  }
} {1 2 3 23 25 26 40 46 75 87 89 92 scan 0 sort 0}
do_test where7-2.478.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=982
         OR ((a BETWEEN 87 AND 89) AND a!=88)
         OR a=26
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR c=1001
      ORDER BY a
  }
} {1 2 3 23 25 26 40 46 75 87 89 92 scan 0 sort 0}
do_test where7-2.479.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=561
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR b=440
         OR c=7007
         OR b=399
         OR b=44
         OR a=67
      ORDER BY a
  }
} {4 10 19 20 21 40 46 51 52 67 72 92 98 scan 0 sort 0}
do_test where7-2.479.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=561
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR b=440
         OR c=7007
         OR b=399
         OR b=44
         OR a=67
      ORDER BY a
  }
} {4 10 19 20 21 40 46 51 52 67 72 92 98 scan 0 sort 0}
do_test where7-2.480.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=528
         OR b=891
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR a=62
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR a=91
         OR f='bcdefghij'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 27 28 30 48 53 62 69 79 81 90 91 scan 0 sort 0}
do_test where7-2.480.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=528
         OR b=891
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR a=62
         OR (d>=48.0 AND d<49.0 AND d NOT NULL)
         OR a=91
         OR f='bcdefghij'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 27 28 30 48 53 62 69 79 81 90 91 scan 0 sort 0}
do_test where7-2.481.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=47
         OR b=663
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=1015
         OR a=7
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 34 47 60 86 87 88 90 scan 0 sort 0}
do_test where7-2.481.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=47
         OR b=663
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=1015
         OR a=7
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 34 47 60 86 87 88 90 scan 0 sort 0}
do_test where7-2.482.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=88
         OR a=90
         OR a=10
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=850
         OR b=132
         OR b=198
      ORDER BY a
  }
} {6 8 10 12 18 90 scan 0 sort 0}
do_test where7-2.482.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=88
         OR a=90
         OR a=10
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=850
         OR b=132
         OR b=198
      ORDER BY a
  }
} {6 8 10 12 18 90 scan 0 sort 0}
do_test where7-2.483.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=11011
         OR e IS NULL
      ORDER BY a
  }
} {31 32 33 scan 0 sort 0}
do_test where7-2.483.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=11011
         OR e IS NULL
      ORDER BY a
  }
} {31 32 33 scan 0 sort 0}
do_test where7-2.484.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=33
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR b=1067
         OR a=11
         OR a=83
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=2002
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {4 5 6 11 19 30 33 56 71 73 82 83 97 scan 0 sort 0}
do_test where7-2.484.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=33
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR b=1067
         OR a=11
         OR a=83
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=2002
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {4 5 6 11 19 30 33 56 71 73 82 83 97 scan 0 sort 0}
do_test where7-2.485.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR c=16016
         OR b=495
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 19 27 45 46 47 48 54 67 82 scan 0 sort 0}
do_test where7-2.485.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR c=16016
         OR b=495
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 19 27 45 46 47 48 54 67 82 scan 0 sort 0}
do_test where7-2.486.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=198
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=297
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR b=781
      ORDER BY a
  }
} {2 4 5 18 20 27 46 49 51 71 72 93 95 98 scan 0 sort 0}
do_test where7-2.486.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 49 AND 51) AND a!=50)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=198
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=297
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR b=781
      ORDER BY a
  }
} {2 4 5 18 20 27 46 49 51 71 72 93 95 98 scan 0 sort 0}
do_test where7-2.487.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=509
         OR a=36
      ORDER BY a
  }
} {36 48 50 scan 0 sort 0}
do_test where7-2.487.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=509
         OR a=36
      ORDER BY a
  }
} {36 48 50 scan 0 sort 0}
do_test where7-2.488.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=498
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR d>1e10
         OR b=1023
         OR (g='qponmlk' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {27 42 93 scan 0 sort 0}
do_test where7-2.488.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=498
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR d>1e10
         OR b=1023
         OR (g='qponmlk' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {27 42 93 scan 0 sort 0}
do_test where7-2.489.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=517
         OR b=550
      ORDER BY a
  }
} {47 50 72 86 scan 0 sort 0}
do_test where7-2.489.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=517
         OR b=550
      ORDER BY a
  }
} {47 50 72 86 scan 0 sort 0}
do_test where7-2.490.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR b=718
         OR a=27
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=795
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR b=319
         OR a=53
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 5 8 16 27 29 39 53 72 scan 0 sort 0}
do_test where7-2.490.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'qrstu*')
         OR b=718
         OR a=27
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=795
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR b=319
         OR a=53
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 5 8 16 27 29 39 53 72 scan 0 sort 0}
do_test where7-2.491.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=641
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=1067
         OR b=443
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {45 47 87 97 scan 0 sort 0}
do_test where7-2.491.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=641
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=1067
         OR b=443
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {45 47 87 97 scan 0 sort 0}
do_test where7-2.492.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=6006
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 16 17 18 scan 0 sort 0}
do_test where7-2.492.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=6006
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
      ORDER BY a
  }
} {12 16 17 18 scan 0 sort 0}
do_test where7-2.493.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 97 AND 99) AND a!=98)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR a=13
         OR a=87
         OR f='jklmnopqr'
         OR a=18
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 7 9 13 18 35 44 61 70 87 91 96 97 99 scan 0 sort 0}
do_test where7-2.493.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 97 AND 99) AND a!=98)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR a=13
         OR a=87
         OR f='jklmnopqr'
         OR a=18
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 7 9 13 18 35 44 61 70 87 91 96 97 99 scan 0 sort 0}
do_test where7-2.494.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=289
      ORDER BY a
  }
} {42 44 scan 0 sort 0}
do_test where7-2.494.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=289
      ORDER BY a
  }
} {42 44 scan 0 sort 0}
do_test where7-2.495.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=993
         OR b=58
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {40 100 scan 0 sort 0}
do_test where7-2.495.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=993
         OR b=58
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {40 100 scan 0 sort 0}
do_test where7-2.496.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=2002
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b<0
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=649
         OR b=891
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 5 6 8 23 59 65 81 85 87 90 scan 0 sort 0}
do_test where7-2.496.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=2002
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b<0
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR b=649
         OR b=891
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 5 6 8 23 59 65 81 85 87 90 scan 0 sort 0}
do_test where7-2.497.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='hijklmnop'
         OR b=388
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR c=2002
         OR c=22022
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR a=52
         OR a=35
      ORDER BY a
  }
} {4 5 6 7 22 33 35 52 59 64 65 66 82 84 85 scan 0 sort 0}
do_test where7-2.497.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='hijklmnop'
         OR b=388
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR c=2002
         OR c=22022
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR a=52
         OR a=35
      ORDER BY a
  }
} {4 5 6 7 22 33 35 52 59 64 65 66 82 84 85 scan 0 sort 0}
do_test where7-2.498.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=66
         OR a=40
         OR b=253
         OR f='yzabcdefg'
      ORDER BY a
  }
} {23 24 40 50 66 76 scan 0 sort 0}
do_test where7-2.498.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=66
         OR a=40
         OR b=253
         OR f='yzabcdefg'
      ORDER BY a
  }
} {23 24 40 50 66 76 scan 0 sort 0}
do_test where7-2.499.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=87
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR c=2002
      ORDER BY a
  }
} {4 5 6 57 87 scan 0 sort 0}
do_test where7-2.499.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=87
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR c=2002
      ORDER BY a
  }
} {4 5 6 57 87 scan 0 sort 0}
do_test where7-2.500.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=429
         OR a=42
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=418
         OR f='abcdefghi'
         OR c=18018
      ORDER BY a
  }
} {26 38 39 42 45 52 53 54 78 scan 0 sort 0}
do_test where7-2.500.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=429
         OR a=42
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=418
         OR f='abcdefghi'
         OR c=18018
      ORDER BY a
  }
} {26 38 39 42 45 52 53 54 78 scan 0 sort 0}
do_test where7-2.501.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR a=62
         OR a=37
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR b=429
         OR a=7
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR a=71
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
      ORDER BY a
  }
} {5 7 11 13 22 37 39 43 52 62 71 74 scan 0 sort 0}
do_test where7-2.501.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR a=62
         OR a=37
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR b=429
         OR a=7
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
         OR a=71
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
      ORDER BY a
  }
} {5 7 11 13 22 37 39 43 52 62 71 74 scan 0 sort 0}
do_test where7-2.502.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'klmno*')
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR a=11
      ORDER BY a
  }
} {10 11 27 29 scan 0 sort 0}
do_test where7-2.502.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'klmno*')
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR a=11
      ORDER BY a
  }
} {10 11 27 29 scan 0 sort 0}
do_test where7-2.503.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=814
         OR b=1070
         OR b=407
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR b=234
      ORDER BY a
  }
} {9 13 35 37 61 73 74 82 84 87 scan 0 sort 0}
do_test where7-2.503.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR b=814
         OR b=1070
         OR b=407
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR b=234
      ORDER BY a
  }
} {9 13 35 37 61 73 74 82 84 87 scan 0 sort 0}
do_test where7-2.504.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=1100
         OR b=333
         OR ((a BETWEEN 7 AND 9) AND a!=8)
      ORDER BY a
  }
} {2 7 9 100 scan 0 sort 0}
do_test where7-2.504.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=1100
         OR b=333
         OR ((a BETWEEN 7 AND 9) AND a!=8)
      ORDER BY a
  }
} {2 7 9 100 scan 0 sort 0}
do_test where7-2.505.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=91
         OR a=41
      ORDER BY a
  }
} {41 91 scan 0 sort 1}
do_test where7-2.505.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=91
         OR a=41
      ORDER BY a
  }
} {41 91 scan 0 sort 1}
do_test where7-2.506.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=1037
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=586
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=605
      ORDER BY a
  }
} {14 37 55 59 80 scan 0 sort 0}
do_test where7-2.506.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=1037
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=586
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=605
      ORDER BY a
  }
} {14 37 55 59 80 scan 0 sort 0}
do_test where7-2.507.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=44
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 45 scan 0 sort 0}
do_test where7-2.507.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=44
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 45 scan 0 sort 0}
do_test where7-2.508.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=10
         OR a=20
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=69
         OR b=113
         OR c=9009
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
      ORDER BY a
  }
} {3 6 10 20 25 26 27 29 32 55 58 69 81 84 scan 0 sort 0}
do_test where7-2.508.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=10
         OR a=20
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=69
         OR b=113
         OR c=9009
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
      ORDER BY a
  }
} {3 6 10 20 25 26 27 29 32 55 58 69 81 84 scan 0 sort 0}
do_test where7-2.509.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=62
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=47
         OR c=18018
         OR b=715
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
      ORDER BY a
  }
} {47 52 53 54 57 62 65 86 scan 0 sort 0}
do_test where7-2.509.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=62
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=47
         OR c=18018
         OR b=715
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
      ORDER BY a
  }
} {47 52 53 54 57 62 65 86 scan 0 sort 0}
do_test where7-2.510.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=649
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
      ORDER BY a
  }
} {9 11 59 72 74 scan 0 sort 0}
do_test where7-2.510.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=649
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
      ORDER BY a
  }
} {9 11 59 72 74 scan 0 sort 0}
do_test where7-2.511.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=33033
         OR b=979
         OR b=47
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {22 62 87 89 97 98 99 scan 0 sort 0}
do_test where7-2.511.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=33033
         OR b=979
         OR b=47
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {22 62 87 89 97 98 99 scan 0 sort 0}
do_test where7-2.512.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=77
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR f='jklmnopqr'
         OR b=344
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR b=762
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {5 6 7 9 10 12 33 35 36 50 52 61 77 87 scan 0 sort 0}
do_test where7-2.512.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR a=77
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR f='jklmnopqr'
         OR b=344
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR b=762
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {5 6 7 9 10 12 33 35 36 50 52 61 77 87 scan 0 sort 0}
do_test where7-2.513.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=65
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 65 scan 0 sort 0}
do_test where7-2.513.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=65
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 65 scan 0 sort 0}
do_test where7-2.514.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=52
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR c=9009
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR b=1034
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=784
         OR ((a BETWEEN 36 AND 38) AND a!=37)
      ORDER BY a
  }
} {1 16 18 25 26 27 36 38 42 44 52 64 70 94 96 scan 0 sort 0}
do_test where7-2.514.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=52
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR c=9009
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR b=1034
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=784
         OR ((a BETWEEN 36 AND 38) AND a!=37)
      ORDER BY a
  }
} {1 16 18 25 26 27 36 38 42 44 52 64 70 94 96 scan 0 sort 0}
do_test where7-2.515.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR c=15015
      ORDER BY a
  }
} {20 43 44 45 scan 0 sort 0}
do_test where7-2.515.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR c=15015
      ORDER BY a
  }
} {20 43 44 45 scan 0 sort 0}
do_test where7-2.516.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=979
         OR a=15
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=209
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=44
         OR b=971
      ORDER BY a
  }
} {4 15 19 24 26 29 30 31 70 89 scan 0 sort 0}
do_test where7-2.516.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=979
         OR a=15
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=209
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=44
         OR b=971
      ORDER BY a
  }
} {4 15 19 24 26 29 30 31 70 89 scan 0 sort 0}
do_test where7-2.517.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=894
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR a=6
         OR a=40
         OR b=245
         OR a=84
         OR c=4004
         OR a=66
         OR a=35
         OR a=14
      ORDER BY a
  }
} {6 10 11 12 14 35 40 58 60 66 84 scan 0 sort 0}
do_test where7-2.517.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=894
         OR ((a BETWEEN 58 AND 60) AND a!=59)
         OR a=6
         OR a=40
         OR b=245
         OR a=84
         OR c=4004
         OR a=66
         OR a=35
         OR a=14
      ORDER BY a
  }
} {6 10 11 12 14 35 40 58 60 66 84 scan 0 sort 0}
do_test where7-2.518.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1001
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR a=1
         OR b=374
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR c=9009
         OR b=770
      ORDER BY a
  }
} {1 4 25 26 27 30 34 56 57 70 82 91 scan 0 sort 0}
do_test where7-2.518.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1001
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR a=1
         OR b=374
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR c=9009
         OR b=770
      ORDER BY a
  }
} {1 4 25 26 27 30 34 56 57 70 82 91 scan 0 sort 0}
do_test where7-2.519.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=13
         OR b=1037
         OR b=267
         OR b=165
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR a=49
      ORDER BY a
  }
} {13 15 30 32 49 65 scan 0 sort 0}
do_test where7-2.519.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=13
         OR b=1037
         OR b=267
         OR b=165
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR a=49
      ORDER BY a
  }
} {13 15 30 32 49 65 scan 0 sort 0}
do_test where7-2.520.1 {
  count_steps {
     SELECT a FROM t2
      WHERE g IS NULL
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR b=1026
         OR b=344
      ORDER BY a
  }
} {24 50 scan 0 sort 0}
do_test where7-2.520.2 {
  count_steps {
     SELECT a FROM t3
      WHERE g IS NULL
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR b=1026
         OR b=344
      ORDER BY a
  }
} {24 50 scan 0 sort 0}
do_test where7-2.521.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 10 AND 12) AND a!=11)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=57
         OR f='pqrstuvwx'
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=223
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 15 17 21 33 41 43 57 67 69 75 93 95 scan 0 sort 0}
do_test where7-2.521.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 10 AND 12) AND a!=11)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=57
         OR f='pqrstuvwx'
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=223
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 12 15 17 21 33 41 43 57 67 69 75 93 95 scan 0 sort 0}
do_test where7-2.522.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=124
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=14
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR b=704
         OR f='wxyzabcde'
         OR b=1048
      ORDER BY a
  }
} {1 6 8 22 48 64 74 80 89 100 scan 0 sort 0}
do_test where7-2.522.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=124
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=14
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR b=704
         OR f='wxyzabcde'
         OR b=1048
      ORDER BY a
  }
} {1 6 8 22 48 64 74 80 89 100 scan 0 sort 0}
do_test where7-2.523.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=32
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR b=781
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=1012
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=740
         OR b=861
         OR 1000000<b
      ORDER BY a
  }
} {4 5 7 27 29 32 39 41 71 74 92 scan 0 sort 0}
do_test where7-2.523.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=32
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR b=781
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=1012
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR b=740
         OR b=861
         OR 1000000<b
      ORDER BY a
  }
} {4 5 7 27 29 32 39 41 71 74 92 scan 0 sort 0}
do_test where7-2.524.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=847
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR c=12012
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=300
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=704
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {3 6 10 12 18 21 31 33 34 35 36 47 64 66 68 73 77 99 scan 0 sort 0}
do_test where7-2.524.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=847
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR c=12012
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=300
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR b=704
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {3 6 10 12 18 21 31 33 34 35 36 47 64 66 68 73 77 99 scan 0 sort 0}
do_test where7-2.525.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='tuvwxyzab'
         OR a=22
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=817
         OR b=1078
         OR c=17017
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=542
         OR b=396
         OR b=784
      ORDER BY a
  }
} {13 19 22 26 28 36 45 49 50 51 70 71 97 98 scan 0 sort 0}
do_test where7-2.525.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='tuvwxyzab'
         OR a=22
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=817
         OR b=1078
         OR c=17017
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=542
         OR b=396
         OR b=784
      ORDER BY a
  }
} {13 19 22 26 28 36 45 49 50 51 70 71 97 98 scan 0 sort 0}
do_test where7-2.526.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=39
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=40
      ORDER BY a
  }
} {10 29 31 35 39 40 43 45 scan 0 sort 0}
do_test where7-2.526.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=39
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=40
      ORDER BY a
  }
} {10 29 31 35 39 40 43 45 scan 0 sort 0}
do_test where7-2.527.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 72 AND 74) AND a!=73)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=454
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {68 72 74 93 scan 0 sort 0}
do_test where7-2.527.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 72 AND 74) AND a!=73)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=454
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {68 72 74 93 scan 0 sort 0}
do_test where7-2.528.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=891
         OR b=594
         OR b=253
         OR b=550
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
      ORDER BY a
  }
} {3 23 29 50 54 55 81 scan 0 sort 0}
do_test where7-2.528.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=891
         OR b=594
         OR b=253
         OR b=550
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
      ORDER BY a
  }
} {3 23 29 50 54 55 81 scan 0 sort 0}
do_test where7-2.529.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {4 30 56 63 74 76 82 scan 0 sort 0}
do_test where7-2.529.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {4 30 56 63 74 76 82 scan 0 sort 0}
do_test where7-2.530.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=36
         OR a=40
         OR b=1059
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 31 39 40 57 76 78 83 96 scan 0 sort 0}
do_test where7-2.530.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=36
         OR a=40
         OR b=1059
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 31 39 40 57 76 78 83 96 scan 0 sort 0}
do_test where7-2.531.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='tuvwxyzab'
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 19 27 45 71 80 97 scan 0 sort 0}
do_test where7-2.531.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='tuvwxyzab'
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 19 27 45 71 80 97 scan 0 sort 0}
do_test where7-2.532.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=751
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR f='rstuvwxyz'
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR b=209
         OR c=23023
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=110
         OR b=55
         OR b=267
      ORDER BY a
  }
} {5 7 10 17 19 40 42 43 67 68 69 75 91 95 scan 0 sort 0}
do_test where7-2.532.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=751
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR f='rstuvwxyz'
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR b=209
         OR c=23023
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=110
         OR b=55
         OR b=267
      ORDER BY a
  }
} {5 7 10 17 19 40 42 43 67 68 69 75 91 95 scan 0 sort 0}
do_test where7-2.533.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=495
      ORDER BY a
  }
} {45 46 53 scan 0 sort 0}
do_test where7-2.533.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=495
      ORDER BY a
  }
} {45 46 53 scan 0 sort 0}
do_test where7-2.534.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {16 82 84 scan 0 sort 0}
do_test where7-2.534.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 82 AND 84) AND a!=83)
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {16 82 84 scan 0 sort 0}
do_test where7-2.535.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=30
         OR c=13013
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR c=11011
      ORDER BY a
  }
} {25 30 31 32 33 37 38 39 51 70 72 77 scan 0 sort 0}
do_test where7-2.535.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=30
         OR c=13013
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR c=11011
      ORDER BY a
  }
} {25 30 31 32 33 37 38 39 51 70 72 77 scan 0 sort 0}
do_test where7-2.536.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
      ORDER BY a
  }
} {69 93 scan 0 sort 0}
do_test where7-2.536.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
      ORDER BY a
  }
} {69 93 scan 0 sort 0}
do_test where7-2.537.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=13013
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR a=72
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=96
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=352
      ORDER BY a
  }
} {16 19 21 32 37 38 39 40 42 68 72 81 90 94 96 99 scan 0 sort 0}
do_test where7-2.537.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=13013
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR a=72
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=96
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR b=352
      ORDER BY a
  }
} {16 19 21 32 37 38 39 40 42 68 72 81 90 94 96 99 scan 0 sort 0}
do_test where7-2.538.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR f='stuvwxyza'
         OR a=40
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {6 8 18 25 30 32 34 39 40 44 58 63 70 84 86 95 96 scan 0 sort 0}
do_test where7-2.538.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 84 AND 86) AND a!=85)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR f='stuvwxyza'
         OR a=40
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {6 8 18 25 30 32 34 39 40 44 58 63 70 84 86 95 96 scan 0 sort 0}
do_test where7-2.539.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='stuvwxyza'
         OR b=916
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=92
         OR b=927
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=190
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR b=465
         OR a=9
      ORDER BY a
  }
} {9 10 18 20 22 32 36 44 62 70 88 92 96 scan 0 sort 0}
do_test where7-2.539.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='stuvwxyza'
         OR b=916
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=92
         OR b=927
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=190
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR b=465
         OR a=9
      ORDER BY a
  }
} {9 10 18 20 22 32 36 44 62 70 88 92 96 scan 0 sort 0}
do_test where7-2.540.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='jklmnopqr'
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=704
      ORDER BY a
  }
} {9 32 34 35 61 64 71 73 87 99 scan 0 sort 0}
do_test where7-2.540.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='jklmnopqr'
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=704
      ORDER BY a
  }
} {9 32 34 35 61 64 71 73 87 99 scan 0 sort 0}
do_test where7-2.541.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=22
         OR b=1023
      ORDER BY a
  }
} {2 93 scan 0 sort 1}
do_test where7-2.541.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=22
         OR b=1023
      ORDER BY a
  }
} {2 93 scan 0 sort 1}
do_test where7-2.542.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=2002
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR e IS NULL
         OR b=839
         OR b=883
      ORDER BY a
  }
} {4 5 6 28 30 63 65 92 94 99 scan 0 sort 0}
do_test where7-2.542.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=2002
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR e IS NULL
         OR b=839
         OR b=883
      ORDER BY a
  }
} {4 5 6 28 30 63 65 92 94 99 scan 0 sort 0}
do_test where7-2.543.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=47
         OR b=113
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR a=19
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=88
         OR b=1004
         OR b=341
      ORDER BY a
  }
} {8 19 22 31 78 scan 0 sort 0}
do_test where7-2.543.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=47
         OR b=113
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR a=19
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR b=88
         OR b=1004
         OR b=341
      ORDER BY a
  }
} {8 19 22 31 78 scan 0 sort 0}
do_test where7-2.544.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=330
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR b=157
         OR b=982
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=57
         OR c=21021
      ORDER BY a
  }
} {30 31 35 40 53 57 61 62 63 91 scan 0 sort 0}
do_test where7-2.544.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=330
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR b=157
         OR b=982
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=57
         OR c=21021
      ORDER BY a
  }
} {30 31 35 40 53 57 61 62 63 91 scan 0 sort 0}
do_test where7-2.545.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR b=440
         OR a=48
         OR a=5
      ORDER BY a
  }
} {5 29 31 40 48 scan 0 sort 0}
do_test where7-2.545.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 29 AND 31) AND a!=30)
         OR b=440
         OR a=48
         OR a=5
      ORDER BY a
  }
} {5 29 31 40 48 scan 0 sort 0}
do_test where7-2.546.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=575
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {66 83 85 87 scan 0 sort 0}
do_test where7-2.546.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=575
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {66 83 85 87 scan 0 sort 0}
do_test where7-2.547.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=913
         OR a=63
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
      ORDER BY a
  }
} {63 80 83 scan 0 sort 0}
do_test where7-2.547.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=913
         OR a=63
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
      ORDER BY a
  }
} {63 80 83 scan 0 sort 0}
do_test where7-2.548.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {13 39 41 46 65 91 scan 0 sort 0}
do_test where7-2.548.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {13 39 41 46 65 91 scan 0 sort 0}
do_test where7-2.549.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 94 AND 96) AND a!=95)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {59 90 94 96 scan 0 sort 0}
do_test where7-2.549.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 94 AND 96) AND a!=95)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {59 90 94 96 scan 0 sort 0}
do_test where7-2.550.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
         OR c=10010
         OR a=77
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR a=64
         OR a=58
         OR a=80
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=102
      ORDER BY a
  }
} {14 28 29 30 46 50 52 58 64 77 80 86 scan 0 sort 0}
do_test where7-2.550.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'ijklm*')
         OR c=10010
         OR a=77
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
         OR a=64
         OR a=58
         OR a=80
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=102
      ORDER BY a
  }
} {14 28 29 30 46 50 52 58 64 77 80 86 scan 0 sort 0}
do_test where7-2.551.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=718
         OR b=806
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR b=597
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR b=454
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=586
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {3 10 12 18 20 29 36 55 62 65 81 88 98 100 scan 0 sort 0}
do_test where7-2.551.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=718
         OR b=806
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR b=597
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR b=454
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=586
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
      ORDER BY a
  }
} {3 10 12 18 20 29 36 55 62 65 81 88 98 100 scan 0 sort 0}
do_test where7-2.552.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=55
         OR b=1048
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {5 18 20 43 100 scan 0 sort 0}
do_test where7-2.552.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=55
         OR b=1048
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {5 18 20 43 100 scan 0 sort 0}
do_test where7-2.553.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1100
         OR a=37
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=506
      ORDER BY a
  }
} {8 34 37 46 60 86 100 scan 0 sort 0}
do_test where7-2.553.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1100
         OR a=37
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=506
      ORDER BY a
  }
} {8 34 37 46 60 86 100 scan 0 sort 0}
do_test where7-2.554.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=484
         OR a=7
         OR c=9009
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR b=333
         OR c=23023
         OR b=847
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {7 25 26 27 44 67 68 69 77 88 90 scan 0 sort 0}
do_test where7-2.554.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=484
         OR a=7
         OR c=9009
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR b=333
         OR c=23023
         OR b=847
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {7 25 26 27 44 67 68 69 77 88 90 scan 0 sort 0}
do_test where7-2.555.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=6
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=451
         OR a=33
      ORDER BY a
  }
} {6 33 41 79 scan 0 sort 0}
do_test where7-2.555.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=6
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=451
         OR a=33
      ORDER BY a
  }
} {6 33 41 79 scan 0 sort 0}
do_test where7-2.556.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=704
      ORDER BY a
  }
} {18 20 64 68 74 scan 0 sort 0}
do_test where7-2.556.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=704
      ORDER BY a
  }
} {18 20 64 68 74 scan 0 sort 0}
do_test where7-2.557.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=960
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=289
      ORDER BY a
  }
} {56 98 scan 0 sort 0}
do_test where7-2.557.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR b=960
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=289
      ORDER BY a
  }
} {56 98 scan 0 sort 0}
do_test where7-2.558.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=619
         OR b=993
         OR a=52
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {52 55 57 73 76 scan 0 sort 0}
do_test where7-2.558.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=619
         OR b=993
         OR a=52
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {52 55 57 73 76 scan 0 sort 0}
do_test where7-2.559.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR a=8
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 8 18 23 49 61 63 64 75 89 91 97 100 scan 0 sort 0}
do_test where7-2.559.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR a=8
         OR (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR (d>=100.0 AND d<101.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 8 18 23 49 61 63 64 75 89 91 97 100 scan 0 sort 0}
do_test where7-2.560.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR a=12
         OR f='qrstuvwxy'
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR c=25025
         OR a=60
         OR b=506
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 7 8 12 16 42 46 60 68 73 74 75 94 scan 0 sort 0}
do_test where7-2.560.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR a=12
         OR f='qrstuvwxy'
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR c=25025
         OR a=60
         OR b=506
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 6 7 8 12 16 42 46 60 68 73 74 75 94 scan 0 sort 0}
do_test where7-2.561.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=553
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR b=58
      ORDER BY a
  }
} {63 65 76 scan 0 sort 0}
do_test where7-2.561.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=553
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR b=58
      ORDER BY a
  }
} {63 65 76 scan 0 sort 0}
do_test where7-2.562.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'cdefg*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=97
         OR a=20
      ORDER BY a
  }
} {6 20 28 32 58 84 97 98 scan 0 sort 0}
do_test where7-2.562.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'cdefg*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=97
         OR a=20
      ORDER BY a
  }
} {6 20 28 32 58 84 97 98 scan 0 sort 0}
do_test where7-2.563.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=836
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=927
         OR a=21
         OR b=872
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR c=32032
      ORDER BY a
  }
} {21 53 70 76 94 95 96 scan 0 sort 0}
do_test where7-2.563.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=836
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR b=927
         OR a=21
         OR b=872
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR c=32032
      ORDER BY a
  }
} {21 53 70 76 94 95 96 scan 0 sort 0}
do_test where7-2.564.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=850
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=110
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=913
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 10 14 16 33 39 41 67 81 83 scan 0 sort 0}
do_test where7-2.564.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=850
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=110
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=913
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 10 14 16 33 39 41 67 81 83 scan 0 sort 0}
do_test where7-2.565.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=696
         OR c=20020
         OR c=31031
      ORDER BY a
  }
} {58 59 60 91 92 93 scan 0 sort 0}
do_test where7-2.565.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=696
         OR c=20020
         OR c=31031
      ORDER BY a
  }
} {58 59 60 91 92 93 scan 0 sort 0}
do_test where7-2.566.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR b=462
         OR b=916
         OR ((a BETWEEN 59 AND 61) AND a!=60)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR f='fghijklmn'
      ORDER BY a
  }
} {5 11 29 31 34 37 42 57 59 61 63 83 88 89 98 99 100 scan 0 sort 0}
do_test where7-2.566.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR b=462
         OR b=916
         OR ((a BETWEEN 59 AND 61) AND a!=60)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR f='fghijklmn'
      ORDER BY a
  }
} {5 11 29 31 34 37 42 57 59 61 63 83 88 89 98 99 100 scan 0 sort 0}
do_test where7-2.567.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b<0
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR a=42
         OR (g='srqponm' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {5 7 8 9 31 40 42 76 83 97 scan 0 sort 0}
do_test where7-2.567.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b<0
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR a=42
         OR (g='srqponm' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {5 7 8 9 31 40 42 76 83 97 scan 0 sort 0}
do_test where7-2.568.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR a=73
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=18
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR b=410
         OR a=79
         OR a=53
      ORDER BY a
  }
} {18 31 33 53 73 79 83 92 94 scan 0 sort 0}
do_test where7-2.568.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR a=73
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=18
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR b=410
         OR a=79
         OR a=53
      ORDER BY a
  }
} {18 31 33 53 73 79 83 92 94 scan 0 sort 0}
do_test where7-2.569.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=715
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR f='yzabcdefg'
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR b=11
      ORDER BY a
  }
} {1 20 22 24 50 65 67 76 scan 0 sort 0}
do_test where7-2.569.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=715
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR f='yzabcdefg'
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR b=11
      ORDER BY a
  }
} {1 20 22 24 50 65 67 76 scan 0 sort 0}
do_test where7-2.570.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=1070
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR c=27027
         OR a=59
         OR c=31031
      ORDER BY a
  }
} {34 59 67 79 80 81 91 92 93 scan 0 sort 0}
do_test where7-2.570.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=1070
         OR (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR c=27027
         OR a=59
         OR c=31031
      ORDER BY a
  }
} {34 59 67 79 80 81 91 92 93 scan 0 sort 0}
do_test where7-2.571.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR a=9
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR c=19019
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=121
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR c=18018
      ORDER BY a
  }
} {9 11 13 32 33 37 52 53 54 55 56 57 63 65 67 89 scan 0 sort 0}
do_test where7-2.571.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR a=9
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR c=19019
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=121
         OR (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR c=18018
      ORDER BY a
  }
} {9 11 13 32 33 37 52 53 54 55 56 57 63 65 67 89 scan 0 sort 0}
do_test where7-2.572.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=462
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR ((a BETWEEN 59 AND 61) AND a!=60)
      ORDER BY a
  }
} {42 59 61 92 scan 0 sort 0}
do_test where7-2.572.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=462
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR ((a BETWEEN 59 AND 61) AND a!=60)
      ORDER BY a
  }
} {42 59 61 92 scan 0 sort 0}
do_test where7-2.573.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='nmlkjih' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=110
         OR a=88
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 36 38 51 54 88 scan 0 sort 0}
do_test where7-2.573.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='nmlkjih' AND f GLOB 'cdefg*')
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=110
         OR a=88
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 36 38 51 54 88 scan 0 sort 0}
do_test where7-2.574.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 8 AND 10) AND a!=9)
         OR b=399
         OR b=264
      ORDER BY a
  }
} {8 10 24 26 scan 0 sort 0}
do_test where7-2.574.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 8 AND 10) AND a!=9)
         OR b=399
         OR b=264
      ORDER BY a
  }
} {8 10 24 26 scan 0 sort 0}
do_test where7-2.575.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=300
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=14
         OR c=1001
         OR b=751
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR b=858
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='jihgfed' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {1 2 3 9 14 35 36 38 61 65 76 78 87 91 scan 0 sort 0}
do_test where7-2.575.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=300
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=14
         OR c=1001
         OR b=751
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR b=858
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='jihgfed' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {1 2 3 9 14 35 36 38 61 65 76 78 87 91 scan 0 sort 0}
do_test where7-2.576.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=575
         OR b=209
         OR b=726
         OR c=15015
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR c=17017
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR c=16016
      ORDER BY a
  }
} {19 36 43 44 45 46 47 48 49 50 51 66 76 78 scan 0 sort 0}
do_test where7-2.576.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=575
         OR b=209
         OR b=726
         OR c=15015
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR c=17017
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR c=16016
      ORDER BY a
  }
} {19 36 43 44 45 46 47 48 49 50 51 66 76 78 scan 0 sort 0}
do_test where7-2.577.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=30030
         OR c=3003
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR b=69
      ORDER BY a
  }
} {7 8 9 13 38 88 89 90 scan 0 sort 0}
do_test where7-2.577.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR c=30030
         OR c=3003
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR b=69
      ORDER BY a
  }
} {7 8 9 13 38 88 89 90 scan 0 sort 0}
do_test where7-2.578.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='nopqrstuv'
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=322
      ORDER BY a
  }
} {13 18 20 39 65 91 scan 0 sort 0}
do_test where7-2.578.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='nopqrstuv'
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=322
      ORDER BY a
  }
} {13 18 20 39 65 91 scan 0 sort 0}
do_test where7-2.579.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=41
         OR b=1103
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=773
      ORDER BY a
  }
} {18 41 44 70 96 scan 0 sort 0}
do_test where7-2.579.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=41
         OR b=1103
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=773
      ORDER BY a
  }
} {18 41 44 70 96 scan 0 sort 0}
do_test where7-2.580.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
      ORDER BY a
  }
} {6 8 95 scan 0 sort 0}
do_test where7-2.580.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 6 AND 8) AND a!=7)
      ORDER BY a
  }
} {6 8 95 scan 0 sort 0}
do_test where7-2.581.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1004
         OR d>1e10
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {72 scan 0 sort 0}
do_test where7-2.581.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1004
         OR d>1e10
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
      ORDER BY a
  }
} {72 scan 0 sort 0}
do_test where7-2.582.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=858
         OR a=47
         OR a=59
         OR b=902
         OR b=740
         OR b=1059
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {43 45 47 59 78 82 96 98 scan 0 sort 0}
do_test where7-2.582.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=858
         OR a=47
         OR a=59
         OR b=902
         OR b=740
         OR b=1059
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {43 45 47 59 78 82 96 98 scan 0 sort 0}
do_test where7-2.583.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {83 99 scan 0 sort 0}
do_test where7-2.583.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {83 99 scan 0 sort 0}
do_test where7-2.584.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=388
         OR b=11
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=960
         OR b=718
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR b=935
      ORDER BY a
  }
} {1 56 85 95 scan 0 sort 0}
do_test where7-2.584.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=388
         OR b=11
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR b=960
         OR b=718
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR b=935
      ORDER BY a
  }
} {1 56 85 95 scan 0 sort 0}
do_test where7-2.585.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=366
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=179
         OR b=110
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 10 12 13 38 62 64 68 90 scan 0 sort 0}
do_test where7-2.585.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=366
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=179
         OR b=110
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 10 12 13 38 62 64 68 90 scan 0 sort 0}
do_test where7-2.586.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=146
         OR b=374
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {34 69 scan 0 sort 0}
do_test where7-2.586.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=146
         OR b=374
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {34 69 scan 0 sort 0}
do_test where7-2.587.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=89
         OR a=97
      ORDER BY a
  }
} {89 97 scan 0 sort 1}
do_test where7-2.587.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=89
         OR a=97
      ORDER BY a
  }
} {89 97 scan 0 sort 1}
do_test where7-2.588.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=146
         OR f='ijklmnopq'
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=99
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR c=8008
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {8 9 13 21 22 23 24 34 36 47 51 53 60 73 80 86 98 99 scan 0 sort 0}
do_test where7-2.588.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=146
         OR f='ijklmnopq'
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=99
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR c=8008
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {8 9 13 21 22 23 24 34 36 47 51 53 60 73 80 86 98 99 scan 0 sort 0}
do_test where7-2.589.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=88
         OR b=847
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR f='hijklmnop'
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=223
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=440
      ORDER BY a
  }
} {4 6 7 8 23 25 30 33 40 59 77 85 scan 0 sort 0}
do_test where7-2.589.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=88
         OR b=847
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR f='hijklmnop'
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=223
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR b=440
      ORDER BY a
  }
} {4 6 7 8 23 25 30 33 40 59 77 85 scan 0 sort 0}
do_test where7-2.590.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=54
         OR a=68
         OR b=91
      ORDER BY a
  }
} {54 68 69 95 scan 0 sort 0}
do_test where7-2.590.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=54
         OR a=68
         OR b=91
      ORDER BY a
  }
} {54 68 69 95 scan 0 sort 0}
do_test where7-2.591.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR b=968
         OR c=2002
         OR b=1081
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR b=847
      ORDER BY a
  }
} {4 5 6 9 63 77 88 scan 0 sort 0}
do_test where7-2.591.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR b=968
         OR c=2002
         OR b=1081
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR b=847
      ORDER BY a
  }
} {4 5 6 9 63 77 88 scan 0 sort 0}
do_test where7-2.592.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=71
         OR b=1056
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=47
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR a=22
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {22 24 30 34 36 47 71 75 77 81 83 96 scan 0 sort 0}
do_test where7-2.592.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=71
         OR b=1056
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=47
         OR (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR a=22
         OR (d>=24.0 AND d<25.0 AND d NOT NULL)
      ORDER BY a
  }
} {22 24 30 34 36 47 71 75 77 81 83 96 scan 0 sort 0}
do_test where7-2.593.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=817
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
      ORDER BY a
  }
} {35 54 56 scan 0 sort 0}
do_test where7-2.593.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=817
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
      ORDER BY a
  }
} {35 54 56 scan 0 sort 0}
do_test where7-2.594.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=179
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR b=814
         OR a=4
         OR c=6006
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR 1000000<b
      ORDER BY a
  }
} {4 16 17 18 53 54 56 74 75 77 scan 0 sort 0}
do_test where7-2.594.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=179
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR b=814
         OR a=4
         OR c=6006
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR 1000000<b
      ORDER BY a
  }
} {4 16 17 18 53 54 56 74 75 77 scan 0 sort 0}
do_test where7-2.595.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=33033
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=190
         OR a=26
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=220
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=44
         OR c>=34035
         OR b=935
         OR b=102
      ORDER BY a
  }
} {4 20 26 40 42 76 78 85 89 91 97 98 99 scan 0 sort 0}
do_test where7-2.595.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=33033
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=190
         OR a=26
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=220
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=44
         OR c>=34035
         OR b=935
         OR b=102
      ORDER BY a
  }
} {4 20 26 40 42 76 78 85 89 91 97 98 99 scan 0 sort 0}
do_test where7-2.596.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=146
         OR a=37
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR f='jklmnopqr'
         OR b=770
         OR b=850
         OR b=36
         OR c=27027
         OR a=97
      ORDER BY a
  }
} {9 35 37 61 70 79 80 81 87 88 97 99 scan 0 sort 0}
do_test where7-2.596.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 99 AND 101) AND a!=100)
         OR b=146
         OR a=37
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR f='jklmnopqr'
         OR b=770
         OR b=850
         OR b=36
         OR c=27027
         OR a=97
      ORDER BY a
  }
} {9 35 37 61 70 79 80 81 87 88 97 99 scan 0 sort 0}
do_test where7-2.597.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=56
         OR b=407
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
      ORDER BY a
  }
} {12 34 37 38 56 64 90 scan 0 sort 0}
do_test where7-2.597.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=56
         OR b=407
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
      ORDER BY a
  }
} {12 34 37 38 56 64 90 scan 0 sort 0}
do_test where7-2.598.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=264
         OR a=67
         OR f='wxyzabcde'
         OR a=41
         OR b=396
         OR a=3
         OR ((a BETWEEN 56 AND 58) AND a!=57)
      ORDER BY a
  }
} {3 22 24 36 41 48 56 58 67 74 100 scan 0 sort 0}
do_test where7-2.598.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=264
         OR a=67
         OR f='wxyzabcde'
         OR a=41
         OR b=396
         OR a=3
         OR ((a BETWEEN 56 AND 58) AND a!=57)
      ORDER BY a
  }
} {3 22 24 36 41 48 56 58 67 74 100 scan 0 sort 0}
do_test where7-2.599.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=63
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR a=33
      ORDER BY a
  }
} {33 34 63 scan 0 sort 0}
do_test where7-2.599.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=63
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR a=33
      ORDER BY a
  }
} {33 34 63 scan 0 sort 0}
do_test where7-2.600.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=8008
         OR a=54
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR a=83
         OR b=121
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR b=1037
         OR b=253
      ORDER BY a
  }
} {5 11 22 23 24 29 31 54 56 57 58 83 scan 0 sort 0}
do_test where7-2.600.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=8008
         OR a=54
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR a=83
         OR b=121
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR b=1037
         OR b=253
      ORDER BY a
  }
} {5 11 22 23 24 29 31 54 56 57 58 83 scan 0 sort 0}
do_test where7-2.601.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=71
         OR b=806
         OR c=31031
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR c=16016
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 49 AND 51) AND a!=50)
      ORDER BY a
  }
} {41 46 47 48 49 51 53 70 71 76 78 91 92 93 scan 0 sort 0}
do_test where7-2.601.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=71
         OR b=806
         OR c=31031
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR c=16016
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 49 AND 51) AND a!=50)
      ORDER BY a
  }
} {41 46 47 48 49 51 53 70 71 76 78 91 92 93 scan 0 sort 0}
do_test where7-2.602.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=69
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=396
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR a=100
         OR a=56
         OR b=674
      ORDER BY a
  }
} {36 39 40 46 48 56 61 63 69 100 scan 0 sort 0}
do_test where7-2.602.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=69
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=396
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR a=100
         OR a=56
         OR b=674
      ORDER BY a
  }
} {36 39 40 46 48 56 61 63 69 100 scan 0 sort 0}
do_test where7-2.603.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=91
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR b=69
         OR a=14
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR f='yzabcdefg'
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 14 15 24 39 46 50 53 58 76 78 91 97 scan 0 sort 0}
do_test where7-2.603.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=91
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR b=69
         OR a=14
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR f='yzabcdefg'
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 14 15 24 39 46 50 53 58 76 78 91 97 scan 0 sort 0}
do_test where7-2.604.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='nmlkjih' AND f GLOB 'efghi*')
         OR a=78
         OR a=4
         OR b=619
         OR a=45
         OR b=1067
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=982
         OR a=52
      ORDER BY a
  }
} {4 44 45 52 56 78 97 scan 0 sort 0}
do_test where7-2.604.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='nmlkjih' AND f GLOB 'efghi*')
         OR a=78
         OR a=4
         OR b=619
         OR a=45
         OR b=1067
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=982
         OR a=52
      ORDER BY a
  }
} {4 44 45 52 56 78 97 scan 0 sort 0}
do_test where7-2.605.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {43 56 58 scan 0 sort 0}
do_test where7-2.605.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {43 56 58 scan 0 sort 0}
do_test where7-2.606.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=341
         OR f='rstuvwxyz'
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=440
         OR a=27
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {17 27 31 40 42 43 69 95 97 scan 0 sort 0}
do_test where7-2.606.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=341
         OR f='rstuvwxyz'
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=440
         OR a=27
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {17 27 31 40 42 43 69 95 97 scan 0 sort 0}
do_test where7-2.607.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=696
         OR b=1056
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR a=83
         OR c=24024
         OR a=52
         OR b=300
         OR f='rstuvwxyz'
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {4 17 40 43 52 69 70 71 72 82 83 84 95 96 scan 0 sort 0}
do_test where7-2.607.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=696
         OR b=1056
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR a=83
         OR c=24024
         OR a=52
         OR b=300
         OR f='rstuvwxyz'
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {4 17 40 43 52 69 70 71 72 82 83 84 95 96 scan 0 sort 0}
do_test where7-2.608.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=960
         OR b=806
         OR b=69
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR ((a BETWEEN 8 AND 10) AND a!=9)
      ORDER BY a
  }
} {8 10 95 97 scan 0 sort 0}
do_test where7-2.608.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=960
         OR b=806
         OR b=69
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR ((a BETWEEN 8 AND 10) AND a!=9)
      ORDER BY a
  }
} {8 10 95 97 scan 0 sort 0}
do_test where7-2.609.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=605
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR a=24
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 48 50 55 62 74 84 scan 0 sort 0}
do_test where7-2.609.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=605
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR a=24
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 48 50 55 62 74 84 scan 0 sort 0}
do_test where7-2.610.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=3
         OR a=24
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=91
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR a=65
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {3 8 14 16 24 54 56 65 91 97 scan 0 sort 0}
do_test where7-2.610.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=3
         OR a=24
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=91
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR a=65
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {3 8 14 16 24 54 56 65 91 97 scan 0 sort 0}
do_test where7-2.611.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=333
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=465
         OR c=32032
         OR b=396
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR c=19019
         OR b=671
      ORDER BY a
  }
} {9 13 35 36 55 56 57 61 87 94 95 96 scan 0 sort 0}
do_test where7-2.611.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=333
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=465
         OR c=32032
         OR b=396
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR c=19019
         OR b=671
      ORDER BY a
  }
} {9 13 35 36 55 56 57 61 87 94 95 96 scan 0 sort 0}
do_test where7-2.612.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=495
         OR a=23
      ORDER BY a
  }
} {23 45 scan 0 sort 0}
do_test where7-2.612.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=495
         OR a=23
      ORDER BY a
  }
} {23 45 scan 0 sort 0}
do_test where7-2.613.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='tuvwxyzab'
         OR a=81
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR a=55
         OR b=1015
      ORDER BY a
  }
} {19 35 37 44 45 55 58 71 81 97 scan 0 sort 0}
do_test where7-2.613.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=44.0 AND d<45.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='tuvwxyzab'
         OR a=81
         OR (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR a=55
         OR b=1015
      ORDER BY a
  }
} {19 35 37 44 45 55 58 71 81 97 scan 0 sort 0}
do_test where7-2.614.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=75
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR c=8008
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {17 19 22 23 24 46 63 65 75 87 92 scan 0 sort 0}
do_test where7-2.614.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=75
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR c=8008
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {17 19 22 23 24 46 63 65 75 87 92 scan 0 sort 0}
do_test where7-2.615.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=51
         OR b=278
         OR a=49
         OR f IS NULL
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR b=1056
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=66
      ORDER BY a
  }
} {3 6 9 11 13 44 46 49 51 52 54 96 scan 0 sort 0}
do_test where7-2.615.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=51
         OR b=278
         OR a=49
         OR f IS NULL
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR b=1056
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=66
      ORDER BY a
  }
} {3 6 9 11 13 44 46 49 51 52 54 96 scan 0 sort 0}
do_test where7-2.616.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=418
         OR c=6006
         OR b=209
         OR a=83
         OR b=880
      ORDER BY a
  }
} {13 16 17 18 19 38 80 83 scan 0 sort 0}
do_test where7-2.616.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=418
         OR c=6006
         OR b=209
         OR a=83
         OR b=880
      ORDER BY a
  }
} {13 16 17 18 19 38 80 83 scan 0 sort 0}
do_test where7-2.617.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=762
         OR b=740
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR b=333
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
      ORDER BY a
  }
} {5 20 21 22 23 26 59 60 65 67 71 scan 0 sort 0}
do_test where7-2.617.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=762
         OR b=740
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR b=333
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'abcde*')
      ORDER BY a
  }
} {5 20 21 22 23 26 59 60 65 67 71 scan 0 sort 0}
do_test where7-2.618.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=539
         OR f='zabcdefgh'
         OR d>1e10
         OR c=5005
         OR b=22
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR a=84
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 13 14 15 21 24 25 47 49 51 56 73 77 84 99 scan 0 sort 0}
do_test where7-2.618.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=539
         OR f='zabcdefgh'
         OR d>1e10
         OR c=5005
         OR b=22
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR a=84
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 13 14 15 21 24 25 47 49 51 56 73 77 84 99 scan 0 sort 0}
do_test where7-2.619.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=1100
         OR g IS NULL
         OR a=100
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR b=762
      ORDER BY a
  }
} {39 40 41 45 98 100 scan 0 sort 0}
do_test where7-2.619.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR b=1100
         OR g IS NULL
         OR a=100
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR b=762
      ORDER BY a
  }
} {39 40 41 45 98 100 scan 0 sort 0}
do_test where7-2.620.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=8
         OR a=17
         OR b=718
      ORDER BY a
  }
} {8 17 19 scan 0 sort 0}
do_test where7-2.620.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=8
         OR a=17
         OR b=718
      ORDER BY a
  }
} {8 17 19 scan 0 sort 0}
do_test where7-2.621.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR a=8
         OR b=47
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR a=73
         OR b=253
         OR b=1081
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {3 5 6 8 23 42 44 73 84 88 90 scan 0 sort 0}
do_test where7-2.621.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR a=8
         OR b=47
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR a=73
         OR b=253
         OR b=1081
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
      ORDER BY a
  }
} {3 5 6 8 23 42 44 73 84 88 90 scan 0 sort 0}
do_test where7-2.622.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=74
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR a=40
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR b=715
         OR a=89
         OR b=432
         OR b=993
         OR b=850
      ORDER BY a
  }
} {7 40 48 50 60 62 65 74 89 scan 0 sort 0}
do_test where7-2.622.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=74
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR a=40
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR b=715
         OR a=89
         OR b=432
         OR b=993
         OR b=850
      ORDER BY a
  }
} {7 40 48 50 60 62 65 74 89 scan 0 sort 0}
do_test where7-2.623.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR f='cdefghijk'
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR b=146
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=102
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
      ORDER BY a
  }
} {2 5 16 28 29 35 37 54 73 80 scan 0 sort 0}
do_test where7-2.623.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR f='cdefghijk'
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR b=146
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR b=102
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 35 AND 37) AND a!=36)
      ORDER BY a
  }
} {2 5 16 28 29 35 37 54 73 80 scan 0 sort 0}
do_test where7-2.624.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=330
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {2 4 8 30 34 60 86 scan 0 sort 0}
do_test where7-2.624.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=330
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {2 4 8 30 34 60 86 scan 0 sort 0}
do_test where7-2.625.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR a=85
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR a=24
         OR b=792
         OR a=63
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=627
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=905
      ORDER BY a
  }
} {19 24 26 37 39 45 52 57 63 71 72 78 85 97 99 100 scan 0 sort 0}
do_test where7-2.625.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=100.0 AND d<101.0 AND d NOT NULL)
         OR (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR a=85
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR a=24
         OR b=792
         OR a=63
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
         OR b=627
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR b=905
      ORDER BY a
  }
} {19 24 26 37 39 45 52 57 63 71 72 78 85 97 99 100 scan 0 sort 0}
do_test where7-2.626.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='ghijklmno'
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR f='abcdefghi'
         OR b=1092
      ORDER BY a
  }
} {6 26 32 47 52 58 72 74 78 84 87 scan 0 sort 0}
do_test where7-2.626.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='ghijklmno'
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR (g='ponmlkj' AND f GLOB 'vwxyz*')
         OR f='abcdefghi'
         OR b=1092
      ORDER BY a
  }
} {6 26 32 47 52 58 72 74 78 84 87 scan 0 sort 0}
do_test where7-2.627.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=33
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR a=15
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 15 61 81 84 scan 0 sort 0}
do_test where7-2.627.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=33
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR a=15
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 15 61 81 84 scan 0 sort 0}
do_test where7-2.628.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 20 AND 22) AND a!=21)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {20 22 27 46 scan 0 sort 0}
do_test where7-2.628.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 20 AND 22) AND a!=21)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {20 22 27 46 scan 0 sort 0}
do_test where7-2.629.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b<0
         OR b=1045
      ORDER BY a
  }
} {3 12 14 56 58 95 scan 0 sort 0}
do_test where7-2.629.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR ((a BETWEEN 56 AND 58) AND a!=57)
         OR b<0
         OR b=1045
      ORDER BY a
  }
} {3 12 14 56 58 95 scan 0 sort 0}
do_test where7-2.630.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=7
         OR a=50
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR a=11
         OR b=938
      ORDER BY a
  }
} {3 7 11 29 50 54 55 56 81 scan 0 sort 0}
do_test where7-2.630.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR a=7
         OR a=50
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR a=11
         OR b=938
      ORDER BY a
  }
} {3 7 11 29 50 54 55 56 81 scan 0 sort 0}
do_test where7-2.631.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=245
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR b=715
         OR a=83
         OR f='pqrstuvwx'
         OR b=935
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=3
      ORDER BY a
  }
} {3 6 15 41 65 67 83 85 92 93 94 scan 0 sort 0}
do_test where7-2.631.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=245
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR b=715
         OR a=83
         OR f='pqrstuvwx'
         OR b=935
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=3
      ORDER BY a
  }
} {3 6 15 41 65 67 83 85 92 93 94 scan 0 sort 0}
do_test where7-2.632.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1015
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=795
         OR ((a BETWEEN 13 AND 15) AND a!=14)
      ORDER BY a
  }
} {5 7 13 15 19 31 57 83 96 98 scan 0 sort 0}
do_test where7-2.632.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1015
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR ((a BETWEEN 96 AND 98) AND a!=97)
         OR b=795
         OR ((a BETWEEN 13 AND 15) AND a!=14)
      ORDER BY a
  }
} {5 7 13 15 19 31 57 83 96 98 scan 0 sort 0}
do_test where7-2.633.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'efghi*')
         OR a=31
         OR b=660
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=157
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=1012
      ORDER BY a
  }
} {4 23 25 31 33 60 92 scan 0 sort 0}
do_test where7-2.633.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'efghi*')
         OR a=31
         OR b=660
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR b=157
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=1012
      ORDER BY a
  }
} {4 23 25 31 33 60 92 scan 0 sort 0}
do_test where7-2.634.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=15
         OR b=729
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=84
         OR b=289
      ORDER BY a
  }
} {15 25 34 36 41 43 84 95 scan 0 sort 0}
do_test where7-2.634.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR a=15
         OR b=729
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR a=84
         OR b=289
      ORDER BY a
  }
} {15 25 34 36 41 43 84 95 scan 0 sort 0}
do_test where7-2.635.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 94 AND 96) AND a!=95)
         OR f='stuvwxyza'
         OR a=10
         OR a=81
         OR c=15015
         OR (g='onmlkji' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {10 18 43 44 45 50 70 81 94 96 scan 0 sort 0}
do_test where7-2.635.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 94 AND 96) AND a!=95)
         OR f='stuvwxyza'
         OR a=10
         OR a=81
         OR c=15015
         OR (g='onmlkji' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {10 18 43 44 45 50 70 81 94 96 scan 0 sort 0}
do_test where7-2.636.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'pqrst*')
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=29029
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR a=62
         OR b=693
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR b=264
         OR a=90
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 19 21 24 37 41 50 61 62 63 76 85 86 87 90 scan 0 sort 0}
do_test where7-2.636.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'pqrst*')
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=29029
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR a=62
         OR b=693
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR b=264
         OR a=90
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 19 21 24 37 41 50 61 62 63 76 85 86 87 90 scan 0 sort 0}
do_test where7-2.637.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=72
         OR b=630
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {27 29 72 scan 0 sort 0}
do_test where7-2.637.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=72
         OR b=630
         OR ((a BETWEEN 27 AND 29) AND a!=28)
      ORDER BY a
  }
} {27 29 72 scan 0 sort 0}
do_test where7-2.638.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=49
         OR b=806
         OR a=91
         OR b=1004
         OR b=102
         OR b=190
         OR b=201
         OR b=330
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=179
         OR a=93
      ORDER BY a
  }
} {14 16 30 49 91 93 scan 0 sort 0}
do_test where7-2.638.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=49
         OR b=806
         OR a=91
         OR b=1004
         OR b=102
         OR b=190
         OR b=201
         OR b=330
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=179
         OR a=93
      ORDER BY a
  }
} {14 16 30 49 91 93 scan 0 sort 0}
do_test where7-2.639.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='nopqrstuv'
         OR c=19019
         OR f='pqrstuvwx'
         OR a=6
         OR a=71
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR b=946
         OR (g='srqponm' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {6 13 15 31 39 41 55 56 57 65 67 71 86 91 93 97 99 scan 0 sort 0}
do_test where7-2.639.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='nopqrstuv'
         OR c=19019
         OR f='pqrstuvwx'
         OR a=6
         OR a=71
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR b=946
         OR (g='srqponm' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {6 13 15 31 39 41 55 56 57 65 67 71 86 91 93 97 99 scan 0 sort 0}
do_test where7-2.640.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=333
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR c=23023
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=883
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=223
      ORDER BY a
  }
} {19 42 44 67 68 69 86 scan 0 sort 0}
do_test where7-2.640.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=333
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR c=23023
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=883
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=223
      ORDER BY a
  }
} {19 42 44 67 68 69 86 scan 0 sort 0}
do_test where7-2.641.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=23023
         OR b=1015
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR a=49
         OR f='fghijklmn'
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR b=770
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {5 25 27 31 45 49 57 63 67 68 69 70 83 scan 0 sort 0}
do_test where7-2.641.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=23023
         OR b=1015
         OR (d>=45.0 AND d<46.0 AND d NOT NULL)
         OR a=49
         OR f='fghijklmn'
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR b=770
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {5 25 27 31 45 49 57 63 67 68 69 70 83 scan 0 sort 0}
do_test where7-2.642.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=73
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=146
      ORDER BY a
  }
} {73 93 scan 0 sort 0}
do_test where7-2.642.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=73
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=146
      ORDER BY a
  }
} {73 93 scan 0 sort 0}
do_test where7-2.643.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=627
         OR b=990
         OR b=671
      ORDER BY a
  }
} {57 61 90 scan 0 sort 1}
do_test where7-2.643.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=627
         OR b=990
         OR b=671
      ORDER BY a
  }
} {57 61 90 scan 0 sort 1}
do_test where7-2.644.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=363
         OR a=50
         OR b=476
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR a=74
         OR b=308
      ORDER BY a
  }
} {7 27 28 33 40 50 74 scan 0 sort 0}
do_test where7-2.644.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=363
         OR a=50
         OR b=476
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR a=74
         OR b=308
      ORDER BY a
  }
} {7 27 28 33 40 50 74 scan 0 sort 0}
do_test where7-2.645.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=121
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=693
         OR a=31
         OR b=960
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR ((a BETWEEN 3 AND 5) AND a!=4)
      ORDER BY a
  }
} {2 3 5 11 31 37 63 72 88 89 scan 0 sort 0}
do_test where7-2.645.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=121
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=693
         OR a=31
         OR b=960
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR ((a BETWEEN 3 AND 5) AND a!=4)
      ORDER BY a
  }
} {2 3 5 11 31 37 63 72 88 89 scan 0 sort 0}
do_test where7-2.646.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {15 23 41 67 93 scan 0 sort 0}
do_test where7-2.646.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {15 23 41 67 93 scan 0 sort 0}
do_test where7-2.647.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=880
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=704
      ORDER BY a
  }
} {33 64 80 scan 0 sort 0}
do_test where7-2.647.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=880
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=704
      ORDER BY a
  }
} {33 64 80 scan 0 sort 0}
do_test where7-2.648.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=59
         OR b=1100
      ORDER BY a
  }
} {59 100 scan 0 sort 0}
do_test where7-2.648.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=59
         OR b=1100
      ORDER BY a
  }
} {59 100 scan 0 sort 0}
do_test where7-2.649.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {21 48 50 scan 0 sort 0}
do_test where7-2.649.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 48 AND 50) AND a!=49)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {21 48 50 scan 0 sort 0}
do_test where7-2.650.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=396
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR b=322
         OR b=33
      ORDER BY a
  }
} {3 36 42 scan 0 sort 0}
do_test where7-2.650.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=396
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR b=322
         OR b=33
      ORDER BY a
  }
} {3 36 42 scan 0 sort 0}
do_test where7-2.651.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=319
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR a=83
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR f='nopqrstuv'
      ORDER BY a
  }
} {13 16 29 39 51 52 53 65 83 91 scan 0 sort 0}
do_test where7-2.651.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=319
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR a=83
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR f='nopqrstuv'
      ORDER BY a
  }
} {13 16 29 39 51 52 53 65 83 91 scan 0 sort 0}
do_test where7-2.652.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=51
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR b=330
         OR f='yzabcdefg'
         OR b=418
         OR b=641
         OR b=586
      ORDER BY a
  }
} {17 24 30 38 41 50 51 76 scan 0 sort 0}
do_test where7-2.652.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=51
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR b=330
         OR f='yzabcdefg'
         OR b=418
         OR b=641
         OR b=586
      ORDER BY a
  }
} {17 24 30 38 41 50 51 76 scan 0 sort 0}
do_test where7-2.653.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'wxyza*')
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR a=15
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=1012
      ORDER BY a
  }
} {15 41 67 79 92 93 100 scan 0 sort 0}
do_test where7-2.653.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'wxyza*')
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR a=15
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR b=1012
      ORDER BY a
  }
} {15 41 67 79 92 93 100 scan 0 sort 0}
do_test where7-2.654.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=1004
         OR b=517
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR b=187
      ORDER BY a
  }
} {17 19 21 32 34 46 47 60 93 scan 0 sort 0}
do_test where7-2.654.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'ijklm*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=1004
         OR b=517
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR ((a BETWEEN 19 AND 21) AND a!=20)
         OR b=187
      ORDER BY a
  }
} {17 19 21 32 34 46 47 60 93 scan 0 sort 0}
do_test where7-2.655.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR b=1070
      ORDER BY a
  }
} {55 95 97 scan 0 sort 0}
do_test where7-2.655.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 95 AND 97) AND a!=96)
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR b=1070
      ORDER BY a
  }
} {55 95 97 scan 0 sort 0}
do_test where7-2.656.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=421
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR c=16016
         OR a=46
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=597
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
      ORDER BY a
  }
} {17 20 22 41 43 46 47 48 69 73 75 95 scan 0 sort 0}
do_test where7-2.656.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=421
         OR ((a BETWEEN 20 AND 22) AND a!=21)
         OR c=16016
         OR a=46
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=597
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
      ORDER BY a
  }
} {17 20 22 41 43 46 47 48 69 73 75 95 scan 0 sort 0}
do_test where7-2.657.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {31 54 scan 0 sort 0}
do_test where7-2.657.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'fghij*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {31 54 scan 0 sort 0}
do_test where7-2.658.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 13 scan 0 sort 0}
do_test where7-2.658.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 1 AND 3) AND a!=2)
      ORDER BY a
  }
} {1 3 13 scan 0 sort 0}
do_test where7-2.659.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=572
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=880
         OR b=509
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {9 11 35 40 52 62 64 80 81 83 scan 0 sort 0}
do_test where7-2.659.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 9 AND 11) AND a!=10)
         OR b=572
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR b=880
         OR b=509
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR (g='qponmlk' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {9 11 35 40 52 62 64 80 81 83 scan 0 sort 0}
do_test where7-2.660.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=924
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR f='lmnopqrst'
         OR c=32032
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=242
         OR f='tuvwxyzab'
         OR b=707
      ORDER BY a
  }
} {11 19 22 37 45 63 71 84 89 94 95 96 97 98 scan 0 sort 0}
do_test where7-2.660.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=924
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR f='lmnopqrst'
         OR c=32032
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=242
         OR f='tuvwxyzab'
         OR b=707
      ORDER BY a
  }
} {11 19 22 37 45 63 71 84 89 94 95 96 97 98 scan 0 sort 0}
do_test where7-2.661.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
         OR f='ijklmnopq'
         OR a=29
         OR b=795
         OR b=1048
         OR b=517
      ORDER BY a
  }
} {8 14 29 34 47 60 86 scan 0 sort 0}
do_test where7-2.661.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'opqrs*')
         OR f='ijklmnopq'
         OR a=29
         OR b=795
         OR b=1048
         OR b=517
      ORDER BY a
  }
} {8 14 29 34 47 60 86 scan 0 sort 0}
do_test where7-2.662.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=729
         OR b=649
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=729
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {21 24 26 38 47 51 59 65 67 73 99 scan 0 sort 0}
do_test where7-2.662.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
         OR b=729
         OR b=649
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR b=729
         OR ((a BETWEEN 24 AND 26) AND a!=25)
      ORDER BY a
  }
} {21 24 26 38 47 51 59 65 67 73 99 scan 0 sort 0}
do_test where7-2.663.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=542
         OR b=759
         OR a=94
         OR b=707
         OR a=31
      ORDER BY a
  }
} {31 69 94 scan 0 sort 0}
do_test where7-2.663.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=542
         OR b=759
         OR a=94
         OR b=707
         OR a=31
      ORDER BY a
  }
} {31 69 94 scan 0 sort 0}
do_test where7-2.664.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=50
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR b=858
      ORDER BY a
  }
} {50 73 78 scan 0 sort 0}
do_test where7-2.664.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=50
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
         OR b=858
      ORDER BY a
  }
} {50 73 78 scan 0 sort 0}
do_test where7-2.665.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=223
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=465
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 44 70 72 scan 0 sort 0}
do_test where7-2.665.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=32.0 AND d<33.0 AND d NOT NULL)
         OR b=223
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=465
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {32 44 70 72 scan 0 sort 0}
do_test where7-2.666.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=748
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR c=12012
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=48
         OR a=86
         OR c=7007
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 19 20 21 29 31 34 35 36 38 48 68 86 scan 0 sort 0}
do_test where7-2.666.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=748
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR c=12012
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR a=48
         OR a=86
         OR c=7007
         OR ((a BETWEEN 29 AND 31) AND a!=30)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 19 20 21 29 31 34 35 36 38 48 68 86 scan 0 sort 0}
do_test where7-2.667.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR a=64
         OR c=14014
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR a=37
         OR b=1089
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=385
         OR b=960
      ORDER BY a
  }
} {26 35 37 39 40 41 42 53 64 80 99 scan 0 sort 0}
do_test where7-2.667.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR a=64
         OR c=14014
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR a=37
         OR b=1089
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=385
         OR b=960
      ORDER BY a
  }
} {26 35 37 39 40 41 42 53 64 80 99 scan 0 sort 0}
do_test where7-2.668.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=968
      ORDER BY a
  }
} {6 88 scan 0 sort 0}
do_test where7-2.668.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'ghijk*')
         OR b=968
      ORDER BY a
  }
} {6 88 scan 0 sort 0}
do_test where7-2.669.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR b=762
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR b=209
         OR b=729
      ORDER BY a
  }
} {18 19 37 39 44 51 53 70 96 scan 0 sort 0}
do_test where7-2.669.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR ((a BETWEEN 37 AND 39) AND a!=38)
         OR b=762
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR b=209
         OR b=729
      ORDER BY a
  }
} {18 19 37 39 44 51 53 70 96 scan 0 sort 0}
do_test where7-2.670.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=24024
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=429
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {19 37 39 51 70 71 72 scan 0 sort 0}
do_test where7-2.670.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=24024
         OR (d>=37.0 AND d<38.0 AND d NOT NULL)
         OR b=429
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (g='onmlkji' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {19 37 39 51 70 71 72 scan 0 sort 0}
do_test where7-2.671.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='gfedcba' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=275
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=1070
         OR b=825
      ORDER BY a
  }
} {25 32 34 36 38 75 89 scan 0 sort 0}
do_test where7-2.671.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='gfedcba' AND f GLOB 'lmnop*')
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=275
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=1070
         OR b=825
      ORDER BY a
  }
} {25 32 34 36 38 75 89 scan 0 sort 0}
do_test where7-2.672.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=319
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 29 70 88 scan 0 sort 0}
do_test where7-2.672.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=319
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 29 70 88 scan 0 sort 0}
do_test where7-2.673.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='rstuvwxyz'
         OR b=451
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR a=90
         OR b=605
      ORDER BY a
  }
} {17 41 43 55 69 88 90 95 scan 0 sort 0}
do_test where7-2.673.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='rstuvwxyz'
         OR b=451
         OR (g='gfedcba' AND f GLOB 'klmno*')
         OR a=90
         OR b=605
      ORDER BY a
  }
} {17 41 43 55 69 88 90 95 scan 0 sort 0}
do_test where7-2.674.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR a=55
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR b=803
         OR b=685
      ORDER BY a
  }
} {3 9 55 60 73 scan 0 sort 0}
do_test where7-2.674.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR a=55
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR b=803
         OR b=685
      ORDER BY a
  }
} {3 9 55 60 73 scan 0 sort 0}
do_test where7-2.675.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {8 38 94 scan 0 sort 0}
do_test where7-2.675.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {8 38 94 scan 0 sort 0}
do_test where7-2.676.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=374
         OR f='abcdefghi'
         OR a=44
      ORDER BY a
  }
} {26 34 44 52 78 scan 0 sort 0}
do_test where7-2.676.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=374
         OR f='abcdefghi'
         OR a=44
      ORDER BY a
  }
} {26 34 44 52 78 scan 0 sort 0}
do_test where7-2.677.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'pqrst*')
         OR a=19
         OR b=256
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {19 82 93 scan 0 sort 0}
do_test where7-2.677.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'pqrst*')
         OR a=19
         OR b=256
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
      ORDER BY a
  }
} {19 82 93 scan 0 sort 0}
do_test where7-2.678.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=32
         OR a=72
         OR b=165
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
      ORDER BY a
  }
} {8 15 24 32 50 72 76 scan 0 sort 0}
do_test where7-2.678.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=32
         OR a=72
         OR b=165
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
      ORDER BY a
  }
} {8 15 24 32 50 72 76 scan 0 sort 0}
do_test where7-2.679.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {19 98 99 scan 0 sort 0}
do_test where7-2.679.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
      ORDER BY a
  }
} {19 98 99 scan 0 sort 0}
do_test where7-2.680.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'stuvw*')
         OR a=56
         OR b=330
         OR b=905
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=1100
         OR a=92
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {18 30 56 68 92 95 100 scan 0 sort 0}
do_test where7-2.680.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'stuvw*')
         OR a=56
         OR b=330
         OR b=905
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=1100
         OR a=92
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {18 30 56 68 92 95 100 scan 0 sort 0}
do_test where7-2.681.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='pqrstuvwx'
         OR b=663
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR c=21021
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 15 22 32 41 48 58 61 62 63 67 74 93 100 scan 0 sort 0}
do_test where7-2.681.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='pqrstuvwx'
         OR b=663
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR c=21021
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {6 15 22 32 41 48 58 61 62 63 67 74 93 100 scan 0 sort 0}
do_test where7-2.682.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=352
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR a=69
         OR b=993
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR b=245
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=39
      ORDER BY a
  }
} {17 32 34 39 43 69 81 91 95 scan 0 sort 0}
do_test where7-2.682.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=352
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR a=69
         OR b=993
         OR (g='ihgfedc' AND f GLOB 'defgh*')
         OR b=245
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=39
      ORDER BY a
  }
} {17 32 34 39 43 69 81 91 95 scan 0 sort 0}
do_test where7-2.683.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=31
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR a=62
      ORDER BY a
  }
} {31 44 62 69 71 scan 0 sort 0}
do_test where7-2.683.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=31
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR a=62
      ORDER BY a
  }
} {31 44 62 69 71 scan 0 sort 0}
do_test where7-2.684.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=946
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR a=44
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=4004
         OR b=685
         OR b=407
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {10 11 12 24 32 34 37 44 50 57 74 76 78 86 scan 0 sort 0}
do_test where7-2.684.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=946
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR a=44
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=4004
         OR b=685
         OR b=407
         OR ((a BETWEEN 74 AND 76) AND a!=75)
      ORDER BY a
  }
} {10 11 12 24 32 34 37 44 50 57 74 76 78 86 scan 0 sort 0}
do_test where7-2.685.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=385
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=69
      ORDER BY a
  }
} {35 37 69 scan 0 sort 0}
do_test where7-2.685.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=385
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=69
      ORDER BY a
  }
} {35 37 69 scan 0 sort 0}
do_test where7-2.686.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=27027
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 4 AND 6) AND a!=5)
      ORDER BY a
  }
} {3 4 6 9 29 35 37 55 61 65 79 80 81 87 88 90 scan 0 sort 0}
do_test where7-2.686.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR c=27027
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR ((a BETWEEN 4 AND 6) AND a!=5)
      ORDER BY a
  }
} {3 4 6 9 29 35 37 55 61 65 79 80 81 87 88 90 scan 0 sort 0}
do_test where7-2.687.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=462
         OR c=8008
         OR c=14014
         OR b=748
         OR b=355
      ORDER BY a
  }
} {22 23 24 26 40 41 42 68 89 scan 0 sort 0}
do_test where7-2.687.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=462
         OR c=8008
         OR c=14014
         OR b=748
         OR b=355
      ORDER BY a
  }
} {22 23 24 26 40 41 42 68 89 scan 0 sort 0}
do_test where7-2.688.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=80
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 87 scan 0 sort 0}
do_test where7-2.688.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'jklmn*')
         OR b=80
         OR (d>=6.0 AND d<7.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 87 scan 0 sort 0}
do_test where7-2.689.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR c=22022
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=927
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 64 65 66 86 95 scan 0 sort 0}
do_test where7-2.689.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'rstuv*')
         OR c=22022
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=927
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 64 65 66 86 95 scan 0 sort 0}
do_test where7-2.690.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR a=39
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=179
         OR a=98
         OR f='defghijkl'
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR b=157
         OR f='pqrstuvwx'
         OR a=68
      ORDER BY a
  }
} {3 15 18 29 39 41 44 55 60 67 68 70 72 81 93 96 98 scan 0 sort 0}
do_test where7-2.690.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR a=39
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=179
         OR a=98
         OR f='defghijkl'
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR b=157
         OR f='pqrstuvwx'
         OR a=68
      ORDER BY a
  }
} {3 15 18 29 39 41 44 55 60 67 68 70 72 81 93 96 98 scan 0 sort 0}
do_test where7-2.691.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=77
         OR b=682
         OR f='rstuvwxyz'
         OR b=506
         OR a=74
         OR b=308
         OR b=850
         OR b=363
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR c=5005
         OR ((a BETWEEN 65 AND 67) AND a!=66)
      ORDER BY a
  }
} {2 4 7 13 14 15 17 28 33 43 46 62 65 67 69 74 95 scan 0 sort 0}
do_test where7-2.691.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=77
         OR b=682
         OR f='rstuvwxyz'
         OR b=506
         OR a=74
         OR b=308
         OR b=850
         OR b=363
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR c=5005
         OR ((a BETWEEN 65 AND 67) AND a!=66)
      ORDER BY a
  }
} {2 4 7 13 14 15 17 28 33 43 46 62 65 67 69 74 95 scan 0 sort 0}
do_test where7-2.692.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=88
         OR a=29
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=308
         OR b=58
         OR b=429
         OR ((a BETWEEN 82 AND 84) AND a!=83)
      ORDER BY a
  }
} {28 29 39 46 63 82 84 88 scan 0 sort 0}
do_test where7-2.692.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=88
         OR a=29
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=308
         OR b=58
         OR b=429
         OR ((a BETWEEN 82 AND 84) AND a!=83)
      ORDER BY a
  }
} {28 29 39 46 63 82 84 88 scan 0 sort 0}
do_test where7-2.693.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=20020
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR c=24024
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=366
         OR a=19
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {2 19 22 58 59 60 70 71 72 89 100 scan 0 sort 0}
do_test where7-2.693.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=20020
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR c=24024
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=366
         OR a=19
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {2 19 22 58 59 60 70 71 72 89 100 scan 0 sort 0}
do_test where7-2.694.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'fghij*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR c=10010
         OR b=1089
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=858
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
      ORDER BY a
  }
} {1 11 23 27 28 29 30 37 49 53 63 75 78 79 80 81 83 85 87 89 99 scan 0 sort 0}
do_test where7-2.694.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'fghij*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
         OR (f GLOB '?mnop*' AND f GLOB 'lmno*')
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR c=10010
         OR b=1089
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR b=858
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
      ORDER BY a
  }
} {1 11 23 27 28 29 30 37 49 53 63 75 78 79 80 81 83 85 87 89 99 scan 0 sort 0}
do_test where7-2.695.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=1070
         OR b=69
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR a=85
      ORDER BY a
  }
} {39 64 83 85 scan 0 sort 0}
do_test where7-2.695.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=64.0 AND d<65.0 AND d NOT NULL)
         OR b=1070
         OR b=69
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR a=85
      ORDER BY a
  }
} {39 64 83 85 scan 0 sort 0}
do_test where7-2.696.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1089
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=528
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=13
         OR b=759
         OR b=990
         OR c=31031
      ORDER BY a
  }
} {6 13 21 23 24 32 36 48 50 58 69 76 84 87 90 91 92 93 99 scan 0 sort 0}
do_test where7-2.696.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1089
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR b=528
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR a=13
         OR b=759
         OR b=990
         OR c=31031
      ORDER BY a
  }
} {6 13 21 23 24 32 36 48 50 58 69 76 84 87 90 91 92 93 99 scan 0 sort 0}
do_test where7-2.697.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='yxwvuts' AND f GLOB 'bcdef*')
         OR b=363
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR b=135
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR a=48
         OR (g='rqponml' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {1 33 35 48 71 73 79 scan 0 sort 0}
do_test where7-2.697.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='yxwvuts' AND f GLOB 'bcdef*')
         OR b=363
         OR ((a BETWEEN 71 AND 73) AND a!=72)
         OR b=135
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR a=48
         OR (g='rqponml' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {1 33 35 48 71 73 79 scan 0 sort 0}
do_test where7-2.698.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=1026
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR a=23
      ORDER BY a
  }
} {7 12 13 14 15 23 31 33 59 85 89 90 91 93 scan 0 sort 0}
do_test where7-2.698.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=1026
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR a=23
      ORDER BY a
  }
} {7 12 13 14 15 23 31 33 59 85 89 90 91 93 scan 0 sort 0}
do_test where7-2.699.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=17017
         OR c=26026
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
      ORDER BY a
  }
} {22 48 49 50 51 74 76 77 78 100 scan 0 sort 0}
do_test where7-2.699.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=17017
         OR c=26026
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
      ORDER BY a
  }
} {22 48 49 50 51 74 76 77 78 100 scan 0 sort 0}
do_test where7-2.700.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=729
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR b=1103
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {1 27 53 70 74 79 scan 0 sort 0}
do_test where7-2.700.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR b=729
         OR (f GLOB '?cdef*' AND f GLOB 'bcde*')
         OR b=1103
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {1 27 53 70 74 79 scan 0 sort 0}
do_test where7-2.701.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=73
         OR b=872
         OR b=289
         OR b=267
         OR b=737
         OR b=110
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 10 15 67 73 scan 0 sort 0}
do_test where7-2.701.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=73
         OR b=872
         OR b=289
         OR b=267
         OR b=737
         OR b=110
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
      ORDER BY a
  }
} {3 10 15 67 73 scan 0 sort 0}
do_test where7-2.702.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR f='pqrstuvwx'
         OR f='ijklmnopq'
         OR b=649
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR c=17017
         OR a=63
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=1092
      ORDER BY a
  }
} {8 14 15 17 34 39 41 49 50 51 59 60 61 63 67 86 93 scan 0 sort 0}
do_test where7-2.702.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 59 AND 61) AND a!=60)
         OR f='pqrstuvwx'
         OR f='ijklmnopq'
         OR b=649
         OR (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR c=17017
         OR a=63
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR b=1092
      ORDER BY a
  }
} {8 14 15 17 34 39 41 49 50 51 59 60 61 63 67 86 93 scan 0 sort 0}
do_test where7-2.703.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ihgfedc' AND f GLOB 'efghi*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR d>1e10
         OR b=872
         OR a=74
         OR a=18
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 30 32 43 64 66 74 82 scan 0 sort 0}
do_test where7-2.703.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ihgfedc' AND f GLOB 'efghi*')
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 64 AND 66) AND a!=65)
         OR d>1e10
         OR b=872
         OR a=74
         OR a=18
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
      ORDER BY a
  }
} {18 30 32 43 64 66 74 82 scan 0 sort 0}
do_test where7-2.704.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=946
         OR a=5
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=979
         OR a=32
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=264
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR a=55
         OR b=146
      ORDER BY a
  }
} {5 6 24 29 32 54 55 56 86 89 scan 0 sort 0}
do_test where7-2.704.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=946
         OR a=5
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR b=979
         OR a=32
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=264
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR a=55
         OR b=146
      ORDER BY a
  }
} {5 6 24 29 32 54 55 56 86 89 scan 0 sort 0}
do_test where7-2.705.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=13013
         OR b=91
      ORDER BY a
  }
} {37 38 39 scan 0 sort 0}
do_test where7-2.705.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=13013
         OR b=91
      ORDER BY a
  }
} {37 38 39 scan 0 sort 0}
do_test where7-2.706.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR c=16016
         OR a=80
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR f='abcdefghi'
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR a=14
         OR a=32
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {14 26 29 31 32 46 47 48 51 52 65 67 69 78 80 scan 0 sort 0}
do_test where7-2.706.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 65 AND 67) AND a!=66)
         OR c=16016
         OR a=80
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR f='abcdefghi'
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR a=14
         OR a=32
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {14 26 29 31 32 46 47 48 51 52 65 67 69 78 80 scan 0 sort 0}
do_test where7-2.707.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=93
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=286
         OR c=7007
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {18 19 20 21 26 74 93 scan 0 sort 0}
do_test where7-2.707.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=93
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR ((a BETWEEN 18 AND 20) AND a!=19)
         OR b=286
         OR c=7007
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {18 19 20 21 26 74 93 scan 0 sort 0}
do_test where7-2.708.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=27
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR a=54
         OR b=872
         OR b=894
      ORDER BY a
  }
} {27 54 71 76 78 86 scan 0 sort 0}
do_test where7-2.708.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=27
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR a=54
         OR b=872
         OR b=894
      ORDER BY a
  }
} {27 54 71 76 78 86 scan 0 sort 0}
do_test where7-2.709.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=212
         OR f='klmnopqrs'
         OR f='qrstuvwxy'
      ORDER BY a
  }
} {10 16 36 42 62 68 88 94 scan 0 sort 0}
do_test where7-2.709.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=212
         OR f='klmnopqrs'
         OR f='qrstuvwxy'
      ORDER BY a
  }
} {10 16 36 42 62 68 88 94 scan 0 sort 0}
do_test where7-2.710.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=30030
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR f='tuvwxyzab'
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR c=6006
         OR a=1
         OR c=1001
      ORDER BY a
  }
} {1 2 3 12 16 17 18 19 45 48 71 88 89 90 97 scan 0 sort 0}
do_test where7-2.710.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=30030
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR f='tuvwxyzab'
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR c=6006
         OR a=1
         OR c=1001
      ORDER BY a
  }
} {1 2 3 12 16 17 18 19 45 48 71 88 89 90 97 scan 0 sort 0}
do_test where7-2.711.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=76
      ORDER BY a
  }
} {17 25 76 98 scan 0 sort 0}
do_test where7-2.711.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=76
      ORDER BY a
  }
} {17 25 76 98 scan 0 sort 0}
do_test where7-2.712.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=440
         OR c=29029
         OR b=913
         OR f='wxyzabcde'
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=124
      ORDER BY a
  }
} {2 4 22 40 48 74 83 85 86 87 100 scan 0 sort 0}
do_test where7-2.712.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=440
         OR c=29029
         OR b=913
         OR f='wxyzabcde'
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=124
      ORDER BY a
  }
} {2 4 22 40 48 74 83 85 86 87 100 scan 0 sort 0}
do_test where7-2.713.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='xwvutsr' AND f GLOB 'fghij*')
         OR b=1023
         OR b=385
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR f='uvwxyzabc'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=564
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {1 5 19 20 34 35 36 46 61 63 71 72 87 93 98 scan 0 sort 0}
do_test where7-2.713.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='xwvutsr' AND f GLOB 'fghij*')
         OR b=1023
         OR b=385
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR ((a BETWEEN 34 AND 36) AND a!=35)
         OR f='uvwxyzabc'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='utsrqpo' AND f GLOB 'tuvwx*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=564
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {1 5 19 20 34 35 36 46 61 63 71 72 87 93 98 scan 0 sort 0}
do_test where7-2.714.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=561
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=539
      ORDER BY a
  }
} {10 27 36 49 51 62 88 scan 0 sort 0}
do_test where7-2.714.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'bcdef*')
         OR b=561
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=539
      ORDER BY a
  }
} {10 27 36 49 51 62 88 scan 0 sort 0}
do_test where7-2.715.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=53
         OR b=927
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=42
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 15 21 42 53 69 70 72 91 scan 0 sort 0}
do_test where7-2.715.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=53
         OR b=927
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR a=42
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 15 21 42 53 69 70 72 91 scan 0 sort 0}
do_test where7-2.716.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=209
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=902
         OR a=45
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR b=792
         OR b=740
      ORDER BY a
  }
} {8 19 25 27 34 45 53 60 72 82 86 scan 0 sort 0}
do_test where7-2.716.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=209
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR b=902
         OR a=45
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR b=792
         OR b=740
      ORDER BY a
  }
} {8 19 25 27 34 45 53 60 72 82 86 scan 0 sort 0}
do_test where7-2.717.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=33
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {3 16 58 60 61 63 scan 0 sort 0}
do_test where7-2.717.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=33
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 58 AND 60) AND a!=59)
      ORDER BY a
  }
} {3 16 58 60 61 63 scan 0 sort 0}
do_test where7-2.718.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=49
         OR b=971
      ORDER BY a
  }
} {49 scan 0 sort 0}
do_test where7-2.718.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=49
         OR b=971
      ORDER BY a
  }
} {49 scan 0 sort 0}
do_test where7-2.719.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=99
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR f='uvwxyzabc'
         OR a=13
         OR c=7007
         OR b<0
         OR b=1012
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR c=11011
      ORDER BY a
  }
} {6 13 19 20 21 31 32 33 46 58 72 84 92 98 99 scan 0 sort 0}
do_test where7-2.719.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=99
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR f='uvwxyzabc'
         OR a=13
         OR c=7007
         OR b<0
         OR b=1012
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR c=11011
      ORDER BY a
  }
} {6 13 19 20 21 31 32 33 46 58 72 84 92 98 99 scan 0 sort 0}
do_test where7-2.720.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR c=25025
         OR b=707
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR c=31031
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {25 40 51 63 73 74 75 77 91 92 93 95 scan 0 sort 0}
do_test where7-2.720.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR c=25025
         OR b=707
         OR (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
         OR c=31031
         OR (g='lkjihgf' AND f GLOB 'lmnop*')
      ORDER BY a
  }
} {25 40 51 63 73 74 75 77 91 92 93 95 scan 0 sort 0}
do_test where7-2.721.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR a=97
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR b=737
      ORDER BY a
  }
} {4 8 10 11 12 13 30 38 53 55 56 67 82 97 scan 0 sort 0}
do_test where7-2.721.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 8 AND 10) AND a!=9)
         OR ((a BETWEEN 11 AND 13) AND a!=12)
         OR a=97
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR b=737
      ORDER BY a
  }
} {4 8 10 11 12 13 30 38 53 55 56 67 82 97 scan 0 sort 0}
do_test where7-2.722.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=121
         OR b=388
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR b=696
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=465
         OR b=1045
      ORDER BY a
  }
} {11 12 14 41 86 95 scan 0 sort 0}
do_test where7-2.722.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=121
         OR b=388
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR b=696
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=465
         OR b=1045
      ORDER BY a
  }
} {11 12 14 41 86 95 scan 0 sort 0}
do_test where7-2.723.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=498
         OR b=484
         OR b=113
      ORDER BY a
  }
} {14 16 44 52 scan 0 sort 0}
do_test where7-2.723.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=498
         OR b=484
         OR b=113
      ORDER BY a
  }
} {14 16 44 52 scan 0 sort 0}
do_test where7-2.724.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=278
         OR a=11
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=47
         OR a=42
         OR a=21
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {11 21 40 42 43 45 46 47 48 88 90 92 scan 0 sort 0}
do_test where7-2.724.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=278
         OR a=11
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR a=47
         OR a=42
         OR a=21
         OR ((a BETWEEN 43 AND 45) AND a!=44)
      ORDER BY a
  }
} {11 21 40 42 43 45 46 47 48 88 90 92 scan 0 sort 0}
do_test where7-2.725.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=135
         OR a=65
         OR c=2002
      ORDER BY a
  }
} {4 5 6 65 scan 0 sort 0}
do_test where7-2.725.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=135
         OR a=65
         OR c=2002
      ORDER BY a
  }
} {4 5 6 65 scan 0 sort 0}
do_test where7-2.726.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR c=12012
         OR c=21021
         OR b=242
         OR b=770
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR a=71
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
      ORDER BY a
  }
} {6 20 22 32 34 35 36 53 58 59 61 62 63 70 71 75 84 scan 0 sort 0}
do_test where7-2.726.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR c=12012
         OR c=21021
         OR b=242
         OR b=770
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR a=71
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
      ORDER BY a
  }
} {6 20 22 32 34 35 36 53 58 59 61 62 63 70 71 75 84 scan 0 sort 0}
do_test where7-2.727.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR a=75
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
      ORDER BY a
  }
} {20 27 31 39 42 44 54 75 76 78 81 83 91 94 96 scan 0 sort 0}
do_test where7-2.727.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR a=75
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
      ORDER BY a
  }
} {20 27 31 39 42 44 54 75 76 78 81 83 91 94 96 scan 0 sort 0}
do_test where7-2.728.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='wxyzabcde'
         OR f='abcdefghi'
      ORDER BY a
  }
} {22 26 48 52 74 78 100 scan 0 sort 1}
do_test where7-2.728.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='wxyzabcde'
         OR f='abcdefghi'
      ORDER BY a
  }
} {22 26 48 52 74 78 100 scan 0 sort 1}
do_test where7-2.729.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR b=352
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR a=12
         OR b=759
         OR c=31031
      ORDER BY a
  }
} {12 23 30 32 55 69 70 72 91 92 93 scan 0 sort 0}
do_test where7-2.729.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 70 AND 72) AND a!=71)
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR b=352
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR a=12
         OR b=759
         OR c=31031
      ORDER BY a
  }
} {12 23 30 32 55 69 70 72 91 92 93 scan 0 sort 0}
do_test where7-2.730.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=165
      ORDER BY a
  }
} {13 15 21 scan 0 sort 0}
do_test where7-2.730.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR b=165
      ORDER BY a
  }
} {13 15 21 scan 0 sort 0}
do_test where7-2.731.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=84
         OR b=916
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR a=1
      ORDER BY a
  }
} {1 22 84 scan 0 sort 0}
do_test where7-2.731.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=84
         OR b=916
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR a=1
      ORDER BY a
  }
} {1 22 84 scan 0 sort 0}
do_test where7-2.732.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='cdefghijk'
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 54 62 80 scan 0 sort 0}
do_test where7-2.732.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='cdefghijk'
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 54 62 80 scan 0 sort 0}
do_test where7-2.733.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=94
         OR b=289
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {25 51 77 85 87 94 scan 0 sort 0}
do_test where7-2.733.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=94
         OR b=289
         OR (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {25 51 77 85 87 94 scan 0 sort 0}
do_test where7-2.734.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=957
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR c=21021
         OR b=718
      ORDER BY a
  }
} {2 15 38 40 42 61 62 63 78 87 scan 0 sort 0}
do_test where7-2.734.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ihgfedc' AND f GLOB 'abcde*')
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=957
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR c=21021
         OR b=718
      ORDER BY a
  }
} {2 15 38 40 42 61 62 63 78 87 scan 0 sort 0}
do_test where7-2.735.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1023
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {20 57 93 scan 0 sort 0}
do_test where7-2.735.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1023
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
      ORDER BY a
  }
} {20 57 93 scan 0 sort 0}
do_test where7-2.736.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 57 AND 59) AND a!=58)
         OR b=102
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR a=90
         OR b=748
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=366
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {34 38 46 57 59 66 68 90 scan 0 sort 0}
do_test where7-2.736.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 57 AND 59) AND a!=58)
         OR b=102
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR a=90
         OR b=748
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=366
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {34 38 46 57 59 66 68 90 scan 0 sort 0}
do_test where7-2.737.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=3003
         OR b=737
         OR b=179
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 9 42 67 scan 0 sort 0}
do_test where7-2.737.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=3003
         OR b=737
         OR b=179
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 8 9 42 67 scan 0 sort 0}
do_test where7-2.738.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=33
         OR b=319
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=872
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=968
         OR a=90
      ORDER BY a
  }
} {3 14 16 29 88 90 96 97 scan 0 sort 0}
do_test where7-2.738.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 14 AND 16) AND a!=15)
         OR b=33
         OR b=319
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=872
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=968
         OR a=90
      ORDER BY a
  }
} {3 14 16 29 88 90 96 97 scan 0 sort 0}
do_test where7-2.739.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR f='pqrstuvwx'
         OR a=47
         OR b=344
         OR a=94
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR c=29029
         OR ((a BETWEEN 78 AND 80) AND a!=79)
      ORDER BY a
  }
} {5 7 11 15 41 47 67 78 80 85 86 87 93 94 scan 0 sort 0}
do_test where7-2.739.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 5 AND 7) AND a!=6)
         OR f='pqrstuvwx'
         OR a=47
         OR b=344
         OR a=94
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR c=29029
         OR ((a BETWEEN 78 AND 80) AND a!=79)
      ORDER BY a
  }
} {5 7 11 15 41 47 67 78 80 85 86 87 93 94 scan 0 sort 0}
do_test where7-2.740.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=201
      ORDER BY a
  }
} {24 26 57 78 scan 0 sort 0}
do_test where7-2.740.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=201
      ORDER BY a
  }
} {24 26 57 78 scan 0 sort 0}
do_test where7-2.741.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR c=4004
      ORDER BY a
  }
} {10 11 12 30 32 40 scan 0 sort 0}
do_test where7-2.741.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR c=4004
      ORDER BY a
  }
} {10 11 12 30 32 40 scan 0 sort 0}
do_test where7-2.742.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 50 51 62 76 scan 0 sort 0}
do_test where7-2.742.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
      ORDER BY a
  }
} {24 50 51 62 76 scan 0 sort 0}
do_test where7-2.743.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=121
         OR b=451
         OR a=14
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 11 14 41 51 53 73 scan 0 sort 0}
do_test where7-2.743.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=121
         OR b=451
         OR a=14
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 11 14 41 51 53 73 scan 0 sort 0}
do_test where7-2.744.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=553
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=616
         OR b=784
         OR b=927
         OR b=176
         OR (g='vutsrqp' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {4 6 15 16 26 31 56 93 scan 0 sort 0}
do_test where7-2.744.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=553
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=616
         OR b=784
         OR b=927
         OR b=176
         OR (g='vutsrqp' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {4 6 15 16 26 31 56 93 scan 0 sort 0}
do_test where7-2.745.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=77
      ORDER BY a
  }
} {7 10 36 62 88 scan 0 sort 0}
do_test where7-2.745.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR b=77
      ORDER BY a
  }
} {7 10 36 62 88 scan 0 sort 0}
do_test where7-2.746.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
      ORDER BY a
  }
} {50 70 72 95 97 scan 0 sort 0}
do_test where7-2.746.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 95 AND 97) AND a!=96)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
      ORDER BY a
  }
} {50 70 72 95 97 scan 0 sort 0}
do_test where7-2.747.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=110
         OR a=12
         OR a=53
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR a=13
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR b=531
      ORDER BY a
  }
} {10 12 13 53 80 93 95 scan 0 sort 0}
do_test where7-2.747.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=110
         OR a=12
         OR a=53
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR a=13
         OR ((a BETWEEN 93 AND 95) AND a!=94)
         OR b=531
      ORDER BY a
  }
} {10 12 13 53 80 93 95 scan 0 sort 0}
do_test where7-2.748.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=85
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
      ORDER BY a
  }
} {56 85 scan 0 sort 0}
do_test where7-2.748.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=85
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
      ORDER BY a
  }
} {56 85 scan 0 sort 0}
do_test where7-2.749.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=759
         OR b=605
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
      ORDER BY a
  }
} {55 64 69 86 scan 0 sort 0}
do_test where7-2.749.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=759
         OR b=605
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
      ORDER BY a
  }
} {55 64 69 86 scan 0 sort 0}
do_test where7-2.750.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR b=1026
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR b=132
         OR b=201
         OR b=839
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=355
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR c=19019
      ORDER BY a
  }
} {3 5 12 47 49 54 55 56 57 61 scan 0 sort 0}
do_test where7-2.750.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR b=1026
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR b=132
         OR b=201
         OR b=839
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=355
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR c=19019
      ORDER BY a
  }
} {3 5 12 47 49 54 55 56 57 61 scan 0 sort 0}
do_test where7-2.751.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=18
         OR b=509
         OR b=399
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 13 18 98 99 scan 0 sort 0}
do_test where7-2.751.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR ((a BETWEEN 99 AND 101) AND a!=100)
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=18
         OR b=509
         OR b=399
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
      ORDER BY a
  }
} {9 13 18 98 99 scan 0 sort 0}
do_test where7-2.752.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=18
         OR f='uvwxyzabc'
         OR a=90
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR b=462
         OR a=82
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR c=34034
         OR b=517
         OR b=465
      ORDER BY a
  }
} {9 11 18 20 42 46 47 62 72 82 84 90 98 100 scan 0 sort 0}
do_test where7-2.752.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=18
         OR f='uvwxyzabc'
         OR a=90
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR b=462
         OR a=82
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR c=34034
         OR b=517
         OR b=465
      ORDER BY a
  }
} {9 11 18 20 42 46 47 62 72 82 84 90 98 100 scan 0 sort 0}
do_test where7-2.753.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=124
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=773
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR a=76
         OR a=16
      ORDER BY a
  }
} {1 3 16 23 24 49 50 52 54 55 75 76 scan 0 sort 0}
do_test where7-2.753.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=124
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
         OR ((a BETWEEN 1 AND 3) AND a!=2)
         OR b=773
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (f GLOB '?zabc*' AND f GLOB 'yzab*')
         OR a=76
         OR a=16
      ORDER BY a
  }
} {1 3 16 23 24 49 50 52 54 55 75 76 scan 0 sort 0}
do_test where7-2.754.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR a=97
         OR b=630
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=143
      ORDER BY a
  }
} {13 68 89 91 97 scan 0 sort 0}
do_test where7-2.754.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR a=97
         OR b=630
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=143
      ORDER BY a
  }
} {13 68 89 91 97 scan 0 sort 0}
do_test where7-2.755.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR b=1056
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR f='opqrstuvw'
         OR a=8
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {8 14 20 33 35 40 65 66 67 92 96 scan 0 sort 0}
do_test where7-2.755.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR b=1056
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR f='opqrstuvw'
         OR a=8
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {8 14 20 33 35 40 65 66 67 92 96 scan 0 sort 0}
do_test where7-2.756.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='lmnopqrst'
         OR b=773
         OR a=14
         OR a=7
         OR a=28
      ORDER BY a
  }
} {7 11 14 28 37 63 89 scan 0 sort 0}
do_test where7-2.756.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='lmnopqrst'
         OR b=773
         OR a=14
         OR a=7
         OR a=28
      ORDER BY a
  }
} {7 11 14 28 37 63 89 scan 0 sort 0}
do_test where7-2.757.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR a=69
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR c=15015
      ORDER BY a
  }
} {16 43 44 45 68 69 90 scan 0 sort 0}
do_test where7-2.757.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR a=69
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR c=15015
      ORDER BY a
  }
} {16 43 44 45 68 69 90 scan 0 sort 0}
do_test where7-2.758.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=638
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR b=69
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 58 89 91 96 scan 0 sort 0}
do_test where7-2.758.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=638
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (g='srqponm' AND f GLOB 'fghij*')
         OR b=69
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
      ORDER BY a
  }
} {31 58 89 91 96 scan 0 sort 0}
do_test where7-2.759.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1100
         OR b=1012
      ORDER BY a
  }
} {92 100 scan 0 sort 1}
do_test where7-2.759.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1100
         OR b=1012
      ORDER BY a
  }
} {92 100 scan 0 sort 1}
do_test where7-2.760.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=627
         OR a=35
         OR b=726
         OR b=1100
         OR a=8
      ORDER BY a
  }
} {8 35 57 66 100 scan 0 sort 0}
do_test where7-2.760.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=627
         OR a=35
         OR b=726
         OR b=1100
         OR a=8
      ORDER BY a
  }
} {8 35 57 66 100 scan 0 sort 0}
do_test where7-2.761.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 21 AND 23) AND a!=22)
         OR a=50
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR a=33
         OR c=6006
      ORDER BY a
  }
} {11 16 17 18 21 23 33 50 scan 0 sort 0}
do_test where7-2.761.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 21 AND 23) AND a!=22)
         OR a=50
         OR (g='wvutsrq' AND f GLOB 'lmnop*')
         OR a=33
         OR c=6006
      ORDER BY a
  }
} {11 16 17 18 21 23 33 50 scan 0 sort 0}
do_test where7-2.762.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=23023
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 34 60 67 68 69 86 scan 0 sort 0}
do_test where7-2.762.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=23023
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 34 60 67 68 69 86 scan 0 sort 0}
do_test where7-2.763.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR f='opqrstuvw'
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR c=16016
         OR b=825
         OR (g='onmlkji' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {14 40 46 47 48 51 63 66 75 83 92 scan 0 sort 0}
do_test where7-2.763.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='lkjihgf' AND f GLOB 'lmnop*')
         OR f='opqrstuvw'
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR c=16016
         OR b=825
         OR (g='onmlkji' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {14 40 46 47 48 51 63 66 75 83 92 scan 0 sort 0}
do_test where7-2.764.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=880
         OR c=5005
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=146
         OR b=638
         OR a=7
      ORDER BY a
  }
} {7 13 14 15 26 28 30 58 80 scan 0 sort 0}
do_test where7-2.764.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=880
         OR c=5005
         OR (g='srqponm' AND f GLOB 'efghi*')
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=146
         OR b=638
         OR a=7
      ORDER BY a
  }
} {7 13 14 15 26 28 30 58 80 scan 0 sort 0}
do_test where7-2.765.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='onmlkji' AND f GLOB 'yzabc*')
         OR b=209
         OR b=693
         OR a=12
         OR b=179
         OR b=36
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR c=28028
      ORDER BY a
  }
} {12 19 50 63 75 82 83 84 88 scan 0 sort 0}
do_test where7-2.765.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='onmlkji' AND f GLOB 'yzabc*')
         OR b=209
         OR b=693
         OR a=12
         OR b=179
         OR b=36
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'xyzab*')
         OR c=28028
      ORDER BY a
  }
} {12 19 50 63 75 82 83 84 88 scan 0 sort 0}
do_test where7-2.766.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR a=73
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR b=825
      ORDER BY a
  }
} {10 12 24 32 41 73 75 scan 0 sort 0}
do_test where7-2.766.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 73 AND 75) AND a!=74)
         OR ((a BETWEEN 10 AND 12) AND a!=11)
         OR a=73
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR b=825
      ORDER BY a
  }
} {10 12 24 32 41 73 75 scan 0 sort 0}
do_test where7-2.767.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1081
         OR b=253
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR b=220
         OR b=575
         OR b=44
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR (g='jihgfed' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {4 7 20 23 33 53 59 77 85 scan 0 sort 0}
do_test where7-2.767.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1081
         OR b=253
         OR (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR b=220
         OR b=575
         OR b=44
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR (g='jihgfed' AND f GLOB 'zabcd*')
      ORDER BY a
  }
} {4 7 20 23 33 53 59 77 85 scan 0 sort 0}
do_test where7-2.768.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=10
         OR c=12012
         OR a=95
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
      ORDER BY a
  }
} {2 10 20 23 34 35 36 49 75 95 scan 0 sort 0}
do_test where7-2.768.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=10
         OR c=12012
         OR a=95
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR (f GLOB '?yzab*' AND f GLOB 'xyza*')
      ORDER BY a
  }
} {2 10 20 23 34 35 36 49 75 95 scan 0 sort 0}
do_test where7-2.769.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=344
         OR b=858
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=993
      ORDER BY a
  }
} {78 89 91 scan 0 sort 0}
do_test where7-2.769.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 89 AND 91) AND a!=90)
         OR b=344
         OR b=858
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR b=993
      ORDER BY a
  }
} {78 89 91 scan 0 sort 0}
do_test where7-2.770.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR a=49
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=682
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
      ORDER BY a
  }
} {2 4 49 50 56 62 80 scan 0 sort 0}
do_test where7-2.770.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR (d>=56.0 AND d<57.0 AND d NOT NULL)
         OR a=49
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR b=682
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 2 AND 4) AND a!=3)
      ORDER BY a
  }
} {2 4 49 50 56 62 80 scan 0 sort 0}
do_test where7-2.771.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=100
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR b=839
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR a=37
         OR b=759
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {14 16 37 40 66 69 72 74 92 100 scan 0 sort 0}
do_test where7-2.771.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=100
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR b=839
         OR (g='vutsrqp' AND f GLOB 'qrstu*')
         OR a=37
         OR b=759
         OR (g='jihgfed' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {14 16 37 40 66 69 72 74 92 100 scan 0 sort 0}
do_test where7-2.772.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 98 AND 100) AND a!=99)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=960
         OR b=297
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 27 94 96 98 100 scan 0 sort 0}
do_test where7-2.772.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 98 AND 100) AND a!=99)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR b=960
         OR b=297
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 27 94 96 98 100 scan 0 sort 0}
do_test where7-2.773.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=979
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR b=1023
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 16 34 46 48 60 84 86 89 93 96 scan 0 sort 0}
do_test where7-2.773.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=979
         OR (d>=96.0 AND d<97.0 AND d NOT NULL)
         OR (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR b=1023
         OR ((a BETWEEN 46 AND 48) AND a!=47)
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
      ORDER BY a
  }
} {8 16 34 46 48 60 84 86 89 93 96 scan 0 sort 0}
do_test where7-2.774.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=3
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 3 scan 0 sort 0}
do_test where7-2.774.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=3
         OR ((a BETWEEN 0 AND 2) AND a!=1)
      ORDER BY a
  }
} {2 3 scan 0 sort 0}
do_test where7-2.775.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR f='uvwxyzabc'
         OR a=43
         OR (g='qponmlk' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {13 20 41 43 46 72 83 98 scan 0 sort 0}
do_test where7-2.775.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR f='uvwxyzabc'
         OR a=43
         OR (g='qponmlk' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {13 20 41 43 46 72 83 98 scan 0 sort 0}
do_test where7-2.776.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=14
         OR a=76
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR b=795
         OR b=44
         OR b=88
         OR b=762
         OR b=891
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {4 8 14 17 24 45 47 73 76 81 scan 0 sort 0}
do_test where7-2.776.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=14
         OR a=76
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR b=795
         OR b=44
         OR b=88
         OR b=762
         OR b=891
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {4 8 14 17 24 45 47 73 76 81 scan 0 sort 0}
do_test where7-2.777.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'lmnop*')
         OR a=73
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=267
         OR f='ijklmnopq'
         OR b=674
      ORDER BY a
  }
} {8 11 34 39 41 60 73 86 scan 0 sort 0}
do_test where7-2.777.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'lmnop*')
         OR a=73
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=267
         OR f='ijklmnopq'
         OR b=674
      ORDER BY a
  }
} {8 11 34 39 41 60 73 86 scan 0 sort 0}
do_test where7-2.778.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=190
         OR a=59
         OR a=93
         OR b=36
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR a=62
         OR a=96
      ORDER BY a
  }
} {40 42 59 62 93 96 scan 0 sort 0}
do_test where7-2.778.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=190
         OR a=59
         OR a=93
         OR b=36
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR a=62
         OR a=96
      ORDER BY a
  }
} {40 42 59 62 93 96 scan 0 sort 0}
do_test where7-2.779.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR b=275
         OR a=78
         OR b=883
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR b=792
      ORDER BY a
  }
} {9 25 58 72 78 scan 0 sort 0}
do_test where7-2.779.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'jklmn*')
         OR b=275
         OR a=78
         OR b=883
         OR (g='mlkjihg' AND f GLOB 'ghijk*')
         OR b=792
      ORDER BY a
  }
} {9 25 58 72 78 scan 0 sort 0}
do_test where7-2.780.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=79
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 14 79 scan 0 sort 0}
do_test where7-2.780.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=79
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
      ORDER BY a
  }
} {10 14 79 scan 0 sort 0}
do_test where7-2.781.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='rstuvwxyz'
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR a=10
         OR b=440
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=440
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=264
         OR b=1081
      ORDER BY a
  }
} {3 10 17 24 40 43 65 69 76 95 scan 0 sort 0}
do_test where7-2.781.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='rstuvwxyz'
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR a=10
         OR b=440
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=440
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=264
         OR b=1081
      ORDER BY a
  }
} {3 10 17 24 40 43 65 69 76 95 scan 0 sort 0}
do_test where7-2.782.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=11011
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=715
         OR b=154
      ORDER BY a
  }
} {4 14 30 31 32 33 56 62 64 65 81 82 93 scan 0 sort 0}
do_test where7-2.782.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=11011
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR ((a BETWEEN 62 AND 64) AND a!=63)
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=715
         OR b=154
      ORDER BY a
  }
} {4 14 30 31 32 33 56 62 64 65 81 82 93 scan 0 sort 0}
do_test where7-2.783.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='uvwxyzabc'
         OR f='jklmnopqr'
         OR a=41
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR a=1
      ORDER BY a
  }
} {1 9 20 35 41 45 46 61 72 87 98 scan 0 sort 0}
do_test where7-2.783.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='uvwxyzabc'
         OR f='jklmnopqr'
         OR a=41
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR a=1
      ORDER BY a
  }
} {1 9 20 35 41 45 46 61 72 87 98 scan 0 sort 0}
do_test where7-2.784.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {35 88 90 92 96 100 scan 0 sort 0}
do_test where7-2.784.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR ((a BETWEEN 88 AND 90) AND a!=89)
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {35 88 90 92 96 100 scan 0 sort 0}
do_test where7-2.785.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR c=24024
         OR c=22022
      ORDER BY a
  }
} {33 35 59 64 65 66 70 71 72 scan 0 sort 0}
do_test where7-2.785.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 33 AND 35) AND a!=34)
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR c=24024
         OR c=22022
      ORDER BY a
  }
} {33 35 59 64 65 66 70 71 72 scan 0 sort 0}
do_test where7-2.786.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=17017
         OR b=550
         OR a=65
      ORDER BY a
  }
} {49 50 51 65 scan 0 sort 0}
do_test where7-2.786.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=17017
         OR b=550
         OR a=65
      ORDER BY a
  }
} {49 50 51 65 scan 0 sort 0}
do_test where7-2.787.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR c=29029
      ORDER BY a
  }
} {80 85 86 87 scan 0 sort 0}
do_test where7-2.787.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR c=29029
      ORDER BY a
  }
} {80 85 86 87 scan 0 sort 0}
do_test where7-2.788.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1012
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR b=234
      ORDER BY a
  }
} {32 80 90 92 scan 0 sort 0}
do_test where7-2.788.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1012
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR ((a BETWEEN 90 AND 92) AND a!=91)
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR b=234
      ORDER BY a
  }
} {32 80 90 92 scan 0 sort 0}
do_test where7-2.789.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=652
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=110
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=4
      ORDER BY a
  }
} {4 8 10 13 15 scan 0 sort 0}
do_test where7-2.789.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=652
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=110
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=4
      ORDER BY a
  }
} {4 8 10 13 15 scan 0 sort 0}
do_test where7-2.790.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
      ORDER BY a
  }
} {50 90 scan 0 sort 0}
do_test where7-2.790.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
      ORDER BY a
  }
} {50 90 scan 0 sort 0}
do_test where7-2.791.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR a=55
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
      ORDER BY a
  }
} {1 7 22 25 27 33 44 48 53 55 59 74 79 85 100 scan 0 sort 0}
do_test where7-2.791.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR a=55
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
         OR f='bcdefghij'
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
      ORDER BY a
  }
} {1 7 22 25 27 33 44 48 53 55 59 74 79 85 100 scan 0 sort 0}
do_test where7-2.792.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=121
         OR a=50
         OR b=443
         OR d>1e10
         OR (g='onmlkji' AND f GLOB 'yzabc*')
         OR f='zabcdefgh'
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {11 25 50 51 53 77 86 scan 0 sort 0}
do_test where7-2.792.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=121
         OR a=50
         OR b=443
         OR d>1e10
         OR (g='onmlkji' AND f GLOB 'yzabc*')
         OR f='zabcdefgh'
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {11 25 50 51 53 77 86 scan 0 sort 0}
do_test where7-2.793.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 83 AND 85) AND a!=84)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=891
         OR b=605
         OR b=990
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR b=902
      ORDER BY a
  }
} {13 20 55 81 82 83 85 90 92 scan 0 sort 0}
do_test where7-2.793.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 83 AND 85) AND a!=84)
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
         OR (d>=13.0 AND d<14.0 AND d NOT NULL)
         OR b=891
         OR b=605
         OR b=990
         OR (g='ihgfedc' AND f GLOB 'efghi*')
         OR b=902
      ORDER BY a
  }
} {13 20 55 81 82 83 85 90 92 scan 0 sort 0}
do_test where7-2.794.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=74
      ORDER BY a
  }
} {25 54 56 74 86 scan 0 sort 0}
do_test where7-2.794.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='tsrqpon' AND f GLOB 'zabcd*')
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR a=74
      ORDER BY a
  }
} {25 54 56 74 86 scan 0 sort 0}
do_test where7-2.795.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=14014
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=861
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 7 AND 9) AND a!=8)
      ORDER BY a
  }
} {7 9 40 41 42 50 53 55 scan 0 sort 0}
do_test where7-2.795.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=14014
         OR ((a BETWEEN 53 AND 55) AND a!=54)
         OR b=861
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR ((a BETWEEN 7 AND 9) AND a!=8)
      ORDER BY a
  }
} {7 9 40 41 42 50 53 55 scan 0 sort 0}
do_test where7-2.796.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=671
         OR b=88
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR f='efghijklm'
         OR b=33
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR c=19019
         OR b=322
      ORDER BY a
  }
} {3 4 8 22 30 48 55 56 57 60 61 62 64 74 82 98 100 scan 0 sort 0}
do_test where7-2.796.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=671
         OR b=88
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR f='efghijklm'
         OR b=33
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR c=19019
         OR b=322
      ORDER BY a
  }
} {3 4 8 22 30 48 55 56 57 60 61 62 64 74 82 98 100 scan 0 sort 0}
do_test where7-2.797.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=517
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR c=18018
         OR b=14
         OR a=83
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {33 35 43 47 52 53 54 83 scan 0 sort 0}
do_test where7-2.797.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=517
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR c=18018
         OR b=14
         OR a=83
         OR ((a BETWEEN 33 AND 35) AND a!=34)
      ORDER BY a
  }
} {33 35 43 47 52 53 54 83 scan 0 sort 0}
do_test where7-2.798.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=586
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 33 94 scan 0 sort 0}
do_test where7-2.798.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=586
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR (d>=33.0 AND d<34.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 33 94 scan 0 sort 0}
do_test where7-2.799.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=20020
         OR b=333
         OR b=762
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR a=66
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {58 59 60 66 73 81 83 scan 0 sort 0}
do_test where7-2.799.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=20020
         OR b=333
         OR b=762
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR a=66
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {58 59 60 66 73 81 83 scan 0 sort 0}
do_test where7-2.800.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=440
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=638
      ORDER BY a
  }
} {2 4 36 38 40 58 78 scan 0 sort 0}
do_test where7-2.800.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=440
         OR (d>=78.0 AND d<79.0 AND d NOT NULL)
         OR ((a BETWEEN 36 AND 38) AND a!=37)
         OR b=638
      ORDER BY a
  }
} {2 4 36 38 40 58 78 scan 0 sort 0}
do_test where7-2.801.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=935
         OR a=17
         OR b=1092
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 75 85 scan 0 sort 0}
do_test where7-2.801.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=935
         OR a=17
         OR b=1092
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
      ORDER BY a
  }
} {17 75 85 scan 0 sort 0}
do_test where7-2.802.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=79
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=1067
         OR b=22
         OR a=78
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR f='fghijklmn'
         OR b=608
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 5 13 15 31 40 42 57 66 68 78 79 83 97 scan 0 sort 0}
do_test where7-2.802.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=79
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR b=1067
         OR b=22
         OR a=78
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR f='fghijklmn'
         OR b=608
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 5 13 15 31 40 42 57 66 68 78 79 83 97 scan 0 sort 0}
do_test where7-2.803.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=66
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 36 43 scan 0 sort 0}
do_test where7-2.803.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=66
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
         OR (d>=36.0 AND d<37.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 36 43 scan 0 sort 0}
do_test where7-2.804.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='rstuvwxyz'
         OR a=22
      ORDER BY a
  }
} {17 22 43 69 95 scan 0 sort 0}
do_test where7-2.804.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='rstuvwxyz'
         OR a=22
      ORDER BY a
  }
} {17 22 43 69 95 scan 0 sort 0}
do_test where7-2.805.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=1092
         OR b=14
         OR c=2002
         OR b=33
         OR a=67
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR a=52
         OR b=80
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR a=88
      ORDER BY a
  }
} {3 4 5 6 12 14 49 52 67 70 72 88 scan 0 sort 0}
do_test where7-2.805.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 12 AND 14) AND a!=13)
         OR b=1092
         OR b=14
         OR c=2002
         OR b=33
         OR a=67
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR a=52
         OR b=80
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR a=88
      ORDER BY a
  }
} {3 4 5 6 12 14 49 52 67 70 72 88 scan 0 sort 0}
do_test where7-2.806.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=33
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=385
         OR ((a BETWEEN 51 AND 53) AND a!=52)
      ORDER BY a
  }
} {33 35 51 53 64 100 scan 0 sort 0}
do_test where7-2.806.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=33
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR b=385
         OR ((a BETWEEN 51 AND 53) AND a!=52)
      ORDER BY a
  }
} {33 35 51 53 64 100 scan 0 sort 0}
do_test where7-2.807.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=63
         OR b=572
         OR b=784
         OR f='bcdefghij'
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR a=72
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR b<0
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 27 52 53 54 62 63 68 70 72 79 89 91 scan 0 sort 0}
do_test where7-2.807.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=63
         OR b=572
         OR b=784
         OR f='bcdefghij'
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR a=72
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR b<0
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 52 AND 54) AND a!=53)
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 27 52 53 54 62 63 68 70 72 79 89 91 scan 0 sort 0}
do_test where7-2.808.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=902
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR c=34034
         OR b=682
         OR f='fghijklmn'
         OR a=6
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=828
         OR c=18018
      ORDER BY a
  }
} {5 6 16 31 42 52 53 54 57 62 68 82 83 94 100 scan 0 sort 0}
do_test where7-2.808.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=902
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR c=34034
         OR b=682
         OR f='fghijklmn'
         OR a=6
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR b=828
         OR c=18018
      ORDER BY a
  }
} {5 6 16 31 42 52 53 54 57 62 68 82 83 94 100 scan 0 sort 0}
do_test where7-2.809.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=902
         OR a=89
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR c=34034
         OR b=605
         OR b=143
         OR b=1004
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR a=100
         OR b=476
      ORDER BY a
  }
} {6 13 55 82 85 87 89 94 100 scan 0 sort 0}
do_test where7-2.809.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=902
         OR a=89
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR c=34034
         OR b=605
         OR b=143
         OR b=1004
         OR (g='xwvutsr' AND f GLOB 'ghijk*')
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR a=100
         OR b=476
      ORDER BY a
  }
} {6 13 55 82 85 87 89 94 100 scan 0 sort 0}
do_test where7-2.810.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=5005
         OR b=839
         OR a=19
         OR b=539
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 14 15 19 49 77 scan 0 sort 0}
do_test where7-2.810.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=5005
         OR b=839
         OR a=19
         OR b=539
         OR (d>=77.0 AND d<78.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 14 15 19 49 77 scan 0 sort 0}
do_test where7-2.811.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=31031
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {54 91 92 93 scan 0 sort 0}
do_test where7-2.811.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=31031
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {54 91 92 93 scan 0 sort 0}
do_test where7-2.812.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='ghijklmno'
         OR c=13013
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=242
         OR b=1081
         OR f='tuvwxyzab'
         OR a=12
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (g='srqponm' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {6 12 19 22 26 28 32 37 38 39 45 58 71 80 82 84 97 scan 0 sort 0}
do_test where7-2.812.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='ghijklmno'
         OR c=13013
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR b=242
         OR b=1081
         OR f='tuvwxyzab'
         OR a=12
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (g='srqponm' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {6 12 19 22 26 28 32 37 38 39 45 58 71 80 82 84 97 scan 0 sort 0}
do_test where7-2.813.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=60
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR a=62
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR a=22
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {4 17 21 22 24 40 44 60 62 scan 0 sort 0}
do_test where7-2.813.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=60
         OR (d>=17.0 AND d<18.0 AND d NOT NULL)
         OR a=62
         OR (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR a=22
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {4 17 21 22 24 40 44 60 62 scan 0 sort 0}
do_test where7-2.814.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR b=682
      ORDER BY a
  }
} {36 62 scan 0 sort 0}
do_test where7-2.814.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=36.0 AND d<37.0 AND d NOT NULL)
         OR b=682
      ORDER BY a
  }
} {36 62 scan 0 sort 0}
do_test where7-2.815.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR a=96
         OR ((a BETWEEN 21 AND 23) AND a!=22)
      ORDER BY a
  }
} {15 16 17 21 23 96 scan 0 sort 0}
do_test where7-2.815.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=16.0 AND d<17.0 AND d NOT NULL)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR a=96
         OR ((a BETWEEN 21 AND 23) AND a!=22)
      ORDER BY a
  }
} {15 16 17 21 23 96 scan 0 sort 0}
do_test where7-2.816.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=21
         OR b=322
         OR b=179
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
         OR c=33033
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 17 19 21 43 58 61 95 97 98 99 scan 0 sort 0}
do_test where7-2.816.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=58.0 AND d<59.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR a=21
         OR b=322
         OR b=179
         OR (g='ponmlkj' AND f GLOB 'rstuv*')
         OR c=33033
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR (d>=95.0 AND d<96.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 17 19 21 43 58 61 95 97 98 99 scan 0 sort 0}
do_test where7-2.817.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'stuvw*')
         OR f='jklmnopqr'
         OR b=1012
         OR b=597
         OR f='efghijklm'
         OR b=660
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR c=17017
         OR a=21
      ORDER BY a
  }
} {4 9 21 30 35 49 50 51 54 56 60 61 82 87 92 96 scan 0 sort 0}
do_test where7-2.817.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'stuvw*')
         OR f='jklmnopqr'
         OR b=1012
         OR b=597
         OR f='efghijklm'
         OR b=660
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR c=17017
         OR a=21
      ORDER BY a
  }
} {4 9 21 30 35 49 50 51 54 56 60 61 82 87 92 96 scan 0 sort 0}
do_test where7-2.818.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'cdefg*')
         OR c=34034
         OR a=80
      ORDER BY a
  }
} {28 80 100 scan 0 sort 0}
do_test where7-2.818.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'cdefg*')
         OR c=34034
         OR a=80
      ORDER BY a
  }
} {28 80 100 scan 0 sort 0}
do_test where7-2.819.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=92
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=891
         OR 1000000<b
         OR b=264
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR f='mnopqrstu'
      ORDER BY a
  }
} {8 12 24 32 38 46 64 81 90 92 scan 0 sort 0}
do_test where7-2.819.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'ijklm*')
         OR a=92
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
         OR b=891
         OR 1000000<b
         OR b=264
         OR (g='srqponm' AND f GLOB 'ghijk*')
         OR f='mnopqrstu'
      ORDER BY a
  }
} {8 12 24 32 38 46 64 81 90 92 scan 0 sort 0}
do_test where7-2.820.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=605
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=924
         OR b=564
         OR a=31
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=165
      ORDER BY a
  }
} {15 21 31 38 55 84 85 91 scan 0 sort 0}
do_test where7-2.820.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=605
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR (d>=85.0 AND d<86.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR b=924
         OR b=564
         OR a=31
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=165
      ORDER BY a
  }
} {15 21 31 38 55 84 85 91 scan 0 sort 0}
do_test where7-2.821.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=88
         OR a=35
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=927
         OR f='bcdefghij'
         OR a=87
         OR a=48
         OR a=61
      ORDER BY a
  }
} {1 8 27 35 38 40 48 53 61 79 87 scan 0 sort 0}
do_test where7-2.821.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=88
         OR a=35
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR b=927
         OR f='bcdefghij'
         OR a=87
         OR a=48
         OR a=61
      ORDER BY a
  }
} {1 8 27 35 38 40 48 53 61 79 87 scan 0 sort 0}
do_test where7-2.822.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=9
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR f='vwxyzabcd'
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {9 17 21 30 32 42 43 47 49 69 73 75 77 79 88 90 95 99 scan 0 sort 0}
do_test where7-2.822.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=9
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR ((a BETWEEN 75 AND 77) AND a!=76)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR ((a BETWEEN 47 AND 49) AND a!=48)
         OR f='vwxyzabcd'
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {9 17 21 30 32 42 43 47 49 69 73 75 77 79 88 90 95 99 scan 0 sort 0}
do_test where7-2.823.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=330
         OR a=50
         OR b=748
         OR b=190
         OR f='xyzabcdef'
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 15 23 30 49 50 68 75 79 scan 0 sort 0}
do_test where7-2.823.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 13 AND 15) AND a!=14)
         OR b=330
         OR a=50
         OR b=748
         OR b=190
         OR f='xyzabcdef'
         OR (d>=79.0 AND d<80.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 15 23 30 49 50 68 75 79 scan 0 sort 0}
do_test where7-2.824.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'lmnop*')
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 28 37 scan 0 sort 0}
do_test where7-2.824.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'lmnop*')
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
      ORDER BY a
  }
} {7 28 37 scan 0 sort 0}
do_test where7-2.825.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 58 AND 60) AND a!=59)
         OR b=608
         OR f='nopqrstuv'
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR f='defghijkl'
         OR a=23
      ORDER BY a
  }
} {2 3 13 22 23 28 29 39 45 49 55 58 60 65 81 83 91 scan 0 sort 0}
do_test where7-2.825.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 58 AND 60) AND a!=59)
         OR b=608
         OR f='nopqrstuv'
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR f='defghijkl'
         OR a=23
      ORDER BY a
  }
} {2 3 13 22 23 28 29 39 45 49 55 58 60 65 81 83 91 scan 0 sort 0}
do_test where7-2.826.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='ijklmnopq'
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=399
      ORDER BY a
  }
} {8 26 28 34 60 86 scan 0 sort 0}
do_test where7-2.826.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='ijklmnopq'
         OR ((a BETWEEN 26 AND 28) AND a!=27)
         OR b=399
      ORDER BY a
  }
} {8 26 28 34 60 86 scan 0 sort 0}
do_test where7-2.827.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='nmlkjih' AND f GLOB 'efghi*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR a=50
      ORDER BY a
  }
} {50 53 56 scan 0 sort 0}
do_test where7-2.827.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='nmlkjih' AND f GLOB 'efghi*')
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR a=50
      ORDER BY a
  }
} {50 53 56 scan 0 sort 0}
do_test where7-2.828.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=62
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {29 62 86 scan 0 sort 0}
do_test where7-2.828.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=62
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {29 62 86 scan 0 sort 0}
do_test where7-2.829.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=682
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='defghijkl'
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=883
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=355
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {3 17 29 35 37 55 62 76 77 78 81 85 87 scan 0 sort 0}
do_test where7-2.829.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=682
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR f='defghijkl'
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 85 AND 87) AND a!=86)
         OR b=883
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR b=355
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {3 17 29 35 37 55 62 76 77 78 81 85 87 scan 0 sort 0}
do_test where7-2.830.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=23
         OR b=256
         OR b=982
         OR c=16016
      ORDER BY a
  }
} {23 46 47 48 scan 0 sort 0}
do_test where7-2.830.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=23
         OR b=256
         OR b=982
         OR c=16016
      ORDER BY a
  }
} {23 46 47 48 scan 0 sort 0}
do_test where7-2.831.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=154
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR d>1e10
      ORDER BY a
  }
} {14 42 44 49 51 60 62 scan 0 sort 0}
do_test where7-2.831.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='mlkjihg' AND f GLOB 'klmno*')
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR b=154
         OR (g='mlkjihg' AND f GLOB 'ijklm*')
         OR d>1e10
      ORDER BY a
  }
} {14 42 44 49 51 60 62 scan 0 sort 0}
do_test where7-2.832.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR c=21021
         OR b=1070
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=1081
         OR c=24024
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=267
      ORDER BY a
  }
} {5 40 42 48 61 62 63 70 71 72 74 91 93 scan 0 sort 0}
do_test where7-2.832.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'wxyza*')
         OR c=21021
         OR b=1070
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=1081
         OR c=24024
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR b=267
      ORDER BY a
  }
} {5 40 42 48 61 62 63 70 71 72 74 91 93 scan 0 sort 0}
do_test where7-2.833.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=31
         OR a=65
         OR a=76
      ORDER BY a
  }
} {31 65 76 scan 0 sort 1}
do_test where7-2.833.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=31
         OR a=65
         OR a=76
      ORDER BY a
  }
} {31 65 76 scan 0 sort 1}
do_test where7-2.834.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=154
         OR b=187
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR a=10
         OR b=267
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR b=135
         OR b=157
      ORDER BY a
  }
} {10 14 17 60 62 85 scan 0 sort 0}
do_test where7-2.834.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=154
         OR b=187
         OR (g='hgfedcb' AND f GLOB 'hijkl*')
         OR a=10
         OR b=267
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR b=135
         OR b=157
      ORDER BY a
  }
} {10 14 17 60 62 85 scan 0 sort 0}
do_test where7-2.835.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=87
         OR b=828
         OR b=333
      ORDER BY a
  }
} {87 scan 0 sort 0}
do_test where7-2.835.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=87
         OR b=828
         OR b=333
      ORDER BY a
  }
} {87 scan 0 sort 0}
do_test where7-2.836.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='pqrstuvwx'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR a=44
         OR b=770
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR f='defghijkl'
      ORDER BY a
  }
} {3 15 29 34 41 44 55 61 63 67 70 81 93 scan 0 sort 0}
do_test where7-2.836.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='pqrstuvwx'
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR a=44
         OR b=770
         OR (g='rqponml' AND f GLOB 'ijklm*')
         OR f='defghijkl'
      ORDER BY a
  }
} {3 15 29 34 41 44 55 61 63 67 70 81 93 scan 0 sort 0}
do_test where7-2.837.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR f='jklmnopqr'
         OR b=630
         OR f='fghijklmn'
         OR a=55
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 5 9 17 19 31 35 40 55 57 61 83 87 scan 0 sort 0}
do_test where7-2.837.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR f='jklmnopqr'
         OR b=630
         OR f='fghijklmn'
         OR a=55
         OR (d>=2.0 AND d<3.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 5 9 17 19 31 35 40 55 57 61 83 87 scan 0 sort 0}
do_test where7-2.838.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=308
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR c=20020
         OR b=146
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR b=924
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR b=1012
         OR (g='srqponm' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {9 11 15 17 28 35 58 59 60 61 63 69 84 92 scan 0 sort 0}
do_test where7-2.838.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=308
         OR ((a BETWEEN 9 AND 11) AND a!=10)
         OR c=20020
         OR b=146
         OR ((a BETWEEN 61 AND 63) AND a!=62)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR b=924
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR b=1012
         OR (g='srqponm' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {9 11 15 17 28 35 58 59 60 61 63 69 84 92 scan 0 sort 0}
do_test where7-2.839.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=28028
         OR a=25
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=627
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=49
         OR b=55
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR b=517
      ORDER BY a
  }
} {5 17 25 46 47 49 51 57 67 82 83 84 92 94 scan 0 sort 0}
do_test where7-2.839.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=28028
         OR a=25
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR b=627
         OR ((a BETWEEN 49 AND 51) AND a!=50)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=49
         OR b=55
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR b=517
      ORDER BY a
  }
} {5 17 25 46 47 49 51 57 67 82 83 84 92 94 scan 0 sort 0}
do_test where7-2.840.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=17017
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {49 50 51 66 87 scan 0 sort 0}
do_test where7-2.840.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=17017
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {49 50 51 66 87 scan 0 sort 0}
do_test where7-2.841.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=53
         OR b=11
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR a=48
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 3 38 48 50 52 53 65 scan 0 sort 0}
do_test where7-2.841.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=53
         OR b=11
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR a=48
         OR (g='xwvutsr' AND f GLOB 'defgh*')
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
      ORDER BY a
  }
} {1 3 38 48 50 52 53 65 scan 0 sort 0}
do_test where7-2.842.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=663
         OR b=608
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=363
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR d>1e10
      ORDER BY a
  }
} {33 39 41 56 76 78 83 91 93 scan 0 sort 0}
do_test where7-2.842.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 91 AND 93) AND a!=92)
         OR b=663
         OR b=608
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=363
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR d>1e10
      ORDER BY a
  }
} {33 39 41 56 76 78 83 91 93 scan 0 sort 0}
do_test where7-2.843.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=443
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=14
         OR b=1001
         OR b=209
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR b=407
      ORDER BY a
  }
} {16 19 37 40 42 57 68 91 94 97 scan 0 sort 0}
do_test where7-2.843.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=443
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (g='nmlkjih' AND f GLOB 'fghij*')
         OR b=14
         OR b=1001
         OR b=209
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR b=407
      ORDER BY a
  }
} {16 19 37 40 42 57 68 91 94 97 scan 0 sort 0}
do_test where7-2.844.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=99
      ORDER BY a
  }
} {9 48 57 scan 0 sort 0}
do_test where7-2.844.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=57.0 AND d<58.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=99
      ORDER BY a
  }
} {9 48 57 scan 0 sort 0}
do_test where7-2.845.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=561
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=275
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=95
      ORDER BY a
  }
} {13 25 51 91 94 95 scan 0 sort 0}
do_test where7-2.845.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=561
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR b=275
         OR (g='vutsrqp' AND f GLOB 'nopqr*')
         OR a=95
      ORDER BY a
  }
} {13 25 51 91 94 95 scan 0 sort 0}
do_test where7-2.846.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=44
         OR b=902
         OR b=946
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=792
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {4 14 17 31 33 71 72 77 82 86 92 scan 0 sort 0}
do_test where7-2.846.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=44
         OR b=902
         OR b=946
         OR ((a BETWEEN 31 AND 33) AND a!=32)
         OR (g='jihgfed' AND f GLOB 'zabcd*')
         OR (g='vutsrqp' AND f GLOB 'opqrs*')
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=792
         OR (g='vutsrqp' AND f GLOB 'rstuv*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {4 14 17 31 33 71 72 77 82 86 92 scan 0 sort 0}
do_test where7-2.847.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=22
         OR c=9009
         OR b=616
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
      ORDER BY a
  }
} {2 6 25 26 27 32 56 58 66 68 84 scan 0 sort 0}
do_test where7-2.847.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=22
         OR c=9009
         OR b=616
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
      ORDER BY a
  }
} {2 6 25 26 27 32 56 58 66 68 84 scan 0 sort 0}
do_test where7-2.848.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=858
         OR a=59
         OR b=242
         OR ((a BETWEEN 42 AND 44) AND a!=43)
      ORDER BY a
  }
} {22 42 44 59 78 scan 0 sort 0}
do_test where7-2.848.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=858
         OR a=59
         OR b=242
         OR ((a BETWEEN 42 AND 44) AND a!=43)
      ORDER BY a
  }
} {22 42 44 59 78 scan 0 sort 0}
do_test where7-2.849.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR a=84
         OR a=1
         OR c=16016
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR 1000000<b
      ORDER BY a
  }
} {1 7 14 16 46 47 48 60 62 84 95 99 scan 0 sort 0}
do_test where7-2.849.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'vwxyz*')
         OR a=84
         OR a=1
         OR c=16016
         OR ((a BETWEEN 60 AND 62) AND a!=61)
         OR ((a BETWEEN 14 AND 16) AND a!=15)
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
         OR 1000000<b
      ORDER BY a
  }
} {1 7 14 16 46 47 48 60 62 84 95 99 scan 0 sort 0}
do_test where7-2.850.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=418
         OR b=748
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR a=60
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=81
      ORDER BY a
  }
} {38 41 42 43 44 45 60 61 68 81 scan 0 sort 0}
do_test where7-2.850.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=61.0 AND d<62.0 AND d NOT NULL)
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR b=418
         OR b=748
         OR ((a BETWEEN 42 AND 44) AND a!=43)
         OR a=60
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR a=81
      ORDER BY a
  }
} {38 41 42 43 44 45 60 61 68 81 scan 0 sort 0}
do_test where7-2.851.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=44
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR b=737
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR f='lmnopqrst'
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {4 11 12 18 37 63 67 75 79 81 89 scan 0 sort 0}
do_test where7-2.851.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'pqrst*')
         OR b=44
         OR ((a BETWEEN 79 AND 81) AND a!=80)
         OR b=737
         OR (d>=12.0 AND d<13.0 AND d NOT NULL)
         OR (d>=11.0 AND d<12.0 AND d NOT NULL)
         OR f='lmnopqrst'
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
      ORDER BY a
  }
} {4 11 12 18 37 63 67 75 79 81 89 scan 0 sort 0}
do_test where7-2.852.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=938
         OR a=72
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {41 62 64 72 92 scan 0 sort 0}
do_test where7-2.852.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=938
         OR a=72
         OR (d>=41.0 AND d<42.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {41 62 64 72 92 scan 0 sort 0}
do_test where7-2.853.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=905
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=707
         OR b=146
         OR f='lmnopqrst'
      ORDER BY a
  }
} {11 18 37 44 63 70 76 89 96 scan 0 sort 0}
do_test where7-2.853.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=905
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
         OR b=707
         OR b=146
         OR f='lmnopqrst'
      ORDER BY a
  }
} {11 18 37 44 63 70 76 89 96 scan 0 sort 0}
do_test where7-2.854.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=839
         OR c=10010
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR c=8008
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=275
         OR ((a BETWEEN 16 AND 18) AND a!=17)
      ORDER BY a
  }
} {8 16 18 22 23 24 25 28 29 30 34 39 60 65 67 86 scan 0 sort 0}
do_test where7-2.854.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=39.0 AND d<40.0 AND d NOT NULL)
         OR b=839
         OR c=10010
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR c=8008
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=275
         OR ((a BETWEEN 16 AND 18) AND a!=17)
      ORDER BY a
  }
} {8 16 18 22 23 24 25 28 29 30 34 39 60 65 67 86 scan 0 sort 0}
do_test where7-2.855.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=190
         OR b=715
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=36
         OR b=465
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 46 65 67 scan 0 sort 0}
do_test where7-2.855.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR b=190
         OR b=715
         OR ((a BETWEEN 65 AND 67) AND a!=66)
         OR b=36
         OR b=465
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 46 65 67 scan 0 sort 0}
do_test where7-2.856.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=883
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR a=37
         OR b=968
         OR b=374
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=83
      ORDER BY a
  }
} {26 31 34 37 52 65 67 69 83 88 scan 0 sort 0}
do_test where7-2.856.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=883
         OR (d>=26.0 AND d<27.0 AND d NOT NULL)
         OR a=37
         OR b=968
         OR b=374
         OR (d>=31.0 AND d<32.0 AND d NOT NULL)
         OR a=83
      ORDER BY a
  }
} {26 31 34 37 52 65 67 69 83 88 scan 0 sort 0}
do_test where7-2.857.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=971
         OR f='abcdefghi'
         OR b=308
         OR f='ghijklmno'
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR b=443
         OR b=355
         OR a=40
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=113
         OR b=363
      ORDER BY a
  }
} {2 6 22 26 28 32 33 40 48 52 58 74 78 84 100 scan 0 sort 0}
do_test where7-2.857.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=971
         OR f='abcdefghi'
         OR b=308
         OR f='ghijklmno'
         OR (f GLOB '?xyza*' AND f GLOB 'wxyz*')
         OR b=443
         OR b=355
         OR a=40
         OR (g='yxwvuts' AND f GLOB 'cdefg*')
         OR b=113
         OR b=363
      ORDER BY a
  }
} {2 6 22 26 28 32 33 40 48 52 58 74 78 84 100 scan 0 sort 0}
do_test where7-2.858.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=286
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 99 scan 0 sort 0}
do_test where7-2.858.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=286
         OR (d>=99.0 AND d<100.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 99 scan 0 sort 0}
do_test where7-2.859.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=740
         OR b=957
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR a=8
      ORDER BY a
  }
} {8 23 51 53 87 scan 0 sort 0}
do_test where7-2.859.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=740
         OR b=957
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR a=8
      ORDER BY a
  }
} {8 23 51 53 87 scan 0 sort 0}
do_test where7-2.860.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR a=59
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=781
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR b=146
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 21 22 23 34 55 57 59 70 71 72 scan 0 sort 0}
do_test where7-2.860.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR a=59
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=781
         OR ((a BETWEEN 55 AND 57) AND a!=56)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR ((a BETWEEN 21 AND 23) AND a!=22)
         OR b=146
         OR (d>=22.0 AND d<23.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 21 22 23 34 55 57 59 70 71 72 scan 0 sort 0}
do_test where7-2.861.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR c=8008
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR f='stuvwxyza'
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=17
      ORDER BY a
  }
} {8 17 18 22 23 24 25 30 32 44 65 70 96 scan 0 sort 0}
do_test where7-2.861.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR c=8008
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR f='stuvwxyza'
         OR (d>=8.0 AND d<9.0 AND d NOT NULL)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR a=17
      ORDER BY a
  }
} {8 17 18 22 23 24 25 30 32 44 65 70 96 scan 0 sort 0}
do_test where7-2.862.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=9
         OR b=352
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=781
      ORDER BY a
  }
} {9 32 44 71 scan 0 sort 0}
do_test where7-2.862.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=9
         OR b=352
         OR (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=781
      ORDER BY a
  }
} {9 32 44 71 scan 0 sort 0}
do_test where7-2.863.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=19
         OR c=9009
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR a=8
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=473
      ORDER BY a
  }
} {8 13 19 25 26 27 39 43 56 65 91 scan 0 sort 0}
do_test where7-2.863.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=19
         OR c=9009
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR a=8
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=473
      ORDER BY a
  }
} {8 13 19 25 26 27 39 43 56 65 91 scan 0 sort 0}
do_test where7-2.864.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
         OR a=73
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=938
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR b=44
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 7 10 12 19 33 38 54 59 69 71 73 85 89 scan 0 sort 0}
do_test where7-2.864.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='wvutsrq' AND f GLOB 'mnopq*')
         OR a=73
         OR (d>=19.0 AND d<20.0 AND d NOT NULL)
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=938
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR (g='wvutsrq' AND f GLOB 'klmno*')
         OR ((a BETWEEN 69 AND 71) AND a!=70)
         OR (f GLOB '?ijkl*' AND f GLOB 'hijk*')
         OR b=44
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 7 10 12 19 33 38 54 59 69 71 73 85 89 scan 0 sort 0}
do_test where7-2.865.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c<=10
         OR 1000000<b
         OR a=70
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR b=619
      ORDER BY a
  }
} {25 70 scan 0 sort 0}
do_test where7-2.865.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c<=10
         OR 1000000<b
         OR a=70
         OR (d>=25.0 AND d<26.0 AND d NOT NULL)
         OR b=619
      ORDER BY a
  }
} {25 70 scan 0 sort 0}
do_test where7-2.866.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=55
         OR c<=10
         OR a=91
         OR b=146
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR a=90
         OR a=59
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR a=19
         OR c=34034
      ORDER BY a
  }
} {5 19 44 46 51 59 90 91 93 100 scan 0 sort 0}
do_test where7-2.866.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=55
         OR c<=10
         OR a=91
         OR b=146
         OR ((a BETWEEN 44 AND 46) AND a!=45)
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR a=90
         OR a=59
         OR (d>=93.0 AND d<94.0 AND d NOT NULL)
         OR a=19
         OR c=34034
      ORDER BY a
  }
} {5 19 44 46 51 59 90 91 93 100 scan 0 sort 0}
do_test where7-2.867.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=28028
         OR f='mnopqrstu'
      ORDER BY a
  }
} {12 38 64 82 83 84 90 scan 0 sort 0}
do_test where7-2.867.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=28028
         OR f='mnopqrstu'
      ORDER BY a
  }
} {12 38 64 82 83 84 90 scan 0 sort 0}
do_test where7-2.868.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=839
         OR b=627
         OR b=113
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR c=16016
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR f='yzabcdefg'
         OR b=451
      ORDER BY a
  }
} {4 24 32 34 41 46 47 48 50 56 57 76 scan 0 sort 0}
do_test where7-2.868.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=839
         OR b=627
         OR b=113
         OR (d>=4.0 AND d<5.0 AND d NOT NULL)
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR c=16016
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR f='yzabcdefg'
         OR b=451
      ORDER BY a
  }
} {4 24 32 34 41 46 47 48 50 56 57 76 scan 0 sort 0}
do_test where7-2.869.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=42
         OR b=674
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
      ORDER BY a
  }
} {30 32 42 89 91 scan 0 sort 0}
do_test where7-2.869.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=42
         OR b=674
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
      ORDER BY a
  }
} {30 32 42 89 91 scan 0 sort 0}
do_test where7-2.870.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=715
         OR a=37
      ORDER BY a
  }
} {37 65 scan 0 sort 0}
do_test where7-2.870.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=715
         OR a=37
      ORDER BY a
  }
} {37 65 scan 0 sort 0}
do_test where7-2.871.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=1001
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 41 43 69 91 95 97 scan 0 sort 0}
do_test where7-2.871.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=1001
         OR ((a BETWEEN 41 AND 43) AND a!=42)
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
      ORDER BY a
  }
} {17 41 43 69 91 95 97 scan 0 sort 0}
do_test where7-2.872.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=1048
         OR f='uvwxyzabc'
         OR b=685
      ORDER BY a
  }
} {7 18 20 29 46 72 98 scan 0 sort 0}
do_test where7-2.872.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=18.0 AND d<19.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (d>=7.0 AND d<8.0 AND d NOT NULL)
         OR b=1048
         OR f='uvwxyzabc'
         OR b=685
      ORDER BY a
  }
} {7 18 20 29 46 72 98 scan 0 sort 0}
do_test where7-2.873.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=13013
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR b=1048
         OR ((a BETWEEN 99 AND 101) AND a!=100)
      ORDER BY a
  }
} {37 38 39 41 42 66 87 99 scan 0 sort 0}
do_test where7-2.873.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=13013
         OR (g='qponmlk' AND f GLOB 'qrstu*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR (g='hgfedcb' AND f GLOB 'jklmn*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR b=1048
         OR ((a BETWEEN 99 AND 101) AND a!=100)
      ORDER BY a
  }
} {37 38 39 41 42 66 87 99 scan 0 sort 0}
do_test where7-2.874.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=902
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR f='uvwxyzabc'
      ORDER BY a
  }
} {20 46 66 72 82 98 scan 0 sort 0}
do_test where7-2.874.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=902
         OR (g='lkjihgf' AND f GLOB 'opqrs*')
         OR f='uvwxyzabc'
      ORDER BY a
  }
} {20 46 66 72 82 98 scan 0 sort 0}
do_test where7-2.875.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='ijklmnopq'
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=56
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
      ORDER BY a
  }
} {8 9 20 23 34 49 56 60 65 80 82 86 scan 0 sort 0}
do_test where7-2.875.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='ijklmnopq'
         OR ((a BETWEEN 80 AND 82) AND a!=81)
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=56
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'xyzab*')
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
      ORDER BY a
  }
} {8 9 20 23 34 49 56 60 65 80 82 86 scan 0 sort 0}
do_test where7-2.876.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=520
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=432
         OR a=44
      ORDER BY a
  }
} {28 44 scan 0 sort 0}
do_test where7-2.876.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=520
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=432
         OR a=44
      ORDER BY a
  }
} {28 44 scan 0 sort 0}
do_test where7-2.877.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=4
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=96
         OR b=979
         OR b=520
      ORDER BY a
  }
} {4 12 14 89 96 scan 0 sort 0}
do_test where7-2.877.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=4
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=96
         OR b=979
         OR b=520
      ORDER BY a
  }
} {4 12 14 89 96 scan 0 sort 0}
do_test where7-2.878.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=1026
         OR b=465
         OR b<0
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR b=770
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR c=18018
      ORDER BY a
  }
} {24 26 29 50 52 53 54 59 70 81 83 98 scan 0 sort 0}
do_test where7-2.878.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 24 AND 26) AND a!=25)
         OR b=1026
         OR b=465
         OR b<0
         OR ((a BETWEEN 81 AND 83) AND a!=82)
         OR ((a BETWEEN 50 AND 52) AND a!=51)
         OR (d>=29.0 AND d<30.0 AND d NOT NULL)
         OR b=770
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR (d>=59.0 AND d<60.0 AND d NOT NULL)
         OR c=18018
      ORDER BY a
  }
} {24 26 29 50 52 53 54 59 70 81 83 98 scan 0 sort 0}
do_test where7-2.879.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='gfedcba' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {8 34 60 70 86 89 91 92 scan 0 sort 0}
do_test where7-2.879.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='gfedcba' AND f GLOB 'nopqr*')
         OR ((a BETWEEN 89 AND 91) AND a!=90)
         OR (d>=60.0 AND d<61.0 AND d NOT NULL)
         OR (f GLOB '?jklm*' AND f GLOB 'ijkl*')
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {8 34 60 70 86 89 91 92 scan 0 sort 0}
do_test where7-2.880.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=100
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=1023
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR c=28028
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {17 19 21 56 72 74 78 80 82 83 84 93 100 scan 0 sort 0}
do_test where7-2.880.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=100
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=1023
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR ((a BETWEEN 72 AND 74) AND a!=73)
         OR ((a BETWEEN 78 AND 80) AND a!=79)
         OR c=28028
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {17 19 21 56 72 74 78 80 82 83 84 93 100 scan 0 sort 0}
do_test where7-2.881.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=48
         OR c=32032
         OR b=1078
      ORDER BY a
  }
} {48 94 95 96 98 scan 0 sort 0}
do_test where7-2.881.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=48
         OR c=32032
         OR b=1078
      ORDER BY a
  }
} {48 94 95 96 98 scan 0 sort 0}
do_test where7-2.882.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=993
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR a=96
         OR c=15015
         OR a=63
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=1100
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=48
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {4 6 8 35 43 44 45 48 61 63 96 100 scan 0 sort 0}
do_test where7-2.882.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=993
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR a=96
         OR c=15015
         OR a=63
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=1100
         OR (g='rqponml' AND f GLOB 'jklmn*')
         OR a=48
         OR (g='wvutsrq' AND f GLOB 'ijklm*')
      ORDER BY a
  }
} {4 6 8 35 43 44 45 48 61 63 96 100 scan 0 sort 0}
do_test where7-2.883.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=2
         OR b=1012
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=355
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR b=880
         OR f IS NULL
         OR b=619
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=20
      ORDER BY a
  }
} {2 15 20 64 80 83 85 86 88 92 scan 0 sort 0}
do_test where7-2.883.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=2
         OR b=1012
         OR ((a BETWEEN 83 AND 85) AND a!=84)
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=355
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR b=880
         OR f IS NULL
         OR b=619
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=20
      ORDER BY a
  }
} {2 15 20 64 80 83 85 86 88 92 scan 0 sort 0}
do_test where7-2.884.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=23023
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=16
         OR f='fghijklmn'
         OR a=62
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
      ORDER BY a
  }
} {5 14 16 28 31 40 52 57 62 65 66 67 68 69 83 92 96 scan 0 sort 0}
do_test where7-2.884.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=23023
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=16
         OR f='fghijklmn'
         OR a=62
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR ((a BETWEEN 65 AND 67) AND a!=66)
      ORDER BY a
  }
} {5 14 16 28 31 40 52 57 62 65 66 67 68 69 83 92 96 scan 0 sort 0}
do_test where7-2.885.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=85
      ORDER BY a
  }
} {22 30 32 63 65 72 85 scan 0 sort 0}
do_test where7-2.885.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'wxyza*')
         OR (d>=72.0 AND d<73.0 AND d NOT NULL)
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR ((a BETWEEN 63 AND 65) AND a!=64)
         OR a=85
      ORDER BY a
  }
} {22 30 32 63 65 72 85 scan 0 sort 0}
do_test where7-2.886.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR c=23023
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR a=19
         OR b=902
      ORDER BY a
  }
} {19 67 68 69 75 82 98 100 scan 0 sort 0}
do_test where7-2.886.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'xyzab*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR c=23023
         OR (g='edcbazy' AND f GLOB 'wxyza*')
         OR a=19
         OR b=902
      ORDER BY a
  }
} {19 67 68 69 75 82 98 100 scan 0 sort 0}
do_test where7-2.887.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=2002
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR b=1015
         OR a=78
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 5 6 27 29 35 76 78 scan 0 sort 0}
do_test where7-2.887.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=2002
         OR ((a BETWEEN 27 AND 29) AND a!=28)
         OR b=1015
         OR a=78
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR (d>=35.0 AND d<36.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 5 6 27 29 35 76 78 scan 0 sort 0}
do_test where7-2.888.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=27027
         OR f='opqrstuvw'
         OR b=410
      ORDER BY a
  }
} {14 40 66 79 80 81 92 scan 0 sort 0}
do_test where7-2.888.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=27027
         OR f='opqrstuvw'
         OR b=410
      ORDER BY a
  }
} {14 40 66 79 80 81 92 scan 0 sort 0}
do_test where7-2.889.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=48
         OR b=113
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR b=143
      ORDER BY a
  }
} {5 13 15 48 77 scan 0 sort 0}
do_test where7-2.889.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='jihgfed' AND f GLOB 'zabcd*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=48
         OR b=113
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR b=143
      ORDER BY a
  }
} {5 13 15 48 77 scan 0 sort 0}
do_test where7-2.890.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=80
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR b=718
         OR c=2002
         OR a=60
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR b=476
         OR f='opqrstuvw'
      ORDER BY a
  }
} {2 4 5 6 14 40 60 66 80 92 scan 0 sort 0}
do_test where7-2.890.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=80
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR b=718
         OR c=2002
         OR a=60
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR b=476
         OR f='opqrstuvw'
      ORDER BY a
  }
} {2 4 5 6 14 40 60 66 80 92 scan 0 sort 0}
do_test where7-2.891.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=33
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=2
         OR a=64
         OR b=663
         OR b=385
         OR b=542
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 9 14 20 33 35 40 64 66 92 scan 0 sort 0}
do_test where7-2.891.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=33
         OR (f GLOB '?pqrs*' AND f GLOB 'opqr*')
         OR a=2
         OR a=64
         OR b=663
         OR b=385
         OR b=542
         OR (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 9 14 20 33 35 40 64 66 92 scan 0 sort 0}
do_test where7-2.892.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=608
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR b=572
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR b=220
         OR a=46
         OR a=62
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
      ORDER BY a
  }
} {20 21 46 47 52 62 73 75 83 99 scan 0 sort 0}
do_test where7-2.892.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=608
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR b=572
         OR (d>=75.0 AND d<76.0 AND d NOT NULL)
         OR b=220
         OR a=46
         OR a=62
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
      ORDER BY a
  }
} {20 21 46 47 52 62 73 75 83 99 scan 0 sort 0}
do_test where7-2.893.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=1045
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {14 16 95 97 scan 0 sort 0}
do_test where7-2.893.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR b=1045
         OR ((a BETWEEN 14 AND 16) AND a!=15)
      ORDER BY a
  }
} {14 16 95 97 scan 0 sort 0}
do_test where7-2.894.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=649
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR a=74
         OR b=476
         OR b=253
      ORDER BY a
  }
} {23 25 39 41 59 62 74 scan 0 sort 0}
do_test where7-2.894.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=649
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=62.0 AND d<63.0 AND d NOT NULL)
         OR a=74
         OR b=476
         OR b=253
      ORDER BY a
  }
} {23 25 39 41 59 62 74 scan 0 sort 0}
do_test where7-2.895.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=817
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR d<0.0
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=87
         OR b=88
         OR b=465
      ORDER BY a
  }
} {8 23 42 82 84 87 98 scan 0 sort 0}
do_test where7-2.895.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=817
         OR (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR ((a BETWEEN 82 AND 84) AND a!=83)
         OR d<0.0
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
         OR a=87
         OR b=88
         OR b=465
      ORDER BY a
  }
} {8 23 42 82 84 87 98 scan 0 sort 0}
do_test where7-2.896.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=773
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR c>=34035
         OR c=34034
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {48 80 93 100 scan 0 sort 0}
do_test where7-2.896.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='onmlkji' AND f GLOB 'wxyza*')
         OR b=773
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR c>=34035
         OR c=34034
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {48 80 93 100 scan 0 sort 0}
do_test where7-2.897.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=751
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR a=21
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=671
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=1012
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=869
      ORDER BY a
  }
} {17 19 21 32 34 54 56 61 67 69 79 88 92 scan 0 sort 0}
do_test where7-2.897.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=751
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR a=21
         OR ((a BETWEEN 17 AND 19) AND a!=18)
         OR b=671
         OR (d>=88.0 AND d<89.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=1012
         OR (g='nmlkjih' AND f GLOB 'efghi*')
         OR b=869
      ORDER BY a
  }
} {17 19 21 32 34 54 56 61 67 69 79 88 92 scan 0 sort 0}
do_test where7-2.898.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=28028
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {29 31 82 83 84 scan 0 sort 0}
do_test where7-2.898.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=28028
         OR ((a BETWEEN 29 AND 31) AND a!=30)
      ORDER BY a
  }
} {29 31 82 83 84 scan 0 sort 0}
do_test where7-2.899.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 75 AND 77) AND a!=76)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=509
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {18 20 65 75 77 scan 0 sort 0}
do_test where7-2.899.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 75 AND 77) AND a!=76)
         OR (g='lkjihgf' AND f GLOB 'nopqr*')
         OR b=509
         OR ((a BETWEEN 18 AND 20) AND a!=19)
      ORDER BY a
  }
} {18 20 65 75 77 scan 0 sort 0}
do_test where7-2.900.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
         OR b=165
         OR b=487
      ORDER BY a
  }
} {15 98 scan 0 sort 0}
do_test where7-2.900.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
         OR b=165
         OR b=487
      ORDER BY a
  }
} {15 98 scan 0 sort 0}
do_test where7-2.901.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='stuvwxyza'
         OR a=62
         OR a=47
      ORDER BY a
  }
} {18 44 47 62 70 96 scan 0 sort 0}
do_test where7-2.901.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='stuvwxyza'
         OR a=62
         OR a=47
      ORDER BY a
  }
} {18 44 47 62 70 96 scan 0 sort 0}
do_test where7-2.902.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=14
         OR b=1070
      ORDER BY a
  }
} {14 35 37 scan 0 sort 0}
do_test where7-2.902.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 35 AND 37) AND a!=36)
         OR a=14
         OR b=1070
      ORDER BY a
  }
} {14 35 37 scan 0 sort 0}
do_test where7-2.903.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=57
         OR b=256
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR a=35
         OR b=542
         OR a=61
         OR b=784
         OR a=57
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {35 46 57 61 76 scan 0 sort 0}
do_test where7-2.903.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=57
         OR b=256
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR a=35
         OR b=542
         OR a=61
         OR b=784
         OR a=57
         OR (g='ponmlkj' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {35 46 57 61 76 scan 0 sort 0}
do_test where7-2.904.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=66
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=85
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR b=198
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {6 7 9 18 26 49 52 66 68 69 78 85 scan 0 sort 0}
do_test where7-2.904.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?bcde*' AND f GLOB 'abcd*')
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=66
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR a=85
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR (g='xwvutsr' AND f GLOB 'hijkl*')
         OR b=198
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {6 7 9 18 26 49 52 66 68 69 78 85 scan 0 sort 0}
do_test where7-2.905.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=31031
         OR f='tuvwxyzab'
         OR a=51
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {19 45 51 71 91 92 93 97 98 scan 0 sort 0}
do_test where7-2.905.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=31031
         OR f='tuvwxyzab'
         OR a=51
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {19 45 51 71 91 92 93 97 98 scan 0 sort 0}
do_test where7-2.906.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {6 32 58 84 99 scan 0 sort 0}
do_test where7-2.906.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
      ORDER BY a
  }
} {6 32 58 84 99 scan 0 sort 0}
do_test where7-2.907.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR a=74
         OR a=79
      ORDER BY a
  }
} {49 74 79 91 scan 0 sort 0}
do_test where7-2.907.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR a=74
         OR a=79
      ORDER BY a
  }
} {49 74 79 91 scan 0 sort 0}
do_test where7-2.908.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=751
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR a=43
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=80
      ORDER BY a
  }
} {5 43 82 84 86 94 96 scan 0 sort 0}
do_test where7-2.908.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=751
         OR (d>=82.0 AND d<83.0 AND d NOT NULL)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='xwvutsr' AND f GLOB 'fghij*')
         OR a=43
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=80
      ORDER BY a
  }
} {5 43 82 84 86 94 96 scan 0 sort 0}
do_test where7-2.909.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
      ORDER BY a
  }
} {71 92 scan 0 sort 0}
do_test where7-2.909.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR (d>=92.0 AND d<93.0 AND d NOT NULL)
      ORDER BY a
  }
} {71 92 scan 0 sort 0}
do_test where7-2.910.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=286
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR c=32032
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
         OR c=34034
         OR b=638
         OR b=451
         OR a=59
         OR b=792
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 41 58 59 72 73 94 95 96 97 100 scan 0 sort 0}
do_test where7-2.910.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=286
         OR (g='fedcbaz' AND f GLOB 'tuvwx*')
         OR c=32032
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
         OR c=34034
         OR b=638
         OR b=451
         OR a=59
         OR b=792
         OR (d>=73.0 AND d<74.0 AND d NOT NULL)
      ORDER BY a
  }
} {26 41 58 59 72 73 94 95 96 97 100 scan 0 sort 0}
do_test where7-2.911.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 23 AND 25) AND a!=24)
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR a=57
         OR b=982
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=25
      ORDER BY a
  }
} {3 23 25 57 62 71 77 79 scan 0 sort 0}
do_test where7-2.911.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 23 AND 25) AND a!=24)
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (g='kjihgfe' AND f GLOB 'tuvwx*')
         OR a=57
         OR b=982
         OR ((a BETWEEN 77 AND 79) AND a!=78)
         OR (g='mlkjihg' AND f GLOB 'klmno*')
         OR a=25
      ORDER BY a
  }
} {3 23 25 57 62 71 77 79 scan 0 sort 0}
do_test where7-2.912.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1089
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR c=7007
         OR b=575
         OR a=84
         OR c=34034
         OR b=795
      ORDER BY a
  }
} {15 19 20 21 39 41 67 84 93 99 100 scan 0 sort 0}
do_test where7-2.912.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1089
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR c=7007
         OR b=575
         OR a=84
         OR c=34034
         OR b=795
      ORDER BY a
  }
} {15 19 20 21 39 41 67 84 93 99 100 scan 0 sort 0}
do_test where7-2.913.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=630
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=575
      ORDER BY a
  }
} {33 76 78 scan 0 sort 0}
do_test where7-2.913.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=630
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR b=575
      ORDER BY a
  }
} {33 76 78 scan 0 sort 0}
do_test where7-2.914.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=59
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=44
         OR a=77
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR a=80
         OR b=14
      ORDER BY a
  }
} {5 44 59 71 77 80 scan 0 sort 0}
do_test where7-2.914.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=59
         OR (d>=5.0 AND d<6.0 AND d NOT NULL)
         OR a=44
         OR a=77
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR a=80
         OR b=14
      ORDER BY a
  }
} {5 44 59 71 77 80 scan 0 sort 0}
do_test where7-2.915.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=693
         OR b=319
         OR b=935
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {29 48 63 85 scan 0 sort 0}
do_test where7-2.915.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=693
         OR b=319
         OR b=935
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {29 48 63 85 scan 0 sort 0}
do_test where7-2.916.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=3
         OR f='abcdefghi'
         OR b=817
         OR a=61
         OR a=32
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR b=861
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {3 26 32 35 36 37 52 61 65 78 90 scan 0 sort 0}
do_test where7-2.916.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=3
         OR f='abcdefghi'
         OR b=817
         OR a=61
         OR a=32
         OR (d>=65.0 AND d<66.0 AND d NOT NULL)
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR b=861
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {3 26 32 35 36 37 52 61 65 78 90 scan 0 sort 0}
do_test where7-2.917.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=31
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=542
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR a=84
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=762
         OR b=726
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=630
      ORDER BY a
  }
} {31 66 72 76 84 86 97 scan 0 sort 0}
do_test where7-2.917.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=31
         OR ((a BETWEEN 84 AND 86) AND a!=85)
         OR b=542
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR a=84
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=762
         OR b=726
         OR (g='jihgfed' AND f GLOB 'yzabc*')
         OR b=630
      ORDER BY a
  }
} {31 66 72 76 84 86 97 scan 0 sort 0}
do_test where7-2.918.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='gfedcba' AND f GLOB 'klmno*')
         OR b=894
         OR a=81
         OR c=26026
         OR b=333
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {13 39 65 76 77 78 81 88 91 scan 0 sort 0}
do_test where7-2.918.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='gfedcba' AND f GLOB 'klmno*')
         OR b=894
         OR a=81
         OR c=26026
         OR b=333
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {13 39 65 76 77 78 81 88 91 scan 0 sort 0}
do_test where7-2.919.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 97 AND 99) AND a!=98)
         OR b=663
         OR b=223
         OR b=641
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=21
         OR ((a BETWEEN 60 AND 62) AND a!=61)
      ORDER BY a
  }
} {21 60 62 63 97 99 scan 0 sort 0}
do_test where7-2.919.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 97 AND 99) AND a!=98)
         OR b=663
         OR b=223
         OR b=641
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=21
         OR ((a BETWEEN 60 AND 62) AND a!=61)
      ORDER BY a
  }
} {21 60 62 63 97 99 scan 0 sort 0}
do_test where7-2.920.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=16
         OR b=685
      ORDER BY a
  }
} {16 scan 0 sort 0}
do_test where7-2.920.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=16
         OR b=685
      ORDER BY a
  }
} {16 scan 0 sort 0}
do_test where7-2.921.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=20020
         OR f='cdefghijk'
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 54 58 59 60 80 98 scan 0 sort 0}
do_test where7-2.921.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=20020
         OR f='cdefghijk'
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 28 54 58 59 60 80 98 scan 0 sort 0}
do_test where7-2.922.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
         OR b=561
      ORDER BY a
  }
} {51 85 scan 0 sort 0}
do_test where7-2.922.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='hgfedcb' AND f GLOB 'hijkl*')
         OR b=561
      ORDER BY a
  }
} {51 85 scan 0 sort 0}
do_test where7-2.923.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=440
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=718
         OR b=770
         OR b=803
      ORDER BY a
  }
} {40 70 73 86 scan 0 sort 0}
do_test where7-2.923.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=440
         OR (d>=86.0 AND d<87.0 AND d NOT NULL)
         OR b=718
         OR b=770
         OR b=803
      ORDER BY a
  }
} {40 70 73 86 scan 0 sort 0}
do_test where7-2.924.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {40 94 scan 0 sort 0}
do_test where7-2.924.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='qponmlk' AND f GLOB 'opqrs*')
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {40 94 scan 0 sort 0}
do_test where7-2.925.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=990
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {68 90 scan 0 sort 0}
do_test where7-2.925.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=990
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {68 90 scan 0 sort 0}
do_test where7-2.926.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1001
         OR ((a BETWEEN 74 AND 76) AND a!=75)
         OR b=858
         OR a=43
         OR b=1059
      ORDER BY a
  }
} {43 74 76 78 91 scan 0 sort 0}
do_test where7-2.926.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1001
         OR ((a BETWEEN 74 AND 76) AND a!=75)
         OR b=858
         OR a=43
         OR b=1059
      ORDER BY a
  }
} {43 74 76 78 91 scan 0 sort 0}
do_test where7-2.927.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=440
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=517
         OR b=993
         OR f='mnopqrstu'
         OR a=66
      ORDER BY a
  }
} {1 12 38 40 47 50 64 66 90 scan 0 sort 0}
do_test where7-2.927.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=440
         OR (d>=50.0 AND d<51.0 AND d NOT NULL)
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=517
         OR b=993
         OR f='mnopqrstu'
         OR a=66
      ORDER BY a
  }
} {1 12 38 40 47 50 64 66 90 scan 0 sort 0}
do_test where7-2.928.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=38
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=575
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR f IS NULL
      ORDER BY a
  }
} {4 6 10 21 36 38 47 62 73 88 97 99 scan 0 sort 0}
do_test where7-2.928.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=38
         OR ((a BETWEEN 97 AND 99) AND a!=98)
         OR (f GLOB '?lmno*' AND f GLOB 'klmn*')
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR b=575
         OR (f GLOB '?wxyz*' AND f GLOB 'vwxy*')
         OR f IS NULL
      ORDER BY a
  }
} {4 6 10 21 36 38 47 62 73 88 97 99 scan 0 sort 0}
do_test where7-2.929.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=34034
         OR b=157
         OR b=960
      ORDER BY a
  }
} {30 100 scan 0 sort 0}
do_test where7-2.929.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=30.0 AND d<31.0 AND d NOT NULL)
         OR c=34034
         OR b=157
         OR b=960
      ORDER BY a
  }
} {30 100 scan 0 sort 0}
do_test where7-2.930.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=520
         OR b=960
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.930.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=520
         OR b=960
      ORDER BY a
  }
} {scan 0 sort 1}
do_test where7-2.931.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=839
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR a=11
         OR b=297
      ORDER BY a
  }
} {11 27 38 scan 0 sort 0}
do_test where7-2.931.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=839
         OR (d>=38.0 AND d<39.0 AND d NOT NULL)
         OR a=11
         OR b=297
      ORDER BY a
  }
} {11 27 38 scan 0 sort 0}
do_test where7-2.932.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=517
         OR e IS NULL
         OR a=5
      ORDER BY a
  }
} {5 47 scan 0 sort 0}
do_test where7-2.932.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=517
         OR e IS NULL
         OR a=5
      ORDER BY a
  }
} {5 47 scan 0 sort 0}
do_test where7-2.933.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=87
         OR c=7007
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR b=374
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR b=850
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=1056
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='ihgfedc' AND f GLOB 'abcde*')
      ORDER BY a
  }
} {3 6 19 20 21 32 34 46 52 58 72 78 84 87 96 98 scan 0 sort 0}
do_test where7-2.933.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=87
         OR c=7007
         OR (d>=52.0 AND d<53.0 AND d NOT NULL)
         OR b=374
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR b=850
         OR ((a BETWEEN 32 AND 34) AND a!=33)
         OR b=1056
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR (f GLOB '?hijk*' AND f GLOB 'ghij*')
         OR (g='ihgfedc' AND f GLOB 'abcde*')
      ORDER BY a
  }
} {3 6 19 20 21 32 34 46 52 58 72 78 84 87 96 98 scan 0 sort 0}
do_test where7-2.934.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=41
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
      ORDER BY a
  }
} {18 21 41 44 53 70 96 scan 0 sort 0}
do_test where7-2.934.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=41
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'bcdef*')
         OR (f GLOB '?tuvw*' AND f GLOB 'stuv*')
      ORDER BY a
  }
} {18 21 41 44 53 70 96 scan 0 sort 0}
do_test where7-2.935.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR c=10010
         OR c=24024
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {3 5 15 28 29 30 35 41 67 70 71 72 87 93 94 96 scan 0 sort 0}
do_test where7-2.935.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='rqponml' AND f GLOB 'jklmn*')
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR ((a BETWEEN 3 AND 5) AND a!=4)
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR c=10010
         OR c=24024
         OR f='pqrstuvwx'
      ORDER BY a
  }
} {3 5 15 28 29 30 35 41 67 70 71 72 87 93 94 96 scan 0 sort 0}
do_test where7-2.936.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR b=850
         OR c=6006
         OR a=16
         OR b=949
         OR b=737
         OR c=18018
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR b=982
      ORDER BY a
  }
} {16 17 18 22 24 33 35 52 53 54 56 67 scan 0 sort 0}
do_test where7-2.936.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 54 AND 56) AND a!=55)
         OR ((a BETWEEN 22 AND 24) AND a!=23)
         OR b=850
         OR c=6006
         OR a=16
         OR b=949
         OR b=737
         OR c=18018
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR b=982
      ORDER BY a
  }
} {16 17 18 22 24 33 35 52 53 54 56 67 scan 0 sort 0}
do_test where7-2.937.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=5005
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=256
         OR b=363
         OR a=100
      ORDER BY a
  }
} {13 14 15 23 33 93 100 scan 0 sort 0}
do_test where7-2.937.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=5005
         OR (d>=23.0 AND d<24.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR (g='fedcbaz' AND f GLOB 'pqrst*')
         OR b=256
         OR b=363
         OR a=100
      ORDER BY a
  }
} {13 14 15 23 33 93 100 scan 0 sort 0}
do_test where7-2.938.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=539
         OR b=377
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=83
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR b=781
      ORDER BY a
  }
} {12 13 33 38 39 49 64 65 71 83 90 91 scan 0 sort 0}
do_test where7-2.938.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR b=539
         OR b=377
         OR (g='rqponml' AND f GLOB 'hijkl*')
         OR a=83
         OR (f GLOB '?nopq*' AND f GLOB 'mnop*')
         OR b=781
      ORDER BY a
  }
} {12 13 33 38 39 49 64 65 71 83 90 91 scan 0 sort 0}
do_test where7-2.939.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=80
         OR a=6
         OR b=1034
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {1 6 24 25 88 90 94 scan 0 sort 0}
do_test where7-2.939.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=24.0 AND d<25.0 AND d NOT NULL)
         OR (g='tsrqpon' AND f GLOB 'zabcd*')
         OR (d>=1.0 AND d<2.0 AND d NOT NULL)
         OR b=80
         OR a=6
         OR b=1034
         OR ((a BETWEEN 88 AND 90) AND a!=89)
      ORDER BY a
  }
} {1 6 24 25 88 90 94 scan 0 sort 0}
do_test where7-2.940.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=264
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=605
         OR b=418
         OR b=377
         OR b=531
         OR a=30
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 42 AND 44) AND a!=43)
      ORDER BY a
  }
} {23 24 30 38 42 44 51 55 scan 0 sort 0}
do_test where7-2.940.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=264
         OR (d>=51.0 AND d<52.0 AND d NOT NULL)
         OR b=605
         OR b=418
         OR b=377
         OR b=531
         OR a=30
         OR (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 42 AND 44) AND a!=43)
      ORDER BY a
  }
} {23 24 30 38 42 44 51 55 scan 0 sort 0}
do_test where7-2.941.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 78 AND 80) AND a!=79)
         OR a=89
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR b=69
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 8 16 42 45 47 68 78 80 89 94 98 scan 0 sort 0}
do_test where7-2.941.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 78 AND 80) AND a!=79)
         OR a=89
         OR ((a BETWEEN 45 AND 47) AND a!=46)
         OR ((a BETWEEN 6 AND 8) AND a!=7)
         OR b=69
         OR (f GLOB '?rstu*' AND f GLOB 'qrst*')
         OR (d>=98.0 AND d<99.0 AND d NOT NULL)
      ORDER BY a
  }
} {6 8 16 42 45 47 68 78 80 89 94 98 scan 0 sort 0}
do_test where7-2.942.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 68 AND 70) AND a!=69)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=187
         OR b=594
         OR b=297
         OR b=286
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='rqponml' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {17 26 27 35 54 68 70 72 94 96 scan 0 sort 0}
do_test where7-2.942.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 68 AND 70) AND a!=69)
         OR ((a BETWEEN 70 AND 72) AND a!=71)
         OR b=187
         OR b=594
         OR b=297
         OR b=286
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='rqponml' AND f GLOB 'jklmn*')
      ORDER BY a
  }
} {17 26 27 35 54 68 70 72 94 96 scan 0 sort 0}
do_test where7-2.943.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=872
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR c=18018
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR b=388
         OR b=726
         OR a=89
      ORDER BY a
  }
} {2 15 17 30 32 36 52 53 54 59 66 89 scan 0 sort 0}
do_test where7-2.943.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=872
         OR ((a BETWEEN 0 AND 2) AND a!=1)
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR c=18018
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR (g='rqponml' AND f GLOB 'klmno*')
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR b=388
         OR b=726
         OR a=89
      ORDER BY a
  }
} {2 15 17 30 32 36 52 53 54 59 66 89 scan 0 sort 0}
do_test where7-2.944.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=341
         OR a=68
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR c=7007
         OR c=14014
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR f='xyzabcdef'
         OR b=1103
      ORDER BY a
  }
} {19 20 21 23 24 31 40 41 42 49 68 74 75 76 scan 0 sort 0}
do_test where7-2.944.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=341
         OR a=68
         OR (g='jihgfed' AND f GLOB 'wxyza*')
         OR ((a BETWEEN 40 AND 42) AND a!=41)
         OR (d>=76.0 AND d<77.0 AND d NOT NULL)
         OR c=7007
         OR c=14014
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
         OR f='xyzabcdef'
         OR b=1103
      ORDER BY a
  }
} {19 20 21 23 24 31 40 41 42 49 68 74 75 76 scan 0 sort 0}
do_test where7-2.945.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1078
         OR b=377
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR f='mnopqrstu'
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=905
      ORDER BY a
  }
} {12 34 38 46 64 90 98 scan 0 sort 0}
do_test where7-2.945.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1078
         OR b=377
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR f='mnopqrstu'
         OR (d>=34.0 AND d<35.0 AND d NOT NULL)
         OR b=905
      ORDER BY a
  }
} {12 34 38 46 64 90 98 scan 0 sort 0}
do_test where7-2.946.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=352
         OR f='lmnopqrst'
         OR a=85
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 32 37 63 64 85 89 scan 0 sort 0}
do_test where7-2.946.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=352
         OR f='lmnopqrst'
         OR a=85
         OR (d>=64.0 AND d<65.0 AND d NOT NULL)
      ORDER BY a
  }
} {11 32 37 63 64 85 89 scan 0 sort 0}
do_test where7-2.947.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=707
         OR f='rstuvwxyz'
      ORDER BY a
  }
} {2 17 43 69 95 scan 0 sort 0}
do_test where7-2.947.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=2.0 AND d<3.0 AND d NOT NULL)
         OR b=707
         OR f='rstuvwxyz'
      ORDER BY a
  }
} {2 17 43 69 95 scan 0 sort 0}
do_test where7-2.948.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=11
         OR b=718
         OR a=49
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=586
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=660
         OR f IS NULL
      ORDER BY a
  }
} {2 4 11 49 60 72 scan 0 sort 0}
do_test where7-2.948.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=11
         OR b=718
         OR a=49
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
         OR b=586
         OR ((a BETWEEN 2 AND 4) AND a!=3)
         OR b=660
         OR f IS NULL
      ORDER BY a
  }
} {2 4 11 49 60 72 scan 0 sort 0}
do_test where7-2.949.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=410
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=817
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=759
         OR a=34
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {25 27 34 45 47 64 69 83 97 scan 0 sort 0}
do_test where7-2.949.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=410
         OR (g='lkjihgf' AND f GLOB 'mnopq*')
         OR b=817
         OR (g='hgfedcb' AND f GLOB 'fghij*')
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 25 AND 27) AND a!=26)
         OR b=759
         OR a=34
         OR ((a BETWEEN 45 AND 47) AND a!=46)
      ORDER BY a
  }
} {25 27 34 45 47 64 69 83 97 scan 0 sort 0}
do_test where7-2.950.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f IS NULL
         OR a=29
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR c=6006
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=432
         OR a=38
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=110
      ORDER BY a
  }
} {10 16 17 18 29 38 59 68 86 88 scan 0 sort 0}
do_test where7-2.950.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f IS NULL
         OR a=29
         OR ((a BETWEEN 86 AND 88) AND a!=87)
         OR (g='mlkjihg' AND f GLOB 'hijkl*')
         OR c=6006
         OR (g='kjihgfe' AND f GLOB 'qrstu*')
         OR b=432
         OR a=38
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR b=110
      ORDER BY a
  }
} {10 16 17 18 29 38 59 68 86 88 scan 0 sort 0}
do_test where7-2.951.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=13
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR b=322
         OR a=34
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=55
         OR b=11
      ORDER BY a
  }
} {1 5 13 30 32 34 49 scan 0 sort 0}
do_test where7-2.951.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=13
         OR ((a BETWEEN 30 AND 32) AND a!=31)
         OR b=322
         OR a=34
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=55
         OR b=11
      ORDER BY a
  }
} {1 5 13 30 32 34 49 scan 0 sort 0}
do_test where7-2.952.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=50
         OR a=64
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR a=96
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=949
         OR b=792
         OR a=59
         OR a=16
         OR a=95
      ORDER BY a
  }
} {16 17 43 50 59 64 69 72 94 95 96 scan 0 sort 0}
do_test where7-2.952.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=50
         OR a=64
         OR (f GLOB '?stuv*' AND f GLOB 'rstu*')
         OR a=96
         OR (d>=94.0 AND d<95.0 AND d NOT NULL)
         OR b=949
         OR b=792
         OR a=59
         OR a=16
         OR a=95
      ORDER BY a
  }
} {16 17 43 50 59 64 69 72 94 95 96 scan 0 sort 0}
do_test where7-2.953.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=69
         OR a=89
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR a=54
         OR a=52
         OR f='wxyzabcde'
         OR b=462
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {22 42 48 52 54 55 74 89 100 scan 0 sort 0}
do_test where7-2.953.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=69
         OR a=89
         OR (g='nmlkjih' AND f GLOB 'defgh*')
         OR a=54
         OR a=52
         OR f='wxyzabcde'
         OR b=462
         OR (g='onmlkji' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {22 42 48 52 54 55 74 89 100 scan 0 sort 0}
do_test where7-2.954.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR a=43
         OR b=91
         OR f='ghijklmno'
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=308
      ORDER BY a
  }
} {6 28 32 33 43 48 50 58 84 scan 0 sort 0}
do_test where7-2.954.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=33.0 AND d<34.0 AND d NOT NULL)
         OR a=43
         OR b=91
         OR f='ghijklmno'
         OR ((a BETWEEN 48 AND 50) AND a!=49)
         OR b=308
      ORDER BY a
  }
} {6 28 32 33 43 48 50 58 84 scan 0 sort 0}
do_test where7-2.955.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 87 AND 89) AND a!=88)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=674
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=1070
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {12 27 72 87 89 scan 0 sort 0}
do_test where7-2.955.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 87 AND 89) AND a!=88)
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=674
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=1070
         OR (g='kjihgfe' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {12 27 72 87 89 scan 0 sort 0}
do_test where7-2.956.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR c=20020
         OR b=1001
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 39 58 59 60 65 84 91 scan 0 sort 0}
do_test where7-2.956.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?opqr*' AND f GLOB 'nopq*')
         OR c=20020
         OR b=1001
         OR (d>=84.0 AND d<85.0 AND d NOT NULL)
      ORDER BY a
  }
} {13 39 58 59 60 65 84 91 scan 0 sort 0}
do_test where7-2.957.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR c=1001
         OR a=77
      ORDER BY a
  }
} {1 2 3 13 15 23 77 scan 0 sort 0}
do_test where7-2.957.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='tsrqpon' AND f GLOB 'xyzab*')
         OR ((a BETWEEN 13 AND 15) AND a!=14)
         OR c=1001
         OR a=77
      ORDER BY a
  }
} {1 2 3 13 15 23 77 scan 0 sort 0}
do_test where7-2.958.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=5
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 90 scan 0 sort 0}
do_test where7-2.958.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=5
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
      ORDER BY a
  }
} {5 90 scan 0 sort 0}
do_test where7-2.959.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR b=154
         OR b=575
         OR b=927
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR f='tuvwxyzab'
         OR a=62
         OR b=132
         OR ((a BETWEEN 23 AND 25) AND a!=24)
      ORDER BY a
  }
} {12 14 19 21 23 25 45 62 71 97 98 scan 0 sort 0}
do_test where7-2.959.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=98.0 AND d<99.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'vwxyz*')
         OR b=154
         OR b=575
         OR b=927
         OR (f GLOB '?uvwx*' AND f GLOB 'tuvw*')
         OR f='tuvwxyzab'
         OR a=62
         OR b=132
         OR ((a BETWEEN 23 AND 25) AND a!=24)
      ORDER BY a
  }
} {12 14 19 21 23 25 45 62 71 97 98 scan 0 sort 0}
do_test where7-2.960.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='fedcbaz' AND f GLOB 'qrstu*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR f='hijklmnop'
         OR c=11011
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR c=7007
         OR (g='gfedcba' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {4 5 7 18 19 20 21 31 32 33 46 57 59 66 68 83 85 88 91 94 scan 0 sort 0}
do_test where7-2.960.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='fedcbaz' AND f GLOB 'qrstu*')
         OR (f GLOB '?ghij*' AND f GLOB 'fghi*')
         OR (g='xwvutsr' AND f GLOB 'efghi*')
         OR f='hijklmnop'
         OR c=11011
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR (d>=46.0 AND d<47.0 AND d NOT NULL)
         OR (g='utsrqpo' AND f GLOB 'stuvw*')
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR c=7007
         OR (g='gfedcba' AND f GLOB 'klmno*')
      ORDER BY a
  }
} {4 5 7 18 19 20 21 31 32 33 46 57 59 66 68 83 85 88 91 94 scan 0 sort 0}
do_test where7-2.961.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=451
         OR a=46
         OR a=52
         OR b=462
         OR b=916
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR f='efghijklm'
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 9 14 15 17 30 41 42 46 52 56 82 scan 0 sort 0}
do_test where7-2.961.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=451
         OR a=46
         OR a=52
         OR b=462
         OR b=916
         OR (d>=9.0 AND d<10.0 AND d NOT NULL)
         OR f='efghijklm'
         OR (g='onmlkji' AND f GLOB 'abcde*')
         OR ((a BETWEEN 15 AND 17) AND a!=16)
         OR (g='wvutsrq' AND f GLOB 'jklmn*')
         OR (d>=14.0 AND d<15.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 9 14 15 17 30 41 42 46 52 56 82 scan 0 sort 0}
do_test where7-2.962.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=12012
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR a=32
         OR ((a BETWEEN 7 AND 9) AND a!=8)
         OR a=14
      ORDER BY a
  }
} {7 9 14 32 34 35 36 73 84 scan 0 sort 0}
do_test where7-2.962.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=12012
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
         OR a=32
         OR ((a BETWEEN 7 AND 9) AND a!=8)
         OR a=14
      ORDER BY a
  }
} {7 9 14 32 34 35 36 73 84 scan 0 sort 0}
do_test where7-2.963.1 {
  count_steps {
     SELECT a FROM t2
      WHERE f='efghijklm'
         OR b=473
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 30 43 56 82 97 scan 0 sort 0}
do_test where7-2.963.2 {
  count_steps {
     SELECT a FROM t3
      WHERE f='efghijklm'
         OR b=473
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
      ORDER BY a
  }
} {4 30 43 56 82 97 scan 0 sort 0}
do_test where7-2.964.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=99
         OR f='efghijklm'
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR b=517
      ORDER BY a
  }
} {4 29 30 47 55 56 82 90 99 scan 0 sort 0}
do_test where7-2.964.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='srqponm' AND f GLOB 'defgh*')
         OR a=99
         OR f='efghijklm'
         OR (d>=55.0 AND d<56.0 AND d NOT NULL)
         OR (g='gfedcba' AND f GLOB 'mnopq*')
         OR b=517
      ORDER BY a
  }
} {4 29 30 47 55 56 82 90 99 scan 0 sort 0}
do_test where7-2.965.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1034
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {54 83 94 scan 0 sort 0}
do_test where7-2.965.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1034
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR (d>=83.0 AND d<84.0 AND d NOT NULL)
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
      ORDER BY a
  }
} {54 83 94 scan 0 sort 0}
do_test where7-2.966.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=1004
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=363
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {20 24 33 79 scan 0 sort 0}
do_test where7-2.966.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=79.0 AND d<80.0 AND d NOT NULL)
         OR b=1004
         OR (d>=20.0 AND d<21.0 AND d NOT NULL)
         OR b=363
         OR (g='tsrqpon' AND f GLOB 'yzabc*')
      ORDER BY a
  }
} {20 24 33 79 scan 0 sort 0}
do_test where7-2.967.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR a=14
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=15
         OR b=795
         OR c=27027
      ORDER BY a
  }
} {9 12 14 15 35 61 67 73 79 80 81 86 87 98 100 scan 0 sort 0}
do_test where7-2.967.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=67.0 AND d<68.0 AND d NOT NULL)
         OR (g='jihgfed' AND f GLOB 'vwxyz*')
         OR (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR ((a BETWEEN 98 AND 100) AND a!=99)
         OR (f GLOB '?klmn*' AND f GLOB 'jklm*')
         OR (g='hgfedcb' AND f GLOB 'ijklm*')
         OR a=14
         OR ((a BETWEEN 12 AND 14) AND a!=13)
         OR a=15
         OR b=795
         OR c=27027
      ORDER BY a
  }
} {9 12 14 15 35 61 67 73 79 80 81 86 87 98 100 scan 0 sort 0}
do_test where7-2.968.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=795
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {22 scan 0 sort 0}
do_test where7-2.968.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=795
         OR (g='utsrqpo' AND f GLOB 'wxyza*')
      ORDER BY a
  }
} {22 scan 0 sort 0}
do_test where7-2.969.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 9 AND 11) AND a!=10)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR c=17017
         OR c=26026
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 9 11 21 28 49 50 51 54 61 70 76 77 78 80 scan 0 sort 0}
do_test where7-2.969.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 9 AND 11) AND a!=10)
         OR (g='kjihgfe' AND f GLOB 'stuvw*')
         OR c=17017
         OR c=26026
         OR (g='mlkjihg' AND f GLOB 'jklmn*')
         OR (f GLOB '?defg*' AND f GLOB 'cdef*')
         OR (g='nmlkjih' AND f GLOB 'cdefg*')
         OR (d>=21.0 AND d<22.0 AND d NOT NULL)
      ORDER BY a
  }
} {2 9 11 21 28 49 50 51 54 61 70 76 77 78 80 scan 0 sort 0}
do_test where7-2.970.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=891
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR b=693
      ORDER BY a
  }
} {28 43 45 63 69 81 97 scan 0 sort 0}
do_test where7-2.970.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR b=891
         OR (d>=97.0 AND d<98.0 AND d NOT NULL)
         OR ((a BETWEEN 43 AND 45) AND a!=44)
         OR b=693
      ORDER BY a
  }
} {28 43 45 63 69 81 97 scan 0 sort 0}
do_test where7-2.971.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR b=1015
         OR a=28
         OR f='lmnopqrst'
         OR b=583
         OR a=75
         OR a=22
         OR a=87
         OR b=795
         OR b=649
         OR (g='qponmlk' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {11 22 28 37 42 53 59 63 75 87 89 scan 0 sort 0}
do_test where7-2.971.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=42.0 AND d<43.0 AND d NOT NULL)
         OR b=1015
         OR a=28
         OR f='lmnopqrst'
         OR b=583
         OR a=75
         OR a=22
         OR a=87
         OR b=795
         OR b=649
         OR (g='qponmlk' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {11 22 28 37 42 53 59 63 75 87 89 scan 0 sort 0}
do_test where7-2.972.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=209
         OR b=674
         OR f='hijklmnop'
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR f IS NULL
         OR a=41
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
      ORDER BY a
  }
} {7 19 28 33 35 41 44 59 85 92 94 scan 0 sort 0}
do_test where7-2.972.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='ponmlkj' AND f GLOB 'stuvw*')
         OR b=209
         OR b=674
         OR f='hijklmnop'
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
         OR (d>=28.0 AND d<29.0 AND d NOT NULL)
         OR f IS NULL
         OR a=41
         OR ((a BETWEEN 33 AND 35) AND a!=34)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
      ORDER BY a
  }
} {7 19 28 33 35 41 44 59 85 92 94 scan 0 sort 0}
do_test where7-2.973.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=429
         OR b=718
      ORDER BY a
  }
} {39 66 68 69 scan 0 sort 0}
do_test where7-2.973.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='kjihgfe' AND f GLOB 'rstuv*')
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR ((a BETWEEN 66 AND 68) AND a!=67)
         OR b=429
         OR b=718
      ORDER BY a
  }
} {39 66 68 69 scan 0 sort 0}
do_test where7-2.974.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=451
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {20 27 41 92 scan 0 sort 0}
do_test where7-2.974.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='utsrqpo' AND f GLOB 'uvwxy*')
         OR (d>=27.0 AND d<28.0 AND d NOT NULL)
         OR b=451
         OR (g='gfedcba' AND f GLOB 'opqrs*')
      ORDER BY a
  }
} {20 27 41 92 scan 0 sort 0}
do_test where7-2.975.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 7 AND 9) AND a!=8)
         OR b=245
         OR b=1092
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR a=92
         OR b=528
         OR b=267
         OR f='xyzabcdef'
         OR b=231
      ORDER BY a
  }
} {7 9 21 23 48 49 75 91 92 scan 0 sort 0}
do_test where7-2.975.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 7 AND 9) AND a!=8)
         OR b=245
         OR b=1092
         OR (g='gfedcba' AND f GLOB 'nopqr*')
         OR a=92
         OR b=528
         OR b=267
         OR f='xyzabcdef'
         OR b=231
      ORDER BY a
  }
} {7 9 21 23 48 49 75 91 92 scan 0 sort 0}
do_test where7-2.976.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=883
         OR b=982
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=718
         OR b=1048
      ORDER BY a
  }
} {12 scan 0 sort 0}
do_test where7-2.976.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=883
         OR b=982
         OR (g='wvutsrq' AND f GLOB 'mnopq*')
         OR b=718
         OR b=1048
      ORDER BY a
  }
} {12 scan 0 sort 0}
do_test where7-2.977.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR a=53
         OR b=366
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {15 41 53 67 87 93 scan 0 sort 0}
do_test where7-2.977.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=87.0 AND d<88.0 AND d NOT NULL)
         OR a=53
         OR b=366
         OR (f GLOB '?qrst*' AND f GLOB 'pqrs*')
      ORDER BY a
  }
} {15 41 53 67 87 93 scan 0 sort 0}
do_test where7-2.978.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=498
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR a=19
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {4 19 30 40 56 82 84 scan 0 sort 0}
do_test where7-2.978.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=40.0 AND d<41.0 AND d NOT NULL)
         OR b=498
         OR (f GLOB '?fghi*' AND f GLOB 'efgh*')
         OR a=19
         OR (g='hgfedcb' AND f GLOB 'ghijk*')
      ORDER BY a
  }
} {4 19 30 40 56 82 84 scan 0 sort 0}
do_test where7-2.979.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR a=82
         OR b=550
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR e IS NULL
         OR b=971
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {20 25 46 50 51 72 77 82 87 89 98 scan 0 sort 0}
do_test where7-2.979.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (f GLOB '?abcd*' AND f GLOB 'zabc*')
         OR (f GLOB '?vwxy*' AND f GLOB 'uvwx*')
         OR a=82
         OR b=550
         OR (g='gfedcba' AND f GLOB 'lmnop*')
         OR e IS NULL
         OR b=971
         OR (d>=87.0 AND d<88.0 AND d NOT NULL)
      ORDER BY a
  }
} {20 25 46 50 51 72 77 82 87 89 98 scan 0 sort 0}
do_test where7-2.980.1 {
  count_steps {
     SELECT a FROM t2
      WHERE c=12012
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=1103
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR a=32
         OR b=352
         OR b=297
         OR 1000000<b
      ORDER BY a
  }
} {27 32 34 35 36 38 80 94 96 scan 0 sort 0}
do_test where7-2.980.2 {
  count_steps {
     SELECT a FROM t3
      WHERE c=12012
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR b=1103
         OR ((a BETWEEN 94 AND 96) AND a!=95)
         OR (g='ihgfedc' AND f GLOB 'cdefg*')
         OR (g='qponmlk' AND f GLOB 'mnopq*')
         OR a=32
         OR b=352
         OR b=297
         OR 1000000<b
      ORDER BY a
  }
} {27 32 34 35 36 38 80 94 96 scan 0 sort 0}
do_test where7-2.981.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=539
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=25
         OR b=792
         OR f='cdefghijk'
         OR a=73
         OR a=8
      ORDER BY a
  }
} {2 8 25 28 49 54 63 72 73 80 scan 0 sort 0}
do_test where7-2.981.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=539
         OR (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=25
         OR b=792
         OR f='cdefghijk'
         OR a=73
         OR a=8
      ORDER BY a
  }
} {2 8 25 28 49 54 63 72 73 80 scan 0 sort 0}
do_test where7-2.982.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=630
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR f='hijklmnop'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR b=572
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {7 23 25 28 30 33 52 59 76 78 85 95 98 scan 0 sort 0}
do_test where7-2.982.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (g='edcbazy' AND f GLOB 'uvwxy*')
         OR ((a BETWEEN 76 AND 78) AND a!=77)
         OR b=630
         OR ((a BETWEEN 23 AND 25) AND a!=24)
         OR f='hijklmnop'
         OR ((a BETWEEN 28 AND 30) AND a!=29)
         OR b=572
         OR (g='fedcbaz' AND f GLOB 'rstuv*')
      ORDER BY a
  }
} {7 23 25 28 30 33 52 59 76 78 85 95 98 scan 0 sort 0}
do_test where7-2.983.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=12
         OR b=132
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR a=43
         OR b=539
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=847
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {12 29 39 41 43 49 51 53 77 91 scan 0 sort 0}
do_test where7-2.983.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=12
         OR b=132
         OR ((a BETWEEN 51 AND 53) AND a!=52)
         OR (d>=91.0 AND d<92.0 AND d NOT NULL)
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR (g='qponmlk' AND f GLOB 'nopqr*')
         OR a=43
         OR b=539
         OR (d>=49.0 AND d<50.0 AND d NOT NULL)
         OR b=847
         OR ((a BETWEEN 39 AND 41) AND a!=40)
      ORDER BY a
  }
} {12 29 39 41 43 49 51 53 77 91 scan 0 sort 0}
do_test where7-2.984.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=1045
         OR a=30
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR c=31031
         OR a=70
         OR ((a BETWEEN 56 AND 58) AND a!=57)
      ORDER BY a
  }
} {30 56 58 69 70 91 92 93 95 scan 0 sort 0}
do_test where7-2.984.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=1045
         OR a=30
         OR (d>=69.0 AND d<70.0 AND d NOT NULL)
         OR c=31031
         OR a=70
         OR ((a BETWEEN 56 AND 58) AND a!=57)
      ORDER BY a
  }
} {30 56 58 69 70 91 92 93 95 scan 0 sort 0}
do_test where7-2.985.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=11
         OR a=17
         OR a=2
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=814
      ORDER BY a
  }
} {2 11 17 43 57 59 63 69 74 scan 0 sort 0}
do_test where7-2.985.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=63.0 AND d<64.0 AND d NOT NULL)
         OR a=11
         OR a=17
         OR a=2
         OR (d>=43.0 AND d<44.0 AND d NOT NULL)
         OR ((a BETWEEN 57 AND 59) AND a!=58)
         OR (g='kjihgfe' AND f GLOB 'rstuv*')
         OR b=814
      ORDER BY a
  }
} {2 11 17 43 57 59 63 69 74 scan 0 sort 0}
do_test where7-2.986.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=561
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {21 47 51 73 99 scan 0 sort 0}
do_test where7-2.986.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=561
         OR f='vwxyzabcd'
      ORDER BY a
  }
} {21 47 51 73 99 scan 0 sort 0}
do_test where7-2.987.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=113
         OR a=34
         OR b=858
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {34 78 85 87 scan 0 sort 0}
do_test where7-2.987.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=113
         OR a=34
         OR b=858
         OR ((a BETWEEN 85 AND 87) AND a!=86)
      ORDER BY a
  }
} {34 78 85 87 scan 0 sort 0}
do_test where7-2.988.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=319
      ORDER BY a
  }
} {3 29 37 53 80 scan 0 sort 0}
do_test where7-2.988.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=53.0 AND d<54.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR (d>=3.0 AND d<4.0 AND d NOT NULL)
         OR (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (g='rqponml' AND f GLOB 'lmnop*')
         OR b=319
      ORDER BY a
  }
} {3 29 37 53 80 scan 0 sort 0}
do_test where7-2.989.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=80
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
      ORDER BY a
  }
} {54 80 89 92 94 96 scan 0 sort 0}
do_test where7-2.989.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=80.0 AND d<81.0 AND d NOT NULL)
         OR (d>=54.0 AND d<55.0 AND d NOT NULL)
         OR ((a BETWEEN 92 AND 94) AND a!=93)
         OR a=80
         OR (g='fedcbaz' AND f GLOB 'stuvw*')
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
      ORDER BY a
  }
} {54 80 89 92 94 96 scan 0 sort 0}
do_test where7-2.990.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=1103
         OR b=751
         OR a=18
         OR f='nopqrstuv'
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR b=550
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {13 18 35 37 39 41 50 65 91 93 95 scan 0 sort 0}
do_test where7-2.990.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=1103
         OR b=751
         OR a=18
         OR f='nopqrstuv'
         OR ((a BETWEEN 35 AND 37) AND a!=36)
         OR b=550
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {13 18 35 37 39 41 50 65 91 93 95 scan 0 sort 0}
do_test where7-2.991.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 16 AND 18) AND a!=17)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=33
         OR c=4004
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {10 11 12 13 16 18 33 39 65 78 91 scan 0 sort 0}
do_test where7-2.991.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 16 AND 18) AND a!=17)
         OR (g='ihgfedc' AND f GLOB 'abcde*')
         OR a=33
         OR c=4004
         OR (f GLOB '?opqr*' AND f GLOB 'nopq*')
      ORDER BY a
  }
} {10 11 12 13 16 18 33 39 65 78 91 scan 0 sort 0}
do_test where7-2.992.1 {
  count_steps {
     SELECT a FROM t2
      WHERE d>1e10
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR a=81
         OR a=28
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR f='uvwxyzabc'
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {3 20 28 29 38 40 46 55 72 81 98 scan 0 sort 0}
do_test where7-2.992.2 {
  count_steps {
     SELECT a FROM t3
      WHERE d>1e10
         OR ((a BETWEEN 38 AND 40) AND a!=39)
         OR a=81
         OR a=28
         OR (g='srqponm' AND f GLOB 'cdefg*')
         OR f='uvwxyzabc'
         OR (f GLOB '?efgh*' AND f GLOB 'defg*')
         OR (g='edcbazy' AND f GLOB 'uvwxy*')
      ORDER BY a
  }
} {3 20 28 29 38 40 46 55 72 81 98 scan 0 sort 0}
do_test where7-2.993.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {44 96 98 scan 0 sort 0}
do_test where7-2.993.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 96 AND 98) AND a!=97)
         OR (d>=44.0 AND d<45.0 AND d NOT NULL)
      ORDER BY a
  }
} {44 96 98 scan 0 sort 0}
do_test where7-2.994.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=99
         OR b=80
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {9 67 69 93 95 scan 0 sort 0}
do_test where7-2.994.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 67 AND 69) AND a!=68)
         OR b=99
         OR b=80
         OR ((a BETWEEN 93 AND 95) AND a!=94)
      ORDER BY a
  }
} {9 67 69 93 95 scan 0 sort 0}
do_test where7-2.995.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=322
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {4 6 79 scan 0 sort 0}
do_test where7-2.995.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=322
         OR ((a BETWEEN 4 AND 6) AND a!=5)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {4 6 79 scan 0 sort 0}
do_test where7-2.996.1 {
  count_steps {
     SELECT a FROM t2
      WHERE a=94
         OR c=13013
         OR c=10010
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=330
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {28 29 30 37 38 39 41 45 94 99 scan 0 sort 0}
do_test where7-2.996.2 {
  count_steps {
     SELECT a FROM t3
      WHERE a=94
         OR c=13013
         OR c=10010
         OR (g='ponmlkj' AND f GLOB 'tuvwx*')
         OR b=330
         OR (g='edcbazy' AND f GLOB 'vwxyz*')
         OR (g='qponmlk' AND f GLOB 'pqrst*')
      ORDER BY a
  }
} {28 29 30 37 38 39 41 45 94 99 scan 0 sort 0}
do_test where7-2.997.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=253
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR a=23
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=33
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=993
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=982
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {1 23 33 54 56 68 71 90 scan 0 sort 0}
do_test where7-2.997.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=253
         OR (d>=68.0 AND d<69.0 AND d NOT NULL)
         OR a=23
         OR (d>=90.0 AND d<91.0 AND d NOT NULL)
         OR a=33
         OR ((a BETWEEN 54 AND 56) AND a!=55)
         OR b=993
         OR (d>=71.0 AND d<72.0 AND d NOT NULL)
         OR b=982
         OR (g='yxwvuts' AND f GLOB 'bcdef*')
      ORDER BY a
  }
} {1 23 33 54 56 68 71 90 scan 0 sort 0}
do_test where7-2.998.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=190
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=124
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR f='vwxyzabcd'
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR a=72
         OR a=82
      ORDER BY a
  }
} {5 7 21 29 39 41 47 72 73 79 81 82 99 scan 0 sort 0}
do_test where7-2.998.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=190
         OR (d>=81.0 AND d<82.0 AND d NOT NULL)
         OR ((a BETWEEN 39 AND 41) AND a!=40)
         OR b=124
         OR (g='srqponm' AND f GLOB 'defgh*')
         OR f='vwxyzabcd'
         OR ((a BETWEEN 5 AND 7) AND a!=6)
         OR (g='ihgfedc' AND f GLOB 'bcdef*')
         OR a=72
         OR a=82
      ORDER BY a
  }
} {5 7 21 29 39 41 47 72 73 79 81 82 99 scan 0 sort 0}
do_test where7-2.999.1 {
  count_steps {
     SELECT a FROM t2
      WHERE ((a BETWEEN 20 AND 22) AND a!=21)
         OR a=50
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=949
      ORDER BY a
  }
} {10 20 22 50 scan 0 sort 0}
do_test where7-2.999.2 {
  count_steps {
     SELECT a FROM t3
      WHERE ((a BETWEEN 20 AND 22) AND a!=21)
         OR a=50
         OR (d>=10.0 AND d<11.0 AND d NOT NULL)
         OR b=949
      ORDER BY a
  }
} {10 20 22 50 scan 0 sort 0}
do_test where7-2.1000.1 {
  count_steps {
     SELECT a FROM t2
      WHERE b=388
         OR ((a BETWEEN 4 AND 6) AND a!=5)
      ORDER BY a
  }
} {4 6 scan 0 sort 0}
do_test where7-2.1000.2 {
  count_steps {
     SELECT a FROM t3
      WHERE b=388
         OR ((a BETWEEN 4 AND 6) AND a!=5)
      ORDER BY a
  }
} {4 6 scan 0 sort 0}
do_test where7-2.1001.1 {
  count_steps {
     SELECT a FROM t2
      WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=6
         OR b=429
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=77
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR a=90
         OR a=54
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {6 7 15 39 54 66 89 90 94 scan 0 sort 0}
do_test where7-2.1001.2 {
  count_steps {
     SELECT a FROM t3
      WHERE (d>=15.0 AND d<16.0 AND d NOT NULL)
         OR a=6
         OR b=429
         OR (d>=89.0 AND d<90.0 AND d NOT NULL)
         OR b=77
         OR (d>=66.0 AND d<67.0 AND d NOT NULL)
         OR a=90
         OR a=54
         OR (g='fedcbaz' AND f GLOB 'qrstu*')
      ORDER BY a
  }
} {6 7 15 39 54 66 89 90 94 scan 0 sort 0}
finish_test