query_id
stringlengths
1
3
query_template
stringlengths
15
193
500
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? DESC LIMIT ?
501
SELECT ?, ?, ?, MAX(?) FROM ? JOIN ? ON ? = ? WHERE ? != ? GROUP BY ?
502
SELECT DISTINCT ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ? OR ? = ?
503
SELECT MAX(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? < ?
504
SELECT AVG(?) FROM ? WHERE ? = ? AND ? = ?
505
SELECT ?, COUNT(DISTINCT ?) FROM ? JOIN ? ON ? = ? GROUP BY ?
506
SELECT COUNT(?) FROM ? WHERE NOT ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?)
507
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? ORDER BY ? DESC LIMIT ?
508
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?
509
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? = ?
510
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? < ?
511
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? >= ?
512
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING SUM(?) > ?
513
SELECT ? FROM ? WHERE ? < ? AND ? = ? AND ? = ?
514
SELECT ?, ?, ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ?
515
SELECT SUM(?) FROM ? WHERE ? > (SELECT AVG(?) FROM ?)
516
SELECT AVG(?), ? FROM ? WHERE ? < ? GROUP BY ?
517
SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ? INTERSECT SELECT ? FROM ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
518
SELECT MIN(?), ? FROM ? GROUP BY ? HAVING AVG(?) > (SELECT AVG(?) FROM ?)
519
SELECT AVG(?), MIN(?), ? FROM ? GROUP BY ?
520
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? ORDER BY ? + ? LIMIT ?
521
SELECT MAX(?), AVG(?) FROM ? JOIN ? ON ? = ? WHERE ? = ?
522
SELECT ? FROM ? GROUP BY ? HAVING AVG(?) < ? INTERSECT SELECT ? FROM ? GROUP BY ? HAVING COUNT(?) >= ?
523
SELECT SUM(?) FROM ? ORDER BY ? DESC LIMIT ?
524
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? = ?
525
SELECT ?, SUM(?) FROM ? JOIN ? ON ? = ? WHERE ? >= ? AND ? <= ? GROUP BY ?
526
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
527
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? > ? INTERSECT SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING AVG(?) > ?
528
SELECT ?, ? FROM ? JOIN ? ON ? = ? ORDER BY ? LIMIT ?
529
SELECT ?, ? FROM ? JOIN ? ON ? = ? ORDER BY ? DESC LIMIT ?
530
SELECT ?, ?, ?, COUNT(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
531
SELECT ?, COUNT(?) FROM ? WHERE ? > ? GROUP BY ?
532
SELECT COUNT(?), ?, ? FROM ? GROUP BY ?, ?
533
SELECT ? FROM ? WHERE ? = ? ORDER BY ? DESC
534
SELECT COUNT(?) FROM ? WHERE ? = ? AND ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?)
535
SELECT ?, ?, ?, MIN(?) FROM ? JOIN ? ON ? = ? GROUP BY ?
536
SELECT ?, ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?) DESC LIMIT ?
537
SELECT DISTINCT (?) FROM ? WHERE ? LIKE ?
538
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
539
SELECT COUNT(?) FROM ? JOIN ? ON ? = ? WHERE ? LIKE ?
540
SELECT ?, ? FROM ? WHERE ? < (SELECT AVG(?) FROM ?)
541
SELECT ?, ?, ? FROM ? WHERE ? = ?
542
SELECT ?, COUNT(?), SUM(?) FROM ? WHERE ? = ?
543
SELECT ? FROM ? WHERE ? > ? OR ? < ?
544
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING SUM(?) <= ?
545
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ? AND ? = ?
546
SELECT ?, AVG(?) FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY AVG(?) DESC LIMIT ?
547
SELECT SUM(?) FROM ? WHERE ? > (SELECT MIN(?) FROM ? WHERE ? = ?)
548
SELECT MAX(?) FROM ? UNION SELECT ? FROM ? WHERE ? LIKE ?
549
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? EXCEPT SELECT DISTINCT ? FROM ? WHERE ? = ?
550
SELECT ? FROM ? GROUP BY ? HAVING AVG(?) > ? OR AVG(?) < ?
551
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) >= ?
552
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? < (SELECT MAX(?) FROM ?)
553
SELECT ? FROM ? WHERE ? - ? > ? GROUP BY ? HAVING COUNT(?) >= ?
554
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? IN (SELECT ? FROM ? WHERE ? > ?) EXCEPT SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? IN (SELECT ? FROM ? WHERE ? < ?)
555
SELECT COUNT(?), ? FROM ? GROUP BY ? HAVING COUNT(?) > ?
556
SELECT ? FROM ? WHERE ? > ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
557
SELECT AVG(?) FROM ? WHERE ? IN (SELECT ? FROM ?)
558
SELECT COUNT(?) FROM ? WHERE ? = ?
559
SELECT ?, COUNT(?) FROM ? GROUP BY ? ORDER BY COUNT(?) DESC
560
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? < ? INTERSECT SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? > ?
561
SELECT ?, ?, ?, ? FROM ? WHERE ? > (SELECT MAX(?) FROM ? WHERE ? = ?)
562
SELECT MIN(?) FROM ? WHERE ? = ? AND ? > ?
563
SELECT AVG(?) FROM ? WHERE NOT ? IN (SELECT ? FROM ? WHERE ? = ?)
564
SELECT ? FROM ? WHERE ? > ?
565
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? INTERSECT SELECT ? FROM ? WHERE ? < ?
566
SELECT ? FROM ? WHERE ? = ? AND ? = ?
567
SELECT COUNT(?), ? FROM ? WHERE ? = ? GROUP BY ?
568
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? > ?
569
SELECT COUNT(DISTINCT ?) FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
570
SELECT MAX(?), MIN(?) FROM ? WHERE ? = ?
571
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY SUM(?) LIMIT ?
572
SELECT ? FROM ? WHERE ? != ?
573
SELECT SUM(?), SUM(?) FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? = ?
574
SELECT ? FROM ? WHERE ? = ? AND ? != ? AND ? != ?
575
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) >= ? ORDER BY ?
576
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? GROUP BY ? HAVING COUNT(?) >= ?
577
SELECT ? FROM ? GROUP BY ? HAVING COUNT(?) < ?
578
SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ? INTERSECT SELECT ? FROM ? JOIN ? ON ? = ? JOIN ? ON ? = ? JOIN ? ON ? = ? WHERE ? = ?
579
SELECT ? FROM ? WHERE ? IN (SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?)
580
SELECT ?, ?, ? FROM ? EXCEPT SELECT ?, ?, ? FROM ? JOIN ? ON ? = ?
581
SELECT DISTINCT ?, ?, ? FROM ? JOIN ? ON ? = ? WHERE ? = ?
582
SELECT SUM(?), AVG(?) FROM ?
583
SELECT COUNT(DISTINCT ?) FROM ? JOIN ? ON ? = ? WHERE ? = ?
584
SELECT ?, ?, ? FROM ? WHERE ? = ? AND ? = ?
585
SELECT ? FROM ? WHERE ? BETWEEN ? AND ? AND ? != ? OR ? != ?
586
SELECT DISTINCT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? > ?
587
SELECT ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY AVG(?) DESC LIMIT ?
588
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? AND ? > ? AND ? > ?
589
SELECT COUNT(?), SUM(?), ? FROM ? GROUP BY ?
590
SELECT MAX(?), ? FROM ? JOIN ? ON ? = ?
591
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING AVG(?) > ? UNION SELECT ?, ? FROM ? WHERE ? LIKE ?
592
SELECT ?, ? FROM ? JOIN ? ON ? = ? GROUP BY ? HAVING COUNT(?) > ?
593
SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ? INTERSECT SELECT ? FROM ? JOIN ? ON ? = ? WHERE ? = ?
594
SELECT ? FROM ? WHERE NOT ? IN (SELECT ? FROM ? WHERE ? = ?)
595
SELECT COUNT(?) FROM ? WHERE NOT ? IN (SELECT ? FROM ? WHERE ? < ?)
596
SELECT ?, COUNT(?), ? FROM ? JOIN ? ON ? = ? GROUP BY ? ORDER BY COUNT(?) DESC LIMIT ?
597
SELECT MIN(?), AVG(?), MAX(?) FROM ?
598
SELECT ?, AVG(?) FROM ? JOIN ? ON ? = ? GROUP BY ?
599
SELECT ?, ? FROM ? WHERE ? = ? AND NOT ? IN (SELECT ? FROM ?)