Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-2016.html239 linesDownload Raw Back to TP
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> the dundee hurricanes had two losing seasons , in 2006 and 2009</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: dundee hurricanes</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'losses' is greater than 0.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>season</td>34<td>division</td>35<td>wins</td>36<td>losses</td>37<td>ties</td>38<td>final_position</td>39<td>notes</td>40</tr>41<tr>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2003</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 north</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6</span></td>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4 / 11</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>49</tr>50<tr>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 north</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 / 3</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>58</tr>59<tr>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 scottish</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 / 4</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>67</tr>68<tr>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2006</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 scottish</span></td>71<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>72<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 / 3</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>76</tr>77<tr>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 north</span></td>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9</span></td>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 / 6</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">promoted to division 1 north</span></td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2008</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 1 north</span></td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>92<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3 / 6</span></td>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2009</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 1 north</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5 / 7</span></td>102<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>103</tr>104</table>105</div>106<hr>107<div class="step">108<div class="step-title">Step 2: Select rows where 'season' is 2006 or 2009.</div>109<div id="step-0" class="content">110<table>111<tr>112<td>season</td>113<td>division</td>114<td>wins</td>115<td>losses</td>116<td>ties</td>117<td>final_position</td>118<td>notes</td>119</tr>120<tr>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2003</span></td>122<td>bafl division 2 north</td>123<td>6</td>124<td>4</td>125<td>0</td>126<td>4 / 11</td>127<td>-</td>128</tr>129<tr>130<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004</span></td>131<td>bafl division 2 north</td>132<td>6</td>133<td>2</td>134<td>1</td>135<td>1 / 3</td>136<td>-</td>137</tr>138<tr>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005</span></td>140<td>bafl division 2 scottish</td>141<td>5</td>142<td>5</td>143<td>0</td>144<td>2 / 4</td>145<td>-</td>146</tr>147<tr>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2006</span></td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 2 scottish</span></td>150<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>151<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>152<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>153<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 / 3</span></td>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>155</tr>156<tr>157<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007</span></td>158<td>bafl division 2 north</td>159<td>9</td>160<td>1</td>161<td>0</td>162<td>1 / 6</td>163<td>promoted to division 1 north</td>164</tr>165<tr>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2008</span></td>167<td>bafl division 1 north</td>168<td>5</td>169<td>2</td>170<td>3</td>171<td>3 / 6</td>172<td>-</td>173</tr>174<tr>175<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2009</span></td>176<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bafl division 1 north</span></td>177<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>178<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6</span></td>179<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>180<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5 / 7</span></td>181<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">-</span></td>182</tr>183</table>184</div>185</div>186<hr>187<div class="step">188<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>189<div id="step-1" class="content">190<table>191<tr>192<td>season</td>193<td>division</td>194<td>wins</td>195<td>losses</td>196<td>ties</td>197<td>final_position</td>198<td>notes</td>199</tr>200<tr>201<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2006</span></td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bafl division 2 scottish</span></td>203<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">3</span></td>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>206<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2 / 3</span></td>207<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">-</span></td>208</tr>209<tr>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2009</span></td>211<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bafl division 1 north</span></td>212<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>213<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">6</span></td>214<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1</span></td>215<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5 / 7</span></td>216<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">-</span></td>217</tr>218</table>219</div>220</div>221<hr>222<div class="step">223<div class="step-title">Final output table:</div>224<div id="step-2" class="content">225<table>226<tr>227<td>verification_result</td>228</tr>229<tr>230<td>TRUE</td>231</tr>232</table>233</div>234</div>235<hr>236<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>237<h3>Ground-truth:</span> TRUE</h3></div>238</body></html>239