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<hr/>23<h3><span>Statement:</span> the average number of people in the game is 31 521 during the 2008 arizona diamondbacks season</h3>24<h3>Input Table: 2008 arizona diamondbacks season</h3>25<div class="step">26<div class="step">27<div class="step-title">Step 1: Extract the numerical value from the 'attendance' column then add column 'num_attendance' to existing table.</div>28<div class="content" id="step-1">29<table>30<tr>31<td>date</td>32<td>opponent</td>33<td>score</td>34<td>loss</td>35<td>attendance</td>36<td>record</td>37</tr>38<tr>39<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-01</span></td>40<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>41<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 6</span></td>42<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mcclellan (2 - 7)</span></td>43<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35075</span></td>44<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70 - 67</span></td>45</tr>46<tr>47<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-02</span></td>48<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>49<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 2</span></td>50<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">petit (3 - 4)</span></td>51<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27568</span></td>52<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70 - 68</span></td>53</tr>54<tr>55<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-03</span></td>56<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>57<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 3</span></td>58<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">perez (2 - 2)</span></td>59<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24350</span></td>60<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 68</span></td>61</tr>62<tr>63<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-05</span></td>64<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>65<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 0</span></td>66<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">haren (14 - 8)</span></td>67<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">52270</span></td>68<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 69</span></td>69</tr>70<tr>71<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-06</span></td>72<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>73<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 2</span></td>74<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">webb (19 - 7)</span></td>75<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">47543</span></td>76<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 70</span></td>77</tr>78<tr>79<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-07</span></td>80<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>81<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 3</span></td>82<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 6)</span></td>83<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">54137</span></td>84<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 71</span></td>85</tr>86<tr>87<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-08</span></td>88<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>89<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 2</span></td>90<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">petit (3 - 5)</span></td>91<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30252</span></td>92<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 72</span></td>93</tr>94<tr>95<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-09</span></td>96<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>97<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 4</span></td>98<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 7)</span></td>99<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30518</span></td>100<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 73</span></td>101</tr>102<tr>103<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-10</span></td>104<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>105<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 3</span></td>106<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lyon (2 - 5)</span></td>107<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30992</span></td>108<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 74</span></td>109</tr>110<tr>111<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-12</span></td>112<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>113<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>114<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">harang (4 - 16)</span></td>115<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29046</span></td>116<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 74</span></td>117</tr>118<tr>119<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-13</span></td>120<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>121<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2 (10)</span></td>122<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peña (1 - 2)</span></td>123<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">45075</span></td>124<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 75</span></td>125</tr>126<tr>127<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-14</span></td>128<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>129<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 1 (10)</span></td>130<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 8)</span></td>131<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27297</span></td>132<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 76</span></td>133</tr>134<tr>135<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-15</span></td>136<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>137<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 1</span></td>138<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hennessey (1 - 2)</span></td>139<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25969</span></td>140<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73 - 76</span></td>141</tr>142<tr>143<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-16</span></td>144<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>145<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 0</span></td>146<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cain (8 - 13)</span></td>147<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33195</span></td>148<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74 - 76</span></td>149</tr>150<tr>151<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-17</span></td>152<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>153<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 6</span></td>154<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sánchez (9 - 11)</span></td>155<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22616</span></td>156<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75 - 76</span></td>157</tr>158<tr>159<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-18</span></td>160<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>161<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>162<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lincecum (17 - 4)</span></td>163<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34323</span></td>164<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">76 - 76</span></td>165</tr>166<tr>167<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-19</span></td>168<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>169<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>170<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scherzer (0 - 3)</span></td>171<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43137</span></td>172<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">76 - 77</span></td>173</tr>174<tr>175<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-20</span></td>176<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>177<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 3</span></td>178<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fuentes (1 - 5)</span></td>179<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38283</span></td>180<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">77 - 77</span></td>181</tr>182<tr>183<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-21</span></td>184<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>185<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13 - 4</span></td>186<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reynolds (2 - 8)</span></td>187<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32915</span></td>188<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">78 - 77</span></td>189</tr>190<tr>191<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-22</span></td>192<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>193<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 2</span></td>194<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wellemeyer (12 - 9)</span></td>195<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40349</span></td>196<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 77</span></td>197</tr>198<tr>199<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-23</span></td>200<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>201<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 4</span></td>202<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">johnson (10 - 10)</span></td>203<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40013</span></td>204<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 78</span></td>205</tr>206<tr>207<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-24</span></td>208<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>209<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 2</span></td>210<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scherzer (0 - 4)</span></td>211<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40029</span></td>212<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 79</span></td>213</tr>214<tr>215<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-25</span></td>216<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>217<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12 - 3</span></td>218<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rosales (1 - 1)</span></td>219<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40502</span></td>220<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 80</span></td>221</tr>222<tr>223<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-26</span></td>224<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>225<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 4</span></td>226<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">grilli (3 - 3)</span></td>227<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34950</span></td>228<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">80 - 80</span></td>229</tr>230<tr>231<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-27</span></td>232<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>233<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 4</span></td>234<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">corpas (3 - 4)</span></td>235<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33234</span></td>236<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">81 - 80</span></td>237</tr>238<tr>239<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-28</span></td>240<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>241<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 1</span></td>242<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">vizcaíno (1 - 2)</span></td>243<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35908</span></td>244<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">82 - 80</span></td>245</tr>246</table>247</div>248<hr/>249<div class="step">250<div class="step-title">Step 2: Calculate the average of the 'num_attendance' column then add column 'avg_attendance' to existing table.</div>251<div class="content" id="step-0">252<table>253<tr>254<td>date</td>255<td>opponent</td>256<td>score</td>257<td>loss</td>258<td>attendance</td>259<td>record</td>260<td>num_attendance</td>261</tr>262<tr>263<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-01</span></td>264<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>265<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 6</span></td>266<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">mcclellan (2 - 7)</span></td>267<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35075</span></td>268<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70 - 67</span></td>269<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35075</span></td>270</tr>271<tr>272<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-02</span></td>273<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>274<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">8 - 2</span></td>275<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">petit (3 - 4)</span></td>276<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27568</span></td>277<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">70 - 68</span></td>278<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27568</span></td>279</tr>280<tr>281<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-03</span></td>282<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>283<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 3</span></td>284<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">perez (2 - 2)</span></td>285<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">24350</span></td>286<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 68</span></td>287<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">24350</span></td>288</tr>289<tr>290<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-05</span></td>291<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>292<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 0</span></td>293<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">haren (14 - 8)</span></td>294<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">52270</span></td>295<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 69</span></td>296<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">52270</span></td>297</tr>298<tr>299<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-06</span></td>300<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>301<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 2</span></td>302<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">webb (19 - 7)</span></td>303<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">47543</span></td>304<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 70</span></td>305<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">47543</span></td>306</tr>307<tr>308<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-07</span></td>309<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">dodgers</span></td>310<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 3</span></td>311<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 6)</span></td>312<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">54137</span></td>313<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 71</span></td>314<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">54137</span></td>315</tr>316<tr>317<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-08</span></td>318<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>319<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 2</span></td>320<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">petit (3 - 5)</span></td>321<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30252</span></td>322<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 72</span></td>323<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30252</span></td>324</tr>325<tr>326<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-09</span></td>327<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>328<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 4</span></td>329<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 7)</span></td>330<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30518</span></td>331<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 73</span></td>332<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30518</span></td>333</tr>334<tr>335<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-10</span></td>336<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>337<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 3</span></td>338<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lyon (2 - 5)</span></td>339<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">30992</span></td>340<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">71 - 74</span></td>341<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">30992</span></td>342</tr>343<tr>344<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-12</span></td>345<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>346<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>347<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">harang (4 - 16)</span></td>348<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">29046</span></td>349<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 74</span></td>350<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">29046</span></td>351</tr>352<tr>353<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-13</span></td>354<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>355<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2 (10)</span></td>356<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">peña (1 - 2)</span></td>357<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">45075</span></td>358<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 75</span></td>359<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">45075</span></td>360</tr>361<tr>362<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-14</span></td>363<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reds</span></td>364<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 1 (10)</span></td>365<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rauch (4 - 8)</span></td>366<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">27297</span></td>367<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">72 - 76</span></td>368<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">27297</span></td>369</tr>370<tr>371<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-15</span></td>372<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>373<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 1</span></td>374<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">hennessey (1 - 2)</span></td>375<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">25969</span></td>376<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">73 - 76</span></td>377<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">25969</span></td>378</tr>379<tr>380<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-16</span></td>381<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>382<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 0</span></td>383<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cain (8 - 13)</span></td>384<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33195</span></td>385<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">74 - 76</span></td>386<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33195</span></td>387</tr>388<tr>389<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-17</span></td>390<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>391<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 6</span></td>392<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">sánchez (9 - 11)</span></td>393<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">22616</span></td>394<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">75 - 76</span></td>395<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">22616</span></td>396</tr>397<tr>398<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-18</span></td>399<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">giants</span></td>400<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>401<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">lincecum (17 - 4)</span></td>402<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34323</span></td>403<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">76 - 76</span></td>404<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34323</span></td>405</tr>406<tr>407<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-19</span></td>408<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>409<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">3 - 2</span></td>410<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scherzer (0 - 3)</span></td>411<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">43137</span></td>412<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">76 - 77</span></td>413<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">43137</span></td>414</tr>415<tr>416<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-20</span></td>417<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>418<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">5 - 3</span></td>419<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">fuentes (1 - 5)</span></td>420<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">38283</span></td>421<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">77 - 77</span></td>422<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">38283</span></td>423</tr>424<tr>425<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-21</span></td>426<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>427<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">13 - 4</span></td>428<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">reynolds (2 - 8)</span></td>429<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">32915</span></td>430<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">78 - 77</span></td>431<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">32915</span></td>432</tr>433<tr>434<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-22</span></td>435<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>436<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 2</span></td>437<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">wellemeyer (12 - 9)</span></td>438<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40349</span></td>439<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 77</span></td>440<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40349</span></td>441</tr>442<tr>443<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-23</span></td>444<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>445<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">7 - 4</span></td>446<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">johnson (10 - 10)</span></td>447<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40013</span></td>448<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 78</span></td>449<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40013</span></td>450</tr>451<tr>452<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-24</span></td>453<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>454<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">4 - 2</span></td>455<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">scherzer (0 - 4)</span></td>456<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40029</span></td>457<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 79</span></td>458<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40029</span></td>459</tr>460<tr>461<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-25</span></td>462<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">cardinals</span></td>463<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">12 - 3</span></td>464<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rosales (1 - 1)</span></td>465<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">40502</span></td>466<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">79 - 80</span></td>467<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">40502</span></td>468</tr>469<tr>470<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-26</span></td>471<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>472<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 4</span></td>473<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">grilli (3 - 3)</span></td>474<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">34950</span></td>475<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">80 - 80</span></td>476<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">34950</span></td>477</tr>478<tr>479<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-27</span></td>480<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>481<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">6 - 4</span></td>482<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">corpas (3 - 4)</span></td>483<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">33234</span></td>484<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">81 - 80</span></td>485<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">33234</span></td>486</tr>487<tr>488<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">9999-09-28</span></td>489<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">rockies</span></td>490<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">2 - 1</span></td>491<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">vizcaíno (1 - 2)</span></td>492<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">35908</span></td>493<td><span class="highlighted-cell" style="background-color:yellow;" title="Used in transformation">82 - 80</span></td>494<td><span class="highlighted-cell" style="background-color:#90EE90;" title="Used in transformation">35908</span></td>495</tr>496</table>497</div>498</div>499<hr/>500<div class="step">501<div class="step-title">Step 3: Select rows where 'avg_attendance' is equal to 31,521.</div>502<div class="content" id="step-1">503<table>504<tr>505<td>date</td>506<td>opponent</td>507<td>score</td>508<td>loss</td>509<td>attendance</td>510<td>record</td>511<td>num_attendance</td>512<td>avg_attendance</td>513</tr>514<tr>515<td>9999-09-01</td>516<td>cardinals</td>517<td>8 - 6</td>518<td>mcclellan (2 - 7)</td>519<td>35075</td>520<td>70 - 67</td>521<td>35075</td>522<td>35751.769230769234</td>523</tr>524<tr>525<td>9999-09-02</td>526<td>cardinals</td>527<td>8 - 2</td>528<td>petit (3 - 4)</td>529<td>27568</td>530<td>70 - 68</td>531<td>27568</td>532<td>35751.769230769234</td>533</tr>534<tr>535<td>9999-09-03</td>536<td>cardinals</td>537<td>4 - 3</td>538<td>perez (2 - 2)</td>539<td>24350</td>540<td>71 - 68</td>541<td>24350</td>542<td>35751.769230769234</td>543</tr>544<tr>545<td>9999-09-05</td>546<td>dodgers</td>547<td>7 - 0</td>548<td>haren (14 - 8)</td>549<td>52270</td>550<td>71 - 69</td>551<td>52270</td>552<td>35751.769230769234</td>553</tr>554<tr>555<td>9999-09-06</td>556<td>dodgers</td>557<td>7 - 2</td>558<td>webb (19 - 7)</td>559<td>47543</td>560<td>71 - 70</td>561<td>47543</td>562<td>35751.769230769234</td>563</tr>564<tr>565<td>9999-09-07</td>566<td>dodgers</td>567<td>5 - 3</td>568<td>rauch (4 - 6)</td>569<td>54137</td>570<td>71 - 71</td>571<td>54137</td>572<td>35751.769230769234</td>573</tr>574<tr>575<td>9999-09-08</td>576<td>giants</td>577<td>6 - 2</td>578<td>petit (3 - 5)</td>579<td>30252</td>580<td>71 - 72</td>581<td>30252</td>582<td>35751.769230769234</td>583</tr>584<tr>585<td>9999-09-09</td>586<td>giants</td>587<td>5 - 4</td>588<td>rauch (4 - 7)</td>589<td>30518</td>590<td>71 - 73</td>591<td>30518</td>592<td>35751.769230769234</td>593</tr>594<tr>595<td>9999-09-10</td>596<td>giants</td>597<td>4 - 3</td>598<td>lyon (2 - 5)</td>599<td>30992</td>600<td>71 - 74</td>601<td>30992</td>602<td>35751.769230769234</td>603</tr>604<tr>605<td>9999-09-12</td>606<td>reds</td>607<td>3 - 2</td>608<td>harang (4 - 16)</td>609<td>29046</td>610<td>72 - 74</td>611<td>29046</td>612<td>35751.769230769234</td>613</tr>614<tr>615<td>9999-09-13</td>616<td>reds</td>617<td>3 - 2 (10)</td>618<td>peña (1 - 2)</td>619<td>45075</td>620<td>72 - 75</td>621<td>45075</td>622<td>35751.769230769234</td>623</tr>624<tr>625<td>9999-09-14</td>626<td>reds</td>627<td>2 - 1 (10)</td>628<td>rauch (4 - 8)</td>629<td>27297</td>630<td>72 - 76</td>631<td>27297</td>632<td>35751.769230769234</td>633</tr>634<tr>635<td>9999-09-15</td>636<td>giants</td>637<td>3 - 1</td>638<td>hennessey (1 - 2)</td>639<td>25969</td>640<td>73 - 76</td>641<td>25969</td>642<td>35751.769230769234</td>643</tr>644<tr>645<td>9999-09-16</td>646<td>giants</td>647<td>2 - 0</td>648<td>cain (8 - 13)</td>649<td>33195</td>650<td>74 - 76</td>651<td>33195</td>652<td>35751.769230769234</td>653</tr>654<tr>655<td>9999-09-17</td>656<td>giants</td>657<td>7 - 6</td>658<td>sánchez (9 - 11)</td>659<td>22616</td>660<td>75 - 76</td>661<td>22616</td>662<td>35751.769230769234</td>663</tr>664<tr>665<td>9999-09-18</td>666<td>giants</td>667<td>3 - 2</td>668<td>lincecum (17 - 4)</td>669<td>34323</td>670<td>76 - 76</td>671<td>34323</td>672<td>35751.769230769234</td>673</tr>674<tr>675<td>9999-09-19</td>676<td>rockies</td>677<td>3 - 2</td>678<td>scherzer (0 - 3)</td>679<td>43137</td>680<td>76 - 77</td>681<td>43137</td>682<td>35751.769230769234</td>683</tr>684<tr>685<td>9999-09-20</td>686<td>rockies</td>687<td>5 - 3</td>688<td>fuentes (1 - 5)</td>689<td>38283</td>690<td>77 - 77</td>691<td>38283</td>692<td>35751.769230769234</td>693</tr>694<tr>695<td>9999-09-21</td>696<td>rockies</td>697<td>13 - 4</td>698<td>reynolds (2 - 8)</td>699<td>32915</td>700<td>78 - 77</td>701<td>32915</td>702<td>35751.769230769234</td>703</tr>704<tr>705<td>9999-09-22</td>706<td>cardinals</td>707<td>4 - 2</td>708<td>wellemeyer (12 - 9)</td>709<td>40349</td>710<td>79 - 77</td>711<td>40349</td>712<td>35751.769230769234</td>713</tr>714<tr>715<td>9999-09-23</td>716<td>cardinals</td>717<td>7 - 4</td>718<td>johnson (10 - 10)</td>719<td>40013</td>720<td>79 - 78</td>721<td>40013</td>722<td>35751.769230769234</td>723</tr>724<tr>725<td>9999-09-24</td>726<td>cardinals</td>727<td>4 - 2</td>728<td>scherzer (0 - 4)</td>729<td>40029</td>730<td>79 - 79</td>731<td>40029</td>732<td>35751.769230769234</td>733</tr>734<tr>735<td>9999-09-25</td>736<td>cardinals</td>737<td>12 - 3</td>738<td>rosales (1 - 1)</td>739<td>40502</td>740<td>79 - 80</td>741<td>40502</td>742<td>35751.769230769234</td>743</tr>744<tr>745<td>9999-09-26</td>746<td>rockies</td>747<td>6 - 4</td>748<td>grilli (3 - 3)</td>749<td>34950</td>750<td>80 - 80</td>751<td>34950</td>752<td>35751.769230769234</td>753</tr>754<tr>755<td>9999-09-27</td>756<td>rockies</td>757<td>6 - 4</td>758<td>corpas (3 - 4)</td>759<td>33234</td>760<td>81 - 80</td>761<td>33234</td>762<td>35751.769230769234</td>763</tr>764<tr>765<td>9999-09-28</td>766<td>rockies</td>767<td>2 - 1</td>768<td>vizcaíno (1 - 2)</td>769<td>35908</td>770<td>82 - 80</td>771<td>35908</td>772<td>35751.769230769234</td>773</tr>774</table>775</div>776</div>777<hr/>778<div class="step">779<div class="step-title">Step 4: Use a `CASE` statement to return TRUE if the number of rows is greater than or equal to 1, otherwise return FALSE.</div>780<div class="content" id="step-2">781<table>782<tr>783<td>date</td>784<td>opponent</td>785<td>score</td>786<td>loss</td>787<td>attendance</td>788<td>record</td>789<td>num_attendance</td>790<td>avg_attendance</td>791</tr>792</table>793</div>794</div>795<hr/>796 797</div>798</div>799<hr/>800</body></html>801 