Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1710.html311 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> for the class vesuvius with wheel arrangement 2 - 4 - 0 , the quantity made was 32 and quantity preserved was 0</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: locomotives of the southern railway</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'class' is 'vesuvius' and 'wheel_arrangement' is '2 - 4 - 0'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>class</td>34<td>wheel_arrangement</td>35<td>manufacturer</td>36<td>year_made</td>37<td>quantity_made</td>38<td>quantity_preserved</td>39<td>year__s__withdrawn</td>40</tr>41<tr>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">joseph hamilton beattie (1850 - 1871)</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">joseph hamilton beattie (1850 - 1871)</span></td>44<td>joseph hamilton beattie (1850 - 1871)</td>45<td>joseph hamilton beattie (1850 - 1871)</td>46<td>joseph hamilton beattie (1850 - 1871)</td>47<td>joseph hamilton beattie (1850 - 1871)</td>48<td>joseph hamilton beattie (1850 - 1871)</td>49</tr>50<tr>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hercules</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>53<td>nine elms works</td>54<td>1851 - 1854</td>55<td>15</td>56<td>0</td>57<td>1875 - 1884</td>58</tr>59<tr>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tartar</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 2 - 2wt</span></td>62<td>sharp brothers</td>63<td>1852</td>64<td>6</td>65<td>0</td>66<td>1871 - 1874</td>67</tr>68<tr>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sussex</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 2 - 2wt</span></td>71<td>nine elms works</td>72<td>1852</td>73<td>8</td>74<td>0</td>75<td>1871 - 1876</td>76</tr>77<tr>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">canute</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 2 - 2</span></td>80<td>nine elms works</td>81<td>1855 - 1859</td>82<td>12</td>83<td>0</td>84<td>1875 - 1885</td>85</tr>86<tr>87<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">saxon</span></td>88<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>89<td>nine elms works</td>90<td>1855 - 1857</td>91<td>12</td>92<td>0</td>93<td>1877 - 1885</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">chaplin</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 2 - 2wt</span></td>98<td>nine elms works</td>99<td>1856</td>100<td>3</td>101<td>0</td>102<td>1876 - 1877</td>103</tr>104<tr>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">minerva</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0wt</span></td>107<td>nine elms works</td>108<td>1856</td>109<td>3</td>110<td>0</td>111<td>1874 - 1883</td>112</tr>113<tr>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nelson</span></td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0wt</span></td>116<td>nine elms works</td>117<td>1858</td>118<td>3</td>119<td>0</td>120<td>1882 - 1885</td>121</tr>122<tr>123<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nile</span></td>124<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0wt</span></td>125<td>nine elms works</td>126<td>1859</td>127<td>3</td>128<td>0</td>129<td>1882</td>130</tr>131<tr>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tweed</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>134<td>nine elms works</td>135<td>1858 - 1859</td>136<td>6</td>137<td>0</td>138<td>1877 - 1879</td>139</tr>140<tr>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">undine</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>143<td>nine elms works</td>144<td>1859 - 60</td>145<td>12</td>146<td>0</td>147<td>1884 - 1886</td>148</tr>149<tr>150<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">clyde</span></td>151<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>152<td>nine elms works</td>153<td>1859 - 1868</td>154<td>13</td>155<td>0</td>156<td>1883 - 1899</td>157</tr>158<tr>159<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">gem</span></td>160<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>161<td>nine elms works</td>162<td>1862 - 1863</td>163<td>6</td>164<td>0</td>165<td>1884 - 1885</td>166</tr>167<tr>168<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">eagle</span></td>169<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>170<td>nine elms works</td>171<td>1862</td>172<td>3</td>173<td>0</td>174<td>1885 - 1886</td>175</tr>176<tr>177<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">falcon</span></td>178<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>179<td>nine elms works</td>180<td>1863 - 1867</td>181<td>17</td>182<td>0</td>183<td>1882 - 1898</td>184</tr>185<tr>186<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">177</span></td>187<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0wt</span></td>188<td>beyer , peacock & co (82) nine elms works (3)</td>189<td>1863 - 1875</td>190<td>85</td>191<td>2</td>192<td>1886 - 1899 , 1962</td>193</tr>194<tr>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">lion</span></td>196<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 6 - 0</span></td>197<td>nine elms works</td>198<td>1863 - 1873</td>199<td>38</td>200<td>0</td>201<td>1886 - 1900</td>202</tr>203<tr>204<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">volcano</span></td>205<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>206<td>nine elms works</td>207<td>1866 - 1873</td>208<td>18</td>209<td>0</td>210<td>1886 - 1897</td>211</tr>212<tr>213<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">221</span></td>214<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0 - 6 - 0</span></td>215<td>beyer , peacock & co</td>216<td>1866 - 1873</td>217<td>24</td>218<td>0</td>219<td>1891 - 1924</td>220</tr>221<tr>222<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">231</span></td>223<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>224<td>beyer , peacock & co</td>225<td>1866</td>226<td>6</td>227<td>0</td>228<td>1892 - 1899</td>229</tr>230<tr>231<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">vesuvius</span></td>232<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2 - 4 - 0</span></td>233<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nine elms works</span></td>234<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1869 - 1875</span></td>235<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">32</span></td>236<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">0</span></td>237<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1893 - 1899</span></td>238</tr>239</table>240</div>241<hr>242<div class="step">243<div class="step-title">Step 2: Select rows where 'quantity_made' is 32 and 'quantity_preserved' is 0.</div>244<div id="step-0" class="content">245<table>246<tr>247<td>class</td>248<td>wheel_arrangement</td>249<td>manufacturer</td>250<td>year_made</td>251<td>quantity_made</td>252<td>quantity_preserved</td>253<td>year__s__withdrawn</td>254</tr>255<tr>256<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">vesuvius</span></td>257<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2 - 4 - 0</span></td>258<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nine elms works</span></td>259<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1869 - 1875</span></td>260<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">32</span></td>261<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>262<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1893 - 1899</span></td>263</tr>264</table>265</div>266</div>267<hr>268<div class="step">269<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>270<div id="step-1" class="content">271<table>272<tr>273<td>class</td>274<td>wheel_arrangement</td>275<td>manufacturer</td>276<td>year_made</td>277<td>quantity_made</td>278<td>quantity_preserved</td>279<td>year__s__withdrawn</td>280</tr>281<tr>282<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">vesuvius</span></td>283<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2 - 4 - 0</span></td>284<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">nine elms works</span></td>285<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1869 - 1875</span></td>286<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">32</span></td>287<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">0</span></td>288<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1893 - 1899</span></td>289</tr>290</table>291</div>292</div>293<hr>294<div class="step">295<div class="step-title">Final output table:</div>296<div id="step-2" class="content">297<table>298<tr>299<td>verification_result</td>300</tr>301<tr>302<td>TRUE</td>303</tr>304</table>305</div>306</div>307<hr>308<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>309<h3>Ground-truth:</span> TRUE</h3></div>310</body></html>311