Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-139.html316 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 nation of croatia won 3 medals all together , 2 of which were silver</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 2003 world taekwondo championships</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'nation' is 'croatia'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>rank</td>34<td>nation</td>35<td>gold</td>36<td>silver</td>37<td>bronze</td>38<td>total</td>39</tr>40<tr>41<td>1</td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">south korea</span></td>43<td>8</td>44<td>0</td>45<td>2</td>46<td>10</td>47</tr>48<tr>49<td>2</td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iran</span></td>51<td>2</td>52<td>2</td>53<td>1</td>54<td>5</td>55</tr>56<tr>57<td>3</td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">chinese taipei</span></td>59<td>2</td>60<td>0</td>61<td>1</td>62<td>3</td>63</tr>64<tr>65<td>4</td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">united states</span></td>67<td>1</td>68<td>2</td>69<td>3</td>70<td>6</td>71</tr>72<tr>73<td>5</td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spain</span></td>75<td>1</td>76<td>1</td>77<td>3</td>78<td>5</td>79</tr>80<tr>81<td>6</td>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">china</span></td>83<td>1</td>84<td>1</td>85<td>1</td>86<td>3</td>87</tr>88<tr>89<td>7</td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">greece</span></td>91<td>1</td>92<td>0</td>93<td>2</td>94<td>3</td>95</tr>96<tr>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">croatia</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2</span></td>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>102<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>103</tr>104<tr>105<td>9</td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">france</span></td>107<td>0</td>108<td>2</td>109<td>0</td>110<td>2</td>111</tr>112<tr>113<td>10</td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">germany</span></td>115<td>0</td>116<td>1</td>117<td>2</td>118<td>3</td>119</tr>120<tr>121<td>11</td>122<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">canada</span></td>123<td>0</td>124<td>1</td>125<td>1</td>126<td>2</td>127</tr>128<tr>129<td>11</td>130<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">denmark</span></td>131<td>0</td>132<td>1</td>133<td>1</td>134<td>1</td>135</tr>136<tr>137<td>13</td>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">cuba</span></td>139<td>0</td>140<td>1</td>141<td>0</td>142<td>1</td>143</tr>144<tr>145<td>13</td>146<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">great britain</span></td>147<td>0</td>148<td>1</td>149<td>0</td>150<td>1</td>151</tr>152<tr>153<td>13</td>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mexico</span></td>155<td>0</td>156<td>1</td>157<td>0</td>158<td>1</td>159</tr>160<tr>161<td>16</td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">azerbaijan</span></td>163<td>0</td>164<td>0</td>165<td>4</td>166<td>4</td>167</tr>168<tr>169<td>17</td>170<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">thailand</span></td>171<td>0</td>172<td>0</td>173<td>2</td>174<td>2</td>175</tr>176<tr>177<td>18</td>178<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">australia</span></td>179<td>0</td>180<td>0</td>181<td>1</td>182<td>1</td>183</tr>184<tr>185<td>18</td>186<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">austria</span></td>187<td>0</td>188<td>0</td>189<td>1</td>190<td>1</td>191</tr>192<tr>193<td>18</td>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">belarus</span></td>195<td>0</td>196<td>0</td>197<td>1</td>198<td>1</td>199</tr>200<tr>201<td>18</td>202<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kazakhstan</span></td>203<td>0</td>204<td>0</td>205<td>1</td>206<td>1</td>207</tr>208<tr>209<td>18</td>210<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">morocco</span></td>211<td>0</td>212<td>0</td>213<td>1</td>214<td>1</td>215</tr>216<tr>217<td>18</td>218<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">philippines</span></td>219<td>0</td>220<td>0</td>221<td>1</td>222<td>1</td>223</tr>224<tr>225<td>18</td>226<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">turkey</span></td>227<td>0</td>228<td>0</td>229<td>1</td>230<td>1</td>231</tr>232<tr>233<td>18</td>234<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">venezuela</span></td>235<td>0</td>236<td>0</td>237<td>1</td>238<td>1</td>239</tr>240<tr>241<td>total</td>242<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">total</span></td>243<td>16</td>244<td>16</td>245<td>32</td>246<td>64</td>247</tr>248</table>249</div>250<hr>251<div class="step">252<div class="step-title">Step 2: Select rows where 'silver' is 2.</div>253<div id="step-0" class="content">254<table>255<tr>256<td>rank</td>257<td>nation</td>258<td>gold</td>259<td>silver</td>260<td>bronze</td>261<td>total</td>262</tr>263<tr>264<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8</span></td>265<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">croatia</span></td>266<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>267<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>268<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1</span></td>269<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>270</tr>271</table>272</div>273</div>274<hr>275<div class="step">276<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>277<div id="step-1" class="content">278<table>279<tr>280<td>rank</td>281<td>nation</td>282<td>gold</td>283<td>silver</td>284<td>bronze</td>285<td>total</td>286</tr>287<tr>288<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">8</span></td>289<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">croatia</span></td>290<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>291<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2</span></td>292<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1</span></td>293<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">3</span></td>294</tr>295</table>296</div>297</div>298<hr>299<div class="step">300<div class="step-title">Final output table:</div>301<div id="step-2" class="content">302<table>303<tr>304<td>verification_result</td>305</tr>306<tr>307<td>TRUE</td>308</tr>309</table>310</div>311</div>312<hr>313<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>314<h3>Ground-truth:</span> TRUE</h3></div>315</body></html>316