Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Preference-Ranking

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