Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-313.html166 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> paul dawkins played for the jazz seven years before darryl dawkins</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: utah jazz all - time roster</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'player' is 'paul dawkins'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>player</td>34<td>nationality</td>35<td>position</td>36<td>years_for_jazz</td>37<td>school___club_team</td>38</tr>39<tr>40<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">adrian dantley</span></td>41<td>united states</td>42<td>guard - forward</td>43<td>1979-01-01</td>44<td>notre dame</td>45</tr>46<tr>47<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">brad davis</span></td>48<td>united states</td>49<td>guard</td>50<td>1979-01-01</td>51<td>maryland</td>52</tr>53<tr>54<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">darryl dawkins</span></td>55<td>united states</td>56<td>center</td>57<td>1987-01-01</td>58<td>maynard evans hs</td>59</tr>60<tr>61<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">paul dawkins</span></td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">united states</span></td>63<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">guard</span></td>64<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1979-01-01</span></td>65<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">northern illinois</span></td>66</tr>67<tr>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">greg deane</span></td>69<td>united states</td>70<td>guard</td>71<td>1979-01-01</td>72<td>utah</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">james donaldson</span></td>76<td>united states</td>77<td>center</td>78<td>1993-01-01, 1994-01-01, 1995-01-01</td>79<td>washington state</td>80</tr>81<tr>82<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">john drew</span></td>83<td>united states</td>84<td>guard - forward</td>85<td>1982-01-01</td>86<td>gardner - webb</td>87</tr>88<tr>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">john duren</span></td>90<td>united states</td>91<td>guard</td>92<td>1980-01-01</td>93<td>georgetown</td>94</tr>95</table>96</div>97<hr>98<div class="step">99<div class="step-title">Step 2: Select rows where 'player' is 'darryl dawkins'.</div>100<div id="step-0" class="content">101<table>102<tr>103<td>player</td>104<td>nationality</td>105<td>position</td>106<td>years_for_jazz</td>107<td>school___club_team</td>108</tr>109<tr>110<td>paul dawkins</td>111<td>united states</td>112<td>guard</td>113<td>1979-01-01</td>114<td>northern illinois</td>115</tr>116</table>117</div>118</div>119<hr>120<div class="step">121<div class="step-title">Step 3: Extract the numerical year from the 'years_for_jazz' column for both players to add columns 'paul_year' and 'darryl_year' to the existing table.</div>122<div id="step-1" class="content">123<table>124<tr>125<td>player</td>126<td>nationality</td>127<td>position</td>128<td>years_for_jazz</td>129<td>school___club_team</td>130</tr>131</table>132</div>133</div>134<hr>135<div class="step">136<div class="step-title">Step 4: Use a CASE statement to return TRUE if the difference between 'paul_year' and 'darryl_year' is equal to 7, otherwise return FALSE.</div>137<div id="step-2" class="content">138<table>139<tr>140<td>player</td>141<td>nationality</td>142<td>position</td>143<td>years_for_jazz</td>144<td>school___club_team</td>145<td>paul_year</td>146<td>darryl_year</td>147</tr>148</table>149</div>150</div>151<hr>152<div class="step">153<div class="step-title">Final output table:</div>154<div id="step-3" class="content">155<table>156<tr>157<td>verification_result</td>158</tr>159</table>160</div>161</div>162<hr>163<div class="step"><h3><span class="false">Prediction:  </span></h3>164<h3>Ground-truth:</span> TRUE</h3></div>165</body></html>166