Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-676.html213 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> justin leonard from the united states scored 73 + 71 + 68 = 212</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 2002 u.s. open (golf)</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'player' is 'justin leonard'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>place</td>34<td>player</td>35<td>country</td>36<td>score</td>37<td>to_par</td>38</tr>39<tr>40<td>1</td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tiger woods</span></td>42<td>united states</td>43<td>67 + 68 + 70 = 205</td>44<td>- 5</td>45</tr>46<tr>47<td>2</td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sergio garcía</span></td>49<td>spain</td>50<td>68 + 74 + 67 = 209</td>51<td>- 1</td>52</tr>53<tr>54<td>t3</td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">jeff maggert</span></td>56<td>united states</td>57<td>69 + 73 + 68 = 210</td>58<td>e</td>59</tr>60<tr>61<td>t3</td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">phil mickelson</span></td>63<td>united states</td>64<td>70 + 73 + 67 = 210</td>65<td>e</td>66</tr>67<tr>68<td>t5</td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">robert allenby</span></td>70<td>australia</td>71<td>74 + 70 + 67 = 211</td>72<td>+ 1</td>73</tr>74<tr>75<td>t5</td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">pádraig harrington</span></td>77<td>ireland</td>78<td>70 + 68 + 73 = 211</td>79<td>+ 1</td>80</tr>81<tr>82<td>t5</td>83<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">billy mayfair</span></td>84<td>united states</td>85<td>69 + 74 + 68 = 211</td>86<td>+ 1</td>87</tr>88<tr>89<td>t8</td>90<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">nick faldo</span></td>91<td>england</td>92<td>70 + 76 + 66 = 212</td>93<td>+ 2</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">t8</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">justin leonard</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">united states</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">73 + 71 + 68 = 212</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2</span></td>101</tr>102<tr>103<td>t10</td>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">tom byrum</span></td>105<td>united states</td>106<td>72 + 72 + 70 = 214</td>107<td>+ 4</td>108</tr>109<tr>110<td>t10</td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">davis love iii</span></td>112<td>united states</td>113<td>71 + 71 + 72 = 214</td>114<td>+ 4</td>115</tr>116<tr>117<td>t10</td>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">scott mccarron</span></td>119<td>united states</td>120<td>72 + 72 + 70 = 214</td>121<td>+ 4</td>122</tr>123</table>124</div>125<hr>126<div class="step">127<div class="step-title">Step 2: Extract the numerical scores from the 'score' column by summing the three numbers to the left of '=' to add column 'total_score' to existing table.</div>128<div id="step-0" class="content">129<table>130<tr>131<td>place</td>132<td>player</td>133<td>country</td>134<td>score</td>135<td>to_par</td>136</tr>137<tr>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">t8</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">justin leonard</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">united states</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">73 + 71 + 68 = 212</span></td>142<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">+ 2</span></td>143</tr>144</table>145</div>146</div>147<hr>148<div class="step">149<div class="step-title">Step 3: Select rows where 'total_score' is 212.</div>150<div id="step-1" class="content">151<table>152<tr>153<td>place</td>154<td>player</td>155<td>country</td>156<td>score</td>157<td>to_par</td>158<td>total_score</td>159</tr>160<tr>161<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">t8</span></td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">justin leonard</span></td>163<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">united states</span></td>164<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">73 + 71 + 68 = 212</span></td>165<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">+ 2</span></td>166<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">212</span></td>167</tr>168</table>169</div>170</div>171<hr>172<div class="step">173<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>174<div id="step-2" class="content">175<table>176<tr>177<td>place</td>178<td>player</td>179<td>country</td>180<td>score</td>181<td>to_par</td>182<td>total_score</td>183</tr>184<tr>185<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">t8</span></td>186<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">justin leonard</span></td>187<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">united states</span></td>188<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">73 + 71 + 68 = 212</span></td>189<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">+ 2</span></td>190<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">212</span></td>191</tr>192</table>193</div>194</div>195<hr>196<div class="step">197<div class="step-title">Final output table:</div>198<div id="step-3" class="content">199<table>200<tr>201<td>verification_result</td>202</tr>203<tr>204<td>TRUE</td>205</tr>206</table>207</div>208</div>209<hr>210<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>211<h3>Ground-truth:</span> TRUE</h3></div>212</body></html>213