Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-236.html156 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> irregular galaxy is the object type having 2.1 more apparent magnitude than globular galaxy</h3>25<h3>Ground-truth:</span> FALSE</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 '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>5466</td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">globular cluster</span></td>59<td>boötes</td>60<td>14h05 m27.4s</td>61<td>degree32′04″</td>62<td>10.5</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: Select rows where 'object_type' is 'globular cluster'.</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>5408</td>97<td>irregular galaxy</td>98<td>centaurus</td>99<td>14h03 m21.0s</td>100<td>degree22′44″</td>101<td>14.0</td>102</tr>103<tr>104<td>5477</td>105<td>irregular galaxy</td>106<td>ursa major</td>107<td>14h05 m33.1s</td>108<td>degree27′40″</td>109<td>14.5</td>110</tr>111</table>112</div>113</div>114<hr>115<div class="step">116<div class="step-title">Step 3: Calculate the difference in apparent magnitude between the two object types by subtracting the 'apparent_magnitude' of 'irregular galaxy' from the 'apparent_magnitude' of 'globular cluster'.</div>117<div id="step-1" class="content">118<table>119<tr>120<td>ngc_number</td>121<td>object_type</td>122<td>constellation</td>123<td>right_ascension___j2000</td>124<td>declination___j2000</td>125<td>apparent_magnitude</td>126</tr>127</table>128</div>129</div>130<hr>131<div class="step">132<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the difference in apparent magnitude is equal to or greater than 2.1, otherwise return FALSE.</div>133<div id="step-2" class="content">134<table>135<tr>136<td>magnitude_difference</td>137</tr>138</table>139</div>140</div>141<hr>142<div class="step">143<div class="step-title">Final output table:</div>144<div id="step-3" class="content">145<table>146<tr>147<td>verification_result</td>148</tr>149</table>150</div>151</div>152<hr>153<div class="step"><h3><span class="false">Prediction:  </span></h3>154<h3>Ground-truth:</span> FALSE</h3></div>155</body></html>156