Team Ai
Apppublic

luulinh90s/Tabular-LLM-Study-Debugging

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
test-1649.html205 linesDownload Raw Back to TN
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> the princes park venue had just as much crowd as the junction oval menu</h3>24<h3>Input Table: 1975 vfl season</h3>25<div class="step">26<div class="step">27<div class="step-title">Step 1: Select rows where the 'venue' is 'princes park'.</div>28<div id="step-1" class="content">29<table>30<tr>31<td>home_team</td>32<td>home_team_score</td>33<td>away_team</td>34<td>away_team_score</td>35<td>venue</td>36<td>crowd</td>37<td>date</td>38</tr>39<tr>40<td>geelong</td>41<td>14.20 (104)</td>42<td>melbourne</td>43<td>14.14 (98)</td>44<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">kardinia park</span></td>45<td>13328</td>46<td>1975-06-07</td>47</tr>48<tr>49<td>st kilda</td>50<td>15.9 (99)</td>51<td>north melbourne</td>52<td>17.19 (121)</td>53<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">moorabbin oval</span></td>54<td>17811</td>55<td>1975-06-07</td>56</tr>57<tr>58<td>richmond</td>59<td>19.14 (128)</td>60<td>essendon</td>61<td>12.9 (81)</td>62<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">mcg</span></td>63<td>49469</td>64<td>1975-06-07</td>65</tr>66<tr>67<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hawthorn</span></td>68<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">19.24 (138)</span></td>69<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">collingwood</span></td>70<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13.11 (89)</span></td>71<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">princes park</span></td>72<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">23830</span></td>73<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1975-06-07</span></td>74</tr>75<tr>76<td>fitzroy</td>77<td>15.7 (97)</td>78<td>carlton</td>79<td>16.10 (106)</td>80<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">junction oval</span></td>81<td>16249</td>82<td>1975-06-07</td>83</tr>84<tr>85<td>footscray</td>86<td>13.11 (89)</td>87<td>south melbourne</td>88<td>12.15 (87)</td>89<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">vfl park</span></td>90<td>14056</td>91<td>1975-06-07</td>92</tr>93</table>94</div>95<hr>96<div class="step">97<div class="step-title">Step 2: Extract the 'crowd' value from the selected rows and add a column 'princes_park_crowd' to the existing table.</div>98<div id="step-0" class="content">99<table>100<tr>101<td>home_team</td>102<td>home_team_score</td>103<td>away_team</td>104<td>away_team_score</td>105<td>venue</td>106<td>crowd</td>107<td>date</td>108</tr>109<tr>110<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">hawthorn</span></td>111<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">19.24 (138)</span></td>112<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">collingwood</span></td>113<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">13.11 (89)</span></td>114<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">princes park</span></td>115<td><span class="highlighted-cell" title="Used in transformation" style="background-color:#90EE90;">23830</span></td>116<td><span class="highlighted-cell" title="Used in transformation" style="background-color:yellow;">1975-06-07</span></td>117</tr>118</table>119</div>120</div>121<hr>122<div class="step">123<div class="step-title">Step 3: Select rows where the 'venue' is 'junction oval'.</div>124<div id="step-1" class="content">125<table>126<tr>127<td>home_team</td>128<td>home_team_score</td>129<td>away_team</td>130<td>away_team_score</td>131<td>venue</td>132<td>crowd</td>133<td>date</td>134<td>princes_park_crowd</td>135</tr>136<tr>137<td>hawthorn</td>138<td>19.24 (138)</td>139<td>collingwood</td>140<td>13.11 (89)</td>141<td>princes park</td>142<td>23830</td>143<td>1975-06-07</td>144<td>23830</td>145</tr>146</table>147</div>148</div>149<hr>150<div class="step">151<div class="step-title">Step 4: Extract the 'crowd' value from the selected rows and add a column 'junction_oval_crowd' to the existing table.</div>152<div id="step-2" class="content">153<table>154<tr>155<td>home_team</td>156<td>home_team_score</td>157<td>away_team</td>158<td>away_team_score</td>159<td>venue</td>160<td>crowd</td>161<td>date</td>162<td>princes_park_crowd</td>163</tr>164</table>165</div>166</div>167<hr>168<div class="step">169<div class="step-title">Step 5: Use a `CASE` statement to return TRUE if the 'princes_park_crowd' is equal to 'junction_oval_crowd', otherwise return FALSE.</div>170<div id="step-3" class="content">171<table>172<tr>173<td>home_team</td>174<td>home_team_score</td>175<td>away_team</td>176<td>away_team_score</td>177<td>venue</td>178<td>crowd</td>179<td>date</td>180<td>princes_park_crowd</td>181<td>junction_oval_crowd</td>182</tr>183</table>184</div>185</div>186<hr>187<table>188<tr>189<td>home_team</td>190<td>home_team_score</td>191<td>away_team</td>192<td>away_team_score</td>193<td>venue</td>194<td>crowd</td>195<td>date</td>196<td>princes_park_crowd</td>197<td>junction_oval_crowd</td>198<td>is_equal</td>199</tr>200</table>201</div>202</div>203<hr>204</body></html>205