Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-735.html385 linesDownload Raw Back to FN
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 average number of people in the game is 31 521 during the 2008 arizona diamondbacks season</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 2008 arizona diamondbacks season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select the 'attendance' column from the table.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>date</td>34<td>opponent</td>35<td>score</td>36<td>loss</td>37<td>attendance</td>38<td>record</td>39</tr>40<tr>41<td>9999-09-01</td>42<td>cardinals</td>43<td>8 - 6</td>44<td>mcclellan (2 - 7)</td>45<td>35075</td>46<td>70 - 67</td>47</tr>48<tr>49<td>9999-09-02</td>50<td>cardinals</td>51<td>8 - 2</td>52<td>petit (3 - 4)</td>53<td>27568</td>54<td>70 - 68</td>55</tr>56<tr>57<td>9999-09-03</td>58<td>cardinals</td>59<td>4 - 3</td>60<td>perez (2 - 2)</td>61<td>24350</td>62<td>71 - 68</td>63</tr>64<tr>65<td>9999-09-05</td>66<td>dodgers</td>67<td>7 - 0</td>68<td>haren (14 - 8)</td>69<td>52270</td>70<td>71 - 69</td>71</tr>72<tr>73<td>9999-09-06</td>74<td>dodgers</td>75<td>7 - 2</td>76<td>webb (19 - 7)</td>77<td>47543</td>78<td>71 - 70</td>79</tr>80<tr>81<td>9999-09-07</td>82<td>dodgers</td>83<td>5 - 3</td>84<td>rauch (4 - 6)</td>85<td>54137</td>86<td>71 - 71</td>87</tr>88<tr>89<td>9999-09-08</td>90<td>giants</td>91<td>6 - 2</td>92<td>petit (3 - 5)</td>93<td>30252</td>94<td>71 - 72</td>95</tr>96<tr>97<td>9999-09-09</td>98<td>giants</td>99<td>5 - 4</td>100<td>rauch (4 - 7)</td>101<td>30518</td>102<td>71 - 73</td>103</tr>104<tr>105<td>9999-09-10</td>106<td>giants</td>107<td>4 - 3</td>108<td>lyon (2 - 5)</td>109<td>30992</td>110<td>71 - 74</td>111</tr>112<tr>113<td>9999-09-12</td>114<td>reds</td>115<td>3 - 2</td>116<td>harang (4 - 16)</td>117<td>29046</td>118<td>72 - 74</td>119</tr>120<tr>121<td>9999-09-13</td>122<td>reds</td>123<td>3 - 2 (10)</td>124<td>peña (1 - 2)</td>125<td>45075</td>126<td>72 - 75</td>127</tr>128<tr>129<td>9999-09-14</td>130<td>reds</td>131<td>2 - 1 (10)</td>132<td>rauch (4 - 8)</td>133<td>27297</td>134<td>72 - 76</td>135</tr>136<tr>137<td>9999-09-15</td>138<td>giants</td>139<td>3 - 1</td>140<td>hennessey (1 - 2)</td>141<td>25969</td>142<td>73 - 76</td>143</tr>144<tr>145<td>9999-09-16</td>146<td>giants</td>147<td>2 - 0</td>148<td>cain (8 - 13)</td>149<td>33195</td>150<td>74 - 76</td>151</tr>152<tr>153<td>9999-09-17</td>154<td>giants</td>155<td>7 - 6</td>156<td>sánchez (9 - 11)</td>157<td>22616</td>158<td>75 - 76</td>159</tr>160<tr>161<td>9999-09-18</td>162<td>giants</td>163<td>3 - 2</td>164<td>lincecum (17 - 4)</td>165<td>34323</td>166<td>76 - 76</td>167</tr>168<tr>169<td>9999-09-19</td>170<td>rockies</td>171<td>3 - 2</td>172<td>scherzer (0 - 3)</td>173<td>43137</td>174<td>76 - 77</td>175</tr>176<tr>177<td>9999-09-20</td>178<td>rockies</td>179<td>5 - 3</td>180<td>fuentes (1 - 5)</td>181<td>38283</td>182<td>77 - 77</td>183</tr>184<tr>185<td>9999-09-21</td>186<td>rockies</td>187<td>13 - 4</td>188<td>reynolds (2 - 8)</td>189<td>32915</td>190<td>78 - 77</td>191</tr>192<tr>193<td>9999-09-22</td>194<td>cardinals</td>195<td>4 - 2</td>196<td>wellemeyer (12 - 9)</td>197<td>40349</td>198<td>79 - 77</td>199</tr>200<tr>201<td>9999-09-23</td>202<td>cardinals</td>203<td>7 - 4</td>204<td>johnson (10 - 10)</td>205<td>40013</td>206<td>79 - 78</td>207</tr>208<tr>209<td>9999-09-24</td>210<td>cardinals</td>211<td>4 - 2</td>212<td>scherzer (0 - 4)</td>213<td>40029</td>214<td>79 - 79</td>215</tr>216<tr>217<td>9999-09-25</td>218<td>cardinals</td>219<td>12 - 3</td>220<td>rosales (1 - 1)</td>221<td>40502</td>222<td>79 - 80</td>223</tr>224<tr>225<td>9999-09-26</td>226<td>rockies</td>227<td>6 - 4</td>228<td>grilli (3 - 3)</td>229<td>34950</td>230<td>80 - 80</td>231</tr>232<tr>233<td>9999-09-27</td>234<td>rockies</td>235<td>6 - 4</td>236<td>corpas (3 - 4)</td>237<td>33234</td>238<td>81 - 80</td>239</tr>240<tr>241<td>9999-09-28</td>242<td>rockies</td>243<td>2 - 1</td>244<td>vizcaíno (1 - 2)</td>245<td>35908</td>246<td>82 - 80</td>247</tr>248</table>249</div>250<hr>251<div class="step">252<div class="step-title">Step 2: Calculate the average of the 'attendance' column and add it as a new column 'avg_attendance' to the existing table.</div>253<div id="step-0" class="content">254<table>255<tr>256<td>attendance</td>257</tr>258<tr>259<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">35075</span></td>260</tr>261<tr>262<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27568</span></td>263</tr>264<tr>265<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">24350</span></td>266</tr>267<tr>268<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">52270</span></td>269</tr>270<tr>271<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">47543</span></td>272</tr>273<tr>274<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">54137</span></td>275</tr>276<tr>277<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30252</span></td>278</tr>279<tr>280<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30518</span></td>281</tr>282<tr>283<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30992</span></td>284</tr>285<tr>286<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">29046</span></td>287</tr>288<tr>289<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">45075</span></td>290</tr>291<tr>292<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27297</span></td>293</tr>294<tr>295<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">25969</span></td>296</tr>297<tr>298<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">33195</span></td>299</tr>300<tr>301<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22616</span></td>302</tr>303<tr>304<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">34323</span></td>305</tr>306<tr>307<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">43137</span></td>308</tr>309<tr>310<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">38283</span></td>311</tr>312<tr>313<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">32915</span></td>314</tr>315<tr>316<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">40349</span></td>317</tr>318<tr>319<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">40013</span></td>320</tr>321<tr>322<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">40029</span></td>323</tr>324<tr>325<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">40502</span></td>326</tr>327<tr>328<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">34950</span></td>329</tr>330<tr>331<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">33234</span></td>332</tr>333<tr>334<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">35908</span></td>335</tr>336</table>337</div>338</div>339<hr>340<div class="step">341<div class="step-title">Step 3: Select rows where 'avg_attendance' is 31,521.</div>342<div id="step-1" class="content">343<table>344<tr>345<td>attendance</td>346<td>avg_attendance</td>347</tr>348<tr>349<td>35075.0</td>350<td>35751.769230769234</td>351</tr>352</table>353</div>354</div>355<hr>356<div class="step">357<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to the total number of rows in the table (26), otherwise return FALSE.</div>358<div id="step-2" class="content">359<table>360<tr>361<td>attendance</td>362<td>avg_attendance</td>363</tr>364</table>365</div>366</div>367<hr>368<div class="step">369<div class="step-title">Final output table:</div>370<div id="step-3" class="content">371<table>372<tr>373<td>verification_result</td>374</tr>375<tr>376<td>FALSE</td>377</tr>378</table>379</div>380</div>381<hr>382<div class="step"><h3><span class="false">Prediction: FALSE </span></h3>383<h3>Ground-truth:</span> TRUE</h3></div>384</body></html>385