query_id
stringlengths
1
3
query_template
stringlengths
15
193
0
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?)
1
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? != ?
2
SELECT ? FROM ? WHERE ? = ? OR ? = ?
3
SELECT ? FROM ? WHERE ? LIKE ? ORDER BY ?
4
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? + ? DESC
5
SELECT ? FROM ? WHERE ? BETWEEN (SELECT MIN(?) FROM ?) AND ?
6
SELECT ?, ?, ? FROM ? WHERE ? = ? OR ? = ?
7
SELECT DISTINCT ? FROM ? ORDER BY ?
8
SELECT COUNT(?) FROM ? WHERE ? IN (SELECT ? FROM ? WHERE ? > ?)
9
SELECT ? FROM ? WHERE ? > (SELECT AVG(?) FROM ? WHERE ? = ?)
10
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? > ? AND ? = ?
11
SELECT ? FROM ? WHERE ? = ? AND ? < ?
12
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) BETWEEN ? AND ?
13
SELECT ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) ASC
14
SELECT ?, ? FROM ? WHERE ? < ? OR ? > ?
15
SELECT ?, ? FROM ? WHERE ? != ? ORDER BY ?
16
SELECT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? != ?
17
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ?, ?
18
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?)
19
SELECT ? FROM ? WHERE ? > ? AND ? < ?
20
SELECT ?, ?, ? FROM ? ORDER BY ? DESC
21
SELECT AVG(?) FROM ? WHERE ? = ?
22
SELECT ?, ? FROM ? WHERE ? > (SELECT ? FROM ? WHERE ? = ?)
23
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) = ?
24
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ?
25
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? > (SELECT MAX(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?)
26
SELECT ? FROM ? WHERE ? IN (SELECT ? FROM ? WHERE ? < ?)
27
SELECT ? FROM ? GROUP BY ? HAVING SUM(?) > ?
28
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) = ? INTERSECT SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) < ?
29
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? > (SELECT AVG(?) FROM ?)
30
SELECT ?, ? FROM ? WHERE ? - ? = (SELECT ? - ? FROM ? ORDER BY (? - ?) DESC LIMIT ?)
31
SELECT ? FROM ? JOIN ? ON ? = ? ORDER BY ? DESC LIMIT ?
32
SELECT SUM(?) FROM ? WHERE ? = ? OR ? = ?
33
SELECT ?, ? FROM ? JOIN ? ON ? = ? ORDER BY ? - ? LIMIT ?
34
SELECT MIN(?), MAX(?) FROM ? WHERE ? = ? OR ? = ?
35
SELECT COUNT(?), ? FROM ? JOIN ? ON ? = ? GROUP BY ?
36
SELECT COUNT(?), ? FROM ? WHERE ? = ? GROUP BY ? ORDER BY COUNT(?) DESC
37
SELECT ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) > ?
38
SELECT ?, COUNT(?) FROM ? WHERE ? < ? GROUP BY ?
39
SELECT ?, COUNT(?) FROM ? GROUP BY ? HAVING COUNT(?) >= ?
40
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
41
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ?
42
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? < ?
43
SELECT COUNT(?) FROM ? WHERE ? > ? AND NOT ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? OR ? = ?)
44
SELECT ?, MAX(?), MIN(?) FROM ? GROUP BY ?
45
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? >= ? AND ? <= ? AND ? = ?
46
SELECT ?, ? FROM ? WHERE ? BETWEEN ? AND ?
47
SELECT ? FROM ? WHERE ? = ? ORDER BY ?
48
SELECT DISTINCT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? < ?
49
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? INTERSECT SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
50
SELECT ?, SUM(?) FROM ? GROUP BY ? ORDER BY SUM(?) DESC
51
SELECT SUM(?), MIN(?) FROM ?
52
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? DESC
53
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ?
54
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? > ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
55
SELECT COUNT(DISTINCT ?), COUNT(DISTINCT ?) FROM ?
56
SELECT ?, ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = (SELECT MAX(?) FROM ? WHERE ? = ?)
57
SELECT ? FROM ? ORDER BY ?
58
SELECT ? FROM ? WHERE ? > (SELECT MAX(?) FROM ? WHERE ? = ?)
59
SELECT AVG(?) FROM ? WHERE ? BETWEEN ? AND ?
60
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ?
61
SELECT ? FROM ? WHERE ? > ? OR ? > ?
62
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? < ? INTERSECT SELECT ? FROM ? WHERE ? > ?
63
SELECT ?, ? FROM ?
64
SELECT ? FROM ? WHERE ? >= ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
65
SELECT ?, ?, ? FROM ? ORDER BY ?
66
SELECT DISTINCT ?, ? FROM ? JOIN ? ON ? = ?
67
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) LIMIT ?
68
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY AVG(?) ASC LIMIT ?
69
SELECT ?, SUM(?) FROM ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
70
SELECT ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC
71
SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) LIMIT ?
72
SELECT ?, ? FROM ? JOIN ? ON ? = ? EXCEPT SELECT ?, ? FROM ? JOIN ? ON ? = ?
73
SELECT ?, COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? > ? GROUP BY ?
74
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? <= ?
75
SELECT ?, ?, ?, ? FROM ? WHERE ? = ?
76
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? LIKE ?
77
SELECT COUNT(?), ? FROM ?, ? JOIN ? ON ? = ? AND ? = ? GROUP BY ?
78
SELECT AVG(?) FROM ? GROUP BY ? ORDER BY COUNT(?) ASC LIMIT ?
79
SELECT AVG(?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = (SELECT MAX(?) FROM ?)
80
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? ORDER BY ? DESC LIMIT ?
81
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? < (SELECT AVG(?) FROM ?)
82
SELECT AVG(?), MIN(?), MAX(?) FROM ? WHERE ? >= ?
83
SELECT ?, ?, ? FROM ? WHERE ? = (SELECT ? FROM ? WHERE ? = ?)
84
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? != ?
85
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? > ? AND ? = ?
86
SELECT COUNT(DISTINCT ?) FROM ? WHERE NOT ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?)
87
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? > ? GROUP BY ? HAVING COUNT(?) > ?
88
SELECT ?, ? FROM ? WHERE ? > ? AND ? = ?
89
SELECT ? FROM ? WHERE ? < ? INTERSECT SELECT ? FROM ? WHERE ? > ?
90
SELECT AVG(?), ? FROM ? WHERE ? = ? GROUP BY ?
91
SELECT ?, ?, ? FROM ? WHERE ? > ? ORDER BY ?
92
SELECT AVG(?) FROM ?
93
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? ORDER BY ? DESC
94
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? > ?
95
SELECT ? FROM ? WHERE ? BETWEEN ? AND ?
96
SELECT COUNT(?), ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
97
SELECT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? INTERSECT SELECT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ?
98
SELECT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? != ? ORDER BY ?, ?
99
SELECT ?, ? FROM ? WHERE ? < (SELECT AVG(?) FROM ? WHERE ? = ?)