Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

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