Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1070.html255 linesDownload Raw Back to FN
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 buffalo bills lost more games than they won</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 1976 buffalo bills season</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where the 'result' column contains the substring 'w' (indicating a win).</div>30<div id="step-1" class="content">31<table>32<tr>33<td>week</td>34<td>date</td>35<td>opponent</td>36<td>result</td>37<td>attendance</td>38</tr>39<tr>40<td>1</td>41<td>1976-09-13</td>42<td>miami dolphins</td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 30 - 21</span></td>44<td>77683</td>45</tr>46<tr>47<td>2</td>48<td>1976-09-19</td>49<td>houston oilers</td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 13 - 3</span></td>51<td>61384</td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">3</span></td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1976-09-26</span></td>56<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tampa bay buccaneers</span></td>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">w 14 - 9</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">44505</span></td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1976-10-03</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kansas city chiefs</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">w 50 - 17</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">51909</span></td>66</tr>67<tr>68<td>5</td>69<td>1976-10-10</td>70<td>new york jets</td>71<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 17 - 14</span></td>72<td>59110</td>73</tr>74<tr>75<td>6</td>76<td>1976-10-17</td>77<td>baltimore colts</td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 31 - 13</span></td>79<td>71009</td>80</tr>81<tr>82<td>7</td>83<td>1976-10-24</td>84<td>new england patriots</td>85<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 26 - 22</span></td>86<td>45144</td>87</tr>88<tr>89<td>8</td>90<td>1976-10-31</td>91<td>new york jets</td>92<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 19 - 14</span></td>93<td>41285</td>94</tr>95<tr>96<td>9</td>97<td>1976-11-07</td>98<td>new england patriots</td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 20 - 10</span></td>100<td>61157</td>101</tr>102<tr>103<td>10</td>104<td>1976-11-15</td>105<td>dallas cowboys</td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 17 - 10</span></td>107<td>51799</td>108</tr>109<tr>110<td>11</td>111<td>1976-11-21</td>112<td>san diego chargers</td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 34 - 13</span></td>114<td>36539</td>115</tr>116<tr>117<td>12</td>118<td>1976-11-25</td>119<td>detroit lions</td>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 27 - 14</span></td>121<td>66875</td>122</tr>123<tr>124<td>13</td>125<td>1976-12-05</td>126<td>miami dolphins</td>127<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 45 - 27</span></td>128<td>43475</td>129</tr>130<tr>131<td>14</td>132<td>1976-12-12</td>133<td>baltimore colts</td>134<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">l 58 - 20</span></td>135<td>50451</td>136</tr>137</table>138</div>139<hr>140<div class="step">141<div class="step-title">Step 2: Count the number of rows from the previous step and add a column 'num_wins' to the existing table.</div>142<div id="step-0" class="content">143<table>144<tr>145<td>week</td>146<td>date</td>147<td>opponent</td>148<td>result</td>149<td>attendance</td>150</tr>151<tr>152<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">3</span></td>153<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1976-09-26</span></td>154<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">tampa bay buccaneers</span></td>155<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">w 14 - 9</span></td>156<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">44505</span></td>157</tr>158<tr>159<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>160<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1976-10-03</span></td>161<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">kansas city chiefs</span></td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">w 50 - 17</span></td>163<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">51909</span></td>164</tr>165</table>166</div>167</div>168<hr>169<div class="step">170<div class="step-title">Step 3: Select rows where the 'result' column contains the substring 'l' (indicating a loss).</div>171<div id="step-1" class="content">172<table>173<tr>174<td>week</td>175<td>date</td>176<td>opponent</td>177<td>result</td>178<td>attendance</td>179<td>num_wins</td>180</tr>181<tr>182<td>3</td>183<td>1976-09-26</td>184<td>tampa bay buccaneers</td>185<td>w 14 - 9</td>186<td>44505</td>187<td>2</td>188</tr>189<tr>190<td>4</td>191<td>1976-10-03</td>192<td>kansas city chiefs</td>193<td>w 50 - 17</td>194<td>51909</td>195<td>2</td>196</tr>197</table>198</div>199</div>200<hr>201<div class="step">202<div class="step-title">Step 4: Count the number of rows from the previous step and add a column 'num_losses' to the existing table.</div>203<div id="step-2" class="content">204<table>205<tr>206<td>week</td>207<td>date</td>208<td>opponent</td>209<td>result</td>210<td>attendance</td>211<td>num_wins</td>212</tr>213</table>214</div>215</div>216<hr>217<div class="step">218<div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the value of 'num_losses' is greater than the value of 'num_wins', otherwise return FALSE.</div>219<div id="step-3" class="content">220<table>221<tr>222<td>week</td>223<td>date</td>224<td>opponent</td>225<td>result</td>226<td>attendance</td>227<td>num_wins</td>228<td>num_losses</td>229</tr>230</table>231</div>232</div>233<hr>234<div class="step">235<div class="step-title">Final output table:</div>236<div id="step-4" class="content">237<table>238<tr>239<td>week</td>240<td>date</td>241<td>opponent</td>242<td>result</td>243<td>attendance</td>244<td>num_wins</td>245<td>num_losses</td>246<td>result</td>247</tr>248</table>249</div>250</div>251<hr>252<div class="step"><h3><span class="false">Prediction:  </span></h3>253<h3>Ground-truth:</span> TRUE</h3></div>254</body></html>255