| <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> 25 - 26 january 2003 and 12 - 13 july 2003 were the only games played in 2003</h3> | |
| <h3>Input Table: tsuyoshi fujita</h3> | |
| <div class="step"> | |
| <div class="step"> | |
| <div class="step-title">Step 1: Select rows where the 'date' column is between '2003-01-25' and '2003-07-13'.</div> | |
| <div id="step-1" class="content"> | |
| <table> | |
| <tr> | |
| <td>season</td> | |
| <td>event_type</td> | |
| <td>location</td> | |
| <td>format</td> | |
| <td>date</td> | |
| <td>rank</td> | |
| </tr> | |
| <tr> | |
| <td>1997 - 98</td> | |
| <td>nationals</td> | |
| <td>tokyo</td> | |
| <td>special</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1998-07-04</span></td> | |
| <td>4</td> | |
| </tr> | |
| <tr> | |
| <td>1998 - 99</td> | |
| <td>grand prix</td> | |
| <td>kyoto</td> | |
| <td>limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999-01-16</span></td> | |
| <td>4</td> | |
| </tr> | |
| <tr> | |
| <td>1998 - 99</td> | |
| <td>apac region championship</td> | |
| <td>singapore</td> | |
| <td>special</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999-03-27</span></td> | |
| <td>3</td> | |
| </tr> | |
| <tr> | |
| <td>1999 - 00</td> | |
| <td>grand prix</td> | |
| <td>taipei</td> | |
| <td>extended</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2000-02-12</span></td> | |
| <td>2</td> | |
| </tr> | |
| <tr> | |
| <td>2000 - 01</td> | |
| <td>grand prix</td> | |
| <td>kyoto</td> | |
| <td>extended</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2000-11-12</span></td> | |
| <td>1</td> | |
| </tr> | |
| <tr> | |
| <td>2000 - 01</td> | |
| <td>grand prix</td> | |
| <td>hiroshima</td> | |
| <td>limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001-01-27</span></td> | |
| <td>6</td> | |
| </tr> | |
| <tr> | |
| <td>2000 - 01</td> | |
| <td>pro tour</td> | |
| <td>tokyo</td> | |
| <td>block constructed</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001-03-16</span></td> | |
| <td>2</td> | |
| </tr> | |
| <tr> | |
| <td>2001 - 02</td> | |
| <td>grand prix</td> | |
| <td>hong kong</td> | |
| <td>limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001-11-17</span></td> | |
| <td>3</td> | |
| </tr> | |
| <tr> | |
| <td>2001 - 02</td> | |
| <td>masters</td> | |
| <td>san diego</td> | |
| <td>standard</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-01-11</span></td> | |
| <td>7</td> | |
| </tr> | |
| <tr> | |
| <td>2001 - 02</td> | |
| <td>grand prix</td> | |
| <td>fukuoka</td> | |
| <td>limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-02-16</span></td> | |
| <td>6</td> | |
| </tr> | |
| <tr> | |
| <td>2001 - 02</td> | |
| <td>grand prix</td> | |
| <td>nagoya</td> | |
| <td>team limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-05-11</span></td> | |
| <td>4</td> | |
| </tr> | |
| <tr> | |
| <td>2002 - 03</td> | |
| <td>grand prix</td> | |
| <td>utsunomiya</td> | |
| <td>limited</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-10-12</span></td> | |
| <td>3</td> | |
| </tr> | |
| <tr> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002 - 03</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">grand prix</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hiroshima</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">extended</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-01-25</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7</span></td> | |
| </tr> | |
| <tr> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002 - 03</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">grand prix</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bangkok</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">standard</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-07-12</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td> | |
| </tr> | |
| <tr> | |
| <td>2003 - 04</td> | |
| <td>nationals</td> | |
| <td>osaka</td> | |
| <td>special</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004-06-11</span></td> | |
| <td>1</td> | |
| </tr> | |
| <tr> | |
| <td>2003 - 04</td> | |
| <td>grand prix</td> | |
| <td>kuala lumpur</td> | |
| <td>standard</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004-07-24</span></td> | |
| <td>4</td> | |
| </tr> | |
| <tr> | |
| <td>2005</td> | |
| <td>grand prix</td> | |
| <td>seattle</td> | |
| <td>extended</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-03-05</span></td> | |
| <td>7</td> | |
| </tr> | |
| <tr> | |
| <td>2005</td> | |
| <td>invitational</td> | |
| <td>los angeles</td> | |
| <td>special</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-05-17</span></td> | |
| <td>2</td> | |
| </tr> | |
| <tr> | |
| <td>2005</td> | |
| <td>pro tour</td> | |
| <td>london</td> | |
| <td>booster draft</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-07-08</span></td> | |
| <td>2</td> | |
| </tr> | |
| <tr> | |
| <td>2005</td> | |
| <td>pro tour</td> | |
| <td>los angeles</td> | |
| <td>extended</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-10-28</span></td> | |
| <td>5</td> | |
| </tr> | |
| <tr> | |
| <td>2011</td> | |
| <td>pro tour</td> | |
| <td>nagoya</td> | |
| <td>block constructed and booster draft</td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2011-06-10</span></td> | |
| <td>5</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 2, otherwise return FALSE.</div> | |
| <div id="step-0" class="content"> | |
| <table> | |
| <tr> | |
| <td>season</td> | |
| <td>event_type</td> | |
| <td>location</td> | |
| <td>format</td> | |
| <td>date</td> | |
| <td>rank</td> | |
| </tr> | |
| <tr> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2002 - 03</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">grand prix</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">hiroshima</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">extended</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-01-25</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">7</span></td> | |
| </tr> | |
| <tr> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2002 - 03</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">grand prix</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bangkok</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">standard</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-07-12</span></td> | |
| <td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1</span></td> | |
| </tr> | |
| </table> | |
| </div> | |
| </div> | |
| <hr> | |
| <div class="step"> | |
| <div class="step-title">Final output table:</div> | |
| <div id="step-1" class="content"> | |
| <table> | |
| <tr> | |
| <td>verification_result</td> | |
| </tr> | |
| <tr> | |
| <td>TRUE</td> | |
| </tr> | |
| </table> | |
| </div> | |
| </div> | |
| <hr> | |
| <h3>Prediction:</span> TRUE</h3> | |
| </body></html> | |