luulinh90s's picture
add materials
fa53be0
raw
history blame
12 kB
<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>
<h1 class="pos-title">Plan-of-SQLs (Ours)</h1>
<hr>
<h3><span>Statement:</span> aldershot town was the opponent when bradford city scored their highest point total</h3>
<h3>Ground-truth:</span> TRUE</h3>
<h3>Input Table: 2008 - 09 bradford city a.f.c. season</h3>
<div class="step">
<div class="step">
<div class="step-title">Step 1: Select rows where 'result' contains the highest point total for Bradford City.</div>
<div id="step-1" class="content">
<table>
<tr>
<td>game</td>
<td>date</td>
<td>opponent</td>
<td>venue</td>
<td>result</td>
<td>attendance</td>
</tr>
<tr>
<td>1</td>
<td>2008-08-09</td>
<td>notts county</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 1</span></td>
<td>14038</td>
</tr>
<tr>
<td>2</td>
<td>2008-08-16</td>
<td>macclesfield town</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>2556</td>
</tr>
<tr>
<td>3</td>
<td>2008-08-23</td>
<td>rochdale</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>13154</td>
</tr>
<tr>
<td>4</td>
<td>2008-08-30</td>
<td>aldershot town</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 3</span></td>
<td>3805</td>
</tr>
<tr>
<td>5</td>
<td>2008-09-06</td>
<td>port vale</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>7273</td>
</tr>
<tr>
<td>6</td>
<td>2008-09-13</td>
<td>exeter city</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 1</span></td>
<td>12683</td>
</tr>
<tr>
<td>7</td>
<td>2008-09-20</td>
<td>bournemouth</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 3</span></td>
<td>12824</td>
</tr>
<tr>
<td>8</td>
<td>2008-09-27</td>
<td>shrewsbury town</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 2</span></td>
<td>6517</td>
</tr>
<tr>
<td>9</td>
<td>2008-10-04</td>
<td>luton town</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 1</span></td>
<td>13083</td>
</tr>
<tr>
<td>10</td>
<td>2008-10-11</td>
<td>accrington stanley</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 2</span></td>
<td>3012</td>
</tr>
<tr>
<td>11</td>
<td>2008-10-18</td>
<td>gillingham</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 2</span></td>
<td>12432</td>
</tr>
<tr>
<td>12</td>
<td>2008-10-21</td>
<td>darlington</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 2</span></td>
<td>3034</td>
</tr>
<tr>
<td>13</td>
<td>2008-10-24</td>
<td>grimsby town</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 1</span></td>
<td>4470</td>
</tr>
<tr>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2008-10-28</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bury</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">home</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1 - 0</span></td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12830</span></td>
</tr>
<tr>
<td>15</td>
<td>2008-11-01</td>
<td>barnet</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 3</span></td>
<td>12510</td>
</tr>
<tr>
<td>16</td>
<td>2008-11-15</td>
<td>wycombe wanderers</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 1</span></td>
<td>5002</td>
</tr>
<tr>
<td>17</td>
<td>2008-11-22</td>
<td>rotherham united</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>4586</td>
</tr>
<tr>
<td>18</td>
<td>2008-11-25</td>
<td>chesterfield</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 2</span></td>
<td>12145</td>
</tr>
<tr>
<td>19</td>
<td>2008-12-06</td>
<td>dagenham & redbridge</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 1</span></td>
<td>12145</td>
</tr>
<tr>
<td>20</td>
<td>2008-12-13</td>
<td>brentford</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 2</span></td>
<td>4339</td>
</tr>
<tr>
<td>21</td>
<td>2008-12-20</td>
<td>chester city</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 0</span></td>
<td>12092</td>
</tr>
<tr>
<td>22</td>
<td>2008-12-26</td>
<td>lincoln city</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 0</span></td>
<td>6156</td>
</tr>
<tr>
<td>23</td>
<td>2008-12-28</td>
<td>morecambe</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 - 0</span></td>
<td>13105</td>
</tr>
<tr>
<td>24</td>
<td>2009-01-03</td>
<td>shrewsbury town</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 0</span></td>
<td>12877</td>
</tr>
<tr>
<td>25</td>
<td>2009-01-17</td>
<td>accrington stanley</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 1</span></td>
<td>12172</td>
</tr>
<tr>
<td>26</td>
<td>2009-01-24</td>
<td>luton town</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 3</span></td>
<td>6053</td>
</tr>
<tr>
<td>27</td>
<td>2009-01-27</td>
<td>bury</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 1</span></td>
<td>4112</td>
</tr>
<tr>
<td>28</td>
<td>2009-01-31</td>
<td>grimsby town</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>12816</td>
</tr>
<tr>
<td>29</td>
<td>2009-02-07</td>
<td>gillingham</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 0</span></td>
<td>4866</td>
</tr>
<tr>
<td>30</td>
<td>2009-02-14</td>
<td>wycombe wanderers</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 0</span></td>
<td>12689</td>
</tr>
<tr>
<td>31</td>
<td>2009-02-17</td>
<td>darlington</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 0</span></td>
<td>12782</td>
</tr>
<tr>
<td>32</td>
<td>2009-02-21</td>
<td>barnet</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 4</span></td>
<td>2445</td>
</tr>
<tr>
<td>33</td>
<td>2009-02-28</td>
<td>notts county</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 3</span></td>
<td>5138</td>
</tr>
<tr>
<td>34</td>
<td>2009-03-01</td>
<td>macclesfield town</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 0</span></td>
<td>11908</td>
</tr>
<tr>
<td>35</td>
<td>2009-03-07</td>
<td>aldershot town</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5 - 0</span></td>
<td>12465</td>
</tr>
<tr>
<td>36</td>
<td>2009-03-10</td>
<td>rochdale</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 3</span></td>
<td>5157</td>
</tr>
<tr>
<td>37</td>
<td>2009-03-14</td>
<td>exeter city</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 1</span></td>
<td>5253</td>
</tr>
<tr>
<td>38</td>
<td>2009-03-17</td>
<td>bournemouth</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 4</span></td>
<td>4847</td>
</tr>
<tr>
<td>39</td>
<td>2009-03-21</td>
<td>port vale</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 1</span></td>
<td>12436</td>
</tr>
<tr>
<td>40</td>
<td>2009-03-28</td>
<td>chester city</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 0</span></td>
<td>2735</td>
</tr>
<tr>
<td>41</td>
<td>2009-04-04</td>
<td>brentford</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 1</span></td>
<td>12832</td>
</tr>
<tr>
<td>42</td>
<td>2009-04-10</td>
<td>morecambe</td>
<td>away</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 2</span></td>
<td>4546</td>
</tr>
<tr>
<td>43</td>
<td>2009-04-13</td>
<td>lincoln city</td>
<td>home</td>
<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 1</span></td>
<td>12932</td>
</tr>
</table>
</div>
<hr>
<div class="step">
<div class="step-title">Step 2: Select rows where 'opponent' is 'aldershot town'.</div>
<div id="step-0" class="content">
<table>
<tr>
<td>game</td>
<td>date</td>
<td>opponent</td>
<td>venue</td>
<td>result</td>
<td>attendance</td>
</tr>
<tr>
<td>14</td>
<td>2008-10-28</td>
<td>bury</td>
<td>home</td>
<td>1 - 0</td>
<td>12830</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 id="step-1" class="content">
<table>
<tr>
<td>game</td>
<td>date</td>
<td>opponent</td>
<td>venue</td>
<td>result</td>
<td>attendance</td>
</tr>
</table>
</div>
</div>
<hr>
<div class="step">
<div class="step-title">Final output table:</div>
<div id="step-2" class="content">
<table>
<tr>
<td>verification_result</td>
</tr>
<tr>
<td>FALSE</td>
</tr>
</table>
</div>
</div>
<hr>
<div class="step"><h3><span class="false">Prediction: FALSE </span></h3>
<h3>Ground-truth:</span> TRUE</h3></div>
</body></html>