luulinh90s/Tabular-LLM-Study-Debugging
0
1<html><head>2<style>3body { font-family: Arial, sans-serif; margin: 20px; }4h1 { text-align: center; }5.cot-title { color: blue; }6.pos-title { color: green; }7h2 { color: black; text-align: left; }8h3 { color: black; text-align: left; }9h4 { color: darkslategray; }10table { width: 100%; border-collapse: collapse; margin: 20px 0; }11table, th, td { border: 1px solid #ddd; padding: 8px; }12th { background-color: #f2f2f2; }13tr:nth-child(even) { background-color: #f9f9f9; }14.highlight { background-color: #ffffcc; }15.true { color: green; }16.false { color: red; }17.highlighted-cell { background-color: yellow; cursor: pointer; }18.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }19.step { display: block; }20</style>21</head><body>22<h1 class="pos-title">Plan-of-SQLs (Ours)</h1>23<hr>24<h3><span>Statement:</span> melbourne tigers have the same home record as south dragons</h3>25<h3>Ground-truth:</span> FALSE</h3>26<h3>Input Table: 2008 - 09 nbl season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'team' is 'melbourne tigers'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>team</td>34<td>lost</td>35<td>last_5</td>36<td>streak</td>37<td>home</td>38<td>away</td>39<td>pts</td>40<td>won</td>41</tr>42<tr>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south dragons</span></td>44<td>8</td>45<td>4 - 1</td>46<td>won 2</td>47<td>13 - 2</td>48<td>9 - 6</td>49<td>110.25</td>50<td>73.33</td>51</tr>52<tr>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">melbourne tigers</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 - 2</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lost 1</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11 - 4</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9 - 6</span></td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">106.47</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">66.67</span></td>61</tr>62<tr>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">new zealand breakers</span></td>64<td>12</td>65<td>2 - 3</td>66<td>won 2</td>67<td>10 - 5</td>68<td>8 - 7</td>69<td>106.08</td>70<td>60.0</td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">perth wildcats</span></td>74<td>13</td>75<td>4 - 1</td>76<td>won 2</td>77<td>11 - 4</td>78<td>6 - 9</td>79<td>102.06</td>80<td>56.67</td>81</tr>82<tr>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">townsville crocodiles</span></td>84<td>13</td>85<td>4 - 1</td>86<td>lost 1</td>87<td>12 - 3</td>88<td>5 - 10</td>89<td>99.26</td>90<td>56.67</td>91</tr>92<tr>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">adelaide 36ers</span></td>94<td>15</td>95<td>3 - 2</td>96<td>lost 1</td>97<td>12 - 3</td>98<td>3 - 12</td>99<td>100.92</td>100<td>50.0</td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">wollongong hawks</span></td>104<td>19</td>105<td>2 - 3</td>106<td>lost 1</td>107<td>9 - 6</td>108<td>2 - 13</td>109<td>95.03</td>110<td>36.67</td>111</tr>112<tr>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sydney spirit</span></td>114<td>19</td>115<td>0 - 5</td>116<td>lost 8</td>117<td>9 - 6</td>118<td>2 - 13</td>119<td>94.51</td>120<td>36.67</td>121</tr>122<tr>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">cairns taipans</span></td>124<td>19</td>125<td>1 - 4</td>126<td>lost 3</td>127<td>5 - 10</td>128<td>6 - 9</td>129<td>93.57</td>130<td>36.67</td>131</tr>132<tr>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gold coast blaze</span></td>134<td>22</td>135<td>3 - 2</td>136<td>won 3</td>137<td>6 - 9</td>138<td>2 - 13</td>139<td>93.45</td>140<td>26.67</td>141</tr>142</table>143</div>144<hr>145<div class="step">146<div class="step-title">Step 2: Select rows where 'home' is the same as the 'home' record of 'south dragons'.</div>147<div id="step-0" class="content">148<table>149<tr>150<td>team</td>151<td>lost</td>152<td>last_5</td>153<td>streak</td>154<td>home</td>155<td>away</td>156<td>pts</td>157<td>won</td>158</tr>159<tr>160<td>melbourne tigers</td>161<td>10</td>162<td>3 - 2</td>163<td>lost 1</td>164<td>11 - 4</td>165<td>9 - 6</td>166<td>106.47</td>167<td>66.67</td>168</tr>169</table>170</div>171</div>172<hr>173<div class="step">174<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to the number of rows in the 'south dragons' record, otherwise return FALSE.</div>175<div id="step-1" class="content">176<table>177<tr>178<td>team</td>179<td>lost</td>180<td>last_5</td>181<td>streak</td>182<td>home</td>183<td>away</td>184<td>pts</td>185<td>won</td>186</tr>187</table>188</div>189</div>190<hr>191<div class="step">192<div class="step-title">Final output table:</div>193<div id="step-2" class="content">194<table>195<tr>196<td>verification_result</td>197</tr>198<tr>199<td>TRUE</td>200</tr>201</table>202</div>203</div>204<hr>205<div class="step"><h3><span class="false">Prediction: TRUE </span></h3>206<h3>Ground-truth:</span> FALSE</h3></div>207</body></html>208 