Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-493.html156 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> 12.8 is one of the mileposts listed for the location rockland</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: massachusetts route 139</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'location' is 'rockland'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>county</td>34<td>location</td>35<td>street_names</td>36<td>milepost</td>37<td>roads_intersected</td>38<td>notes</td>39</tr>40<tr>41<td>norfolk</td>42<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">stoughton</span></td>43<td>pleasant street turnpike street lindelof avenue</td>44<td>3.0</td>45<td>route 24</td>46<td>route 24 exit 20</td>47</tr>48<tr>49<td>norfolk</td>50<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">weymouth</span></td>51<td>anne street</td>52<td>(no major junctions)</td>53<td>(no major junctions)</td>54<td>(no major junctions)</td>55</tr>56<tr>57<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">plymouth</span></td>58<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rockland</span></td>59<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north avenue plain street market street</span></td>60<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12.2</span></td>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">route 123</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">western terminus of route 123 / 139 concurrency</span></td>63</tr>64<tr>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">plymouth</span></td>66<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rockland</span></td>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north avenue plain street market street</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12.8</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">route 123</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">eastern terminus of route 123 / 139 concurrency</span></td>71</tr>72<tr>73<td>plymouth</td>74<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hanover</span></td>75<td>hanover street rockland street columbia road</td>76<td>17.9</td>77<td>route 53</td>78<td>northern terminus of route 53 / 139 concurrency</td>79</tr>80</table>81</div>82<hr>83<div class="step">84<div class="step-title">Step 2: Select rows where 'milepost' is 12.8.</div>85<div id="step-0" class="content">86<table>87<tr>88<td>county</td>89<td>location</td>90<td>street_names</td>91<td>milepost</td>92<td>roads_intersected</td>93<td>notes</td>94</tr>95<tr>96<td>plymouth</td>97<td>rockland</td>98<td>north avenue plain street market street</td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">12.2</span></td>100<td>route 123</td>101<td>western terminus of route 123 / 139 concurrency</td>102</tr>103<tr>104<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">plymouth</span></td>105<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">rockland</span></td>106<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">north avenue plain street market street</span></td>107<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12.8</span></td>108<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">route 123</span></td>109<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">eastern terminus of route 123 / 139 concurrency</span></td>110</tr>111</table>112</div>113</div>114<hr>115<div class="step">116<div class="step-title">Step 3: Use a `CASE` statement to return TRUE if the number of rows is equal to 1, otherwise return FALSE.</div>117<div id="step-1" class="content">118<table>119<tr>120<td>county</td>121<td>location</td>122<td>street_names</td>123<td>milepost</td>124<td>roads_intersected</td>125<td>notes</td>126</tr>127<tr>128<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">plymouth</span></td>129<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">rockland</span></td>130<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">north avenue plain street market street</span></td>131<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">12.8</span></td>132<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">route 123</span></td>133<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">eastern terminus of route 123 / 139 concurrency</span></td>134</tr>135</table>136</div>137</div>138<hr>139<div class="step">140<div class="step-title">Final output table:</div>141<div id="step-2" class="content">142<table>143<tr>144<td>verification_result</td>145</tr>146<tr>147<td>TRUE</td>148</tr>149</table>150</div>151</div>152<hr>153<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>154<h3>Ground-truth:</span> TRUE</h3></div>155</body></html>156