Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1563.html369 linesDownload Raw Back to FP
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> na won the lifetime achievement only after the year 1998</h3>25<h3>Ground-truth:</span> FALSE</h3>26<h3>Input Table: ned kelly awards</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'lifetime_achievement' is not 'na'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>year</td>34<td>best_teenage___young_adult</td>35<td>reader__s_vote</td>36<td>best_non___fiction</td>37<td>lifetime_achievement</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1996-01-01</span></td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">jon cleary</span></td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1997-01-01</span></td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">how to write crime edited by marele day</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">alan yates (aka carter brown )</span></td>52</tr>53<tr>54<td>1998-01-01</td>55<td>na</td>56<td>na</td>57<td>na</td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1999-01-01</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">peter corris</span></td>66</tr>67<tr>68<td>2000-01-01</td>69<td>na</td>70<td>na</td>71<td>na</td>72<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2001-01-01</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bleeding hearts by lindy cameron</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">professor stephen knight</span></td>80</tr>81<tr>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2002-01-01</span></td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">blue murder by ken catran</span></td>84<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">apartment 255 by bunty avieson</span></td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>86<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">patrick gallagher</span></td>87</tr>88<tr>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2003-01-01</span></td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>92<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>93<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kerry greenwood</span></td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2004-01-01</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob bottom</span></td>101</tr>102<tr>103<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2005-01-01</span></td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">stuart coupe</span></td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2006-01-01</span></td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">andrew rule and john silvester</span></td>115</tr>116<tr>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2007-01-01</span></td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sandra harvey and lindsay simpson</span></td>122</tr>123<tr>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2008-01-01</span></td>125<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>126<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>127<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>128<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">marele day</span></td>129</tr>130<tr>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2009-01-01</span></td>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>135<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">shane maloney</span></td>136</tr>137<tr>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2010-01-01</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">peter doyle</span></td>143</tr>144<tr>145<td>2011-01-01</td>146<td>na</td>147<td>na</td>148<td>na</td>149<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>150</tr>151</table>152</div>153<hr>154<div class="step">155<div class="step-title">Step 2: Select rows where 'year' is after 1998.</div>156<div id="step-0" class="content">157<table>158<tr>159<td>year</td>160<td>best_teenage___young_adult</td>161<td>reader__s_vote</td>162<td>best_non___fiction</td>163<td>lifetime_achievement</td>164</tr>165<tr>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1996-01-01</span></td>167<td>na</td>168<td>na</td>169<td>na</td>170<td>jon cleary</td>171</tr>172<tr>173<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1997-01-01</span></td>174<td>na</td>175<td>na</td>176<td>how to write crime edited by marele day</td>177<td>alan yates (aka carter brown )</td>178</tr>179<tr>180<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1999-01-01</span></td>181<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>182<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>183<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>184<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">peter corris</span></td>185</tr>186<tr>187<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2001-01-01</span></td>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bleeding hearts by lindy cameron</span></td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>191<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">professor stephen knight</span></td>192</tr>193<tr>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2002-01-01</span></td>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">blue murder by ken catran</span></td>196<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">apartment 255 by bunty avieson</span></td>197<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>198<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">patrick gallagher</span></td>199</tr>200<tr>201<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-01-01</span></td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>203<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kerry greenwood</span></td>206</tr>207<tr>208<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2004-01-01</span></td>209<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>211<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>212<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">bob bottom</span></td>213</tr>214<tr>215<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2005-01-01</span></td>216<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>217<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>218<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>219<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">stuart coupe</span></td>220</tr>221<tr>222<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2006-01-01</span></td>223<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>224<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>225<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>226<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">andrew rule and john silvester</span></td>227</tr>228<tr>229<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-01-01</span></td>230<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>231<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>232<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>233<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sandra harvey and lindsay simpson</span></td>234</tr>235<tr>236<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2008-01-01</span></td>237<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>238<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>239<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>240<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">marele day</span></td>241</tr>242<tr>243<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2009-01-01</span></td>244<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>245<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>246<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>247<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">shane maloney</span></td>248</tr>249<tr>250<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2010-01-01</span></td>251<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>252<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>253<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">na</span></td>254<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">peter doyle</span></td>255</tr>256</table>257</div>258</div>259<hr>260<div class="step">261<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is greater than 0, otherwise return FALSE.</div>262<div id="step-1" class="content">263<table>264<tr>265<td>year</td>266<td>best_teenage___young_adult</td>267<td>reader__s_vote</td>268<td>best_non___fiction</td>269<td>lifetime_achievement</td>270</tr>271<tr>272<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1999-01-01</span></td>273<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>274<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>275<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>276<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">peter corris</span></td>277</tr>278<tr>279<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2001-01-01</span></td>280<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>281<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bleeding hearts by lindy cameron</span></td>282<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>283<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">professor stephen knight</span></td>284</tr>285<tr>286<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2002-01-01</span></td>287<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">blue murder by ken catran</span></td>288<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">apartment 255 by bunty avieson</span></td>289<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>290<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">patrick gallagher</span></td>291</tr>292<tr>293<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2003-01-01</span></td>294<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>295<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>296<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>297<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kerry greenwood</span></td>298</tr>299<tr>300<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2004-01-01</span></td>301<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>302<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>303<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>304<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob bottom</span></td>305</tr>306<tr>307<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2005-01-01</span></td>308<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>309<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>310<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>311<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">stuart coupe</span></td>312</tr>313<tr>314<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2006-01-01</span></td>315<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>316<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>317<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>318<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">andrew rule and john silvester</span></td>319</tr>320<tr>321<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2007-01-01</span></td>322<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>323<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>324<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>325<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">sandra harvey and lindsay simpson</span></td>326</tr>327<tr>328<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2008-01-01</span></td>329<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>330<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>331<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>332<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">marele day</span></td>333</tr>334<tr>335<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2009-01-01</span></td>336<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>337<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>338<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>339<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">shane maloney</span></td>340</tr>341<tr>342<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2010-01-01</span></td>343<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>344<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>345<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">na</span></td>346<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">peter doyle</span></td>347</tr>348</table>349</div>350</div>351<hr>352<div class="step">353<div class="step-title">Final output table:</div>354<div id="step-2" class="content">355<table>356<tr>357<td>verification_result</td>358</tr>359<tr>360<td>TRUE</td>361</tr>362</table>363</div>364</div>365<hr>366<div class="step"><h3><span class="false">Prediction: TRUE </span></h3>367<h3>Ground-truth:</span> FALSE</h3></div>368</body></html>369