luulinh90s/Tabular-LLM-Study-Preference-Ranking
0
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> bob beamon is the athlete who set his long jump record the longest time ago</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: long jump</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'athlete' is 'bob beamon'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>mark</td>34<td>wind</td>35<td>athlete</td>36<td>nationality</td>37<td>venue</td>38<td>date</td>39</tr>40<tr>41<td>8.95 m (29ft4¼in)</td>42<td>0.3</td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mike powell</span></td>44<td>united states</td>45<td>tokyo</td>46<td>1991-08-30</td>47</tr>48<tr>49<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">8.90 m (29ft2¼in) a</span></td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">2.0</span></td>51<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob beamon</span></td>52<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">united states</span></td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mexico city</span></td>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1968-10-18</span></td>55</tr>56<tr>57<td>8.87 m (29ft1in)</td>58<td>0.2</td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">carl lewis</span></td>60<td>united states</td>61<td>tokyo</td>62<td>1991-08-30</td>63</tr>64<tr>65<td>8.86 m (29ft0¾in) a</td>66<td>1.9</td>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">robert emmiyan</span></td>68<td>soviet union</td>69<td>tsakhkadzor</td>70<td>1987-05-22</td>71</tr>72<tr>73<td>8.74 m (28ft8in)</td>74<td>1.4</td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">larry myricks</span></td>76<td>united states</td>77<td>indianapolis</td>78<td>1988-07-18</td>79</tr>80<tr>81<td>8.74 m (28ft8in) a</td>82<td>2.0</td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">erick walder</span></td>84<td>united states</td>85<td>el paso</td>86<td>1994-04-02</td>87</tr>88<tr>89<td>8.74 m (28ft8in)</td>90<td>1.2</td>91<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">dwight phillips</span></td>92<td>united states</td>93<td>eugene</td>94<td>2009-06-07</td>95</tr>96<tr>97<td>8.73 m (28ft7½in)</td>98<td>1.2</td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">irving saladino</span></td>100<td>panama</td>101<td>hengelo</td>102<td>2008-05-24</td>103</tr>104<tr>105<td>8.71 m (28ft6¾in)</td>106<td>1.9</td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">iván pedroso</span></td>108<td>cuba</td>109<td>salamanca</td>110<td>1995-07-18</td>111</tr>112<tr>113<td>8.66 m (28ft4¾in)</td>114<td>1.6</td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">loúis tsátoumas</span></td>116<td>greece</td>117<td>kalamáta</td>118<td>2007-06-02</td>119</tr>120</table>121</div>122<hr>123<div class="step">124<div class="step-title">Step 2: Extract the numerical year from the 'date' column to add column 'year' to existing table.</div>125<div id="step-0" class="content">126<table>127<tr>128<td>mark</td>129<td>wind</td>130<td>athlete</td>131<td>nationality</td>132<td>venue</td>133<td>date</td>134</tr>135<tr>136<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">8.90 m (29ft2¼in) a</span></td>137<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2.0</span></td>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob beamon</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">united states</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mexico city</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968-10-18</span></td>142</tr>143</table>144</div>145</div>146<hr>147<div class="step">148<div class="step-title">Step 3: Cast to INT and order the table by 'year' in ascending order and select the first row.</div>149<div id="step-1" class="content">150<table>151<tr>152<td>mark</td>153<td>wind</td>154<td>athlete</td>155<td>nationality</td>156<td>venue</td>157<td>date</td>158<td>year</td>159</tr>160<tr>161<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">8.90 m (29ft2¼in) a</span></td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2.0</span></td>163<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob beamon</span></td>164<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">united states</span></td>165<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mexico city</span></td>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968-10-18</span></td>167<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968</span></td>168</tr>169</table>170</div>171</div>172<hr>173<div class="step">174<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>175<div id="step-2" class="content">176<table>177<tr>178<td>mark</td>179<td>wind</td>180<td>athlete</td>181<td>nationality</td>182<td>venue</td>183<td>date</td>184<td>year</td>185<td>int_year</td>186</tr>187<tr>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">8.90 m (29ft2¼in) a</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">2.0</span></td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">bob beamon</span></td>191<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">united states</span></td>192<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">mexico city</span></td>193<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968-10-18</span></td>194<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968</span></td>195<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1968</span></td>196</tr>197</table>198</div>199</div>200<hr>201<div class="step">202<div class="step-title">Final output table:</div>203<div id="step-3" class="content">204<table>205<tr>206<td>verification_result</td>207</tr>208<tr>209<td>TRUE</td>210</tr>211</table>212</div>213</div>214<hr>215<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>216<h3>Ground-truth:</span> TRUE</h3></div>217</body></html>218 