File size: 3,387 Bytes
68eb98f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<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; }
.sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
</style>
</head><body>
<hr>
<h3><span>Statement:</span> during the 2007 - 08 minnesota wild season , minnesota played home two times less than they played away</h3>
<h3>Input Table: 2007 - 08 minnesota wild season</h3>
<div class="step">
<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>01-02-9999</td><td>minnesota</td><td>4 - 1</td><td>columbus</td><td>backstrom</td><td>18529</td><td>30 - 19 - 3</td></tr><tr><td>9999-02-05</td><td>detroit</td><td>3 - 2</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>30 - 19 - 4</td></tr><tr><td>01-02-07</td><td>dallas</td><td>1 - 0</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>30 - 20 - 4</td></tr><tr><td>9999-02-09</td><td>ny islanders</td><td>3 - 4</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>31 - 20 - 4</td></tr><tr><td>01-02-10</td><td>minnesota</td><td>2 - 1</td><td>st louis</td><td>harding</td><td>16477</td><td>32 - 20 - 4</td></tr><tr><td>01-02-12</td><td>minnesota</td><td>2 - 4</td><td>edmonton</td><td>harding</td><td>16839</td><td>32 - 21 - 4</td></tr><tr><td>01-02-14</td><td>minnesota</td><td>5 - 4</td><td>vancouver</td><td>backstrom</td><td>18630</td><td>33 - 21 - 4</td></tr><tr><td>9999-02-17</td><td>nashville</td><td>4 - 5</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>34 - 21 - 4</td></tr><tr><td>9999-02-19</td><td>vancouver</td><td>3 - 2</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>34 - 21 - 5</td></tr><tr><td>9999-02-20</td><td>minnesota</td><td>0 - 3</td><td>chicago</td><td>harding</td><td>17812</td><td>34 - 22 - 5</td></tr><tr><td>9999-02-24</td><td>calgary</td><td>2 - 1</td><td>minnesota</td><td>backstrom</td><td>18568</td><td>34 - 23 - 5</td></tr><tr><td>9999-02-26</td><td>minnesota</td><td>1 - 4</td><td>washington</td><td>backstrom</td><td>17391</td><td>34 - 24 - 5</td></tr><tr><td>9999-02-27</td><td>minnesota</td><td>3 - 2</td><td>tampa bay</td><td>backstrom</td><td>17211</td><td>35 - 24 - 5</td></tr><tr><td>9999-02-29</td><td>minnesota</td><td>3 - 2</td><td>florida</td><td>backstrom</td><td>16927</td><td>36 - 24 - 5</td></tr>
</table>
</div>
<h3>SQL Command:</h3>
<div class="sql-command">SELECT
CASE
WHEN (SELECT COUNT(*) FROM table_sql WHERE home = 'minnesota') <
(SELECT COUNT(*) FROM table_sql WHERE visitor = 'minnesota')
THEN 'TRUE'
ELSE 'FALSE'
END;</div>
</body></html>
|