Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1130.html412 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 player with the highest number of league goals is ian robins</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 1979 - 80 huddersfield town f.c. season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'position' is 'fw'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>name</td>34<td>position</td>35<td>league_apps</td>36<td>league_goals</td>37<td>fa_cup_apps</td>38<td>fa_cup_goals</td>39<td>league_cup_apps</td>40<td>league_cup_goals</td>41<td>total_apps</td>42<td>total_goals</td>43</tr>44<tr>45<td>jim branagan</td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>47<td>0</td>48<td>0</td>49<td>0</td>50<td>0</td>51<td>0 (1)</td>52<td>0</td>53<td>0 (1)</td>54<td>0</td>55</tr>56<tr>57<td>malcolm brown</td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>59<td>46</td>60<td>2</td>61<td>2</td>62<td>0</td>63<td>4</td>64<td>1</td>65<td>52</td>66<td>3</td>67</tr>68<tr>69<td>david cowling</td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mf</span></td>71<td>39 (1)</td>72<td>10</td>73<td>1</td>74<td>0</td>75<td>4</td>76<td>0</td>77<td>44 (1)</td>78<td>10</td>79</tr>80<tr>81<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">peter fletcher</span></td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30 (8)</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">17</span></td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>86<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">35 (8)</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18</span></td>91</tr>92<tr>93<td>keith hanvey</td>94<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>95<td>33</td>96<td>2</td>97<td>0</td>98<td>0</td>99<td>4</td>100<td>0</td>101<td>39</td>102<td>2</td>103</tr>104<tr>105<td>peter hart</td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mf</span></td>107<td>46</td>108<td>4</td>109<td>1</td>110<td>1</td>111<td>4</td>112<td>0</td>113<td>51</td>114<td>5</td>115</tr>116<tr>117<td>ian holmes</td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mf</span></td>119<td>6 (4)</td>120<td>3</td>121<td>0</td>122<td>0</td>123<td>4</td>124<td>1</td>125<td>10 (4)</td>126<td>4</td>127</tr>128<tr>129<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">steve kindon</span></td>130<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22 (1)</span></td>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>136<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>137<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22 (1)</span></td>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>139</tr>140<tr>141<td>mick laverick</td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mf</span></td>143<td>45</td>144<td>4</td>145<td>2</td>146<td>0</td>147<td>4</td>148<td>0</td>149<td>51</td>150<td>4</td>151</tr>152<tr>153<td>bernard purdie</td>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>155<td>18 (4)</td>156<td>0</td>157<td>2</td>158<td>0</td>159<td>0</td>160<td>0</td>161<td>20 (4)</td>162<td>0</td>163</tr>164<tr>165<td>andy rankin</td>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gk</span></td>167<td>24</td>168<td>0</td>169<td>0</td>170<td>0</td>171<td>0</td>172<td>0</td>173<td>24</td>174<td>0</td>175</tr>176<tr>177<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ian robins</span></td>178<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>179<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">45</span></td>180<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">25</span></td>181<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>182<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>183<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>184<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>185<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">51</span></td>186<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27</span></td>187</tr>188<tr>189<td>fred robinson</td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>191<td>30</td>192<td>1</td>193<td>2</td>194<td>0</td>195<td>4</td>196<td>0</td>197<td>36</td>198<td>1</td>199</tr>200<tr>201<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tommy smith</span></td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>203<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>206<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>207<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>208<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>209<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>211</tr>212<tr>213<td>brian stanton</td>214<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mf</span></td>215<td>41</td>216<td>9</td>217<td>2</td>218<td>0</td>219<td>0</td>220<td>0</td>221<td>43</td>222<td>9</td>223</tr>224<tr>225<td>alan starling</td>226<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gk</span></td>227<td>22</td>228<td>0</td>229<td>2</td>230<td>0</td>231<td>4</td>232<td>0</td>233<td>28</td>234<td>0</td>235</tr>236<tr>237<td>dave sutton</td>238<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>239<td>46</td>240<td>6</td>241<td>2</td>242<td>0</td>243<td>4</td>244<td>1</td>245<td>52</td>246<td>7</td>247</tr>248<tr>249<td>chris topping</td>250<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">df</span></td>251<td>13</td>252<td>0</td>253<td>2</td>254<td>0</td>255<td>0</td>256<td>0</td>257<td>15</td>258<td>0</td>259</tr>260</table>261</div>262<hr>263<div class="step">264<div class="step-title">Step 2: Cast to INT and order the table by 'league_goals' in descending order and select the first row.</div>265<div id="step-0" class="content">266<table>267<tr>268<td>name</td>269<td>position</td>270<td>league_apps</td>271<td>league_goals</td>272<td>fa_cup_apps</td>273<td>fa_cup_goals</td>274<td>league_cup_apps</td>275<td>league_cup_goals</td>276<td>total_apps</td>277<td>total_goals</td>278</tr>279<tr>280<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">peter fletcher</span></td>281<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fw</span></td>282<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30 (8)</span></td>283<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">17</span></td>284<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>285<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>286<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>287<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>288<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">35 (8)</span></td>289<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18</span></td>290</tr>291<tr>292<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">steve kindon</span></td>293<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fw</span></td>294<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22 (1)</span></td>295<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>296<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>297<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>298<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>299<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>300<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22 (1)</span></td>301<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>302</tr>303<tr>304<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ian robins</span></td>305<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>306<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">45</span></td>307<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">25</span></td>308<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>309<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>310<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>311<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>312<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">51</span></td>313<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">27</span></td>314</tr>315<tr>316<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tommy smith</span></td>317<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fw</span></td>318<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>319<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>320<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>321<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>322<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>323<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>324<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>325<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>326</tr>327</table>328</div>329</div>330<hr>331<div class="step">332<div class="step-title">Step 3: Select rows where 'name' is 'ian robins'.</div>333<div id="step-1" class="content">334<table>335<tr>336<td>name</td>337<td>position</td>338<td>league_apps</td>339<td>league_goals</td>340<td>fa_cup_apps</td>341<td>fa_cup_goals</td>342<td>league_cup_apps</td>343<td>league_cup_goals</td>344<td>total_apps</td>345<td>total_goals</td>346</tr>347<tr>348<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ian robins</span></td>349<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fw</span></td>350<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">45</span></td>351<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">25</span></td>352<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>353<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>354<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>355<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>356<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">51</span></td>357<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">27</span></td>358</tr>359</table>360</div>361</div>362<hr>363<div class="step">364<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>365<div id="step-2" class="content">366<table>367<tr>368<td>name</td>369<td>position</td>370<td>league_apps</td>371<td>league_goals</td>372<td>fa_cup_apps</td>373<td>fa_cup_goals</td>374<td>league_cup_apps</td>375<td>league_cup_goals</td>376<td>total_apps</td>377<td>total_goals</td>378</tr>379<tr>380<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">ian robins</span></td>381<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">fw</span></td>382<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">45</span></td>383<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">25</span></td>384<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>385<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>386<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>387<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>388<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">51</span></td>389<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">27</span></td>390</tr>391</table>392</div>393</div>394<hr>395<div class="step">396<div class="step-title">Final output table:</div>397<div id="step-3" class="content">398<table>399<tr>400<td>verification_result</td>401</tr>402<tr>403<td>TRUE</td>404</tr>405</table>406</div>407</div>408<hr>409<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>410<h3>Ground-truth:</span> TRUE</h3></div>411</body></html>412