Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-234.html188 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> globular cluster has less apparent magnitude than irregular galaxy</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: list of ngc objects (5001 - 6000)</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'object_type' is 'globular cluster' or 'irregular galaxy'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>ngc_number</td>34<td>object_type</td>35<td>constellation</td>36<td>right_ascension___j2000</td>37<td>declination___j2000</td>38<td>apparent_magnitude</td>39</tr>40<tr>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5408</span></td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">irregular galaxy</span></td>43<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">centaurus</span></td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h03 m21.0s</span></td>45<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree22′44″</span></td>46<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14.0</span></td>47</tr>48<tr>49<td>5457</td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spiral galaxy</span></td>51<td>ursa major</td>52<td>14h03 m12.5s</td>53<td>degree20′53″</td>54<td>8.7</td>55</tr>56<tr>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5466</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">globular cluster</span></td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">boötes</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h05 m27.4s</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree32′04″</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10.5</span></td>63</tr>64<tr>65<td>5474</td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">spiral galaxy</span></td>67<td>ursa major</td>68<td>14h05 m01.5s</td>69<td>degree39′45″</td>70<td>11.9</td>71</tr>72<tr>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5477</span></td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">irregular galaxy</span></td>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ursa major</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h05 m33.1s</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree27′40″</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14.5</span></td>79</tr>80</table>81</div>82<hr>83<div class="step">84<div class="step-title">Step 2: Cast to FLOAT and order the table by 'apparent_magnitude' in ascending order and select the first row.</div>85<div id="step-0" class="content">86<table>87<tr>88<td>ngc_number</td>89<td>object_type</td>90<td>constellation</td>91<td>right_ascension___j2000</td>92<td>declination___j2000</td>93<td>apparent_magnitude</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5408</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">irregular galaxy</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">centaurus</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h03 m21.0s</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree22′44″</span></td>101<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14.0</span></td>102</tr>103<tr>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5466</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">globular cluster</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">boötes</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">14h05 m27.4s</span></td>108<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">degree32′04″</span></td>109<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">10.5</span></td>110</tr>111<tr>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5477</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">irregular galaxy</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">ursa major</span></td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h05 m33.1s</span></td>116<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree27′40″</span></td>117<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14.5</span></td>118</tr>119</table>120</div>121</div>122<hr>123<div class="step">124<div class="step-title">Step 3: Select rows where 'object_type' is 'globular cluster'.</div>125<div id="step-1" class="content">126<table>127<tr>128<td>ngc_number</td>129<td>object_type</td>130<td>constellation</td>131<td>right_ascension___j2000</td>132<td>declination___j2000</td>133<td>apparent_magnitude</td>134</tr>135<tr>136<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">5466</span></td>137<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">globular cluster</span></td>138<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">boötes</span></td>139<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">14h05 m27.4s</span></td>140<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">degree32′04″</span></td>141<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">10.5</span></td>142</tr>143</table>144</div>145</div>146<hr>147<div class="step">148<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>149<div id="step-2" class="content">150<table>151<tr>152<td>ngc_number</td>153<td>object_type</td>154<td>constellation</td>155<td>right_ascension___j2000</td>156<td>declination___j2000</td>157<td>apparent_magnitude</td>158</tr>159<tr>160<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">5466</span></td>161<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">globular cluster</span></td>162<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">boötes</span></td>163<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">14h05 m27.4s</span></td>164<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">degree32′04″</span></td>165<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">10.5</span></td>166</tr>167</table>168</div>169</div>170<hr>171<div class="step">172<div class="step-title">Final output table:</div>173<div id="step-3" class="content">174<table>175<tr>176<td>verification_result</td>177</tr>178<tr>179<td>TRUE</td>180</tr>181</table>182</div>183</div>184<hr>185<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>186<h3>Ground-truth:</span> TRUE</h3></div>187</body></html>188