query_id
stringlengths
1
2
query_template
stringlengths
18
88
0
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
1
SELECT COUNT(?) FROM ? WHERE ? = ?
2
SELECT ? FROM ? WHERE ? LIKE ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
3
SELECT ? FROM ? GROUP BY ? HAVING COUNT(?) > ?
4
SELECT ?, ? FROM ? WHERE ? = ?
5
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY ?
6
SELECT COUNT(?) FROM ? WHERE ? = ? AND ? > ?
7
SELECT ? FROM ? WHERE ? > ?
8
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
9
SELECT ?, MAX(?) FROM ? GROUP BY ?
10
SELECT ? FROM ? ORDER BY ? DESC LIMIT ?
11
SELECT ?, COUNT(?) FROM ? GROUP BY ?
12
SELECT ? FROM ? WHERE ? = ? AND ? = ?
13
SELECT SUM(?), ? FROM ? WHERE ? = ? AND ? BETWEEN ? AND ? GROUP BY ?
14
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? >= ? ORDER BY ? DESC LIMIT ?
15
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? = ? AND ? = ? AND ? = ?
16
SELECT AVG(? - ?) FROM ?
17
SELECT ? FROM ? WHERE ? LIKE ?
18
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
19
SELECT COUNT(?), ? FROM ? GROUP BY ?
20
SELECT AVG(?) FROM ?
21
SELECT DISTINCT ? FROM ?
22
SELECT ? FROM ? WHERE ? = ?
23
SELECT COUNT(?) FROM ? WHERE ? LIKE ?
24
SELECT ? FROM ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
25
SELECT ?, ? FROM ?
26
SELECT ? FROM ? GROUP BY ? HAVING COUNT(?) = ?
27
SELECT ? FROM ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
28
SELECT ? FROM ? GROUP BY ? ORDER BY MAX(?) - MIN(?) DESC LIMIT ?
29
SELECT ? FROM ? ORDER BY ? LIMIT ?
30
SELECT DISTINCT ? FROM ? WHERE ? != ?
31
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ?
32
SELECT COUNT(DISTINCT ?) FROM ?
33
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? ORDER BY ? DESC LIMIT ?
34
SELECT ? FROM ? WHERE ? LIKE ? AND ? = ? UNION SELECT ? FROM ? WHERE ? LIKE ? AND ? = ?
35
SELECT ?, ? FROM ? ORDER BY ? DESC LIMIT ?
36
SELECT ? FROM ? WHERE ? BETWEEN ? AND ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
37
SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) LIMIT ?
38
SELECT ? FROM ? WHERE ? = ? ORDER BY ? DESC LIMIT ?
39
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?)
40
SELECT SUM(?) FROM ? WHERE ? = ?
41
SELECT ? FROM ? GROUP BY ? ORDER BY AVG(?) DESC LIMIT ?
42
SELECT ? FROM ? WHERE ? = ? AND ? = ? AND ? = ?
43
SELECT ? FROM ? WHERE ? = ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
44
SELECT ? FROM ? WHERE (? + ?) = ?
45
SELECT AVG(?) FROM ? JOIN ? ON ? = ? WHERE ? = ?
46
SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
47
SELECT SUM(?), ? FROM ? GROUP BY ?
48
SELECT AVG(? - ?) FROM ? WHERE ? = ?
49
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?