query_id
stringlengths
1
3
query_template
stringlengths
15
193
100
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? LIMIT ?
101
SELECT ? FROM ? ORDER BY ?, ?
102
SELECT ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
103
SELECT ? FROM ? WHERE ? != ? GROUP BY ? HAVING COUNT(?) = ?
104
SELECT ?, COUNT(?) FROM ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
105
SELECT ? FROM ? WHERE ? IN (SELECT ? FROM ? WHERE ? = ? AND ? = ?)
106
SELECT ? FROM ? WHERE ? = ? AND ? = (SELECT MIN(?) FROM ? WHERE ? = ?)
107
SELECT ?, ? FROM ? ORDER BY ? DESC
108
SELECT ?, ? FROM ? WHERE ? > ? AND ? > ?
109
SELECT ? FROM ? WHERE ? IN (SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?)
110
SELECT ? FROM ? WHERE ? > ? GROUP BY ? HAVING COUNT(?) > ?
111
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? EXCEPT SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?
112
SELECT COUNT(?), ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC
113
SELECT MAX(?), SUM(?) FROM ?
114
SELECT ? FROM ? WHERE ? = ? GROUP BY ? HAVING COUNT(?) >= ?
115
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? AND ? = ? WHERE ? = ? ORDER BY ? LIMIT ?
116
SELECT ? FROM ? WHERE ? < (SELECT MAX(?) FROM ? WHERE ? = ?)
117
SELECT ? FROM ?, ?, ? JOIN ? ON ? = ? AND ? = ? AND ? = ? WHERE ? = ? AND ? = ? GROUP BY ? HAVING COUNT(?) >= ?
118
SELECT ?, ? FROM ? ORDER BY ? DESC LIMIT ?
119
SELECT ?, ? FROM ? WHERE ? < (SELECT MIN(?) FROM ? WHERE ? = ?)
120
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? > ? OR ? > ?
121
SELECT ? FROM ? WHERE ? = ? UNION SELECT ? FROM ? WHERE ? = ? AND ? = ?
122
SELECT ?, ?, MIN(?) FROM ? GROUP BY ?
123
SELECT AVG(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?
124
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? > ?
125
SELECT ? FROM ? WHERE ? <= ?
126
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? OR ? = ?
127
SELECT ?, ? FROM ? WHERE ? != (SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?)
128
SELECT ?, ? FROM ? WHERE ? >= ?
129
SELECT ?, COUNT(?) FROM ? GROUP BY ? HAVING COUNT(?) > ?
130
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? OR ? = ?
131
SELECT COUNT(DISTINCT ?) FROM ? WHERE NOT ? IN (SELECT ? FROM ? WHERE ? != ?)
132
SELECT ? FROM ?, ? JOIN ? ON ? = ? AND ? = ? WHERE ? = ? INTERSECT SELECT ? FROM ?, ? JOIN ? ON ? = ? AND ? = ? WHERE ? = ?
133
SELECT ? FROM ? WHERE ? = ? OR ? < ?
134
SELECT ? FROM ? ORDER BY ? DESC
135
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ?, ?
136
SELECT COUNT(DISTINCT ?), ? FROM ? GROUP BY ? HAVING COUNT(DISTINCT ?) < ?
137
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) < ?
138
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? ORDER BY ? LIMIT ?
139
SELECT DISTINCT ? FROM ? EXCEPT SELECT DISTINCT ? FROM ? JOIN ? ON ? = ?
140
SELECT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ? ORDER BY AVG(?) DESC LIMIT ?
141
SELECT ? FROM ? GROUP BY ? ORDER BY AVG(?) LIMIT ?
142
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) > (SELECT COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? = ?)
143
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
144
SELECT MAX(?), MIN(?) FROM ?, ? JOIN ? ON ? = ? AND ? = ? WHERE ? = ?
145
SELECT SUM(?) FROM ? WHERE ? = ?
146
SELECT COUNT(?) FROM ? WHERE ? IN (SELECT ? FROM ? WHERE ? = ?) AND ? IN (SELECT ? FROM ? WHERE ? = ?)
147
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING MAX(?) > ?
148
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? UNION SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) > ?
149
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?
150
SELECT ? FROM ? INTERSECT SELECT ? FROM ? WHERE ? < ?
151
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? > (SELECT AVG(?) FROM ?) INTERSECT SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? < (SELECT AVG(?) FROM ?)
152
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(DISTINCT ?) >= ?
153
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? > ?
154
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
155
SELECT ? FROM ? WHERE ? > ? OR ? = ?
156
SELECT MAX(?), MAX(?), ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY ?
157
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? ORDER BY ?
158
SELECT ?, ? FROM ? JOIN ? ON ? = ? ORDER BY ? ASC LIMIT ?
159
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = (SELECT MAX(?) FROM ?)
160
SELECT AVG(?) FROM ? JOIN ? ON ? = ?
161
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? OR ? = ?
162
SELECT COUNT(?), ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? > ? GROUP BY ?
163
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? ORDER BY ?
164
SELECT ?, SUM(?) FROM ? GROUP BY ?
165
SELECT COUNT(?) FROM ? WHERE ? > (SELECT AVG(?) FROM ?)
166
SELECT ? FROM ? WHERE ? <= (SELECT AVG(?) FROM ?)
167
SELECT ? FROM ? WHERE ? LIKE ? OR ? LIKE ?
168
SELECT ?, ?, ?, ?, ? FROM ? WHERE NOT ? LIKE ? ORDER BY ?
169
SELECT ? FROM ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
170
SELECT ? FROM ? WHERE ? = ? INTERSECT SELECT ? FROM ? WHERE ? = ?
171
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? < (SELECT MIN(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?)
172
SELECT COUNT(DISTINCT ?) FROM ? WHERE ? = ? AND ? = ?
173
SELECT MAX(?), MIN(?) FROM ? JOIN ? ON ? = ? WHERE ? = ?
174
SELECT DISTINCT ?, ?, ? FROM ? JOIN ? ON ? = ?
175
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) ASC
176
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) > ?
177
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
178
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
179
SELECT ?, ? FROM ? ORDER BY ?
180
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? OR ? = ?
181
SELECT ? FROM ? WHERE ? >= ?
182
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? ASC
183
SELECT ? FROM ? WHERE ? = ? AND ? BETWEEN ? AND ? AND ? = ?
184
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?
185
SELECT DISTINCT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? > ?
186
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = (SELECT MIN(?) FROM ?)
187
SELECT DISTINCT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ?
188
SELECT ? FROM ? WHERE ? = (SELECT MIN(?) FROM ?)
189
SELECT MIN(?), MAX(?) FROM ?
190
SELECT MAX(?) FROM ? WHERE ? < ?
191
SELECT ?, ?, ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY ? DESC LIMIT ?
192
SELECT ?, SUM(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?) ASC LIMIT ?
193
SELECT ? FROM ? WHERE ? = ? EXCEPT SELECT ? FROM ?
194
SELECT DISTINCT ? FROM ? ORDER BY ? DESC LIMIT ?
195
SELECT COUNT(?), ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC
196
SELECT ? FROM ? GROUP BY ? HAVING COUNT(?) = ?
197
SELECT ?, ?, ? FROM ? WHERE ? IN (SELECT ? FROM ? WHERE ? LIKE ?)
198
SELECT COUNT(DISTINCT ?), ? FROM ? JOIN ? ON ? = ? GROUP BY ?
199
SELECT COUNT(?) FROM ? WHERE NOT ? IN (SELECT DISTINCT ? FROM ?)