Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-433.html383 linesDownload Raw Back to TN
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> there are more fords then any other with alfa romeo and matra tying for the least</h3>25<h3>Ground-truth:</span> FALSE</h3>26<h3>Input Table: 1971 south african grand prix</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'constructor' is 'ford'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>driver</td>34<td>constructor</td>35<td>laps</td>36<td>time___retired</td>37<td>grid</td>38</tr>39<tr>40<td>mario andretti</td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ferrari</span></td>42<td>79</td>43<td>1:47:35.5</td>44<td>4</td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jackie stewart</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">tyrrell - ford</span></td>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">79</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 20.9</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>52</tr>53<tr>54<td>clay regazzoni</td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ferrari</span></td>56<td>79</td>57<td>+ 31.4</td>58<td>3</td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">reine wisell</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">lotus - ford</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">79</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 1:09.4</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14</span></td>66</tr>67<tr>68<td>chris amon</td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">matra</span></td>70<td>78</td>71<td>+ 1 lap</td>72<td>2</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">denny hulme</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mclaren - ford</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">78</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 1 lap</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7</span></td>80</tr>81<tr>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brian redman</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">surtees - ford</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">78</span></td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 1 lap</span></td>86<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">17</span></td>87</tr>88<tr>89<td>jacky ickx</td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ferrari</span></td>91<td>78</td>92<td>+ 1 lap</td>93<td>8</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">graham hill</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">brabham - ford</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">77</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2 laps</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">19</span></td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ronnie peterson</span></td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">march - ford</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">77</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2 laps</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13</span></td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">henri pescarolo</span></td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">march - ford</span></td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">77</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2 laps</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">18</span></td>115</tr>116<tr>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rolf stommelen</span></td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">surtees - ford</span></td>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">77</span></td>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2 laps</span></td>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">15</span></td>122</tr>123<tr>124<td>andrea de adamich</td>125<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">march - alfa romeo</span></td>126<td>75</td>127<td>+ 4 laps</td>128<td>22</td>129</tr>130<tr>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">emerson fittipaldi</span></td>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">lotus - ford</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">58</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">engine</span></td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>136</tr>137<tr>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">john surtees</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">surtees - ford</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">56</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gearbox</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">6</span></td>143</tr>144<tr>145<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">françois cevert</span></td>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">tyrrell - ford</span></td>147<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">45</span></td>148<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">accident</span></td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">9</span></td>150</tr>151<tr>152<td>howden ganley</td>153<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brm</span></td>154<td>42</td>155<td>physical</td>156<td>24</td>157</tr>158<tr>159<td>pedro rodríguez</td>160<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brm</span></td>161<td>33</td>162<td>overheating</td>163<td>10</td>164</tr>165<tr>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dave charlton</span></td>167<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">brabham - ford</span></td>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">31</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">engine</span></td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">16</span></td>171</tr>172<tr>173<td>jo siffert</td>174<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brm</span></td>175<td>31</td>176<td>overheating</td>177<td>12</td>178</tr>179<tr>180<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">john love</span></td>181<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">march - ford</span></td>182<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">30</span></td>183<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">differential</span></td>184<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">21</span></td>185</tr>186<tr>187<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jackie pretorius</span></td>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">brabham - ford</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">22</span></td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">engine</span></td>191<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">20</span></td>192</tr>193<tr>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">peter gethin</span></td>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mclaren - ford</span></td>196<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">7</span></td>197<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">fuel leak</span></td>198<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">11</span></td>199</tr>200<tr>201<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jo bonnier</span></td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mclaren - ford</span></td>203<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">suspension</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">23</span></td>206</tr>207<tr>208<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">alex soler - roig</span></td>209<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">march - ford</span></td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5</span></td>211<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">engine</span></td>212<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">25</span></td>213</tr>214</table>215</div>216<hr>217<div class="step">218<div class="step-title">Step 2: Select rows where 'constructor' is 'alfa romeo' or 'matra'.</div>219<div id="step-0" class="content">220<table>221<tr>222<td>driver</td>223<td>constructor</td>224<td>laps</td>225<td>time___retired</td>226<td>grid</td>227</tr>228<tr>229<td>jackie stewart</td>230<td>tyrrell - ford</td>231<td>79</td>232<td>+ 20.9</td>233<td>1</td>234</tr>235<tr>236<td>reine wisell</td>237<td>lotus - ford</td>238<td>79</td>239<td>+ 1:09.4</td>240<td>14</td>241</tr>242<tr>243<td>denny hulme</td>244<td>mclaren - ford</td>245<td>78</td>246<td>+ 1 lap</td>247<td>7</td>248</tr>249<tr>250<td>brian redman</td>251<td>surtees - ford</td>252<td>78</td>253<td>+ 1 lap</td>254<td>17</td>255</tr>256<tr>257<td>graham hill</td>258<td>brabham - ford</td>259<td>77</td>260<td>+ 2 laps</td>261<td>19</td>262</tr>263<tr>264<td>ronnie peterson</td>265<td>march - ford</td>266<td>77</td>267<td>+ 2 laps</td>268<td>13</td>269</tr>270<tr>271<td>henri pescarolo</td>272<td>march - ford</td>273<td>77</td>274<td>+ 2 laps</td>275<td>18</td>276</tr>277<tr>278<td>rolf stommelen</td>279<td>surtees - ford</td>280<td>77</td>281<td>+ 2 laps</td>282<td>15</td>283</tr>284<tr>285<td>emerson fittipaldi</td>286<td>lotus - ford</td>287<td>58</td>288<td>engine</td>289<td>5</td>290</tr>291<tr>292<td>john surtees</td>293<td>surtees - ford</td>294<td>56</td>295<td>gearbox</td>296<td>6</td>297</tr>298<tr>299<td>françois cevert</td>300<td>tyrrell - ford</td>301<td>45</td>302<td>accident</td>303<td>9</td>304</tr>305<tr>306<td>dave charlton</td>307<td>brabham - ford</td>308<td>31</td>309<td>engine</td>310<td>16</td>311</tr>312<tr>313<td>john love</td>314<td>march - ford</td>315<td>30</td>316<td>differential</td>317<td>21</td>318</tr>319<tr>320<td>jackie pretorius</td>321<td>brabham - ford</td>322<td>22</td>323<td>engine</td>324<td>20</td>325</tr>326<tr>327<td>peter gethin</td>328<td>mclaren - ford</td>329<td>7</td>330<td>fuel leak</td>331<td>11</td>332</tr>333<tr>334<td>jo bonnier</td>335<td>mclaren - ford</td>336<td>5</td>337<td>suspension</td>338<td>23</td>339</tr>340<tr>341<td>alex soler - roig</td>342<td>march - ford</td>343<td>5</td>344<td>engine</td>345<td>25</td>346</tr>347</table>348</div>349</div>350<hr>351<div class="step">352<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows for 'ford' is greater than the number of rows for 'alfa romeo' and 'matra', otherwise return FALSE.</div>353<div id="step-1" class="content">354<table>355<tr>356<td>driver</td>357<td>constructor</td>358<td>laps</td>359<td>time___retired</td>360<td>grid</td>361</tr>362</table>363</div>364</div>365<hr>366<div class="step">367<div class="step-title">Final output table:</div>368<div id="step-2" class="content">369<table>370<tr>371<td>verification_result</td>372</tr>373<tr>374<td>FALSE</td>375</tr>376</table>377</div>378</div>379<hr>380<div class="step"><h3><span class="true">Prediction: FALSE </span></h3>381<h3>Ground-truth:</span> FALSE</h3></div>382</body></html>383