luulinh90s's picture
add text2sql vis
68eb98f
raw
history blame
4.71 kB
<html><head>
<style>
body { font-family: Arial, sans-serif; margin: 20px; }
h1 { text-align: center; }
.cot-title { color: blue; }
.pos-title { color: green; }
h2 { color: black; text-align: left; }
h3 { color: black; text-align: left; }
h4 { color: darkslategray; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
table, th, td { border: 1px solid #ddd; padding: 8px; }
th { background-color: #f2f2f2; }
tr:nth-child(even) { background-color: #f9f9f9; }
.highlight { background-color: #ffffcc; }
.true { color: green; }
.false { color: red; }
.highlighted-cell { background-color: yellow; cursor: pointer; }
.step-title { background-color: #f1f1f1; color: #444; padding: 10px; margin: 10px 0; font-size: 18px; border-left: 4px solid #888; }
.step { display: block; }
.sql-command { background-color: #f0f0f0; padding: 10px; border-left: 4px solid #4CAF50; font-family: monospace; white-space: pre-wrap; }
</style>
</head><body>
<hr>
<h3><span>Statement:</span> golden state warriors is the name of the team when the location attendances is hemisfair arena 16057</h3>
<h3>Input Table: 1991 - 92 seattle supersonics season</h3>
<div class="step">
<table>
<tr><td>game</td><td>date</td><td>team</td><td>score</td><td>high_points</td><td>high_rebounds</td><td>high_assists</td><td>location_attendance</td><td>record</td></tr><tr><td>58</td><td>9999-03-01</td><td>cleveland cavaliers</td><td>w 113 - 107</td><td>e johnson , r pierce (22)</td><td>b benjamin , m cage (14)</td><td>r pierce (6)</td><td>seattle center coliseum 13647</td><td>32 - 26</td></tr><tr><td>59</td><td>9999-03-03</td><td>denver nuggets</td><td>w 111 - 92</td><td>s kemp (21)</td><td>s kemp (13)</td><td>g payton (9)</td><td>seattle center coliseum 9865</td><td>33 - 26</td></tr><tr><td>60</td><td>9999-03-05</td><td>phoenix suns</td><td>l 105 - 118</td><td>r pierce (23)</td><td>s kemp (19)</td><td>g payton (12)</td><td>arizona veterans memorial coliseum 14496</td><td>33 - 27</td></tr><tr><td>61</td><td>9999-03-07</td><td>new jersey nets</td><td>w 109 - 98</td><td>r pierce (27)</td><td>m cage (13)</td><td>n mcmillan (7)</td><td>seattle center coliseum 13419</td><td>34 - 27</td></tr><tr><td>62</td><td>0000-03-08</td><td>portland trail blazers</td><td>l 97 - 109</td><td>r pierce (28)</td><td>r pierce (10)</td><td>g payton (7)</td><td>memorial coliseum 12888</td><td>34 - 28</td></tr><tr><td>63</td><td>9999-03-10</td><td>detroit pistons</td><td>l 92 - 98</td><td>g payton (19)</td><td>s kemp (9)</td><td>n mcmillan (5)</td><td>seattle center coliseum 13098</td><td>34 - 29</td></tr><tr><td>64</td><td>9999-03-11</td><td>los angeles clippers</td><td>w 104 - 96</td><td>r pierce (19)</td><td>b benjamin , m cage (6)</td><td>g payton (9)</td><td>los angeles memorial sports arena 10912</td><td>35 - 29</td></tr><tr><td>65</td><td>01-03-15</td><td>dallas mavericks</td><td>w 109 - 100</td><td>r pierce (23)</td><td>s kemp (15)</td><td>g payton (8)</td><td>seattle center coliseum 12163</td><td>36 - 29</td></tr><tr><td>66</td><td>0000-03-17</td><td>golden state warriors</td><td>l 107 - 119</td><td>r pierce (24)</td><td>s kemp (15)</td><td>r pierce (5)</td><td>seattle center coliseum 13163</td><td>36 - 30</td></tr><tr><td>67</td><td>9999-03-19</td><td>houston rockets</td><td>w 112 - 91</td><td>r pierce (22)</td><td>m cage , s kemp (14)</td><td>g payton (11)</td><td>the summit 15122</td><td>37 - 30</td></tr><tr><td>68</td><td>9999-03-21</td><td>san antonio spurs</td><td>l 96 - 101</td><td>e johnson (23)</td><td>s kemp (13)</td><td>d barros , m cage , n mcmillan (4)</td><td>hemisfair arena 16057</td><td>37 - 31</td></tr><tr><td>69</td><td>9999-03-22</td><td>dallas mavericks</td><td>w 113 - 105</td><td>e johnson (31)</td><td>s kemp (17)</td><td>n mcmillan (8)</td><td>reunion arena 14345</td><td>38 - 31</td></tr><tr><td>70</td><td>9999-03-24</td><td>houston rockets</td><td>w 128 - 106</td><td>d mckey (23)</td><td>m cage , s kemp (11)</td><td>n mcmillan , g payton (7)</td><td>seattle center coliseum 11377</td><td>39 - 31</td></tr><tr><td>71</td><td>9999-03-27</td><td>milwaukee bucks</td><td>w 96 - 95</td><td>e johnson (21)</td><td>n mcmillan (7)</td><td>n mcmillan (6)</td><td>seattle center coliseum 11450</td><td>40 - 31</td></tr><tr><td>72</td><td>9999-03-28</td><td>new york knicks</td><td>l 87 - 92</td><td>s kemp (27)</td><td>s kemp (12)</td><td>n mcmillan (6)</td><td>seattle center coliseum 14812</td><td>40 - 32</td></tr>
</table>
</div>
<h3>SQL Command:</h3>
<div class="sql-command">SELECT
CASE
WHEN COUNT(*) = 0 THEN 'FALSE'
ELSE 'TRUE'
END
FROM table_sql
WHERE location_attendance = 'hemisfair arena 16057'
AND team = 'san antonio spurs';</div>
</body></html>