Spaces:
Build error
Build error
Commit ·
8431e47
1
Parent(s): 8873a5c
update
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- htmls_POS_mod2/FN/test-100.htmlAdded+125
- htmls_POS_mod2/FN/test-1000.htmlAdded+403
- htmls_POS_mod2/FN/test-1005.htmlAdded+153
- htmls_POS_mod2/FN/test-1026.htmlAdded+266
- htmls_POS_mod2/FN/test-1035.htmlAdded+189
- htmls_POS_mod2/FN/test-1038.htmlAdded+264
- htmls_POS_mod2/FN/test-1039.htmlAdded+164
- htmls_POS_mod2/FN/test-1041.htmlAdded+286
- htmls_POS_mod2/FN/test-1063.htmlAdded+383
- htmls_POS_mod2/FN/test-1077.htmlAdded+358
- htmls_POS_mod2/FN/test-1078.htmlAdded+358
- htmls_POS_mod2/FN/test-108.htmlAdded+347
- htmls_POS_mod2/FN/test-1080.htmlAdded+405
- htmls_POS_mod2/FN/test-1081.htmlAdded+358
- htmls_POS_mod2/FN/test-1099.htmlAdded+376
- htmls_POS_mod2/FN/test-1108.htmlAdded+165
- htmls_POS_mod2/FN/test-1119.htmlAdded+181
- htmls_POS_mod2/FN/test-1128.htmlAdded+573
- htmls_POS_mod2/FN/test-1140.htmlAdded+178
- htmls_POS_mod2/FN/test-1155.htmlAdded+388
- htmls_POS_mod2/FN/test-1157.htmlAdded+350
- htmls_POS_mod2/FN/test-1159.htmlAdded+255
- htmls_POS_mod2/FN/test-1165.htmlAdded+281
- htmls_POS_mod2/FN/test-1167.htmlAdded+149
- htmls_POS_mod2/FN/test-117.htmlAdded+150
- htmls_POS_mod2/FN/test-118.htmlAdded+274
- htmls_POS_mod2/FN/test-1188.htmlAdded+227
- htmls_POS_mod2/FN/test-1190.htmlAdded+425
- htmls_POS_mod2/FN/test-1191.htmlAdded+249
- htmls_POS_mod2/FN/test-1197.htmlAdded+1073
- htmls_POS_mod2/FN/test-1201.htmlAdded+331
- htmls_POS_mod2/FN/test-1205.htmlAdded+116
- htmls_POS_mod2/FN/test-1213.htmlAdded+261
- htmls_POS_mod2/FN/test-1218.htmlAdded+447
- htmls_POS_mod2/FN/test-1227.htmlAdded+377
- htmls_POS_mod2/FN/test-1231.htmlAdded+292
- htmls_POS_mod2/FN/test-124.htmlAdded+139
- htmls_POS_mod2/FN/test-1240.htmlAdded+233
- htmls_POS_mod2/FN/test-125.htmlAdded+138
- htmls_POS_mod2/FN/test-1250.htmlAdded+245
- htmls_POS_mod2/FN/test-1251.htmlAdded+336
- htmls_POS_mod2/FN/test-1253.htmlAdded+277
- htmls_POS_mod2/FN/test-126.htmlAdded+116
- htmls_POS_mod2/FN/test-1260.htmlAdded+873
- htmls_POS_mod2/FN/test-1261.htmlAdded+683
- htmls_POS_mod2/FN/test-127.htmlAdded+124
- htmls_POS_mod2/FN/test-1271.htmlAdded+295
- htmls_POS_mod2/FN/test-1274.htmlAdded+383
- htmls_POS_mod2/FN/test-128.htmlAdded+138
- htmls_POS_mod2/FN/test-1294.htmlAdded+421
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the vcpc and vctp of 7.62 mm (0.3in) fn mag 60 - 20 machine gun are the same for vcrt 20 mm (79in) rh - 202 autocannon , and so is the vcpc and vcrt of 75 km / h (47 mph) for vctp 75 km / h (47 mph)</h3><h3>Input Table: tam (tank)</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'vcpc' is '7.62 mm (0.3in) fn mag 60 - 20 machine gun'.</div><div class="content" id="step-1"><table><tr><td>vctp</td><td>vca_155</td><td>vctm</td><td>vcpc</td><td>vclc</td><td>vcrt</td></tr><tr><td>28.2 t (31.1 tons )</td><td>40t (44.1tons)</td><td>26t (28.7tons)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25t (27.6tons)</span></td><td>32t (35.3tons)</td><td>32t (35.3tons)</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20 mm (79in) rh - 202 autocannon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">155 mm (6.1in) l / 41 howitzer</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">120 mm (4.72in) mortar</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.62 mm (0.3in) fn mag 60 - 20 machine gun</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">160 mm (6.3in) or 350 mm (13.8in) rockets</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7.62 mm (0.3in) fn mag 60 - 20 machine gun</span></td></tr><tr><td>km (mi)</td><td>-</td><td>km (mi)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td>km (mi)</td><td>km (mi)</td></tr><tr><td>24hp / t (23hp / ton)</td><td>18hp / t ( 16.5hp / ton)</td><td>28.8hp / t (25.1hp / ton)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.8hp / t (25.1hp / ton)</span></td><td>22.5hp / t (20.4hp / ton)</td><td>22.5hp / t (20.4hp / ton)</td></tr><tr><td>75 km / h (47 mph)</td><td>55 km / h (34 mph)</td><td>75 km / h (47 mph)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75 km / h (47 mph)</span></td><td>75 km / h (47 mph)</td><td>75 km / h (47 mph)</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'vcrt' is '20 mm (79in) rh - 202 autocannon'.</div><div class="content" id="step-0"><table><tr><td>vctp</td><td>vca_155</td><td>vctm</td><td>vcpc</td><td>vclc</td><td>vcrt</td></tr><tr><td>20 mm (79in) rh - 202 autocannon</td><td>155 mm (6.1in) l / 41 howitzer</td><td>120 mm (4.72in) mortar</td><td>7.62 mm (0.3in) fn mag 60 - 20 machine gun</td><td>160 mm (6.3in) or 350 mm (13.8in) rockets</td><td>7.62 mm (0.3in) fn mag 60 - 20 machine gun</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>vctp</td><td>vca_155</td><td>vctm</td><td>vcpc</td><td>vclc</td><td>vcrt</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> in tokyo , japan , hikaru sato 's match ended before round 2</h3><h3>Input Table: katsuya inoue</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'location' is 'tokyo' and 'opponent' is 'hikaru sato'.</div><div class="content" id="step-1"><table><tr><td>res</td><td>record</td><td>opponent</td><td>method</td><td>event</td><td>round</td><td>time</td><td>location</td></tr><tr><td>loss</td><td>19 - 9 - 4</td><td>naoyuki kotani</td><td>submission (armbar)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>19 - 8 - 4</td><td>kota okazawa</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>19 - 7 - 4</td><td>katsuhiko nagata</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>18 - 7 - 4</td><td>maximo blanco</td><td>tko (strikes)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>18 - 6 - 4</td><td>mizuto hirota</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>17 - 6 - 3</td><td>koji oishi</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>18 - 6 - 3</td><td>daisuke hanazawa</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>loss</td><td>16 - 6 - 3</td><td>nick diaz</td><td>tko (corner stoppage)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>16 - 5 - 3</td><td>djamal kurbanov</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>16 - 5 - 2</td><td>satoru kitaoka</td><td>decision (split)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>15 - 5 - 2</td><td>shigetoshi iwase</td><td>draw</td><td>2007-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>15 - 5 - 1</td><td>fabricio nascimento</td><td>tko (punches)</td><td>2007-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>14 - 5 - 1</td><td>koji oishi</td><td>ko (punches)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>13 - 5 - 1</td><td>yoshiyuki yoshida</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>13 - 4 - 1</td><td>takefume hanai</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>12 - 4 - 1</td><td>daizo ishige</td><td>decision (unanimous)</td><td>9999-01-06</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>12 - 3 - 1</td><td>kim haeng ki</td><td>tko (punches)</td><td>9999-03-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>draw</td><td>11 - 3 - 1</td><td>satoru kitaoka</td><td>draw</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>11 - 3</td><td>daisuke hanazawa</td><td>decision (majority)</td><td>9999-01-04</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>10 - 3</td><td>akira kikuchi</td><td>tko (punches)</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>10 - 2</td><td>kenji arai</td><td>ko (punch)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>9 - 2</td><td>heath sims</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>8 - 2</td><td>kyle noke</td><td>decision (split)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>7 - 2</td><td>satoru kitaoka</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>6 - 2</td><td>takuya wada</td><td>decision (unanimous)</td><td>9999-01-01</td><td>9999-01-03</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>5 - 2</td><td>hikaru sato</td><td>tko (punches)</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>4 - 2</td><td>ichiro kanai</td><td>decision (majority)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>3 - 2</td><td>eiji ishikawa</td><td>decision (majority)</td><td>9999-01-01</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>3 - 1</td><td>taro minato</td><td>decision (unanimous)</td><td>9999-01-12</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>2 - 1</td><td>ichiro kanai</td><td>decision (unanimous)</td><td>9999-01-07</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>win</td><td>1 - 1</td><td>motohiro tachihara</td><td>decision (unanimous)</td><td>9999-01-05</td><td>9999-01-02</td><td>9999-01-01</td><td>9999-01-01</td></tr><tr><td>x loss</td><td>0 - 1</td><td>yoshinori oniki</td><td>tko (strikes)</td><td>9999-01-04</td><td>9999-01-01</td><td>9999-01-09</td><td>9999-01-01</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the match ended before round 2 by comparing the 'round' column to '2'.</div><div class="content" id="step-0"><table><tr><td>res</td><td>record</td><td>opponent</td><td>method</td><td>event</td><td>round</td><td>time</td><td>location</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is greater than or equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>res</td><td>record</td><td>opponent</td><td>method</td><td>event</td><td>round</td><td>time</td><td>location</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the competition on august 15th , 2012 , which resulted in a win , was played at a baku , azerbaijam venue</h3><h3>Input Table: branimir subašić</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'competition' is 'win'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>venue</td><td>score</td><td>result</td><td>competition</td></tr><tr><td>2007-03-07</td><td>shymkent , kazakhstan</td><td>0 - 1</td><td>win</td><td>friendly</td></tr><tr><td>2007-06-02</td><td>baku , azerbaijan</td><td>1 - 3</td><td>lost</td><td>uefa euro 2008 qualifying</td></tr><tr><td>2007-08-22</td><td>dushanbe , tajikistan</td><td>2 - 3</td><td>win</td><td>friendly</td></tr><tr><td>2007-09-12</td><td>baku , azerbaijan</td><td>1 - 1</td><td>draw</td><td>friendly</td></tr><tr><td>2008-06-04</td><td>andorra la vella , andorra</td><td>1 - 2</td><td>win</td><td>friendly</td></tr><tr><td>2008-11-19</td><td>baku , azerbaijan</td><td>1 - 1</td><td>draw</td><td>friendly</td></tr><tr><td>2012-08-15</td><td>baku , azerbaijan</td><td>3 - 0</td><td>win</td><td>friendly</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the 'result' is 'win'.</div><div class="content" id="step-0"><table><tr><td>date</td><td>venue</td><td>score</td><td>result</td><td>competition</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'venue' is 'baku, azerbaijan'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>venue</td><td>score</td><td>result</td><td>competition</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where the 'date' is '2012-08-15'.</div><div class="content" id="step-2"><table><tr><td>date</td><td>venue</td><td>score</td><td>result</td><td>competition</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>date</td><td>venue</td><td>score</td><td>result</td><td>competition</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> windows live messenger version 14 and made by microsoft was relased on 2010 - 11 - 17 under the category of social networking</h3><h3>Input Table: list of zune applications</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'title' is 'windows live messenger'.</div><div class="content" id="step-1"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alarm clock</span></td><td>microsoft</td><td>utilities</td><td>2010-12-16</td><td>1.1</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">calculator</span></td><td>microsoft</td><td>utilities</td><td>2009-09-01</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">calendar</span></td><td>matchbox</td><td>utilities</td><td>2011-07-29</td><td>1.0.0.3</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chord finder</span></td><td>microsoft</td><td>utilities</td><td>2010-11-17</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">drum machine hd</span></td><td>dino games</td><td>utilities</td><td>2010-10-20</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">email</span></td><td>microsoft</td><td>utilities</td><td>2011-04-01</td><td>1.1.0.1</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">facebook</span></td><td>matchbox</td><td>social networking</td><td>2010-12-16</td><td>1.4</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fan prediction</span></td><td>ihwy , inc</td><td>entertainment</td><td>2011-06-23</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fingerpaint</span></td><td>babaroga</td><td>entertainment</td><td>2011-07-29</td><td>1.1</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">level</span></td><td>microsoft</td><td>utilities</td><td>2011-06-23</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">metronome</span></td><td>dino games</td><td>utilities</td><td>2010-09-09</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">msn money</span></td><td>microsoft</td><td>utilities</td><td>2010-07-29</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">notes</span></td><td>microsoft</td><td>utilities</td><td>2011-06-23</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">piano</span></td><td>microsoft</td><td>entertainment</td><td>2009-11-01</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shuffle by album</span></td><td>microsoft</td><td>utilities</td><td>2011-02-18</td><td>1.1</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stopwatch</span></td><td>microsoft</td><td>utilities</td><td>2010-08-05</td><td>1.1</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">twitter</span></td><td>matchbox</td><td>social networking</td><td>2010-12-16</td><td>1.6</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">weather</span></td><td>microsoft</td><td>utilities</td><td>2009-09-01</td><td>1.0</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">windows live messenger</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">microsoft</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">social networking</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2010-11-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zune reader</span></td><td>microsoft</td><td>utilities</td><td>2011-02-18</td><td>1.2</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'version' is '14'.</div><div class="content" id="step-0"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr><tr><td>windows live messenger</td><td>microsoft</td><td>social networking</td><td>2010-11-17</td><td>1.4</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'developer' is 'microsoft'.</div><div class="content" id="step-1"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'release_date' is '2010-11-17'.</div><div class="content" id="step-2"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Select rows where 'category' is 'social networking'.</div><div class="content" id="step-3"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-4"><table><tr><td>title</td><td>developer</td><td>category</td><td>release_date</td><td>version</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> february 21 had a score of 5 - 4</h3><h3>Input Table: 2003 - 04 philadelphia flyers season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'february' is '9999-02-21'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>february</td><td>opponent</td><td>score</td><td>record</td><td>points</td></tr><tr><td>54</td><td>9999-01-02</td><td>tampa bay lightning</td><td>1 - 2</td><td>26 - 12 - 11 - 5</td><td>68</td></tr><tr><td>55</td><td>9999-01-04</td><td>washington capitals</td><td>5 - 1</td><td>27 - 12 - 11 - 5</td><td>70</td></tr><tr><td>56</td><td>9999-01-05</td><td>atlanta thrashers</td><td>5 - 1</td><td>28 - 12 - 11 - 5</td><td>72</td></tr><tr><td>57</td><td>9999-01-10</td><td>new jersey devils</td><td>4 - 1</td><td>29 - 12 - 11 - 5</td><td>74</td></tr><tr><td>58</td><td>9999-01-12</td><td>new york rangers</td><td>2 - 1</td><td>30 - 12 - 11 - 5</td><td>76</td></tr><tr><td>59</td><td>9999-01-14</td><td>new york rangers</td><td>6 - 2</td><td>31 - 12 - 11 - 5</td><td>78</td></tr><tr><td>60</td><td>9999-01-16</td><td>san jose sharks</td><td>2 - 5</td><td>31 - 13 - 11 - 5</td><td>78</td></tr><tr><td>61</td><td>9999-01-17</td><td>tampa bay lightning</td><td>2 - 5</td><td>31 - 14 - 11 - 5</td><td>78</td></tr><tr><td>62</td><td>9999-01-19</td><td>boston bruins</td><td>3 - 4</td><td>31 - 15 - 11 - 5</td><td>78</td></tr><tr><td>63</td><td>9999-01-21</td><td>atlanta thrashers</td><td>5 - 4</td><td>32 - 15 - 11 - 5</td><td>80</td></tr><tr><td>64</td><td>9999-01-24</td><td>chicago blackhawks</td><td>3 - 1</td><td>33 - 15 - 11 - 5</td><td>82</td></tr><tr><td>65</td><td>9999-01-26</td><td>ottawa senators</td><td>1 - 1 ot</td><td>33 - 15 - 12 - 5</td><td>83</td></tr><tr><td>66</td><td>9999-01-28</td><td>boston bruins</td><td>2 - 3 ot</td><td>33 - 15 - 12 - 6</td><td>84</td></tr><tr><td>67</td><td>9999-01-29</td><td>detroit red wings</td><td>2 - 4</td><td>33 - 16 - 12 - 6</td><td>84</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'score' is '5 - 4'.</div><div class="content" id="step-0"><table><tr><td>game</td><td>february</td><td>opponent</td><td>score</td><td>record</td><td>points</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>game</td><td>february</td><td>opponent</td><td>score</td><td>record</td><td>points</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> takamiyama had the longest time range between his first and last record , 13 years</h3><h3>Input Table: list of sumo record holders</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by the 'first' column in ascending order.</div><div class="content" id="step-1"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kotonishiki</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1990-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kaiō</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1994-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">musōyama</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1994-03-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hasegawa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1965-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1974-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kotomitsuki</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2001-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">akinoshima</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1988-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">takamiyama</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1969-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1982-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">takatōriki</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1991-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wakanosato</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2000-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">daikirin</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1966-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1970-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tochiazuma ii</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1997-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kisenosato</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2011-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select the row with the earliest 'first' date.</div><div class="content" id="step-0"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hasegawa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1965-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1974-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td>daikirin</td><td>22</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966-11-01</span></td><td>1970-09-01</td><td>ōzeki</td></tr><tr><td>takamiyama</td><td>27</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1969-11-01</span></td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>akinoshima</td><td>27</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1988-11-01</span></td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>kotonishiki</td><td>34</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1990-09-01</span></td><td>1999-09-01</td><td>sekiwake</td></tr><tr><td>takatōriki</td><td>26</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1991-05-01</span></td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>musōyama</td><td>31</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994-03-01</span></td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>kaiō</td><td>32</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994-05-01</span></td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>tochiazuma ii</td><td>22</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997-07-01</span></td><td>2005-01-01</td><td>ōzeki</td></tr><tr><td>wakanosato</td><td>26</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-11-01</span></td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td>30</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001-01-01</span></td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>kisenosato</td><td>22</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006-07-01</span></td><td>2011-09-01</td><td>ōzeki</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'name' is 'takamiyama'.</div><div class="content" id="step-1"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>hasegawa</td><td>30</td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the only total that appears more than two times is 22</h3><h3>Input Table: list of sumo record holders</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'total' column is equal to 22.</div><div class="content" id="step-1"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>kotonishiki</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</span></td><td>1990-09-01</td><td>1999-09-01</td><td>sekiwake</td></tr><tr><td>kaiō</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32</span></td><td>1994-05-01</td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>musōyama</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td>1994-03-01</td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>hasegawa</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td>2001-01-01</td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>akinoshima</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td><td>1988-11-01</td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>takamiyama</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td><td>1969-11-01</td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>takatōriki</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td><td>1991-05-01</td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>wakanosato</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td><td>2000-11-01</td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">daikirin</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1970-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tochiazuma ii</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kisenosato</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2011-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-0"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">daikirin</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1966-11-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1970-09-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tochiazuma ii</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1997-07-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">kisenosato</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006-07-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2011-09-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">ōzeki</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the last record for both the highest totalling name and the lowest totalling name were recorded in the month of september</h3><h3>Input Table: list of sumo record holders</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by the 'total' column in ascending order.</div><div class="content" id="step-1"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kotonishiki</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1990-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kaiō</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">musōyama</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994-03-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hasegawa</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1965-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1974-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kotomitsuki</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">akinoshima</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1988-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">takamiyama</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1969-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1982-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">takatōriki</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1991-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-05-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wakanosato</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sekiwake</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">daikirin</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1970-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tochiazuma ii</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kisenosato</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006-07-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2011-09-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ōzeki</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select the row number 1.</div><div class="content" id="step-0"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr><tr><td>tochiazuma ii</td><td>22</td><td>1997-07-01</td><td>2005-01-01</td><td>ōzeki</td></tr><tr><td>kisenosato</td><td>22</td><td>2006-07-01</td><td>2011-09-01</td><td>ōzeki</td></tr><tr><td>takatōriki</td><td>26</td><td>1991-05-01</td><td>2000-05-01</td><td>sekiwake</td></tr><tr><td>wakanosato</td><td>26</td><td>2000-11-01</td><td>2005-09-01</td><td>sekiwake</td></tr><tr><td>akinoshima</td><td>27</td><td>1988-11-01</td><td>2000-09-01</td><td>sekiwake</td></tr><tr><td>takamiyama</td><td>27</td><td>1969-11-01</td><td>1982-09-01</td><td>sekiwake</td></tr><tr><td>hasegawa</td><td>30</td><td>1965-11-01</td><td>1974-09-01</td><td>sekiwake</td></tr><tr><td>kotomitsuki</td><td>30</td><td>2001-01-01</td><td>2007-07-01</td><td>ōzeki</td></tr><tr><td>musōyama</td><td>31</td><td>1994-03-01</td><td>2000-09-01</td><td>ōzeki</td></tr><tr><td>kaiō</td><td>32</td><td>1994-05-01</td><td>2000-07-01</td><td>ōzeki</td></tr><tr><td>kotonishiki</td><td>34</td><td>1990-09-01</td><td>1999-09-01</td><td>sekiwake</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'last' column is in the month of September.</div><div class="content" id="step-1"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where the 'highest_rank' column is 'sekiwake'.</div><div class="content" id="step-2"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr><tr><td>daikirin</td><td>22</td><td>1966-11-01</td><td>1970-09-01</td><td>ōzeki</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>name</td><td>total</td><td>first</td><td>last</td><td>highest_rank</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> danny cipriani , born november 2nd 1987 was a fly half</h3><h3>Input Table: 2008 six nations championship squads</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'player' is 'danny cipriani'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>position</td><td>date_of_birth__age_</td><td>caps</td><td>club___province</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">george chuter</span></td><td>hooker</td><td>1976-07-09</td><td>19</td><td>leicester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lee mears</span></td><td>hooker</td><td>1979-03-05</td><td>18</td><td>bath</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mark regan</span></td><td>hooker</td><td>1972-01-28</td><td>43</td><td>bristol</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jason hobson</span></td><td>prop</td><td>1983-02-10</td><td>0</td><td>bristol</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tim payne</span></td><td>prop</td><td>1979-04-29</td><td>5</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andrew sheridan</span></td><td>prop</td><td>1979-11-01</td><td>20</td><td>sale</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">matt stevens</span></td><td>prop</td><td>1982-10-01</td><td>20</td><td>bath</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phil vickery ( c )</span></td><td>prop</td><td>1976-03-14</td><td>60</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">steve borthwick</span></td><td>lock</td><td>1979-10-12</td><td>32</td><td>bath</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">louis deacon</span></td><td>lock</td><td>1980-10-07</td><td>6</td><td>leicester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ben kay</span></td><td>lock</td><td>1975-12-14</td><td>53</td><td>leicester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">simon shaw</span></td><td>lock</td><td>1973-09-01</td><td>43</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tom croft</span></td><td>flanker</td><td>1985-11-07</td><td>0</td><td>leicester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">james haskell</span></td><td>flanker</td><td>1985-04-02</td><td>2</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael lipman</span></td><td>flanker</td><td>1980-01-16</td><td>0</td><td>bath</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">magnus lund</span></td><td>flanker</td><td>1983-06-25</td><td>10</td><td>sale</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lewis moody</span></td><td>flanker</td><td>1978-06-12</td><td>52</td><td>leicester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tom rees</span></td><td>flanker</td><td>1984-09-11</td><td>8</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joe worsley</span></td><td>flanker</td><td>1977-06-14</td><td>65</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nick easter</span></td><td>number 8</td><td>1978-08-15</td><td>12</td><td>harlequins</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">luke narraway</span></td><td>number 8</td><td>1983-09-07</td><td>0</td><td>gloucester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">danny care</span></td><td>scrum - half</td><td>1987-01-02</td><td>0</td><td>harlequins</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lee dickson</span></td><td>scrum - half</td><td>1985-03-29</td><td>0</td><td>newcastle</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andy gomarsall</span></td><td>scrum - half</td><td>1974-07-24</td><td>33</td><td>harlequins</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">paul hodgson</span></td><td>scrum - half</td><td>1982-04-25</td><td>0</td><td>london irish</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peter richards</span></td><td>scrum - half</td><td>1978-03-10</td><td>12</td><td>london irish</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard wigglesworth</span></td><td>scrum - half</td><td>1983-06-09</td><td>0</td><td>sale</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">danny cipriani</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fly - half</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1987-11-02</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wasps</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shane geraghty</span></td><td>fly - half</td><td>1986-08-12</td><td>2</td><td>london irish</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">charlie hodgson</span></td><td>fly - half</td><td>1980-11-12</td><td>29</td><td>sale</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jonny wilkinson</span></td><td>fly - half</td><td>1979-05-25</td><td>65</td><td>newcastle</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">toby flood</span></td><td>centre</td><td>1985-08-01</td><td>12</td><td>newcastle</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jamie noon</span></td><td>centre</td><td>1979-05-09</td><td>27</td><td>newcastle</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mathew tait</span></td><td>centre</td><td>1986-02-06</td><td>19</td><td>newcastle</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mike tindall</span></td><td>centre</td><td>1978-10-18</td><td>54</td><td>gloucester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">paul sackey</span></td><td>wing</td><td>1979-11-08</td><td>10</td><td>wasps</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">james simpson - daniel</span></td><td>wing</td><td>1982-05-30</td><td>10</td><td>gloucester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">david strettle</span></td><td>wing</td><td>1983-07-23</td><td>3</td><td>harlequins</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lesley vainikolo</span></td><td>wing</td><td>1979-05-04</td><td>5</td><td>gloucester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">iain balshaw</span></td><td>fullback</td><td>1979-04-14</td><td>30</td><td>gloucester</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mark cueto</span></td><td>fullback</td><td>1979-12-26</td><td>24</td><td>sale</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'date_of_birth__age_' is 'november 2nd 1987'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>position</td><td>date_of_birth__age_</td><td>caps</td><td>club___province</td></tr><tr><td>danny cipriani</td><td>fly - half</td><td>1987-11-02</td><td>0</td><td>wasps</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'position' is 'fly - half'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>position</td><td>date_of_birth__age_</td><td>caps</td><td>club___province</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>player</td><td>position</td><td>date_of_birth__age_</td><td>caps</td><td>club___province</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> detroit had the highest home team score , at 6 points</h3><h3>Input Table: 2003 - 04 detroit red wings season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'score' in descending order.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0002-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17053</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nashville</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17565</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san jose</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17361</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17174</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">los angeles</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18118</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19019</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dallas</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18532</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new jersey</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30 - 15 - 8 - 2</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'home' is 'detroit'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the highest score of the season was detroit , on january 5 with 6 points</h3><h3>Input Table: 2003 - 04 detroit red wings season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'score' in descending order.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0002-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17053</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nashville</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17565</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san jose</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17361</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17174</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">los angeles</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18118</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19019</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dallas</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18532</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new jersey</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30 - 15 - 8 - 2</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'home' is 'detroit'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1 and the 'score' is 6, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the production number for episode 23 is 120</h3><h3>Input Table: the baron</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'episode' is 23.</div><div class="content" id="step-1"><table><tr><td>episode</td><td>prod</td><td>title</td><td>directed_by</td><td>written_by</td><td>originalairdate</td><td>filmed</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td>104</td><td>diplomatic immunity</td><td>leslie norman</td><td>dennis spooner</td><td>1966-09-28</td><td>1965-09-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td>107</td><td>epitaph for a hero</td><td>john moxey</td><td>terry nation</td><td>1966-10-05</td><td>1965-10-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td>109</td><td>something for a rainy day</td><td>cyril frankel</td><td>terry nation</td><td>1966-10-12</td><td>1965-11-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td>102</td><td>red horse , red rider</td><td>john moxey</td><td>terry nation</td><td>1966-10-19</td><td>1965-08-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td>110</td><td>enemy of the state</td><td>jeremy summers</td><td>dennis spooner</td><td>1966-10-26</td><td>1965-12-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td>114</td><td>masquerade (part one)</td><td>cyril frankel</td><td>terry nation</td><td>1966-11-02</td><td>1966-02-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td>115</td><td>the killing (part two)</td><td>cyril frankel</td><td>terry nation</td><td>1966-11-09</td><td>1966-02-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td>108</td><td>the persuaders</td><td>leslie norman</td><td>dennis spooner</td><td>1966-11-16</td><td>1965-10-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td>112</td><td>and suddenly you 're dead</td><td>cyril frankel</td><td>terry nation and dennis spooner</td><td>1966-11-23</td><td>1966-01-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td>103</td><td>the legions of ammak</td><td>john moxey</td><td>michael cramoy</td><td>1966-11-30</td><td>1965-08-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td>101</td><td>samurai west</td><td>john moxey</td><td>brian degas</td><td>1966-12-07</td><td>1965-07-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td>123</td><td>the maze</td><td>jeremy summers</td><td>tony o'grady (pseudonym of brian clemens)</td><td>1966-12-14</td><td>1966-06-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td>105</td><td>portrait of louisa</td><td>john moxey</td><td>terry nation</td><td>1966-12-21</td><td>1965-09-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td>111</td><td>there 's somebody close behind you</td><td>roy baker</td><td>terry nation and dennis spooner</td><td>1966-12-28</td><td>1965-12-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td>125</td><td>storm warning (part one)</td><td>gordon flemyng</td><td>terry nation</td><td>1967-01-04</td><td>1966-07-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td>126</td><td>the island (part two)</td><td>gordon flemyng</td><td>terry nation</td><td>1967-01-11</td><td>1966-07-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17</span></td><td>121</td><td>time to kill</td><td>jeremy summers</td><td>dennis spooner</td><td>1967-01-18</td><td>1966-05-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td>113</td><td>a memory of evil</td><td>don chaffey</td><td>terry nation and dennis spooner</td><td>1967-01-25</td><td>1966-01-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19</span></td><td>117</td><td>you can't win them all</td><td>don chaffey</td><td>dennis spooner</td><td>1967-02-01</td><td>1966-04-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td>128</td><td>the high terrace</td><td>robert asher</td><td>dennis spooner</td><td>1967-02-08</td><td>1966-09-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21</span></td><td>118</td><td>the seven eyes of night</td><td>robert asher</td><td>terry nation</td><td>1967-02-15</td><td>1966-04-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td>124</td><td>night of the hunter</td><td>roy baker</td><td>terry nation</td><td>1967-02-22</td><td>1966-07-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">120</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the edge of fear</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quentin lawrence</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dennis spooner</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1967-03-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966-05-01</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td>116</td><td>long ago and far away</td><td>robert asher</td><td>dennis spooner</td><td>1967-03-08</td><td>1966-04-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td>122</td><td>so dark the night</td><td>robert tronson</td><td>terry nation and dennis spooner</td><td>1967-03-15</td><td>1966-06-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td><td>119</td><td>the long , long day</td><td>roy baker</td><td>tony o'grady</td><td>1967-03-22</td><td>1966-04-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td><td>127</td><td>roundabout</td><td>robert tronson</td><td>terry nation</td><td>1967-03-29</td><td>1966-08-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td><td>129</td><td>the man outside</td><td>roy baker</td><td>terry nation</td><td>1967-04-05</td><td>1966-09-01</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29</span></td><td>130</td><td>countdown</td><td>robert asher</td><td>terry nation</td><td>1967-04-12</td><td>1966-10-01</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select the 'prod' column for the selected rows.</div><div class="content" id="step-0"><table><tr><td>episode</td><td>prod</td><td>title</td><td>directed_by</td><td>written_by</td><td>originalairdate</td><td>filmed</td></tr><tr><td>23</td><td>120</td><td>the edge of fear</td><td>quentin lawrence</td><td>dennis spooner</td><td>1967-03-01</td><td>1966-05-01</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the value in the 'prod' column is 120, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>prod</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">120</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the highest point gap was on january 5 , with a spread of 6 points</h3><h3>Input Table: 2003 - 04 detroit red wings season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'record' in descending order.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0002-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17053</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nashville</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26 - 13 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17565</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27 - 13 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san jose</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17361</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27 - 14 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17174</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">los angeles</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18118</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19019</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28 - 15 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dallas</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18532</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new jersey</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30 - 15 - 8 - 2</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Extract the numerical point gap from the 'record' column then add column 'point_gap' to existing table.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30 - 15 - 8 - 2</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'point_gap' is 6.</div><div class="content" id="step-2"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td><td>point_gap</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td><td>15</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Select rows where 'date' is '0000-01-05'.</div><div class="content" id="step-3"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td><td>point_gap</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-4"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td><td>point_gap</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> detroit had one of the lowest visitor scores this season</h3><h3>Input Table: 2003 - 04 detroit red wings season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by the visitor's score in ascending order.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0002-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17053</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nashville</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 12 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0001-01-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17565</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 4 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0000-01-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 13 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san jose</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17361</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anaheim</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17174</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">los angeles</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18118</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 14 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">phoenix</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19019</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dallas</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18532</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new jersey</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2 - 5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">joseph</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29 - 15 - 7 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-01-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carolina</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4 - 4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">detroit</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">legace</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20066</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30 - 15 - 8 - 2</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select the row number 1.</div><div class="content" id="step-0"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr><tr><td>0001-01-03</td><td>anaheim</td><td>1 - 3</td><td>detroit</td><td>legace</td><td>20066</td><td>25 - 12 - 4 - 1</td></tr><tr><td>0000-01-10</td><td>detroit</td><td>1 - 2</td><td>boston</td><td>joseph</td><td>17565</td><td>26 - 13 - 4 - 2</td></tr><tr><td>9999-01-19</td><td>detroit</td><td>1 - 2</td><td>san jose</td><td>joseph</td><td>17361</td><td>27 - 14 - 5 - 2</td></tr><tr><td>9999-01-14</td><td>chicago</td><td>2 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>27 - 13 - 4 - 2</td></tr><tr><td>9999-01-21</td><td>detroit</td><td>2 - 2</td><td>anaheim</td><td>legace</td><td>17174</td><td>27 - 14 - 6 - 2</td></tr><tr><td>9999-01-24</td><td>detroit</td><td>2 - 5</td><td>phoenix</td><td>joseph</td><td>19019</td><td>28 - 15 - 6 - 2</td></tr><tr><td>9999-01-26</td><td>detroit</td><td>2 - 2</td><td>dallas</td><td>legace</td><td>18532</td><td>28 - 15 - 7 - 2</td></tr><tr><td>9999-01-29</td><td>new jersey</td><td>2 - 5</td><td>detroit</td><td>joseph</td><td>20066</td><td>29 - 15 - 7 - 2</td></tr><tr><td>0001-01-07</td><td>boston</td><td>3 - 0</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 13 - 4 - 1</td></tr><tr><td>0000-01-16</td><td>phoenix</td><td>3 - 3</td><td>detroit</td><td>joseph</td><td>20066</td><td>27 - 13 - 5 - 2</td></tr><tr><td>0002-01-01</td><td>detroit</td><td>4 - 1</td><td>carolina</td><td>joseph</td><td>17053</td><td>24 - 12 - 4 - 1</td></tr><tr><td>9999-01-31</td><td>carolina</td><td>4 - 4</td><td>detroit</td><td>legace</td><td>20066</td><td>30 - 15 - 8 - 2</td></tr><tr><td>9999-01-22</td><td>detroit</td><td>5 - 4</td><td>los angeles</td><td>joseph</td><td>18118</td><td>28 - 14 - 6 - 2</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the visitor is 'detroit'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr><tr><td>0000-01-05</td><td>nashville</td><td>0 - 6</td><td>detroit</td><td>joseph</td><td>20066</td><td>26 - 12 - 4 - 1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>date</td><td>visitor</td><td>score</td><td>home</td><td>decision</td><td>attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> in season 1 of gary unmarried , the least viewed episode of the season was the finale , which aired on may 20 , 2009</h3><h3>Input Table: gary unmarried</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'viewers' in ascending order.</div><div class="content" id="step-1"><table><tr><td>episode</td><td>air_date</td><td>timeslot</td><td>c_18___49</td><td>viewers</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pilot</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-09-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.3 / 6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.84</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary gets boundaries</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-10-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.2 / 6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.97</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary marries off his ex</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-10-08</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.2 / 6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.43</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary gets his stuff back</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-10-15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.4 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.71</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary breaks up his ex - wife and girlfriend</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-10-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.5 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.85</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary meets the gang</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-11-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.1 / 6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary and allison 's restaurant</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-11-12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.1 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.71</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary and allison brooks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-11-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.7 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">8.14</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary gives thanks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-11-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.2 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.72</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary goes first</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-12-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.4 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">8.03</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary toughens up tom</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-12-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.3 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.55</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary dates louise 's teacher</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-01-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.1 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.07</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary moves back in</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-01-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.2 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.07</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary and dennis' sister</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-02-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.1 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.86</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary 's ex - brother - in - law</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-02-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.1 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary uses his veto</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-03-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.3 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.71</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary hooks up allison</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-03-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.3 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.57</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary and the trophy</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-04-08</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.2 / 7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary and his half brother</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-05-06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2.0 / 6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6.66</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gary fixes allison 's garbage disposal</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-05-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 8:30 pm</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.7 / 5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5.55</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 20.</div><div class="content" id="step-0"><table><tr><td>episode</td><td>air_date</td><td>timeslot</td><td>c_18___49</td><td>viewers</td></tr><tr><td>gary fixes allison 's garbage disposal</td><td>2009-05-20</td><td>wednesday 8:30 pm</td><td>1.7 / 5</td><td>5.55</td></tr><tr><td>gary meets the gang</td><td>2008-11-05</td><td>wednesday 8:30 pm</td><td>2.1 / 6</td><td>6.44</td></tr><tr><td>gary and his half brother</td><td>2009-05-06</td><td>wednesday 8:30 pm</td><td>2.0 / 6</td><td>6.66</td></tr><tr><td>gary and allison 's restaurant</td><td>2008-11-12</td><td>wednesday 8:30 pm</td><td>2.1 / 5</td><td>6.71</td></tr><tr><td>pilot</td><td>2008-09-24</td><td>wednesday 8:30 pm</td><td>2.3 / 6</td><td>6.84</td></tr><tr><td>gary and dennis' sister</td><td>2009-02-11</td><td>wednesday 8:30 pm</td><td>2.1 / 5</td><td>6.86</td></tr><tr><td>gary gets boundaries</td><td>2008-10-01</td><td>wednesday 8:30 pm</td><td>2.2 / 6</td><td>6.97</td></tr><tr><td>gary dates louise 's teacher</td><td>2009-01-14</td><td>wednesday 8:30 pm</td><td>2.1 / 5</td><td>7.07</td></tr><tr><td>gary moves back in</td><td>2009-01-21</td><td>wednesday 8:30 pm</td><td>2.2 / 5</td><td>7.07</td></tr><tr><td>gary 's ex - brother - in - law</td><td>2009-02-18</td><td>wednesday 8:30 pm</td><td>2.1 / 5</td><td>7.26</td></tr><tr><td>gary and the trophy</td><td>2009-04-08</td><td>wednesday 8:30 pm</td><td>2.2 / 7</td><td>7.3</td></tr><tr><td>gary marries off his ex</td><td>2008-10-08</td><td>wednesday 8:30 pm</td><td>2.2 / 6</td><td>7.43</td></tr><tr><td>gary toughens up tom</td><td>2008-12-17</td><td>wednesday 8:30 pm</td><td>2.3 / 7</td><td>7.55</td></tr><tr><td>gary hooks up allison</td><td>2009-03-18</td><td>wednesday 8:30 pm</td><td>2.3 / 7</td><td>7.57</td></tr><tr><td>gary gets his stuff back</td><td>2008-10-15</td><td>wednesday 8:30 pm</td><td>2.4 / 7</td><td>7.71</td></tr><tr><td>gary uses his veto</td><td>2009-03-11</td><td>wednesday 8:30 pm</td><td>2.3 / 7</td><td>7.71</td></tr><tr><td>gary gives thanks</td><td>2008-11-26</td><td>wednesday 8:30 pm</td><td>2.2 / 7</td><td>7.72</td></tr><tr><td>gary breaks up his ex - wife and girlfriend</td><td>2008-10-22</td><td>wednesday 8:30 pm</td><td>2.5 / 7</td><td>7.85</td></tr><tr><td>gary goes first</td><td>2008-12-10</td><td>wednesday 8:30 pm</td><td>2.4 / 7</td><td>8.03</td></tr><tr><td>gary and allison brooks</td><td>2008-11-19</td><td>wednesday 8:30 pm</td><td>2.7 / 7</td><td>8.14</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'episode' is 'finale'.</div><div class="content" id="step-1"><table><tr><td>episode</td><td>air_date</td><td>timeslot</td><td>c_18___49</td><td>viewers</td></tr><tr><td>gary and allison brooks</td><td>2008-11-19</td><td>wednesday 8:30 pm</td><td>2.7 / 7</td><td>8.14</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>episode</td><td>air_date</td><td>timeslot</td><td>c_18___49</td><td>viewers</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the third / vice skip was martin crete and the second was eric sylvain</h3><h3>Input Table: 2009 canadian olympic curling trials</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'third___vice_skip' is 'martin crete'.</div><div class="content" id="step-1"><table><tr><td>skip</td><td>third___vice_skip</td><td>second</td><td>lead</td><td>city</td></tr><tr><td>kerry burtnyk</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">don walchuk</span></td><td>richard daneault</td><td>garth smith</td><td>winnipeg</td></tr><tr><td>pat simmons</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gerry adam</span></td><td>jeff sharp</td><td>steve laycock</td><td>davidson</td></tr><tr><td>jeff stoughton</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kevin park</span></td><td>rob fowler</td><td>steve gould</td><td>winnipeg</td></tr><tr><td>wayne middaugh</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jon mead</span></td><td>john epping</td><td>scott bailey</td><td>islington</td></tr><tr><td>brad gushue</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mark nichols</span></td><td>ryan fry</td><td>jamie korab</td><td>st john 's</td></tr><tr><td>mike mcewen</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">b j neufeld</span></td><td>matt wozniak</td><td>denni neufeld</td><td>winnipeg</td></tr><tr><td>joel jordison</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scott bitz</span></td><td>aryn schmidt</td><td>dean hicke</td><td>moose jaw</td></tr><tr><td>bob ursel</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jim cotter</span></td><td>kevin folk</td><td>rick sawatsky</td><td>kelowna</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jean - michel ménard</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">martin crête</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">éric sylvain</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jean gagnon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lévis</span></td></tr><tr><td>ted appelman</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tom appelman</span></td><td>bradon klassen</td><td>brendan melnyk</td><td>edmonton</td></tr><tr><td>greg mcaulay</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ken maskiewich</span></td><td>deane horning</td><td>aaron watson</td><td>richmond</td></tr><tr><td>jason gunnlaugson</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">justin richter</span></td><td>braden zawada</td><td>tyler forrest</td><td>beausejour</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the 'second' is 'eric sylvain'.</div><div class="content" id="step-0"><table><tr><td>skip</td><td>third___vice_skip</td><td>second</td><td>lead</td><td>city</td></tr><tr><td>jean - michel ménard</td><td>martin crête</td><td>éric sylvain</td><td>jean gagnon</td><td>lévis</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows for both steps 1 and 2 is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>skip</td><td>third___vice_skip</td><td>second</td><td>lead</td><td>city</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the open championship is the tournament with the highest number of events</h3><h3>Input Table: brian watts</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by the 'events' column in descending order.</div><div class="content" id="step-1"><table><tr><td>tournament</td><td>wins</td><td>top___5</td><td>top___25</td><td>events</td><td>cuts_made</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">masters tournament</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">us open</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the open championship</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pga championship</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">totals</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>tournament</td><td>wins</td><td>top___5</td><td>top___25</td><td>events</td><td>cuts_made</td></tr><tr><td>totals</td><td>0</td><td>1</td><td>3</td><td>17</td><td>10</td></tr><tr><td>the open championship</td><td>0</td><td>1</td><td>2</td><td>7</td><td>4</td></tr><tr><td>pga championship</td><td>0</td><td>0</td><td>0</td><td>6</td><td>4</td></tr><tr><td>masters tournament</td><td>0</td><td>0</td><td>0</td><td>2</td><td>1</td></tr><tr><td>us open</td><td>0</td><td>0</td><td>1</td><td>2</td><td>1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'tournament' is 'the open championship'.</div><div class="content" id="step-1"><table><tr><td>tournament</td><td>wins</td><td>top___5</td><td>top___25</td><td>events</td><td>cuts_made</td></tr><tr><td>totals</td><td>0</td><td>1</td><td>3</td><td>17</td><td>10</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>tournament</td><td>wins</td><td>top___5</td><td>top___25</td><td>events</td><td>cuts_made</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> among the players in df position , dave sutton has the most league goals</h3><h3>Input Table: 1979 - 80 huddersfield town f.c. season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'league_goals' in descending order.</div><div class="content" id="step-1"><table><tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jim branagan</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0 (1)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0 (1)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">malcolm brown</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">david cowling</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39 (1)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">44 (1)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peter fletcher</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30 (8)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35 (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">keith hanvey</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peter hart</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ian holmes</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 (4)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10 (4)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">steve kindon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 (1)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 (1)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mick laverick</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">45</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bernard purdie</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18 (4)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20 (4)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andy rankin</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gk</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ian robins</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">45</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">51</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fred robinson</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tommy smith</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fw</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">brian stanton</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mf</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">41</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alan starling</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gk</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dave sutton</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris topping</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">df</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr><tr><td>ian robins</td><td>fw</td><td>45</td><td>25</td><td>2</td><td>0</td><td>4</td><td>2</td><td>51</td><td>27</td></tr><tr><td>peter fletcher</td><td>fw</td><td>30 (8)</td><td>17</td><td>2</td><td>0</td><td>3</td><td>1</td><td>35 (8)</td><td>18</td></tr><tr><td>steve kindon</td><td>fw</td><td>22 (1)</td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>22 (1)</td><td>14</td></tr><tr><td>david cowling</td><td>mf</td><td>39 (1)</td><td>10</td><td>1</td><td>0</td><td>4</td><td>0</td><td>44 (1)</td><td>10</td></tr><tr><td>brian stanton</td><td>mf</td><td>41</td><td>9</td><td>2</td><td>0</td><td>0</td><td>0</td><td>43</td><td>9</td></tr><tr><td>dave sutton</td><td>df</td><td>46</td><td>6</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>7</td></tr><tr><td>peter hart</td><td>mf</td><td>46</td><td>4</td><td>1</td><td>1</td><td>4</td><td>0</td><td>51</td><td>5</td></tr><tr><td>mick laverick</td><td>mf</td><td>45</td><td>4</td><td>2</td><td>0</td><td>4</td><td>0</td><td>51</td><td>4</td></tr><tr><td>ian holmes</td><td>mf</td><td>6 (4)</td><td>3</td><td>0</td><td>0</td><td>4</td><td>1</td><td>10 (4)</td><td>4</td></tr><tr><td>malcolm brown</td><td>df</td><td>46</td><td>2</td><td>2</td><td>0</td><td>4</td><td>1</td><td>52</td><td>3</td></tr><tr><td>keith hanvey</td><td>df</td><td>33</td><td>2</td><td>0</td><td>0</td><td>4</td><td>0</td><td>39</td><td>2</td></tr><tr><td>fred robinson</td><td>df</td><td>30</td><td>1</td><td>2</td><td>0</td><td>4</td><td>0</td><td>36</td><td>1</td></tr><tr><td>jim branagan</td><td>df</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0 (1)</td><td>0</td><td>0 (1)</td><td>0</td></tr><tr><td>bernard purdie</td><td>df</td><td>18 (4)</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>20 (4)</td><td>0</td></tr><tr><td>andy rankin</td><td>gk</td><td>24</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>24</td><td>0</td></tr><tr><td>tommy smith</td><td>fw</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>alan starling</td><td>gk</td><td>22</td><td>0</td><td>2</td><td>0</td><td>4</td><td>0</td><td>28</td><td>0</td></tr><tr><td>chris topping</td><td>df</td><td>13</td><td>0</td><td>2</td><td>0</td><td>0</td><td>0</td><td>15</td><td>0</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'position' is 'df'.</div><div class="content" id="step-1"><table><tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr><tr><td>ian robins</td><td>fw</td><td>45</td><td>25</td><td>2</td><td>0</td><td>4</td><td>2</td><td>51</td><td>27</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'name' is 'dave sutton'.</div><div class="content" id="step-2"><table><tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>name</td><td>position</td><td>league_apps</td><td>league_goals</td><td>fa_cup_apps</td><td>fa_cup_goals</td><td>league_cup_apps</td><td>league_cup_goals</td><td>total_apps</td><td>total_goals</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> footscray score 14.8 when they visited essendon on july 13 1946</h3><h3>Input Table: 1946 vfl season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'away_team' is 'footscray'.</div><div class="content" id="step-1"><table><tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td>geelong</td><td>15.7 (97)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">melbourne</span></td><td>21.14 (140)</td><td>kardinia park</td><td>11500</td><td>1946-07-13</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">essendon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16.24 (120)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">footscray</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14.8 (92)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">windy hill</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29000</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1946-07-13</span></td></tr><tr><td>collingwood</td><td>15.23 (113)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hawthorn</span></td><td>11.14 (80)</td><td>victoria park</td><td>11000</td><td>1946-07-13</td></tr><tr><td>carlton</td><td>12.13 (85)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">south melbourne</span></td><td>11.18 (84)</td><td>princes park</td><td>26000</td><td>1946-07-13</td></tr><tr><td>st kilda</td><td>10.14 (74)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">north melbourne</span></td><td>12.11 (83)</td><td>junction oval</td><td>7000</td><td>1946-07-13</td></tr><tr><td>richmond</td><td>14.14 (98)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fitzroy</span></td><td>10.12 (72)</td><td>punt road oval</td><td>19000</td><td>1946-07-13</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'home_team' is 'essendon'.</div><div class="content" id="step-0"><table><tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">essendon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16.24 (120)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">footscray</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14.8 (92)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">windy hill</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29000</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1946-07-13</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'date' is '1946-07-13'.</div><div class="content" id="step-1"><table><tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">essendon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16.24 (120)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">footscray</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14.8 (92)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">windy hill</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1946-07-13</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1 and the 'away_team_score' is '14.8', otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>home_team</td><td>home_team_score</td><td>away_team</td><td>away_team_score</td><td>venue</td><td>crowd</td><td>date</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">essendon</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">16.24 (120)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">footscray</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14.8 (92)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">windy hill</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1946-07-13</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> rodney stuckey led the detroit pistons in points scored in two games during this period of the 2010 - 2011 season</h3><h3>Input Table: 2010 - 11 detroit pistons season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'high_points' in descending order.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">62</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">milwaukee</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 90 - 92 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">rodney stuckey (25)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , charlie villanueva (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bradley center 11364</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 - 40</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-02</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">minnesota</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 105 - 116 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">austin daye (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 13122</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 - 41</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">64</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">washington</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 113 - 102 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tayshaun prince (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , rodney stuckey (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 17506</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 41</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">65</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-09</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san antonio</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 104 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tracy mcgrady (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">at&t center 18581</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 42</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oklahoma city</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 94 - 104 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oklahoma city arena 18203</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 43</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">67</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">denver</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 101 - 131 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">chris wilcox (21)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">austin daye , ben gordon , greg monroe (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">will bynum (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 19155</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">toronto</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 107 - 93 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton (24)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (14)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 15166</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">69</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new york</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 99 - 95 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">tayshaun prince (16)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris wilcox (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">will bynum (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 22076</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">atlanta</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 96 - 104 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">rodney stuckey (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philips arena 17580</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 45</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">miami</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 94 - 100 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton (27)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 22076</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 46</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cleveland</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 91 - 97 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton , tayshaun prince (15)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris wilcox , greg monroe (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (4)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quicken loans arena 19907</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 47</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">indiana</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 100 - 88 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">richard hamilton (23)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (13)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton , rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 19216</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 47</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'team' is 'detroit pistons'.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>71</td><td>9999-03-23</td><td>miami</td><td>l 94 - 100 (ot)</td><td>richard hamilton (27)</td><td>greg monroe (12)</td><td>rodney stuckey (6)</td><td>the palace of auburn hills 22076</td><td>25 - 46</td></tr><tr><td>62</td><td>9999-03-01</td><td>milwaukee</td><td>l 90 - 92 (ot)</td><td>rodney stuckey (25)</td><td>greg monroe , charlie villanueva (9)</td><td>rodney stuckey (5)</td><td>bradley center 11364</td><td>22 - 40</td></tr><tr><td>68</td><td>9999-03-16</td><td>toronto</td><td>w 107 - 93 (ot)</td><td>richard hamilton (24)</td><td>greg monroe (10)</td><td>rodney stuckey (14)</td><td>the palace of auburn hills 15166</td><td>24 - 44</td></tr><tr><td>73</td><td>9999-03-26</td><td>indiana</td><td>w 100 - 88 (ot)</td><td>richard hamilton (23)</td><td>greg monroe (13)</td><td>richard hamilton , rodney stuckey (6)</td><td>the palace of auburn hills 19216</td><td>26 - 47</td></tr><tr><td>63</td><td>9999-03-02</td><td>minnesota</td><td>l 105 - 116 (ot)</td><td>austin daye (22)</td><td>greg monroe (11)</td><td>rodney stuckey (10)</td><td>the palace of auburn hills 13122</td><td>22 - 41</td></tr><tr><td>70</td><td>9999-03-20</td><td>atlanta</td><td>l 96 - 104 (ot)</td><td>rodney stuckey (22)</td><td>greg monroe (10)</td><td>rodney stuckey (8)</td><td>philips arena 17580</td><td>25 - 45</td></tr><tr><td>67</td><td>9999-03-12</td><td>denver</td><td>l 101 - 131 (ot)</td><td>chris wilcox (21)</td><td>austin daye , ben gordon , greg monroe (6)</td><td>will bynum (10)</td><td>pepsi center 19155</td><td>23 - 44</td></tr><tr><td>64</td><td>9999-03-06</td><td>washington</td><td>w 113 - 102 (ot)</td><td>tayshaun prince (20)</td><td>greg monroe , rodney stuckey (7)</td><td>rodney stuckey (9)</td><td>the palace of auburn hills 17506</td><td>23 - 41</td></tr><tr><td>65</td><td>9999-03-09</td><td>san antonio</td><td>l 104 - 111 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>tracy mcgrady (9)</td><td>at&t center 18581</td><td>23 - 42</td></tr><tr><td>66</td><td>9999-03-11</td><td>oklahoma city</td><td>l 94 - 104 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>greg monroe , rodney stuckey (6)</td><td>oklahoma city arena 18203</td><td>23 - 43</td></tr><tr><td>69</td><td>9999-03-18</td><td>new york</td><td>w 99 - 95 (ot)</td><td>tayshaun prince (16)</td><td>chris wilcox (12)</td><td>will bynum (5)</td><td>the palace of auburn hills 22076</td><td>25 - 44</td></tr><tr><td>72</td><td>9999-03-25</td><td>cleveland</td><td>l 91 - 97 (ot)</td><td>richard hamilton , tayshaun prince (15)</td><td>chris wilcox , greg monroe (8)</td><td>rodney stuckey (4)</td><td>quicken loans arena 19907</td><td>25 - 47</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'high_points' is not null.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'high_points' is equal to 25.</div><div class="content" id="step-2"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 2, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the detroit pistons won by over ten points in three games during this period of their 2010 - 2011 season</h3><h3>Input Table: 2010 - 11 detroit pistons season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'score' in descending order.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">62</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">milwaukee</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 90 - 92 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (25)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , charlie villanueva (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bradley center 11364</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 - 40</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-02</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">minnesota</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 105 - 116 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">austin daye (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 13122</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22 - 41</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">64</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">washington</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 113 - 102 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tayshaun prince (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , rodney stuckey (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 17506</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 41</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">65</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-09</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">san antonio</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 104 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tracy mcgrady (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">at&t center 18581</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 42</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oklahoma city</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 94 - 104 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe , rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oklahoma city arena 18203</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 43</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">67</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">denver</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 101 - 131 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris wilcox (21)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">austin daye , ben gordon , greg monroe (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">will bynum (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 19155</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">toronto</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 107 - 93 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton (24)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (14)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 15166</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">69</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new york</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 99 - 95 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tayshaun prince (16)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris wilcox (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">will bynum (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 22076</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 44</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">atlanta</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 96 - 104 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philips arena 17580</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 45</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">miami</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 94 - 100 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton (27)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 22076</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 46</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cleveland</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 91 - 97 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton , tayshaun prince (15)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris wilcox , greg monroe (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rodney stuckey (4)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quicken loans arena 19907</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25 - 47</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-03-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">indiana</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 100 - 88 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton (23)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg monroe (13)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">richard hamilton , rodney stuckey (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">the palace of auburn hills 19216</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26 - 47</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the difference between the winning team's score and the losing team's score is greater than 10.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>67</td><td>9999-03-12</td><td>denver</td><td>l 101 - 131 (ot)</td><td>chris wilcox (21)</td><td>austin daye , ben gordon , greg monroe (6)</td><td>will bynum (10)</td><td>pepsi center 19155</td><td>23 - 44</td></tr><tr><td>63</td><td>9999-03-02</td><td>minnesota</td><td>l 105 - 116 (ot)</td><td>austin daye (22)</td><td>greg monroe (11)</td><td>rodney stuckey (10)</td><td>the palace of auburn hills 13122</td><td>22 - 41</td></tr><tr><td>65</td><td>9999-03-09</td><td>san antonio</td><td>l 104 - 111 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>tracy mcgrady (9)</td><td>at&t center 18581</td><td>23 - 42</td></tr><tr><td>66</td><td>9999-03-11</td><td>oklahoma city</td><td>l 94 - 104 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>greg monroe , rodney stuckey (6)</td><td>oklahoma city arena 18203</td><td>23 - 43</td></tr><tr><td>70</td><td>9999-03-20</td><td>atlanta</td><td>l 96 - 104 (ot)</td><td>rodney stuckey (22)</td><td>greg monroe (10)</td><td>rodney stuckey (8)</td><td>philips arena 17580</td><td>25 - 45</td></tr><tr><td>64</td><td>9999-03-06</td><td>washington</td><td>w 113 - 102 (ot)</td><td>tayshaun prince (20)</td><td>greg monroe , rodney stuckey (7)</td><td>rodney stuckey (9)</td><td>the palace of auburn hills 17506</td><td>23 - 41</td></tr><tr><td>71</td><td>9999-03-23</td><td>miami</td><td>l 94 - 100 (ot)</td><td>richard hamilton (27)</td><td>greg monroe (12)</td><td>rodney stuckey (6)</td><td>the palace of auburn hills 22076</td><td>25 - 46</td></tr><tr><td>72</td><td>9999-03-25</td><td>cleveland</td><td>l 91 - 97 (ot)</td><td>richard hamilton , tayshaun prince (15)</td><td>chris wilcox , greg monroe (8)</td><td>rodney stuckey (4)</td><td>quicken loans arena 19907</td><td>25 - 47</td></tr><tr><td>69</td><td>9999-03-18</td><td>new york</td><td>w 99 - 95 (ot)</td><td>tayshaun prince (16)</td><td>chris wilcox (12)</td><td>will bynum (5)</td><td>the palace of auburn hills 22076</td><td>25 - 44</td></tr><tr><td>68</td><td>9999-03-16</td><td>toronto</td><td>w 107 - 93 (ot)</td><td>richard hamilton (24)</td><td>greg monroe (10)</td><td>rodney stuckey (14)</td><td>the palace of auburn hills 15166</td><td>24 - 44</td></tr><tr><td>62</td><td>9999-03-01</td><td>milwaukee</td><td>l 90 - 92 (ot)</td><td>rodney stuckey (25)</td><td>greg monroe , charlie villanueva (9)</td><td>rodney stuckey (5)</td><td>bradley center 11364</td><td>22 - 40</td></tr><tr><td>73</td><td>9999-03-26</td><td>indiana</td><td>w 100 - 88 (ot)</td><td>richard hamilton (23)</td><td>greg monroe (13)</td><td>richard hamilton , rodney stuckey (6)</td><td>the palace of auburn hills 19216</td><td>26 - 47</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 3, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> there were four instances where there was a tie for most rebounds by detroit pistons players during this period of the 2010 - 2011 season</h3><h3>Input Table: 2010 - 11 detroit pistons season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'team' is 'detroit pistons'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>62</td><td>9999-03-01</td><td>milwaukee</td><td>l 90 - 92 (ot)</td><td>rodney stuckey (25)</td><td>greg monroe , charlie villanueva (9)</td><td>rodney stuckey (5)</td><td>bradley center 11364</td><td>22 - 40</td></tr><tr><td>63</td><td>9999-03-02</td><td>minnesota</td><td>l 105 - 116 (ot)</td><td>austin daye (22)</td><td>greg monroe (11)</td><td>rodney stuckey (10)</td><td>the palace of auburn hills 13122</td><td>22 - 41</td></tr><tr><td>64</td><td>9999-03-06</td><td>washington</td><td>w 113 - 102 (ot)</td><td>tayshaun prince (20)</td><td>greg monroe , rodney stuckey (7)</td><td>rodney stuckey (9)</td><td>the palace of auburn hills 17506</td><td>23 - 41</td></tr><tr><td>65</td><td>9999-03-09</td><td>san antonio</td><td>l 104 - 111 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>tracy mcgrady (9)</td><td>at&t center 18581</td><td>23 - 42</td></tr><tr><td>66</td><td>9999-03-11</td><td>oklahoma city</td><td>l 94 - 104 (ot)</td><td>richard hamilton (20)</td><td>greg monroe (10)</td><td>greg monroe , rodney stuckey (6)</td><td>oklahoma city arena 18203</td><td>23 - 43</td></tr><tr><td>67</td><td>9999-03-12</td><td>denver</td><td>l 101 - 131 (ot)</td><td>chris wilcox (21)</td><td>austin daye , ben gordon , greg monroe (6)</td><td>will bynum (10)</td><td>pepsi center 19155</td><td>23 - 44</td></tr><tr><td>68</td><td>9999-03-16</td><td>toronto</td><td>w 107 - 93 (ot)</td><td>richard hamilton (24)</td><td>greg monroe (10)</td><td>rodney stuckey (14)</td><td>the palace of auburn hills 15166</td><td>24 - 44</td></tr><tr><td>69</td><td>9999-03-18</td><td>new york</td><td>w 99 - 95 (ot)</td><td>tayshaun prince (16)</td><td>chris wilcox (12)</td><td>will bynum (5)</td><td>the palace of auburn hills 22076</td><td>25 - 44</td></tr><tr><td>70</td><td>9999-03-20</td><td>atlanta</td><td>l 96 - 104 (ot)</td><td>rodney stuckey (22)</td><td>greg monroe (10)</td><td>rodney stuckey (8)</td><td>philips arena 17580</td><td>25 - 45</td></tr><tr><td>71</td><td>9999-03-23</td><td>miami</td><td>l 94 - 100 (ot)</td><td>richard hamilton (27)</td><td>greg monroe (12)</td><td>rodney stuckey (6)</td><td>the palace of auburn hills 22076</td><td>25 - 46</td></tr><tr><td>72</td><td>9999-03-25</td><td>cleveland</td><td>l 91 - 97 (ot)</td><td>richard hamilton , tayshaun prince (15)</td><td>chris wilcox , greg monroe (8)</td><td>rodney stuckey (4)</td><td>quicken loans arena 19907</td><td>25 - 47</td></tr><tr><td>73</td><td>9999-03-26</td><td>indiana</td><td>w 100 - 88 (ot)</td><td>richard hamilton (23)</td><td>greg monroe (13)</td><td>richard hamilton , rodney stuckey (6)</td><td>the palace of auburn hills 19216</td><td>26 - 47</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'high_rebounds' is not null.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Group the table by 'date' and 'high_rebounds'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Count the number of unique 'high_rebounds' for each 'date' group.</div><div class="content" id="step-2"><table><tr><td>date</td><td>high_rebounds</td><td>count</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Select rows where the count of unique 'high_rebounds' is greater than 1.</div><div class="content" id="step-3"><table><tr><td>date</td><td>unique_high_rebounds</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Use a `CASE` statement to return TRUE if the number of rows is equal to 4, otherwise return FALSE.</div><div class="content" id="step-4"><table><tr><td>date</td><td>unique_high_rebounds</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> toronto lost to cleveland on november 24 , 108 - 111 (ot)</h3><h3>Input Table: 2007 - 08 toronto raptors season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'team' is 'cleveland'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>2</td><td>9999-11-02</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new jersey</span></td><td>w 106 - 69 (ot)</td><td>andrea bargnani (21)</td><td>andrea bargnani , carlos delfino (6)</td><td>josé calderón (8)</td><td>izod center 14980</td><td>2 - 0</td></tr><tr><td>3</td><td>9999-11-04</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">boston</span></td><td>l 95 - 98 (ot)</td><td>t j ford (32)</td><td>chris bosh (10)</td><td>t j ford (5)</td><td>air canada centre 19800</td><td>2 - 1</td></tr><tr><td>4</td><td>9999-11-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">milwaukee</span></td><td>l 85 - 112 (ot)</td><td>juan dixon (20)</td><td>kris humphries (9)</td><td>josé calderón (8)</td><td>bradley center 13495</td><td>2 - 2</td></tr><tr><td>5</td><td>9999-11-07</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">orlando</span></td><td>l 96 - 105 (ot)</td><td>chris bosh (26)</td><td>chris bosh (10)</td><td>t j ford (8)</td><td>air canada centre 17977</td><td>2 - 3</td></tr><tr><td>6</td><td>9999-11-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philadelphia</span></td><td>w 105 - 103 (ot)</td><td>chris bosh (24)</td><td>chris bosh (10)</td><td>josé calderón (7)</td><td>wachovia center 10886</td><td>3 - 3</td></tr><tr><td>7</td><td>9999-11-10</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td>w 101 - 71 (ot)</td><td>carlos delfino (16)</td><td>radoslav nesterović (8)</td><td>t j ford (14)</td><td>united center 22467</td><td>4 - 3</td></tr><tr><td>8</td><td>9999-11-14</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">utah</span></td><td>l 88 - 92 (ot)</td><td>anthony parker (19)</td><td>kris humphries (14)</td><td>t j ford (8)</td><td>air canada centre 17337</td><td>4 - 4</td></tr><tr><td>9</td><td>9999-11-16</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">indiana</span></td><td>w 110 - 101 (ot)</td><td>chris bosh (22)</td><td>jamario moon (7)</td><td>josé calderón (10)</td><td>air canada centre 19800</td><td>5 - 4</td></tr><tr><td>10</td><td>9999-11-18</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">golden state</span></td><td>l 100 - 106 (ot)</td><td>t j ford (29)</td><td>chris bosh (11)</td><td>t j ford (9)</td><td>air canada centre 19800</td><td>5 - 5</td></tr><tr><td>11</td><td>9999-11-20</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dallas</span></td><td>l 99 - 105 (ot)</td><td>chris bosh (31)</td><td>chris bosh , jamario moon (12)</td><td>josé calderón (6)</td><td>american airlines center 20272</td><td>5 - 6</td></tr><tr><td>12</td><td>9999-11-21</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">memphis</span></td><td>w 95 - 89 (ot)</td><td>chris bosh (22)</td><td>chris bosh (19)</td><td>josé calderón (8)</td><td>fedexforum 12217</td><td>6 - 6</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-24</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">cleveland</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 108 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris bosh (41)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anthony parker (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">josé calderón (13)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quicken loans arena 20018</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 7</span></td></tr><tr><td>14</td><td>9999-11-25</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago</span></td><td>w 93 - 78 (ot)</td><td>josé calderón (19)</td><td>chris bosh (13)</td><td>josé calderón (14)</td><td>air canada centre 19800</td><td>7 - 7</td></tr><tr><td>15</td><td>9999-11-28</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">memphis</span></td><td>w 103 - 91 (ot)</td><td>anthony parker (19)</td><td>jamario moon , anthony parker (8)</td><td>josé calderón (10)</td><td>air canada centre 18906</td><td>8 - 7</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'date' is '9999-11-24'.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-11-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cleveland</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 108 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris bosh (41)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anthony parker (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">josé calderón (13)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quicken loans arena 20018</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 7</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'score' is '108 - 111 (ot)'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>13</td><td>9999-11-24</td><td>cleveland</td><td>l 108 - 111 (ot)</td><td>chris bosh (41)</td><td>anthony parker (7)</td><td>josé calderón (13)</td><td>quicken loans arena 20018</td><td>6 - 7</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the game on april 29 , 2012 had opponent as giles simon and the outcome was runner - up</h3><h3>Input Table: fabio fognini</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'date' is '2012-04-29'.</div><div class="content" id="step-1"><table><tr><td>outcome</td><td>date</td><td>tournament</td><td>surface</td><td>opponent_in_the_final</td><td>score_in_the_final</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">runner - up</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2012-04-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">brd năstase ţiriac trophy , bucharest , romania</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">clay</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gilles simon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 6 , 3 - 6</span></td></tr><tr><td>runner - up</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2012-09-23</span></td><td>st petersburg open , st petersburg , russia</td><td>hard (i)</td><td>martin kližan</td><td>2 - 6 , 3 - 6</td></tr><tr><td>winner</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2013-07-14</span></td><td>stuttgart open , stuttgart , germany</td><td>clay</td><td>philipp kohlschreiber</td><td>5 - 7 , 6 - 4 , 6 - 4</td></tr><tr><td>winner</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2013-07-21</span></td><td>international german open , hamburg , germany</td><td>clay</td><td>federico delbonis</td><td>4 - 6 , 7 - 6 (10 - 8) , 6 - 2</td></tr><tr><td>runner - up</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2013-07-28</span></td><td>atp vegeta croatia open umag , umag , croatia</td><td>clay</td><td>tommy robredo</td><td>0 - 6 , 3 - 6</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the 'opponent_in_the_final' is 'gilles simon'.</div><div class="content" id="step-0"><table><tr><td>outcome</td><td>date</td><td>tournament</td><td>surface</td><td>opponent_in_the_final</td><td>score_in_the_final</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">runner - up</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2012-04-29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">brd năstase ţiriac trophy , bucharest , romania</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">clay</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">gilles simon</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 6 , 3 - 6</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'outcome' is 'runner-up'.</div><div class="content" id="step-1"><table><tr><td>outcome</td><td>date</td><td>tournament</td><td>surface</td><td>opponent_in_the_final</td><td>score_in_the_final</td></tr><tr><td>runner - up</td><td>2012-04-29</td><td>brd năstase ţiriac trophy , bucharest , romania</td><td>clay</td><td>gilles simon</td><td>4 - 6 , 3 - 6</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>outcome</td><td>date</td><td>tournament</td><td>surface</td><td>opponent_in_the_final</td><td>score_in_the_final</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> four of the competitions out of ten were world wide championships</h3><h3>Input Table: lukáš melich</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'competition' contains the word "world championships".</div><div class="content" id="step-1"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td></tr><tr><td>1998-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world junior championships</span></td><td>annecy , france</td><td>10th</td><td>61.51 m</td></tr><tr><td>1999-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european junior championships</span></td><td>riga , latvia</td><td>5th</td><td>64.20 m</td></tr><tr><td>2001-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european u23 championships</span></td><td>amsterdam , netherlands</td><td>11th</td><td>66.41 m</td></tr><tr><td>2003-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">universiade</span></td><td>daegu , south korea</td><td>4th</td><td>71.26 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">helsinki , finland</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74.53 m</span></td></tr><tr><td>2006-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european championships</span></td><td>gothenburg , sweden</td><td>15th</td><td>73.77 m</td></tr><tr><td>2008-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td>beijing , pr china</td><td>29th</td><td>70.56 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">berlin , germany</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74.47 m</span></td></tr><tr><td>2012-01-01</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td>london , great britain</td><td>6th</td><td>77.17 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2013-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moscow , russia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79.36 m</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Use a `CASE` statement to return TRUE if the number of rows is equal to 4, otherwise return FALSE.</div><div class="content" id="step-0"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">helsinki , finland</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">74.53 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2009-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">berlin , germany</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">74.47 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2013-01-01</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">moscow , russia</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3rd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">79.36 m</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> in lukáš melich 's last two competitions he threw an average distance of 78.27 m</h3><h3>Input Table: lukáš melich</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'year' in descending order.</div><div class="content" id="step-1"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1998-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world junior championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">annecy , france</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">61.51 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1999-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european junior championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">riga , latvia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">64.20 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2001-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european u23 championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">amsterdam , netherlands</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66.41 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2003-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">universiade</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">daegu , south korea</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71.26 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">helsinki , finland</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74.53 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">european championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gothenburg , sweden</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73.77 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">beijing , pr china</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70.56 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2009-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">berlin , germany</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74.47 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2012-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">london , great britain</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">77.17 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2013-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moscow , russia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79.36 m</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select the last two rows from the ordered table.</div><div class="content" id="step-0"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2013-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moscow , russia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79.36 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2012-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">london , great britain</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">77.17 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-01-01</span></td><td>world championships</td><td>berlin , germany</td><td>14th</td><td>74.47 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-01-01</span></td><td>olympic games</td><td>beijing , pr china</td><td>29th</td><td>70.56 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006-01-01</span></td><td>european championships</td><td>gothenburg , sweden</td><td>15th</td><td>73.77 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-01-01</span></td><td>world championships</td><td>helsinki , finland</td><td>14th</td><td>74.53 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003-01-01</span></td><td>universiade</td><td>daegu , south korea</td><td>4th</td><td>71.26 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001-01-01</span></td><td>european u23 championships</td><td>amsterdam , netherlands</td><td>11th</td><td>66.41 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999-01-01</span></td><td>european junior championships</td><td>riga , latvia</td><td>5th</td><td>64.20 m</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998-01-01</span></td><td>world junior championships</td><td>annecy , france</td><td>10th</td><td>61.51 m</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Extract the numerical distance from the 'notes' column then add column 'distance' to the selected rows.</div><div class="content" id="step-1"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2013-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">world championships</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moscow , russia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3rd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">79.36 m</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2012-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">olympic games</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">london , great britain</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">77.17 m</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Calculate the average distance of the selected rows.</div><div class="content" id="step-2"><table><tr><td>year</td><td>competition</td><td>venue</td><td>position</td><td>notes</td><td>distance</td></tr><tr><td>2013-01-01</td><td>world championships</td><td>moscow , russia</td><td>3rd</td><td>79.36 m</td><td>79.36</td></tr><tr><td>2012-01-01</td><td>olympic games</td><td>london , great britain</td><td>6th</td><td>77.17 m</td><td>77.17</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the average distance is equal to 78.27 m, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>avg_distance</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">78.265</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> alfredo binda won six races of the 1933 giro d'italia , but he was the race leader for 13 races</h3><h3>Input Table: 1933 giro d'italia</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'winner' is 'alfredo binda'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td>9999-05-06</td><td>milan to turin</td><td>-</td><td>learco guerra ( ita )</td><td>learco guerra ( ita )</td></tr><tr><td>9999-05-07</td><td>turin to genoa</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-08</td><td>genoa to pisa</td><td>-</td><td>learco guerra ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-09</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-10</td><td>pisa to florence</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-11</td><td>florence to grosseto</td><td>-</td><td>learco guerra ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-12</td><td>grosseto to rome</td><td>-</td><td>mario cipriani ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-13</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-14</td><td>rome to naples</td><td>-</td><td>gerard loncke ( bel )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-15</td><td>naples to foggia</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-16</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-17</td><td>foggia to chieti</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-18</td><td>chieti to ascoli piceno</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-19</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-20</td><td>ascoli piceno to riccione</td><td>-</td><td>fernand cornez ( fra )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-21</td><td>riccione to bologna</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-22</td><td>bologna to ferrara</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-23</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-24</td><td>ferrara to udine</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-25</td><td>udine to bassano del grappa</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-26</td><td>bassano del grappa to bolzano</td><td>-</td><td>gerard loncke ( bel )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-27</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-28</td><td>bolzano to milan</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>2023-09-20</td><td>-</td><td>km (mi)</td><td>-</td><td>km (mi)</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Use a `CASE` statement to return TRUE if the number of rows is equal to 6, otherwise return FALSE.</div><div class="content" id="step-0"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> ettore meini won two races in a row , on may 24th and 25th , during the 1933 giro d'italia</h3><h3>Input Table: 1933 giro d'italia</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'date' in ascending order.</div><div class="content" id="step-1"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">milan to turin</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">learco guerra ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">learco guerra ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">turin to genoa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-08</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">genoa to pisa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">learco guerra ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-09</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pisa to florence</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giuseppe olmo ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">florence to grosseto</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">learco guerra ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">grosseto to rome</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mario cipriani ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rome to naples</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gerard loncke ( bel )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">naples to foggia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">foggia to chieti</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chieti to ascoli piceno</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ascoli piceno to riccione</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fernand cornez ( fra )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">riccione to bologna</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giuseppe olmo ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bologna to ferrara</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ferrara to udine</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ettore meini ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">udine to bassano del grappa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ettore meini ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bassano del grappa to bolzano</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">gerard loncke ( bel )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-27</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-05-28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bolzano to milan</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2023-09-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">km (mi)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">km (mi)</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'winner' is 'ettore meini'.</div><div class="content" id="step-0"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td>2023-09-20</td><td>-</td><td>km (mi)</td><td>-</td><td>km (mi)</td></tr><tr><td>9999-05-06</td><td>milan to turin</td><td>-</td><td>learco guerra ( ita )</td><td>learco guerra ( ita )</td></tr><tr><td>9999-05-07</td><td>turin to genoa</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-08</td><td>genoa to pisa</td><td>-</td><td>learco guerra ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-09</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-10</td><td>pisa to florence</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-11</td><td>florence to grosseto</td><td>-</td><td>learco guerra ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-12</td><td>grosseto to rome</td><td>-</td><td>mario cipriani ( ita )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-13</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-14</td><td>rome to naples</td><td>-</td><td>gerard loncke ( bel )</td><td>jef demuysere ( bel )</td></tr><tr><td>9999-05-15</td><td>naples to foggia</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-16</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-17</td><td>foggia to chieti</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-18</td><td>chieti to ascoli piceno</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-19</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-20</td><td>ascoli piceno to riccione</td><td>-</td><td>fernand cornez ( fra )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-21</td><td>riccione to bologna</td><td>-</td><td>giuseppe olmo ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-22</td><td>bologna to ferrara</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-23</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-24</td><td>ferrara to udine</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-25</td><td>udine to bassano del grappa</td><td>-</td><td>ettore meini ( ita )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-26</td><td>bassano del grappa to bolzano</td><td>-</td><td>gerard loncke ( bel )</td><td>alfredo binda ( ita )</td></tr><tr><td>9999-05-27</td><td>rest day</td><td>rest day</td><td>rest day</td><td>rest day</td></tr><tr><td>9999-05-28</td><td>bolzano to milan</td><td>-</td><td>alfredo binda ( ita )</td><td>alfredo binda ( ita )</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'date' is '9999-05-24' or '9999-05-25'.</div><div class="content" id="step-1"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 2, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> learco guerra was the race leader for the first race of the 1933 giro d'italia , and did not become race leader again for the rest of the circuit</h3><h3>Input Table: 1933 giro d'italia</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'race_leader' is 'learco guerra ( ita )' for the first race of the 1933 giro d'italia.</div><div class="content" id="step-1"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-05-06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">milan to turin</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">-</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">learco guerra ( ita )</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">learco guerra ( ita )</span></td></tr><tr><td>9999-05-07</td><td>turin to genoa</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-08</td><td>genoa to pisa</td><td>-</td><td>learco guerra ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-09</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-10</td><td>pisa to florence</td><td>-</td><td>giuseppe olmo ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-11</td><td>florence to grosseto</td><td>-</td><td>learco guerra ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td>9999-05-12</td><td>grosseto to rome</td><td>-</td><td>mario cipriani ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td>9999-05-13</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-14</td><td>rome to naples</td><td>-</td><td>gerard loncke ( bel )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jef demuysere ( bel )</span></td></tr><tr><td>9999-05-15</td><td>naples to foggia</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-16</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-17</td><td>foggia to chieti</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-18</td><td>chieti to ascoli piceno</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-19</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-20</td><td>ascoli piceno to riccione</td><td>-</td><td>fernand cornez ( fra )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-21</td><td>riccione to bologna</td><td>-</td><td>giuseppe olmo ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-22</td><td>bologna to ferrara</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-23</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-24</td><td>ferrara to udine</td><td>-</td><td>ettore meini ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-25</td><td>udine to bassano del grappa</td><td>-</td><td>ettore meini ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-26</td><td>bassano del grappa to bolzano</td><td>-</td><td>gerard loncke ( bel )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>9999-05-27</td><td>rest day</td><td>rest day</td><td>rest day</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rest day</span></td></tr><tr><td>9999-05-28</td><td>bolzano to milan</td><td>-</td><td>alfredo binda ( ita )</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alfredo binda ( ita )</span></td></tr><tr><td>2023-09-20</td><td>-</td><td>km (mi)</td><td>-</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">km (mi)</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'race_leader' is 'learco guerra ( ita )' for the rest of the circuit.</div><div class="content" id="step-0"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr><tr><td>9999-05-06</td><td>milan to turin</td><td>-</td><td>learco guerra ( ita )</td><td>learco guerra ( ita )</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows in step 1 is equal to 1 and the number of rows in step 2 is equal to 0, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>date</td><td>course</td><td>distance</td><td>winner</td><td>race_leader</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the coquitlam adanacs have made 1177 points over 45 seasons</h3><h3>Input Table: coquitlam adanacs</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'team_name' is 'coquitlam adanacs'.</div><div class="content" id="step-1"><table><tr><td>season</td><td>team_name</td><td>games</td><td>losses</td><td>points</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1965</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1967</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29</span></td></tr><tr><td>1968</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">portland adanacs</span></td><td>38</td><td>14</td><td>48</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1969</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1970</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1971</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1972</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1973</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1974</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1975</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1977</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1978</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1979</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1980</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1981</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1982</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1983</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1985</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1986</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1987</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1988</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1989</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1990</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1991</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1992</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1993</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td></tr><tr><td>total</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">45 seasons</span></td><td>1094</td><td>493</td><td>1177</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Extract the sum of 'points' column then add column 'total_points' to existing table.</div><div class="content" id="step-0"><table><tr><td>season</td><td>team_name</td><td>games</td><td>losses</td><td>points</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1965</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1966</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1967</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1969</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">52</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1970</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1971</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">37</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1972</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">36</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">18</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1973</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1974</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">17</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1975</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">16</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">18</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1977</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1978</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">21</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1979</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1980</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1981</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1982</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">16</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1983</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1985</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1986</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1987</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1988</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1989</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1990</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">12</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1991</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">36</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1992</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1993</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1994</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">10</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">19</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">36</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">23</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">20</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">coquitlam adanacs</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">18</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'total_points' is 1177.</div><div class="content" id="step-1"><table><tr><td>season</td><td>team_name</td><td>games</td><td>losses</td><td>points</td><td>total_points</td></tr><tr><td>1965</td><td>coquitlam adanacs</td><td>30</td><td>18</td><td>24</td><td>1129</td></tr><tr><td>1966</td><td>coquitlam adanacs</td><td>30</td><td>11</td><td>38</td><td>1129</td></tr><tr><td>1967</td><td>coquitlam adanacs</td><td>30</td><td>15</td><td>29</td><td>1129</td></tr><tr><td>1969</td><td>coquitlam adanacs</td><td>29</td><td>3</td><td>52</td><td>1129</td></tr><tr><td>1970</td><td>coquitlam adanacs</td><td>30</td><td>16</td><td>28</td><td>1129</td></tr><tr><td>1971</td><td>coquitlam adanacs</td><td>31</td><td>12</td><td>37</td><td>1129</td></tr><tr><td>1972</td><td>coquitlam adanacs</td><td>36</td><td>23</td><td>18</td><td>1129</td></tr><tr><td>1973</td><td>coquitlam adanacs</td><td>25</td><td>9</td><td>32</td><td>1129</td></tr><tr><td>1974</td><td>coquitlam adanacs</td><td>24</td><td>15</td><td>17</td><td>1129</td></tr><tr><td>1975</td><td>coquitlam adanacs</td><td>24</td><td>16</td><td>16</td><td>1129</td></tr><tr><td>1976</td><td>coquitlam adanacs</td><td>24</td><td>15</td><td>18</td><td>1129</td></tr><tr><td>1977</td><td>coquitlam adanacs</td><td>24</td><td>13</td><td>22</td><td>1129</td></tr><tr><td>1978</td><td>coquitlam adanacs</td><td>24</td><td>13</td><td>21</td><td>1129</td></tr><tr><td>1979</td><td>coquitlam adanacs</td><td>30</td><td>12</td><td>35</td><td>1129</td></tr><tr><td>1980</td><td>coquitlam adanacs</td><td>24</td><td>9</td><td>30</td><td>1129</td></tr><tr><td>1981</td><td>coquitlam adanacs</td><td>24</td><td>7</td><td>34</td><td>1129</td></tr><tr><td>1982</td><td>coquitlam adanacs</td><td>24</td><td>16</td><td>16</td><td>1129</td></tr><tr><td>1983</td><td>coquitlam adanacs</td><td>24</td><td>14</td><td>20</td><td>1129</td></tr><tr><td>1984</td><td>coquitlam adanacs</td><td>24</td><td>14</td><td>20</td><td>1129</td></tr><tr><td>1985</td><td>coquitlam adanacs</td><td>24</td><td>10</td><td>28</td><td>1129</td></tr><tr><td>1986</td><td>coquitlam adanacs</td><td>24</td><td>14</td><td>20</td><td>1129</td></tr><tr><td>1987</td><td>coquitlam adanacs</td><td>24</td><td>11</td><td>26</td><td>1129</td></tr><tr><td>1988</td><td>coquitlam adanacs</td><td>24</td><td>11</td><td>26</td><td>1129</td></tr><tr><td>1989</td><td>coquitlam adanacs</td><td>24</td><td>13</td><td>22</td><td>1129</td></tr><tr><td>1990</td><td>coquitlam adanacs</td><td>24</td><td>18</td><td>12</td><td>1129</td></tr><tr><td>1991</td><td>coquitlam adanacs</td><td>24</td><td>6</td><td>36</td><td>1129</td></tr><tr><td>1992</td><td>coquitlam adanacs</td><td>24</td><td>14</td><td>20</td><td>1129</td></tr><tr><td>1993</td><td>coquitlam adanacs</td><td>23</td><td>6</td><td>34</td><td>1129</td></tr><tr><td>1994</td><td>coquitlam adanacs</td><td>20</td><td>7</td><td>26</td><td>1129</td></tr><tr><td>1995</td><td>coquitlam adanacs</td><td>25</td><td>11</td><td>25</td><td>1129</td></tr><tr><td>1996</td><td>coquitlam adanacs</td><td>20</td><td>15</td><td>10</td><td>1129</td></tr><tr><td>1997</td><td>coquitlam adanacs</td><td>20</td><td>10</td><td>19</td><td>1129</td></tr><tr><td>1998</td><td>coquitlam adanacs</td><td>25</td><td>9</td><td>31</td><td>1129</td></tr><tr><td>1999</td><td>coquitlam adanacs</td><td>25</td><td>7</td><td>36</td><td>1129</td></tr><tr><td>2000</td><td>coquitlam adanacs</td><td>25</td><td>11</td><td>28</td><td>1129</td></tr><tr><td>2001</td><td>coquitlam adanacs</td><td>20</td><td>8</td><td>24</td><td>1129</td></tr><tr><td>2002</td><td>coquitlam adanacs</td><td>20</td><td>6</td><td>27</td><td>1129</td></tr><tr><td>2003</td><td>coquitlam adanacs</td><td>20</td><td>3</td><td>34</td><td>1129</td></tr><tr><td>2004</td><td>coquitlam adanacs</td><td>20</td><td>9</td><td>22</td><td>1129</td></tr><tr><td>2005</td><td>coquitlam adanacs</td><td>18</td><td>4</td><td>27</td><td>1129</td></tr><tr><td>2006</td><td>coquitlam adanacs</td><td>18</td><td>6</td><td>23</td><td>1129</td></tr><tr><td>2007</td><td>coquitlam adanacs</td><td>18</td><td>7</td><td>20</td><td>1129</td></tr><tr><td>2008</td><td>coquitlam adanacs</td><td>18</td><td>3</td><td>28</td><td>1129</td></tr><tr><td>2009</td><td>coquitlam adanacs</td><td>18</td><td>9</td><td>18</td><td>1129</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>season</td><td>team_name</td><td>games</td><td>losses</td><td>points</td><td>total_points</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> spy vs spy is in the arcade genre with amstrad cpc</h3><h3>Input Table: beyond software</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'title' is 'spy vs spy'.</div><div class="content" id="step-1"><table><tr><td>title</td><td>genre</td><td>c___64</td><td>zx_spectrum</td><td>others</td><td>year</td><td>format</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">goodness gracious</span></td><td>arcade</td><td>c64</td><td>n / a</td><td>n / a</td><td>1983-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kriegspiel</span></td><td>strategy</td><td>n / a</td><td>n / a</td><td>dragon 32</td><td>1983-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">space station zebra</span></td><td>arcade</td><td>n / a</td><td>zx spectrum</td><td>n / a</td><td>1983-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">up periscope</span></td><td>strategy</td><td>n / a</td><td>n / a</td><td>dragon 32</td><td>1983-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ankh</span></td><td>puzzle</td><td>c64</td><td>n / a</td><td>n / a</td><td>1984-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">aztec</span></td><td>arcade</td><td>c64</td><td>n / a</td><td>n / a</td><td>1984-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lords of midnight</span></td><td>graphic adventure</td><td>c64</td><td>zx spectrum</td><td>amstrad cpc</td><td>1984-01-01</td><td>tape , disk</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mr robot</span></td><td>arcade</td><td>c64</td><td>n / a</td><td>n / a</td><td>1984-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">my chess ii</span></td><td>board game</td><td>c64</td><td>n / a</td><td>n / a</td><td>1984-01-01</td><td>tape , disk</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">psytron</span></td><td>tactical combat</td><td>c64</td><td>zx spectrum</td><td>n / a</td><td>1984-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">spellbound</span></td><td>arcade</td><td>n / a</td><td>zx spectrum</td><td>n / a</td><td>1984-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">spy vs spy</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">arcade</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">c64</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zx spectrum</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">amstrad cpc</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tape</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bounces</span></td><td>arcade</td><td>c64</td><td>zx spectrum</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">doomdark 's revenge</span></td><td>graphic adventure</td><td>c64</td><td>zx spectrum</td><td>amstrad cpc</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">psi warrior</span></td><td>arcade</td><td>c64</td><td>n / a</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shadowfire</span></td><td>tactical combat</td><td>c64</td><td>zx spectrum</td><td>amstrad cpc</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shadowfire tuner</span></td><td>game editor</td><td>c64</td><td>zx spectrum</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sorderon 's shadow</span></td><td>graphic adventure</td><td>n / a</td><td>zx spectrum</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">quake minus one</span></td><td>rts</td><td>c64</td><td>n / a</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">superman : the game</span></td><td>arcade / strategy</td><td>c64</td><td>n / a</td><td>n / a</td><td>1985-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">enigma force</span></td><td>tactical combat</td><td>c64</td><td>zx spectrum</td><td>n / a</td><td>1986-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dante 's inferno</span></td><td>arcade adventure</td><td>c64</td><td>n / a</td><td>n / a</td><td>1986-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">infodroid</span></td><td>arcade</td><td>c64</td><td>n / a</td><td>n / a</td><td>1986-01-01</td><td>tape</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">romper room</span></td><td>educational</td><td>c64</td><td>zx spectrum</td><td>n / a</td><td>1986-01-01</td><td>tape</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'genre' is 'arcade'.</div><div class="content" id="step-0"><table><tr><td>title</td><td>genre</td><td>c___64</td><td>zx_spectrum</td><td>others</td><td>year</td><td>format</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">spy vs spy</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">arcade</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">c64</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">zx spectrum</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">amstrad cpc</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1984-01-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tape</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'format' is 'amstrad cpc'.</div><div class="content" id="step-1"><table><tr><td>title</td><td>genre</td><td>c___64</td><td>zx_spectrum</td><td>others</td><td>year</td><td>format</td></tr><tr><td>spy vs spy</td><td>arcade</td><td>c64</td><td>zx spectrum</td><td>amstrad cpc</td><td>1984-01-01</td><td>tape</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>title</td><td>genre</td><td>c___64</td><td>zx_spectrum</td><td>others</td><td>year</td><td>format</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> on march 19 , 1984 , plymouth argyle played derby county</h3><h3>Input Table: 1983 - 84 fa cup</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'date' is '1984-03-19'.</div><div class="content" id="step-1"><table><tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr><tr><td>1</td><td>notts county</td><td>1 - 2</td><td>everton</td><td>1984-03-10</td></tr><tr><td>2</td><td>sheffield wednesday</td><td>0 - 0</td><td>southampton</td><td>1984-03-11</td></tr><tr><td>replay</td><td>southampton</td><td>5 - 1</td><td>sheffield wednesday</td><td>1984-03-20</td></tr><tr><td>3</td><td>plymouth argyle</td><td>0 - 0</td><td>derby county</td><td>1984-03-10</td></tr><tr><td>replay</td><td>derby county</td><td>0 - 1</td><td>plymouth argyle</td><td>1984-03-14</td></tr><tr><td>4</td><td>birmingham city</td><td>1 - 3</td><td>watford</td><td>1984-03-10</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'home_team' is 'plymouth argyle' and 'away_team' is 'derby county'.</div><div class="content" id="step-0"><table><tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>tie_no</td><td>home_team</td><td>score</td><td>away_team</td><td>date</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> 2007 - 2008 is the season where september 26 , 2007 has the season premier</h3><h3>Input Table: csi (franchise)</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'season_premiere' in ascending order.</div><div class="content" id="step-1"><table><tr><td>season</td><td>episodes</td><td>time_slot__est_</td><td>season_premiere</td><td>season_finale</td><td>tv_season</td><td>rank</td><td>viewers__in_millions_</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2004-09-22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005-05-18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004 - 2005</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13.59</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005-09-28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006-05-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005 - 2006</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14.04</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006-09-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007-05-16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006 - 2007</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13.92</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2007-09-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008-05-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2007 - 2008</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11.71</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008-09-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009-05-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008 - 2009</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13.5</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wednesday 10 pm / 9c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2009-09-23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2010-05-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2009 - 2010</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12.66</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">friday 9 pm / 8c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2010-09-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2011-05-13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2010 - 2011</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10.73</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">friday 9 pm / 8c</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2011-09-23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2012-05-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2011 - 2012</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10.34</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'season' is '2007'.</div><div class="content" id="step-0"><table><tr><td>season</td><td>episodes</td><td>time_slot__est_</td><td>season_premiere</td><td>season_finale</td><td>tv_season</td><td>rank</td><td>viewers__in_millions_</td></tr><tr><td>1</td><td>23</td><td>wednesday 10 pm / 9c</td><td>2004-09-22</td><td>2005-05-18</td><td>2004 - 2005</td><td>21</td><td>13.59</td></tr><tr><td>2</td><td>24</td><td>wednesday 10 pm / 9c</td><td>2005-09-28</td><td>2006-05-17</td><td>2005 - 2006</td><td>22</td><td>14.04</td></tr><tr><td>3</td><td>24</td><td>wednesday 10 pm / 9c</td><td>2006-09-20</td><td>2007-05-16</td><td>2006 - 2007</td><td>25</td><td>13.92</td></tr><tr><td>4</td><td>21</td><td>wednesday 10 pm / 9c</td><td>2007-09-26</td><td>2008-05-21</td><td>2007 - 2008</td><td>28</td><td>11.71</td></tr><tr><td>5</td><td>25</td><td>wednesday 10 pm / 9c</td><td>2008-09-24</td><td>2009-05-14</td><td>2008 - 2009</td><td>17</td><td>13.5</td></tr><tr><td>6</td><td>23</td><td>wednesday 10 pm / 9c</td><td>2009-09-23</td><td>2010-05-26</td><td>2009 - 2010</td><td>23</td><td>12.66</td></tr><tr><td>7</td><td>22</td><td>friday 9 pm / 8c</td><td>2010-09-24</td><td>2011-05-13</td><td>2010 - 2011</td><td>37</td><td>10.73</td></tr><tr><td>8</td><td>18</td><td>friday 9 pm / 8c</td><td>2011-09-23</td><td>2012-05-11</td><td>2011 - 2012</td><td>38</td><td>10.34</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'season_premiere' is '2007-09-26'.</div><div class="content" id="step-1"><table><tr><td>season</td><td>episodes</td><td>time_slot__est_</td><td>season_premiere</td><td>season_finale</td><td>tv_season</td><td>rank</td><td>viewers__in_millions_</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>season</td><td>episodes</td><td>time_slot__est_</td><td>season_premiere</td><td>season_finale</td><td>tv_season</td><td>rank</td><td>viewers__in_millions_</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> jonathan legear scored four more goals than matias suarez , the next highest ranked player in the belgian first dvision a league who played in the belgian cup</h3><h3>Input Table: 2008 - 09 r.s.c. anderlecht season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'total' in descending order.</div><div class="content" id="step-1"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mbark boussoufa</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">11</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">tom de sutter</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">guillaume gillet</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">marcin wasilewski</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">8</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jonathan legear</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nicolás frutos</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">thomas chatelle</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">roland juhász</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stanislav vlček</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lucas biglia</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dmitri bulykin</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jan polák</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">matías suárez</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jelle van damme</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oleksandr iakovenko</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hernán losada</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">víctor bernárdez</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bart goor</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nemanja rnić</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr><tr><td>mbark boussoufa</td><td>11</td><td>0</td><td>0</td><td>11</td></tr><tr><td>tom de sutter</td><td>9</td><td>0</td><td>0</td><td>9</td></tr><tr><td>guillaume gillet</td><td>8</td><td>0</td><td>0</td><td>9</td></tr><tr><td>marcin wasilewski</td><td>8</td><td>0</td><td>0</td><td>8</td></tr><tr><td>jonathan legear</td><td>5</td><td>1</td><td>0</td><td>7</td></tr><tr><td>nicolás frutos</td><td>6</td><td>0</td><td>0</td><td>6</td></tr><tr><td>thomas chatelle</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>roland juhász</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>stanislav vlček</td><td>4</td><td>0</td><td>0</td><td>4</td></tr><tr><td>lucas biglia</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>dmitri bulykin</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>jan polák</td><td>2</td><td>0</td><td>0</td><td>3</td></tr><tr><td>matías suárez</td><td>1</td><td>0</td><td>1</td><td>3</td></tr><tr><td>jelle van damme</td><td>3</td><td>0</td><td>0</td><td>3</td></tr><tr><td>oleksandr iakovenko</td><td>2</td><td>0</td><td>0</td><td>2</td></tr><tr><td>hernán losada</td><td>1</td><td>0</td><td>0</td><td>2</td></tr><tr><td>víctor bernárdez</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>bart goor</td><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>nemanja rnić</td><td>0</td><td>0</td><td>0</td><td>1</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'player' is 'jonathan legear'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr><tr><td>mbark boussoufa</td><td>11</td><td>0</td><td>0</td><td>11</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Extract the numerical value of goals scored by Jonathan Legear from the 'total' column then add column 'jonathan_goals' to existing table.</div><div class="content" id="step-2"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Select rows where 'player' is 'matías suárez'.</div><div class="content" id="step-3"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td><td>jonathan_goals</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Extract the numerical value of goals scored by Matías Suárez from the 'total' column then add column 'matias_goals' to existing table.</div><div class="content" id="step-4"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td><td>jonathan_goals</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 7: Subtract 'matias_goals' from 'jonathan_goals' and add column 'goal_difference' to existing table.</div><div class="content" id="step-5"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td><td>jonathan_goals</td><td>matias_goals</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 8: Select rows where 'goal_difference' is equal to 4.</div><div class="content" id="step-6"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td><td>jonathan_goals</td><td>matias_goals</td><td>goal_difference</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 9: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-7"><table><tr><td>player</td><td>league</td><td>title_playoff</td><td>super_cup</td><td>total</td><td>jonathan_goals</td><td>matias_goals</td><td>goal_difference</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the lions finished with a record of 6 wins and 8 losses</h3><h3>Input Table: 1976 detroit lions season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'result' column contains the substring 'w' (indicating a win).</div><div class="content" id="step-1"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 10 - 3</span></td><td>54125</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-09-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">atlanta falcons</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 24 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">50840</span></td></tr><tr><td>3</td><td>1976-09-26</td><td>minnesota vikings</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 10 - 9</span></td><td>77292</td></tr><tr><td>4</td><td>1976-10-03</td><td>green bay packers</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 24 - 14</span></td><td>55041</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new england patriots</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 30 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">60174</span></td></tr><tr><td>6</td><td>1976-10-17</td><td>washington redskins</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 20 - 7</span></td><td>45908</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">seattle seahawks</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 41 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">61280</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">green bay packers</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 27 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74992</span></td></tr><tr><td>9</td><td>1976-11-07</td><td>minnesota vikings</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 31 - 23</span></td><td>46735</td></tr><tr><td>10</td><td>1976-11-14</td><td>new orleans saints</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 17 - 16</span></td><td>42048</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago bears</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 14 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">78042</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">buffalo bills</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 27 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66875</span></td></tr><tr><td>13</td><td>1976-12-05</td><td>new york giants</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 24 - 10</span></td><td>66069</td></tr><tr><td>14</td><td>1976-12-11</td><td>los angeles rams</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 20 - 17</span></td><td>73470</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Use a `COUNT` function to count the number of rows from step 1 and add column 'win_count' to the existing table.</div><div class="content" id="step-0"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where the 'win_count' is equal to 6.</div><div class="content" id="step-1"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td><td>win_count</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-09-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">atlanta falcons</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 24 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">50840</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new england patriots</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 30 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">60174</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">seattle seahawks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 41 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">61280</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">green bay packers</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 27 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74992</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago bears</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 14 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">78042</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">buffalo bills</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 27 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66875</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where the 'result' column contains the substring 'l' (indicating a loss).</div><div class="content" id="step-2"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td><td>win_count</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td><td>6</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td><td>6</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td><td>6</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td><td>6</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td><td>6</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td><td>6</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `COUNT` function to count the number of rows from step 4 and add column 'loss_count' to the existing table.</div><div class="content" id="step-3"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td><td>win_count</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Select rows where the 'loss_count' is equal to 8.</div><div class="content" id="step-4"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td><td>win_count</td><td>loss_count</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 7: Use a `CASE` statement to return TRUE if the number of rows from step 3 and step 6 is equal to 1, otherwise return FALSE.</div><div class="content" id="step-5"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td><td>win_count</td><td>loss_count</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the packers scored the least amount of points (6) in a game versus the lions</h3><h3>Input Table: 1976 detroit lions season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'result' in ascending order.</div><div class="content" id="step-1"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-09-12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago bears</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 10 - 3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54125</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-09-19</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">atlanta falcons</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 24 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">50840</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-09-26</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">minnesota vikings</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 10 - 9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">77292</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">green bay packers</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 24 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">55041</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new england patriots</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 30 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">60174</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">washington redskins</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 20 - 7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">45908</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">seattle seahawks</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 41 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">61280</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-10-31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">green bay packers</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 27 - 6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74992</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">minnesota vikings</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 31 - 23</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">46735</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new orleans saints</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 17 - 16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42048</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chicago bears</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 14 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">78042</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-11-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">buffalo bills</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 27 - 14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66875</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-12-05</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">new york giants</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 24 - 10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">66069</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1976-12-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">los angeles rams</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">l 20 - 17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73470</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select row number 1.</div><div class="content" id="step-0"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td>l 10 - 3</td><td>54125</td></tr><tr><td>3</td><td>1976-09-26</td><td>minnesota vikings</td><td>l 10 - 9</td><td>77292</td></tr><tr><td>10</td><td>1976-11-14</td><td>new orleans saints</td><td>l 17 - 16</td><td>42048</td></tr><tr><td>14</td><td>1976-12-11</td><td>los angeles rams</td><td>l 20 - 17</td><td>73470</td></tr><tr><td>6</td><td>1976-10-17</td><td>washington redskins</td><td>l 20 - 7</td><td>45908</td></tr><tr><td>13</td><td>1976-12-05</td><td>new york giants</td><td>l 24 - 10</td><td>66069</td></tr><tr><td>4</td><td>1976-10-03</td><td>green bay packers</td><td>l 24 - 14</td><td>55041</td></tr><tr><td>9</td><td>1976-11-07</td><td>minnesota vikings</td><td>l 31 - 23</td><td>46735</td></tr><tr><td>11</td><td>1976-11-21</td><td>chicago bears</td><td>w 14 - 10</td><td>78042</td></tr><tr><td>2</td><td>1976-09-19</td><td>atlanta falcons</td><td>w 24 - 10</td><td>50840</td></tr><tr><td>12</td><td>1976-11-25</td><td>buffalo bills</td><td>w 27 - 14</td><td>66875</td></tr><tr><td>8</td><td>1976-10-31</td><td>green bay packers</td><td>w 27 - 6</td><td>74992</td></tr><tr><td>5</td><td>1976-10-10</td><td>new england patriots</td><td>w 30 - 10</td><td>60174</td></tr><tr><td>7</td><td>1976-10-24</td><td>seattle seahawks</td><td>w 41 - 14</td><td>61280</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'opponent' is 'green bay packers'.</div><div class="content" id="step-1"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr><tr><td>1</td><td>1976-09-12</td><td>chicago bears</td><td>l 10 - 3</td><td>54125</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1 and the 'result' is 'w 27 - 6', otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>week</td><td>date</td><td>opponent</td><td>result</td><td>attendance</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> jose ortiz was the center in the oregon state jazz club from 1988 - 90</h3><h3>Input Table: utah jazz all - time roster</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'player' is 'jose ortiz'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>mehmet okur</td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td>efes pilsen ( turkey )</td></tr><tr><td>josã ortiz</td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td>oregon state</td></tr><tr><td>greg ostertag</td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td>kansas</td></tr><tr><td>dan o 'sullivan</td><td>united states</td><td>center</td><td>1990 - 91</td><td>fordham</td></tr><tr><td>andre owens</td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'position' is 'center'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'school___club_team' is 'oregon state'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'years_for_jazz' is '1988-90'.</div><div class="content" id="step-2"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> episode 11 had 2.77 million us viewers</h3><h3>Input Table: list of white collar episodes</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'no_in_series' is 11.</div><div class="content" id="step-1"><table><tr><td>no_in_series</td><td>no_in_season</td><td>title</td><td>directed_by</td><td>written_by</td><td>us_viewers__million_</td><td>original_air_date</td><td>production_code</td></tr><tr><td>47</td><td>1</td><td>wanted</td><td>paul holahan</td><td>jeff eastin</td><td>3.21</td><td>2012-07-10</td><td>bcw401</td></tr><tr><td>48</td><td>2</td><td>most wanted</td><td>paul holahan</td><td>mark goffman</td><td>2.98</td><td>2012-07-17</td><td>bcw402</td></tr><tr><td>49</td><td>3</td><td>diminishing returns</td><td>stefan schwartz</td><td>jim campolongo</td><td>3.01</td><td>2012-07-24</td><td>bcw403</td></tr><tr><td>50</td><td>4</td><td>parting shots</td><td>robert duncan mcneill</td><td>alexandra mcnally</td><td>2.82</td><td>2012-07-31</td><td>bcw404</td></tr><tr><td>51</td><td>5</td><td>honor among thieves</td><td>arlene sanford</td><td>joe henderson</td><td>2.93</td><td>2012-08-14</td><td>bcw405</td></tr><tr><td>52</td><td>6</td><td>identity crisis</td><td>david straiton</td><td>channing powell</td><td>3.89</td><td>2012-08-21</td><td>bcw406</td></tr><tr><td>53</td><td>7</td><td>compromising positions</td><td>paul holahan</td><td>matthew negrete</td><td>3.36</td><td>2012-08-28</td><td>bcw407</td></tr><tr><td>54</td><td>8</td><td>ancient history</td><td>russell lee fine</td><td>daniel shattuck</td><td>3.38</td><td>2012-09-04</td><td>bcw408</td></tr><tr><td>55</td><td>9</td><td>gloves off</td><td>renny harlin</td><td>mark goffman</td><td>3.8</td><td>2012-09-11</td><td>bcw409</td></tr><tr><td>56</td><td>10</td><td>vested interest</td><td>russell lee fine</td><td>jeff eastin</td><td>3.41</td><td>2012-09-18</td><td>bcw410</td></tr><tr><td>57</td><td>11</td><td>family business</td><td>paul holahan</td><td>joe henderson</td><td>2.77</td><td>2013-01-22</td><td>bcw411</td></tr><tr><td>58</td><td>12</td><td>brass tacks</td><td>anton cropper</td><td>jim campolongo & alexandra mcnally</td><td>2.61</td><td>2013-01-29</td><td>bcw412</td></tr><tr><td>59</td><td>13</td><td>empire city</td><td>tim dekay</td><td>channing powell & daniel shattuck</td><td>2.28</td><td>2013-02-05</td><td>bcw413</td></tr><tr><td>60</td><td>14</td><td>shoot the moon</td><td>russell lee fine</td><td>matthew negrete & bob derosa</td><td>2.42</td><td>2013-02-19</td><td>bcw414</td></tr><tr><td>61</td><td>15</td><td>the original</td><td>john kretchmer</td><td>mark goffman</td><td>2.12</td><td>2013-02-26</td><td>bcw415</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'us_viewers__million_' is 2.77.</div><div class="content" id="step-0"><table><tr><td>no_in_series</td><td>no_in_season</td><td>title</td><td>directed_by</td><td>written_by</td><td>us_viewers__million_</td><td>original_air_date</td><td>production_code</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>no_in_series</td><td>no_in_season</td><td>title</td><td>directed_by</td><td>written_by</td><td>us_viewers__million_</td><td>original_air_date</td><td>production_code</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> andre owens was the houston jazz club guard from 2005 - 06</h3><h3>Input Table: utah jazz all - time roster</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'player' is 'andre owens'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mehmet okur</span></td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td>efes pilsen ( turkey )</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">josã ortiz</span></td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td>oregon state</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg ostertag</span></td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td>kansas</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dan o 'sullivan</span></td><td>united states</td><td>center</td><td>1990 - 91</td><td>fordham</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">andre owens</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">guard</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005 - 06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">houston</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'school___club_team' is 'houston'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andre owens</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">guard</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005 - 06</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">houston</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'years_for_jazz' is '2005-06'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>andre owens</td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> both pakistan and yemen have won one bronze medal for wushu at the asian games</h3><h3>Input Table: wushu at the asian games</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'nation' is 'pakistan' or 'yemen'.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr><tr><td>1</td><td>china (chn)</td><td>43</td><td>7</td><td>3</td><td>53</td></tr><tr><td>2</td><td>iran (iri)</td><td>4</td><td>3</td><td>5</td><td>12</td></tr><tr><td>3</td><td>malaysia (mas)</td><td>3</td><td>1</td><td>5</td><td>9</td></tr><tr><td>4</td><td>hong kong (hkg)</td><td>2</td><td>9</td><td>4</td><td>15</td></tr><tr><td>5</td><td>thailand (tha)</td><td>2</td><td>3</td><td>6</td><td>11</td></tr><tr><td>6</td><td>japan (jpn)</td><td>1</td><td>6</td><td>5</td><td>12</td></tr><tr><td>7</td><td>philippines (phi)</td><td>1</td><td>5</td><td>8</td><td>14</td></tr><tr><td>8</td><td>macau (mac)</td><td>1</td><td>5</td><td>4</td><td>10</td></tr><tr><td>9</td><td>south korea (kor)</td><td>1</td><td>4</td><td>6</td><td>11</td></tr><tr><td>10</td><td>chinese taipei (tpe)</td><td>1</td><td>3</td><td>11</td><td>15</td></tr><tr><td>11</td><td>myanmar (mya)</td><td>1</td><td>1</td><td>2</td><td>4</td></tr><tr><td>12</td><td>vietnam (vie)</td><td>0</td><td>9</td><td>7</td><td>16</td></tr><tr><td>13</td><td>indonesia (ina)</td><td>0</td><td>2</td><td>2</td><td>4</td></tr><tr><td>14</td><td>laos (lao)</td><td>0</td><td>1</td><td>5</td><td>6</td></tr><tr><td>15</td><td>india (ind)</td><td>0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>16</td><td>pakistan (pak)</td><td>0</td><td>1</td><td>1</td><td>2</td></tr><tr><td>17</td><td>singapore (sin)</td><td>0</td><td>0</td><td>5</td><td>5</td></tr><tr><td>18</td><td>mongolia (mgl)</td><td>0</td><td>0</td><td>3</td><td>3</td></tr><tr><td>19</td><td>kazakhstan (kaz)</td><td>0</td><td>0</td><td>2</td><td>2</td></tr><tr><td>20</td><td>yemen (yem)</td><td>0</td><td>0</td><td>1</td><td>1</td></tr><tr><td>total</td><td>total</td><td>60</td><td>61</td><td>87</td><td>208</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'bronze' is 1.</div><div class="content" id="step-0"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 2, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> china has won 39 more gold medals than iran for wushu at the asian games</h3><h3>Input Table: wushu at the asian games</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'nation' is 'china (chn)'.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">china (chn)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">53</span></td></tr><tr><td>2</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">iran (iri)</span></td><td>4</td><td>3</td><td>5</td><td>12</td></tr><tr><td>3</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">malaysia (mas)</span></td><td>3</td><td>1</td><td>5</td><td>9</td></tr><tr><td>4</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hong kong (hkg)</span></td><td>2</td><td>9</td><td>4</td><td>15</td></tr><tr><td>5</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">thailand (tha)</span></td><td>2</td><td>3</td><td>6</td><td>11</td></tr><tr><td>6</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">japan (jpn)</span></td><td>1</td><td>6</td><td>5</td><td>12</td></tr><tr><td>7</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philippines (phi)</span></td><td>1</td><td>5</td><td>8</td><td>14</td></tr><tr><td>8</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">macau (mac)</span></td><td>1</td><td>5</td><td>4</td><td>10</td></tr><tr><td>9</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">south korea (kor)</span></td><td>1</td><td>4</td><td>6</td><td>11</td></tr><tr><td>10</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chinese taipei (tpe)</span></td><td>1</td><td>3</td><td>11</td><td>15</td></tr><tr><td>11</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">myanmar (mya)</span></td><td>1</td><td>1</td><td>2</td><td>4</td></tr><tr><td>12</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">vietnam (vie)</span></td><td>0</td><td>9</td><td>7</td><td>16</td></tr><tr><td>13</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">indonesia (ina)</span></td><td>0</td><td>2</td><td>2</td><td>4</td></tr><tr><td>14</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">laos (lao)</span></td><td>0</td><td>1</td><td>5</td><td>6</td></tr><tr><td>15</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">india (ind)</span></td><td>0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>16</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pakistan (pak)</span></td><td>0</td><td>1</td><td>1</td><td>2</td></tr><tr><td>17</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">singapore (sin)</span></td><td>0</td><td>0</td><td>5</td><td>5</td></tr><tr><td>18</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mongolia (mgl)</span></td><td>0</td><td>0</td><td>3</td><td>3</td></tr><tr><td>19</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kazakhstan (kaz)</span></td><td>0</td><td>0</td><td>2</td><td>2</td></tr><tr><td>20</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">yemen (yem)</span></td><td>0</td><td>0</td><td>1</td><td>1</td></tr><tr><td>total</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">total</span></td><td>60</td><td>61</td><td>87</td><td>208</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Extract the value of 'gold' from the selected rows and add a column 'china_gold' to the existing table.</div><div class="content" id="step-0"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">china (chn)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">53</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'nation' is 'iran (iri)'.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td><td>china_gold</td></tr><tr><td>1</td><td>china (chn)</td><td>43</td><td>7</td><td>3</td><td>53</td><td>43</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Extract the value of 'gold' from the selected rows and add a column 'iran_gold' to the existing table.</div><div class="content" id="step-2"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td><td>china_gold</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Calculate the difference between 'china_gold' and 'iran_gold' and add a column 'gold_difference' to the existing table.</div><div class="content" id="step-3"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td><td>china_gold</td><td>iran_gold</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 6: Select rows where 'gold_difference' is equal to 39.</div><div class="content" id="step-4"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td><td>china_gold</td><td>iran_gold</td><td>gold_difference</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 7: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-5"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td><td>china_gold</td><td>iran_gold</td><td>gold_difference</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the philippines and macau have won the same number of gold and silver medals for wushu , but the philippines have won 4 more bronze medals</h3><h3>Input Table: wushu at the asian games</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'nation' is 'philippines' or 'macau'.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr><tr><td>1</td><td>china (chn)</td><td>43</td><td>7</td><td>3</td><td>53</td></tr><tr><td>2</td><td>iran (iri)</td><td>4</td><td>3</td><td>5</td><td>12</td></tr><tr><td>3</td><td>malaysia (mas)</td><td>3</td><td>1</td><td>5</td><td>9</td></tr><tr><td>4</td><td>hong kong (hkg)</td><td>2</td><td>9</td><td>4</td><td>15</td></tr><tr><td>5</td><td>thailand (tha)</td><td>2</td><td>3</td><td>6</td><td>11</td></tr><tr><td>6</td><td>japan (jpn)</td><td>1</td><td>6</td><td>5</td><td>12</td></tr><tr><td>7</td><td>philippines (phi)</td><td>1</td><td>5</td><td>8</td><td>14</td></tr><tr><td>8</td><td>macau (mac)</td><td>1</td><td>5</td><td>4</td><td>10</td></tr><tr><td>9</td><td>south korea (kor)</td><td>1</td><td>4</td><td>6</td><td>11</td></tr><tr><td>10</td><td>chinese taipei (tpe)</td><td>1</td><td>3</td><td>11</td><td>15</td></tr><tr><td>11</td><td>myanmar (mya)</td><td>1</td><td>1</td><td>2</td><td>4</td></tr><tr><td>12</td><td>vietnam (vie)</td><td>0</td><td>9</td><td>7</td><td>16</td></tr><tr><td>13</td><td>indonesia (ina)</td><td>0</td><td>2</td><td>2</td><td>4</td></tr><tr><td>14</td><td>laos (lao)</td><td>0</td><td>1</td><td>5</td><td>6</td></tr><tr><td>15</td><td>india (ind)</td><td>0</td><td>1</td><td>2</td><td>3</td></tr><tr><td>16</td><td>pakistan (pak)</td><td>0</td><td>1</td><td>1</td><td>2</td></tr><tr><td>17</td><td>singapore (sin)</td><td>0</td><td>0</td><td>5</td><td>5</td></tr><tr><td>18</td><td>mongolia (mgl)</td><td>0</td><td>0</td><td>3</td><td>3</td></tr><tr><td>19</td><td>kazakhstan (kaz)</td><td>0</td><td>0</td><td>2</td><td>2</td></tr><tr><td>20</td><td>yemen (yem)</td><td>0</td><td>0</td><td>1</td><td>1</td></tr><tr><td>total</td><td>total</td><td>60</td><td>61</td><td>87</td><td>208</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'gold' is equal for both nations.</div><div class="content" id="step-0"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'silver' is equal for both nations.</div><div class="content" id="step-1"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Select rows where 'bronze' for the philippines is 4 more than 'bronze' for macau.</div><div class="content" id="step-2"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-3"><table><tr><td>rank</td><td>nation</td><td>gold</td><td>silver</td><td>bronze</td><td>total</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> houston had a jazz club during the 2005 - 06 school year</h3><h3>Input Table: utah jazz all - time roster</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'school___club_team' is 'houston'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>mehmet okur</td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">efes pilsen ( turkey )</span></td></tr><tr><td>josã ortiz</td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">oregon state</span></td></tr><tr><td>greg ostertag</td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kansas</span></td></tr><tr><td>dan o 'sullivan</td><td>united states</td><td>center</td><td>1990 - 91</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fordham</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andre owens</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">guard</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005 - 06</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">houston</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'years_for_jazz' is '2005-06'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>andre owens</td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> shane hall ran a total of 190 races between the years of 1995 - 2008</h3><h3>Input Table: shane hall</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'year' is between 1995 and 2008.</div><div class="content" id="step-1"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td></tr><tr><td>1995</td><td>2</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>24.0</td><td>37.0</td><td>5225</td><td>75th</td><td>stegell motorsports</td></tr><tr><td>1996</td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>26.4</td><td>25.1</td><td>63865</td><td>42nd</td><td>stegell motorsports</td></tr><tr><td>1997</td><td>28</td><td>0</td><td>1</td><td>0</td><td>1</td><td>10</td><td>27.1</td><td>21.6</td><td>196656</td><td>23rd</td><td>stegell motorsports</td></tr><tr><td>1998</td><td>31</td><td>0</td><td>1</td><td>0</td><td>3</td><td>5</td><td>24.9</td><td>25.5</td><td>335163</td><td>19th</td><td>stegell motorsports</td></tr><tr><td>1999</td><td>25</td><td>0</td><td>0</td><td>1</td><td>1</td><td>9</td><td>25.8</td><td>18.2</td><td>243810</td><td>24th</td><td>curb - agajanian performance group</td></tr><tr><td>2000</td><td>2</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>35.0</td><td>28.5</td><td>15900</td><td>90th</td><td>alumni motorsports</td></tr><tr><td>2001</td><td>33</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>27.9</td><td>32.7</td><td>491977</td><td>23rd</td><td>hensley racing</td></tr><tr><td>2002</td><td>24</td><td>0</td><td>0</td><td>0</td><td>1</td><td>11</td><td>27.0</td><td>33.0</td><td>288325</td><td>29th</td><td>hensley racing</td></tr><tr><td>2003</td><td>5</td><td>0</td><td>0</td><td>0</td><td>0</td><td>4</td><td>35.8</td><td>25.6</td><td>68360</td><td>85th</td><td>jay robinson racing</td></tr><tr><td>2004</td><td>9</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>31.4</td><td>37.2</td><td>139685</td><td>54th</td><td>moy racing / jay robinson racing</td></tr><tr><td>2005</td><td>7</td><td>0</td><td>0</td><td>0</td><td>0</td><td>7</td><td>40.9</td><td>32.6</td><td>108921</td><td>83rd</td><td>jay robinson racing</td></tr><tr><td>2006</td><td>9</td><td>0</td><td>0</td><td>0</td><td>0</td><td>7</td><td>38.9</td><td>39.1</td><td>151184</td><td>70th</td><td>jay robinson racing</td></tr><tr><td>2008</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>43.0</td><td>34.0</td><td>15674</td><td>149th</td><td>jay robinson racing</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Extract the sum of 'races' column then add column 'total_races' to existing table.</div><div class="content" id="step-0"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'total_races' is equal to 190.</div><div class="content" id="step-1"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td><td>total_races</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td><td>total_races</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">37.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5225</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">75th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26.4</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">63865</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">42nd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">21.6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">196656</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">335163</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">19th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.8</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">18.2</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">243810</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">curb - agajanian performance group</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28.5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">15900</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">90th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">alumni motorsports</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32.7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">491977</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">288325</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.8</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">68360</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">85th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31.4</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">37.2</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">139685</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">54th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">moy racing / jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40.9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32.6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">108921</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">83rd</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38.9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">39.1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">151184</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">70th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34.0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">15674</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">149th</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">190</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> shane hall had an average finish of 31.39 between 1995 - 2008</h3><h3>Input Table: shane hall</h3><div class="step"><div class="step"><div class="step-title">Step 1: Calculate the average finish for each year by dividing the sum of the 'finish' column by the number of races in that year. Add a column 'avg_finish' to the existing table.</div><div class="content" id="step-1"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">26.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">31.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the 'year' is between 1995 and 2008 (inclusive).</div><div class="content" id="step-0"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td><td>avg_finish</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1995</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5225</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12.0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1996</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">26.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">63865</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">42nd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.8857142857142857</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1997</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">21.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">196656</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.9678571428571429</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1998</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">335163</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">19th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">stegell motorsports</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.8032258064516129</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">1999</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">18.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">243810</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">curb - agajanian performance group</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.032</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2000</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">28.5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15900</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">90th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alumni motorsports</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">17.5</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2001</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">491977</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">23rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0.8454545454545455</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2002</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">288325</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hensley racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1.125</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2003</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35.8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">68360</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">85th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7.159999999999999</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2004</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">31.4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">37.2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">139685</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">moy racing / jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3.488888888888889</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2005</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32.6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">108921</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">83rd</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5.8428571428571425</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2006</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38.9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">39.1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">151184</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4.322222222222222</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">2008</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34.0</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15674</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">149th</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">jay robinson racing</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43.0</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Calculate the overall average finish by dividing the sum of the 'avg_finish' column by the number of rows.</div><div class="content" id="step-1"><table><tr><td>year</td><td>races</td><td>wins</td><td>poles</td><td>top_5</td><td>top_10</td><td>dnf</td><td>finish</td><td>start</td><td>winnings</td><td>season_rank</td><td>team__s_</td><td>avg_finish</td></tr><tr><td>1995</td><td>2</td><td>0</td><td>0</td><td>0</td><td>0</td><td>0</td><td>24.0</td><td>37.0</td><td>5225</td><td>75th</td><td>stegell motorsports</td><td>12.0</td></tr><tr><td>1996</td><td>14</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>26.4</td><td>25.1</td><td>63865</td><td>42nd</td><td>stegell motorsports</td><td>1.8857142857142857</td></tr><tr><td>1997</td><td>28</td><td>0</td><td>1</td><td>0</td><td>1</td><td>10</td><td>27.1</td><td>21.6</td><td>196656</td><td>23rd</td><td>stegell motorsports</td><td>0.9678571428571429</td></tr><tr><td>1998</td><td>31</td><td>0</td><td>1</td><td>0</td><td>3</td><td>5</td><td>24.9</td><td>25.5</td><td>335163</td><td>19th</td><td>stegell motorsports</td><td>0.8032258064516129</td></tr><tr><td>1999</td><td>25</td><td>0</td><td>0</td><td>1</td><td>1</td><td>9</td><td>25.8</td><td>18.2</td><td>243810</td><td>24th</td><td>curb - agajanian performance group</td><td>1.032</td></tr><tr><td>2000</td><td>2</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>35.0</td><td>28.5</td><td>15900</td><td>90th</td><td>alumni motorsports</td><td>17.5</td></tr><tr><td>2001</td><td>33</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>27.9</td><td>32.7</td><td>491977</td><td>23rd</td><td>hensley racing</td><td>0.8454545454545455</td></tr><tr><td>2002</td><td>24</td><td>0</td><td>0</td><td>0</td><td>1</td><td>11</td><td>27.0</td><td>33.0</td><td>288325</td><td>29th</td><td>hensley racing</td><td>1.125</td></tr><tr><td>2003</td><td>5</td><td>0</td><td>0</td><td>0</td><td>0</td><td>4</td><td>35.8</td><td>25.6</td><td>68360</td><td>85th</td><td>jay robinson racing</td><td>7.159999999999999</td></tr><tr><td>2004</td><td>9</td><td>0</td><td>0</td><td>0</td><td>0</td><td>6</td><td>31.4</td><td>37.2</td><td>139685</td><td>54th</td><td>moy racing / jay robinson racing</td><td>3.488888888888889</td></tr><tr><td>2005</td><td>7</td><td>0</td><td>0</td><td>0</td><td>0</td><td>7</td><td>40.9</td><td>32.6</td><td>108921</td><td>83rd</td><td>jay robinson racing</td><td>5.8428571428571425</td></tr><tr><td>2006</td><td>9</td><td>0</td><td>0</td><td>0</td><td>0</td><td>7</td><td>38.9</td><td>39.1</td><td>151184</td><td>70th</td><td>jay robinson racing</td><td>4.322222222222222</td></tr><tr><td>2008</td><td>1</td><td>0</td><td>0</td><td>0</td><td>0</td><td>1</td><td>43.0</td><td>34.0</td><td>15674</td><td>149th</td><td>jay robinson racing</td><td>43.0</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the overall average finish is equal to 31.39, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>overall_avg_finish</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7.690247694957372</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> dan o 'sullivan plays center for the fordham jazz club</h3><h3>Input Table: utah jazz all - time roster</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'player' is 'dan o'sullivan'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>mehmet okur</td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td>efes pilsen ( turkey )</td></tr><tr><td>josã ortiz</td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td>oregon state</td></tr><tr><td>greg ostertag</td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td>kansas</td></tr><tr><td>dan o 'sullivan</td><td>united states</td><td>center</td><td>1990 - 91</td><td>fordham</td></tr><tr><td>andre owens</td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'position' is 'center'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'school___club_team' is 'fordham'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> the nuggets won all six games played at the pepsi center during this span</h3><h3>Input Table: 2009 - 10 denver nuggets season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where the 'location_attendance' column contains 'pepsi center'.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">grizzlies</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 133 - 123 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (42)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (12)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 15823</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 0</span></td></tr><tr><td>4</td><td>9999-11-03</td><td>pacers</td><td>w 111 - 93 (ot)</td><td>carmelo anthony (25)</td><td>nenê (13)</td><td>anthony carter (5)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">conseco fieldhouse 10627</span></td><td>4 - 0</td></tr><tr><td>5</td><td>9999-11-04</td><td>nets</td><td>w 122 - 94 (ot)</td><td>ty lawson (23)</td><td>kenyon martin (10)</td><td>chauncey billups (5)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">izod center 15319</span></td><td>5 - 0</td></tr><tr><td>7</td><td>9999-11-07</td><td>hawks</td><td>l 100 - 125 (ot)</td><td>carmelo anthony (30)</td><td>chris andersen (11)</td><td>chauncey billups (7)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philips arena 17801</span></td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-10</td><td>bulls</td><td>w 90 - 89 (ot)</td><td>carmelo anthony (20)</td><td>nenê (12)</td><td>chauncey billups (6)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united center 21409</span></td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-11</td><td>bucks</td><td>l 102 - 108 (ot)</td><td>carmelo anthony (32)</td><td>carmelo anthony (10)</td><td>chauncey billups , ty lawson (5)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bradley center 12987</span></td><td>6 - 3</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lakers</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 105 - 79 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (25)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris andersen (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 19141</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">raptors</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 130 - 112 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (32)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (10)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 16446</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 3</span></td></tr><tr><td>12</td><td>9999-11-20</td><td>clippers</td><td>l 99 - 106 (ot)</td><td>carmelo anthony (37)</td><td>nenê (12)</td><td>chauncey billups (7)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">staples center 18155</span></td><td>8 - 4</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bulls</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 112 - 93 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (30)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony , kenyon martin (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (7)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 19359</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9 - 4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nets</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 101 - 87 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (27)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 16307</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10 - 4</span></td></tr><tr><td>15</td><td>9999-11-25</td><td>timberwolves</td><td>w 124 - 111 (ot)</td><td>carmelo anthony (22)</td><td>nenê (8)</td><td>nenê , ty lawson (6)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">target center 13101</span></td><td>11 - 4</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-27</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">knicks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 128 - 125 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (50)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê , kenyon martin (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">pepsi center 19155</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12 - 4</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where the 'record' column contains 'w'.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>3</td><td>9999-11-01</td><td>grizzlies</td><td>w 133 - 123 (ot)</td><td>carmelo anthony (42)</td><td>nenê (9)</td><td>chauncey billups (12)</td><td>pepsi center 15823</td><td>3 - 0</td></tr><tr><td>10</td><td>9999-11-13</td><td>lakers</td><td>w 105 - 79 (ot)</td><td>carmelo anthony (25)</td><td>chris andersen (11)</td><td>chauncey billups (8)</td><td>pepsi center 19141</td><td>7 - 3</td></tr><tr><td>11</td><td>9999-11-17</td><td>raptors</td><td>w 130 - 112 (ot)</td><td>carmelo anthony (32)</td><td>nenê (10)</td><td>chauncey billups (10)</td><td>pepsi center 16446</td><td>8 - 3</td></tr><tr><td>13</td><td>9999-11-21</td><td>bulls</td><td>w 112 - 93 (ot)</td><td>carmelo anthony (30)</td><td>carmelo anthony , kenyon martin (11)</td><td>carmelo anthony (7)</td><td>pepsi center 19359</td><td>9 - 4</td></tr><tr><td>14</td><td>9999-11-24</td><td>nets</td><td>w 101 - 87 (ot)</td><td>carmelo anthony (27)</td><td>nenê (9)</td><td>chauncey billups (7)</td><td>pepsi center 16307</td><td>10 - 4</td></tr><tr><td>16</td><td>9999-11-27</td><td>knicks</td><td>w 128 - 125 (ot)</td><td>carmelo anthony (50)</td><td>nenê , kenyon martin (11)</td><td>chauncey billups (8)</td><td>pepsi center 19155</td><td>12 - 4</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 6, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> chauncey billups led or was tied for the lead in assists for 10 out of 13 games</h3><h3>Input Table: 2009 - 10 denver nuggets season</h3><div class="step"><div class="step"><div class="step-title">Step 1: Order the table by 'game' in ascending order.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-01</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">grizzlies</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 133 - 123 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (42)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 15823</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">4</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-03</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pacers</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 111 - 93 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (25)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (13)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anthony carter (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">conseco fieldhouse 10627</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">5</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-04</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nets</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 122 - 94 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ty lawson (23)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kenyon martin (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">izod center 15319</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 0</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">7</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-07</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hawks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 100 - 125 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (30)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris andersen (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">philips arena 17801</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">8</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bulls</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 90 - 89 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (20)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united center 21409</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 2</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bucks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 102 - 108 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (32)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups , ty lawson (5)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bradley center 12987</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">10</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lakers</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 105 - 79 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (25)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chris andersen (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 19141</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">11</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-17</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">raptors</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 130 - 112 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (32)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (10)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 16446</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 3</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">12</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-20</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">clippers</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">l 99 - 106 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (37)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (12)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">staples center 18155</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">13</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-21</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">bulls</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 112 - 93 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (30)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony , kenyon martin (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 19359</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9 - 4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">14</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-24</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nets</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 101 - 87 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (27)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (9)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 16307</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">10 - 4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">timberwolves</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 124 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê , ty lawson (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">target center 13101</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11 - 4</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">16</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-27</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">knicks</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 128 - 125 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (50)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê , kenyon martin (11)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">pepsi center 19155</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12 - 4</span></td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'high_assists' is equal to or greater than the maximum value of 'high_assists' in the table.</div><div class="content" id="step-0"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>3</td><td>9999-11-01</td><td>grizzlies</td><td>w 133 - 123 (ot)</td><td>carmelo anthony (42)</td><td>nenê (9)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (12)</span></td><td>pepsi center 15823</td><td>3 - 0</td></tr><tr><td>4</td><td>9999-11-03</td><td>pacers</td><td>w 111 - 93 (ot)</td><td>carmelo anthony (25)</td><td>nenê (13)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">anthony carter (5)</span></td><td>conseco fieldhouse 10627</td><td>4 - 0</td></tr><tr><td>5</td><td>9999-11-04</td><td>nets</td><td>w 122 - 94 (ot)</td><td>ty lawson (23)</td><td>kenyon martin (10)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (5)</span></td><td>izod center 15319</td><td>5 - 0</td></tr><tr><td>7</td><td>9999-11-07</td><td>hawks</td><td>l 100 - 125 (ot)</td><td>carmelo anthony (30)</td><td>chris andersen (11)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td>philips arena 17801</td><td>5 - 2</td></tr><tr><td>8</td><td>9999-11-10</td><td>bulls</td><td>w 90 - 89 (ot)</td><td>carmelo anthony (20)</td><td>nenê (12)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (6)</span></td><td>united center 21409</td><td>6 - 2</td></tr><tr><td>9</td><td>9999-11-11</td><td>bucks</td><td>l 102 - 108 (ot)</td><td>carmelo anthony (32)</td><td>carmelo anthony (10)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups , ty lawson (5)</span></td><td>bradley center 12987</td><td>6 - 3</td></tr><tr><td>10</td><td>9999-11-13</td><td>lakers</td><td>w 105 - 79 (ot)</td><td>carmelo anthony (25)</td><td>chris andersen (11)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td>pepsi center 19141</td><td>7 - 3</td></tr><tr><td>11</td><td>9999-11-17</td><td>raptors</td><td>w 130 - 112 (ot)</td><td>carmelo anthony (32)</td><td>nenê (10)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (10)</span></td><td>pepsi center 16446</td><td>8 - 3</td></tr><tr><td>12</td><td>9999-11-20</td><td>clippers</td><td>l 99 - 106 (ot)</td><td>carmelo anthony (37)</td><td>nenê (12)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td>staples center 18155</td><td>8 - 4</td></tr><tr><td>13</td><td>9999-11-21</td><td>bulls</td><td>w 112 - 93 (ot)</td><td>carmelo anthony (30)</td><td>carmelo anthony , kenyon martin (11)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (7)</span></td><td>pepsi center 19359</td><td>9 - 4</td></tr><tr><td>14</td><td>9999-11-24</td><td>nets</td><td>w 101 - 87 (ot)</td><td>carmelo anthony (27)</td><td>nenê (9)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (7)</span></td><td>pepsi center 16307</td><td>10 - 4</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-11-25</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">timberwolves</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">w 124 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carmelo anthony (22)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">nenê (8)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">nenê , ty lawson (6)</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">target center 13101</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">11 - 4</span></td></tr><tr><td>16</td><td>9999-11-27</td><td>knicks</td><td>w 128 - 125 (ot)</td><td>carmelo anthony (50)</td><td>nenê , kenyon martin (11)</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">chauncey billups (8)</span></td><td>pepsi center 19155</td><td>12 - 4</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 10, otherwise return FALSE.</div><div class="content" id="step-1"><table><tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">15</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">9999-11-25</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">timberwolves</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">w 124 - 111 (ot)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">carmelo anthony (22)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">nenê (8)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">nenê , ty lawson (6)</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">target center 13101</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">11 - 4</span></td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> greg ostertag played the center position for the jazz from 1995 to 2004 and then from 2005 to 2006</h3><h3>Input Table: utah jazz all - time roster</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'player' is 'greg ostertag'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mehmet okur</span></td><td>turkey</td><td>forward - center</td><td>2004 - 11</td><td>efes pilsen ( turkey )</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">josã ortiz</span></td><td>puerto rico</td><td>center</td><td>1988 - 90</td><td>oregon state</td></tr><tr><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">greg ostertag</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">center</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995 - 2004 , 2005 - 06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kansas</span></td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dan o 'sullivan</span></td><td>united states</td><td>center</td><td>1990 - 91</td><td>fordham</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">andre owens</span></td><td>united states</td><td>guard</td><td>2005 - 06</td><td>houston</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'position' is 'center'.</div><div class="content" id="step-0"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">greg ostertag</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">center</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1995 - 2004 , 2005 - 06</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">kansas</span></td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'years_for_jazz' includes '1995-2004' and '2005-2006'.</div><div class="content" id="step-1"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr><tr><td>greg ostertag</td><td>united states</td><td>center</td><td>1995 - 2004 , 2005 - 06</td><td>kansas</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>player</td><td>nationality</td><td>position</td><td>years_for_jazz</td><td>school___club_team</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421<html><head><style>body { font-family: Arial, sans-serif; margin: 20px; }h1 { text-align: center; }.cot-title { color: blue; }.pos-title { color: green; }h2 { color: black; text-align: left; }h3 { color: black; text-align: left; }h4 { color: darkslategray; }table { width: 100%; border-collapse: collapse; margin: 20px 0; }table, th, td { border: 1px solid #ddd; padding: 8px; }th { background-color: #f2f2f2; }tr:nth-child(even) { background-color: #f9f9f9; }.highlight { background-color: #ffffcc; }.true { color: green; }.false { color: red; }.highlighted-cell { background-color: yellow; cursor: pointer; }.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }.step { display: block; }</style></head><body><hr/><h3><span>Statement:</span> robert garrett and james connolly represent the same country</h3><h3>Input Table: list of multiple olympic medalists</h3><div class="step"><div class="step"><div class="step-title">Step 1: Select rows where 'athlete' is 'robert garrett'.</div><div class="content" id="step-1"><table><tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr><tr><td>1</td><td>1896-04-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">james connolly</span></td><td>united states</td><td>athletics</td><td>triple jump g</td></tr><tr><td>1</td><td>1896-04-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">alexandre tuffère</span></td><td>france</td><td>athletics</td><td>triple jump s</td></tr><tr><td>1</td><td>1896-04-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ioannis persakis</span></td><td>greece</td><td>athletics</td><td>triple jump b</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1896-04-06</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">robert garrett</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">athletics</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">discus g</span></td></tr><tr><td>1</td><td>1896-04-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">panagiotis paraskevopoulos</span></td><td>greece</td><td>athletics</td><td>discus s</td></tr><tr><td>1</td><td>1896-04-06</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sotirios versis</span></td><td>greece</td><td>athletics</td><td>discus b</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1896-04-07</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">robert garrett</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">athletics</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">long jump s</span></td></tr><tr><td>2</td><td>1896-04-07</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">james connolly</span></td><td>united states</td><td>athletics</td><td>long jump b</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1896-04-07</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">robert garrett</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">athletics</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">shot put g</span></td></tr><tr><td>3</td><td>1896-04-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carl schuhmann</span></td><td>germany</td><td>gymnastics</td><td>vault g</td></tr><tr><td>3</td><td>1896-04-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hermann weingärtner</span></td><td>germany</td><td>gymnastics</td><td>vault b</td></tr><tr><td>4</td><td>1896-04-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hermann weingärtner</span></td><td>germany</td><td>gymnastics</td><td>pommel horse s</td></tr><tr><td>5</td><td>1896-04-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hermann weingärtner</span></td><td>germany</td><td>gymnastics</td><td>rings s</td></tr><tr><td>6</td><td>1896-04-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hermann weingärtner</span></td><td>germany</td><td>gymnastics</td><td>horizontal bar g</td></tr><tr><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">1900-07-16</span></td><td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">robert garrett</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">united states</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">athletics</span></td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">standing triple jump b</span></td></tr><tr><td>6</td><td>1904-09-03</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ray ewry</span></td><td>united states</td><td>athletics</td><td>standing triple jump g</td></tr><tr><td>7</td><td>1908-07-20</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ray ewry</span></td><td>united states</td><td>athletics</td><td>standing long jump g</td></tr><tr><td>8</td><td>1908-07-23</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">ray ewry</span></td><td>united states</td><td>athletics</td><td>standing high jump g</td></tr><tr><td>8</td><td>1920-07-29</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carl osburn</span></td><td>united states</td><td>shooting</td><td>team 300 m / 600 m military rifle , prone g</td></tr><tr><td>9</td><td>1920-07-30</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carl osburn</span></td><td>united states</td><td>shooting</td><td>300 m military rifle , standing g</td></tr><tr><td>10</td><td>1920-07-31</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carl osburn</span></td><td>united states</td><td>shooting</td><td>team free rifle g</td></tr><tr><td>11</td><td>1924-06-27</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">carl osburn</span></td><td>united states</td><td>shooting</td><td>600 m free rifle s</td></tr><tr><td>11</td><td>1928-08-03</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">paavo nurmi</span></td><td>finland</td><td>athletics</td><td>5000 m s</td></tr><tr><td>12</td><td>1928-08-04</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">paavo nurmi</span></td><td>finland</td><td>athletics</td><td>3000 m steeplechase s</td></tr><tr><td>12</td><td>1960-09-02</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">edoardo mangiarotti</span></td><td>italy</td><td>fencing</td><td>team foil s</td></tr><tr><td>13</td><td>1960-09-09</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">edoardo mangiarotti</span></td><td>italy</td><td>fencing</td><td>team épée g</td></tr><tr><td>13</td><td>1964-10-21</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>team g</td></tr><tr><td>14</td><td>1964-10-21</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>all - around s</td></tr><tr><td>15</td><td>1964-10-22</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>vault s</td></tr><tr><td>16</td><td>1964-10-22</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>uneven bars b</td></tr><tr><td>17</td><td>1964-10-23</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>balance beam b</td></tr><tr><td>18</td><td>1964-10-23</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">larisa latynina</span></td><td>soviet union</td><td>gymnastics</td><td>floor exercise g</td></tr><tr><td>18</td><td>2012-07-31</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael phelps</span></td><td>united states</td><td>swimming</td><td>200 m butterfly s</td></tr><tr><td>19</td><td>2012-07-31</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael phelps</span></td><td>united states</td><td>swimming</td><td>4 x 200 m freestyle g</td></tr><tr><td>20</td><td>2012-08-02</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael phelps</span></td><td>united states</td><td>swimming</td><td>200 m individual medley g</td></tr><tr><td>21</td><td>2012-08-03</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael phelps</span></td><td>united states</td><td>swimming</td><td>100 m butterfly g</td></tr><tr><td>22</td><td>2012-08-04</td><td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">michael phelps</span></td><td>united states</td><td>swimming</td><td>4 100 m medley relay g</td></tr></table></div><hr/><div class="step"><div class="step-title">Step 2: Select rows where 'athlete' is 'james connolly'.</div><div class="content" id="step-0"><table><tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr><tr><td>1</td><td>1896-04-06</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>discus g</td></tr><tr><td>2</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>long jump s</td></tr><tr><td>3</td><td>1896-04-07</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>shot put g</td></tr><tr><td>6</td><td>1900-07-16</td><td>robert garrett</td><td>united states</td><td>athletics</td><td>standing triple jump b</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 3: Select rows where 'nation' is the same for both athletes.</div><div class="content" id="step-1"><table><tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr></table></div></div><hr/><div class="step"><div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div><div class="content" id="step-2"><table><tr><td>medal_count</td><td>date</td><td>athlete</td><td>nation</td><td>sport</td><td>record_medal_event</td></tr></table></div></div><hr/>
</div></div><hr/></body></html>htmls_POS_mod2/FN/test-100.htmlAdded+125
htmls_POS_mod2/FN/test-1000.htmlAdded+403
htmls_POS_mod2/FN/test-1005.htmlAdded+153
htmls_POS_mod2/FN/test-1026.htmlAdded+266
htmls_POS_mod2/FN/test-1035.htmlAdded+189
htmls_POS_mod2/FN/test-1038.htmlAdded+264
htmls_POS_mod2/FN/test-1039.htmlAdded+164
htmls_POS_mod2/FN/test-1041.htmlAdded+286
htmls_POS_mod2/FN/test-1063.htmlAdded+383
htmls_POS_mod2/FN/test-1077.htmlAdded+358
htmls_POS_mod2/FN/test-1078.htmlAdded+358
htmls_POS_mod2/FN/test-108.htmlAdded+347
htmls_POS_mod2/FN/test-1080.htmlAdded+405
htmls_POS_mod2/FN/test-1081.htmlAdded+358
htmls_POS_mod2/FN/test-1099.htmlAdded+376
htmls_POS_mod2/FN/test-1108.htmlAdded+165
htmls_POS_mod2/FN/test-1119.htmlAdded+181
htmls_POS_mod2/FN/test-1128.htmlAdded+573
htmls_POS_mod2/FN/test-1140.htmlAdded+178
htmls_POS_mod2/FN/test-1155.htmlAdded+388
htmls_POS_mod2/FN/test-1157.htmlAdded+350
htmls_POS_mod2/FN/test-1159.htmlAdded+255
htmls_POS_mod2/FN/test-1165.htmlAdded+281
htmls_POS_mod2/FN/test-1167.htmlAdded+149
htmls_POS_mod2/FN/test-117.htmlAdded+150
htmls_POS_mod2/FN/test-118.htmlAdded+274
htmls_POS_mod2/FN/test-1188.htmlAdded+227
htmls_POS_mod2/FN/test-1190.htmlAdded+425
htmls_POS_mod2/FN/test-1191.htmlAdded+249
htmls_POS_mod2/FN/test-1197.htmlAdded+1073
htmls_POS_mod2/FN/test-1201.htmlAdded+331
htmls_POS_mod2/FN/test-1205.htmlAdded+116
htmls_POS_mod2/FN/test-1213.htmlAdded+261
htmls_POS_mod2/FN/test-1218.htmlAdded+447
htmls_POS_mod2/FN/test-1227.htmlAdded+377
htmls_POS_mod2/FN/test-1231.htmlAdded+292
htmls_POS_mod2/FN/test-124.htmlAdded+139
htmls_POS_mod2/FN/test-1240.htmlAdded+233
htmls_POS_mod2/FN/test-125.htmlAdded+138
htmls_POS_mod2/FN/test-1250.htmlAdded+245
htmls_POS_mod2/FN/test-1251.htmlAdded+336
htmls_POS_mod2/FN/test-1253.htmlAdded+277
htmls_POS_mod2/FN/test-126.htmlAdded+116
htmls_POS_mod2/FN/test-1260.htmlAdded+873
htmls_POS_mod2/FN/test-1261.htmlAdded+683
htmls_POS_mod2/FN/test-127.htmlAdded+124
htmls_POS_mod2/FN/test-1271.htmlAdded+295
htmls_POS_mod2/FN/test-1274.htmlAdded+383
htmls_POS_mod2/FN/test-128.htmlAdded+138
htmls_POS_mod2/FN/test-1294.htmlAdded+421