luulinh90s/Tabular-LLM-Study-Preference-Ranking
0
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> the score for the game where birmingham city was the home team on 10 march 1984 was 1 - 3</h3>25<h3>Ground-truth:</span> TRUE</h3>26<h3>Input Table: 1983 - 84 fa cup</h3>27<div class="step">28<div class="step">29<div class="step-title">Step 1: Select rows where 'home_team' is 'birmingham city'.</div>30<div id="step-1" class="content">31<table>32<tr>33<td>tie_no</td>34<td>home_team</td>35<td>score</td>36<td>away_team</td>37<td>date</td>38</tr>39<tr>40<td>1</td>41<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">notts county</span></td>42<td>1 - 2</td>43<td>everton</td>44<td>1984-03-10</td>45</tr>46<tr>47<td>2</td>48<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">sheffield wednesday</span></td>49<td>0 - 0</td>50<td>southampton</td>51<td>1984-03-11</td>52</tr>53<tr>54<td>replay</td>55<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">southampton</span></td>56<td>5 - 1</td>57<td>sheffield wednesday</td>58<td>1984-03-20</td>59</tr>60<tr>61<td>3</td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">plymouth argyle</span></td>63<td>0 - 0</td>64<td>derby county</td>65<td>1984-03-10</td>66</tr>67<tr>68<td>replay</td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">derby county</span></td>70<td>0 - 1</td>71<td>plymouth argyle</td>72<td>1984-03-14</td>73</tr>74<tr>75<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>76<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">birmingham city</span></td>77<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 3</span></td>78<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">watford</span></td>79<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1984-03-10</span></td>80</tr>81</table>82</div>83<hr>84<div class="step">85<div class="step-title">Step 2: Select rows where 'date' is '1984-03-10'.</div>86<div id="step-0" class="content">87<table>88<tr>89<td>tie_no</td>90<td>home_team</td>91<td>score</td>92<td>away_team</td>93<td>date</td>94</tr>95<tr>96<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">4</span></td>97<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">birmingham city</span></td>98<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1 - 3</span></td>99<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">watford</span></td>100<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1984-03-10</span></td>101</tr>102</table>103</div>104</div>105<hr>106<div class="step">107<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>108<div id="step-1" class="content">109<table>110<tr>111<td>tie_no</td>112<td>home_team</td>113<td>score</td>114<td>away_team</td>115<td>date</td>116</tr>117<tr>118<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">4</span></td>119<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">birmingham city</span></td>120<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1 - 3</span></td>121<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">watford</span></td>122<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">1984-03-10</span></td>123</tr>124</table>125</div>126</div>127<hr>128<div class="step">129<div class="step-title">Final output table:</div>130<div id="step-2" class="content">131<table>132<tr>133<td>verification_result</td>134</tr>135<tr>136<td>TRUE</td>137</tr>138</table>139</div>140</div>141<hr>142<div class="step"><h3><span class="true">Prediction: TRUE </span></h3>143<h3>Ground-truth:</span> TRUE</h3></div>144</body></html>145 