File size: 277,415 Bytes
57517d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
question_id,db_id,question,gold_sql,gold_columns,n_gold_columns,n_schema_columns,label_source
0,concert_singer,How many singers do we have?,SELECT count(*) FROM singer,singer.Singer_ID,1,21,count_star_pk_injected+empty_fixed
1,concert_singer,What is the total number of singers?,SELECT count(*) FROM singer,singer.Singer_ID,1,21,count_star_pk_injected+empty_fixed
2,concert_singer,"Show name, country, age for all singers ordered by age from the oldest to the youngest.","SELECT name ,  country ,  age FROM singer ORDER BY age DESC",singer.Age; singer.Country; singer.Name,3,21,unchanged
3,concert_singer,"What are the names, countries, and ages for every singer in descending order of age?","SELECT name ,  country ,  age FROM singer ORDER BY age DESC",singer.Age; singer.Country; singer.Name,3,21,unchanged

4,concert_singer,"What is the average, minimum, and maximum age of all singers from France?","SELECT avg(age) ,  min(age) ,  max(age) FROM singer WHERE country  =  'France'",singer.Age; singer.Country,2,21,unchanged

5,concert_singer,"What is the average, minimum, and maximum age for all French singers?","SELECT avg(age) ,  min(age) ,  max(age) FROM singer WHERE country  =  'France'",singer.Age; singer.Country,2,21,joinkey_added

6,concert_singer,Show the name and the release year of the song by the youngest singer.,"SELECT song_name ,  song_release_year FROM singer ORDER BY age LIMIT 1",singer.Age; singer.Song_Name; singer.Song_release_year,3,21,unchanged

7,concert_singer,What are the names and release years for all the songs of the youngest singer?,"SELECT song_name ,  song_release_year FROM singer ORDER BY age LIMIT 1",singer.Age; singer.Song_Name; singer.Song_release_year,3,21,unchanged

8,concert_singer,What are all distinct countries where singers above age 20 are from?,SELECT DISTINCT country FROM singer WHERE age  >  20,singer.Age; singer.Country,2,21,unchanged

9,concert_singer,What are  the different countries with singers above age 20?,SELECT DISTINCT country FROM singer WHERE age  >  20,singer.Age; singer.Country,2,21,unchanged

10,concert_singer,Show all countries and the number of singers in each country.,"SELECT country ,  count(*) FROM singer GROUP BY country",singer.Country,1,21,unchanged

11,concert_singer,How many singers are from each country?,"SELECT country ,  count(*) FROM singer GROUP BY country",singer.Country,1,21,unchanged

12,concert_singer,List all song names by singers above the average age.,SELECT song_name FROM singer WHERE age  >  (SELECT avg(age) FROM singer),singer.Age; singer.Song_Name,2,21,unchanged

13,concert_singer,What are all the song names by singers who are older than average?,SELECT song_name FROM singer WHERE age  >  (SELECT avg(age) FROM singer),singer.Age; singer.Song_Name,2,21,unchanged

14,concert_singer,Show location and name for all stadiums with a capacity between 5000 and 10000.,"SELECT LOCATION ,  name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",stadium.Capacity; stadium.Location; stadium.Name,3,21,unchanged

15,concert_singer,What are the locations and names of all stations with capacity between 5000 and 10000?,"SELECT LOCATION ,  name FROM stadium WHERE capacity BETWEEN 5000 AND 10000",stadium.Capacity; stadium.Location; stadium.Name,3,21,unchanged

16,concert_singer,What is the maximum capacity and the average of all stadiums ?,"select max(capacity), average from stadium",stadium.Average; stadium.Capacity,2,21,unchanged

17,concert_singer,What is the average and maximum capacities for all stadiums ?,"select avg(capacity) ,  max(capacity) from stadium",stadium.Capacity,1,21,unchanged

18,concert_singer,What is the name and capacity for the stadium with highest average attendance?,"SELECT name ,  capacity FROM stadium ORDER BY average DESC LIMIT 1",stadium.Average; stadium.Capacity; stadium.Name,3,21,unchanged

19,concert_singer,What is the name and capacity for the stadium with the highest average attendance?,"SELECT name ,  capacity FROM stadium ORDER BY average DESC LIMIT 1",stadium.Average; stadium.Capacity; stadium.Name,3,21,unchanged

20,concert_singer,How many concerts are there in year 2014 or 2015?,SELECT count(*) FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015,concert.Year,1,21,unchanged

21,concert_singer,How many concerts occurred in 2014 or 2015?,SELECT count(*) FROM concert WHERE YEAR  =  2014 OR YEAR  =  2015,concert.Year,1,21,unchanged

22,concert_singer,Show the stadium name and the number of concerts in each stadium.,"SELECT T2.name ,  count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id GROUP BY T1.stadium_id",concert.Stadium_ID; stadium.Name; stadium.Stadium_ID,3,21,joinkey_added

23,concert_singer,"For each stadium, how many concerts play there?","SELECT T2.name ,  count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id GROUP BY T1.stadium_id",concert.Stadium_ID; stadium.Name; stadium.Stadium_ID,3,21,joinkey_added

24,concert_singer,Show the stadium name and capacity with most number of concerts in year 2014 or after.,"SELECT T2.name ,  T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  >=  2014 GROUP BY T2.stadium_id ORDER BY count(*) DESC LIMIT 1",concert.Stadium_ID; concert.Year; stadium.Capacity; stadium.Name; stadium.Stadium_ID,5,21,joinkey_added

25,concert_singer,What is the name and capacity of the stadium with the most concerts after 2013 ?,"select t2.name ,  t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id  =  t2.stadium_id where t1.year  >  2013 group by t2.stadium_id order by count(*) desc limit 1",concert.Stadium_ID; concert.Year; stadium.Capacity; stadium.Name; stadium.Stadium_ID,5,21,joinkey_added

26,concert_singer,Which year has most number of concerts?,SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,concert.Year,1,21,unchanged

27,concert_singer,What is the year that had the most concerts?,SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,concert.Year,1,21,unchanged

28,concert_singer,Show the stadium names without any concert.,SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert),concert.Stadium_ID; stadium.Name; stadium.Stadium_ID,3,21,unchanged

29,concert_singer,What are the names of the stadiums without any concerts?,SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert),concert.Stadium_ID; stadium.Name; stadium.Stadium_ID,3,21,unchanged

30,concert_singer,Show countries where a singer above age 40 and a singer below 30 are from.,SELECT country FROM singer WHERE age  >  40 INTERSECT SELECT country FROM singer WHERE age  <  30,singer.Age; singer.Country,2,21,joinkey_added

31,concert_singer,Show names for all stadiums except for stadiums having a concert in year 2014.,SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  =  2014,concert.Stadium_ID; concert.Year; stadium.Name; stadium.Stadium_ID,4,21,unchanged

32,concert_singer,What are the names of all stadiums that did not have a concert in 2014?,SELECT name FROM stadium EXCEPT SELECT T2.name FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.year  =  2014,concert.Stadium_ID; concert.Year; stadium.Name; stadium.Stadium_ID,4,21,unchanged

33,concert_singer,Show the name and theme for all concerts and the number of singers in each concert.,"SELECT T2.concert_name ,  T2.theme ,  count(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id  =  T2.concert_id GROUP BY T2.concert_id",concert.Theme; concert.concert_ID; concert.concert_Name; singer_in_concert.concert_ID,4,21,joinkey_added

34,concert_singer,"What are the names , themes , and number of singers for every concert ?","select t2.concert_name ,  t2.theme ,  count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id  =  t2.concert_id group by t2.concert_id",concert.Theme; concert.concert_ID; concert.concert_Name; singer_in_concert.concert_ID,4,21,joinkey_added

35,concert_singer,List singer names and number of concerts for each singer.,"SELECT T2.name ,  count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id GROUP BY T2.singer_id",singer.Name; singer.Singer_ID; singer_in_concert.Singer_ID,3,21,joinkey_added

36,concert_singer,What are the names of the singers and number of concerts for each person?,"SELECT T2.name ,  count(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id GROUP BY T2.singer_id",singer.Name; singer.Singer_ID; singer_in_concert.Singer_ID,3,21,joinkey_added

37,concert_singer,List all singer names in concerts in year 2014.,SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id JOIN concert AS T3 ON T1.concert_id  =  T3.concert_id WHERE T3.year  =  2014,concert.Year; concert.concert_ID; singer.Name; singer.Singer_ID; singer_in_concert.Singer_ID; singer_in_concert.concert_ID,6,21,unchanged

38,concert_singer,What are the names of the singers who performed in a concert in 2014?,SELECT T2.name FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id  =  T2.singer_id JOIN concert AS T3 ON T1.concert_id  =  T3.concert_id WHERE T3.year  =  2014,concert.Year; concert.concert_ID; singer.Name; singer.Singer_ID; singer_in_concert.Singer_ID; singer_in_concert.concert_ID,6,21,joinkey_added

39,concert_singer,what is the name and nation of the singer who have a song having 'Hey' in its name?,"SELECT name ,  country FROM singer WHERE song_name LIKE '%Hey%'",singer.Country; singer.Name; singer.Song_Name,3,21,unchanged

40,concert_singer,What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?,"SELECT name ,  country FROM singer WHERE song_name LIKE '%Hey%'",singer.Country; singer.Name; singer.Song_Name,3,21,unchanged

41,concert_singer,Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.,"SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2014 INTERSECT SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2015",concert.Stadium_ID; concert.Year; stadium.Location; stadium.Name; stadium.Stadium_ID,5,21,joinkey_added

42,concert_singer,What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?,"SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2014 INTERSECT SELECT T2.name ,  T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id  =  T2.stadium_id WHERE T1.Year  =  2015",concert.Stadium_ID; concert.Year; stadium.Location; stadium.Name; stadium.Stadium_ID,5,21,joinkey_added

43,concert_singer,Find the number of concerts happened in the stadium with the highest capacity .,select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1),concert.Stadium_ID; stadium.Capacity; stadium.Stadium_ID,3,21,unchanged

44,concert_singer,What are the number of concerts that occurred in the stadium with the largest capacity ?,select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1),concert.Stadium_ID; stadium.Capacity; stadium.Stadium_ID,3,21,unchanged

45,pets_1,Find the number of pets whose weight is heavier than 10.,SELECT count(*) FROM pets WHERE weight  >  10,Pets.weight,1,14,unchanged

46,pets_1,How many pets have a greater weight than 10?,SELECT count(*) FROM pets WHERE weight  >  10,Pets.weight,1,14,unchanged

47,pets_1,Find the weight of the youngest dog.,SELECT weight FROM pets ORDER BY pet_age LIMIT 1,Pets.pet_age; Pets.weight,2,14,unchanged

48,pets_1,How much does the youngest dog weigh?,SELECT weight FROM pets ORDER BY pet_age LIMIT 1,Pets.pet_age; Pets.weight,2,14,unchanged

49,pets_1,Find the maximum weight for each type of pet. List the maximum weight and pet type.,"SELECT max(weight) ,  petType FROM pets GROUP BY petType",Pets.PetType; Pets.weight,2,14,unchanged

50,pets_1,List the maximum weight and type for each type of pet.,"SELECT max(weight) ,  petType FROM pets GROUP BY petType",Pets.PetType; Pets.weight,2,14,unchanged

51,pets_1,Find number of pets owned by students who are older than 20.,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.age  >  20,Has_Pet.StuID; Student.Age; Student.StuID,3,14,unchanged

52,pets_1,How many pets are owned by students that have an age greater than 20?,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.age  >  20,Has_Pet.StuID; Student.Age; Student.StuID,3,14,unchanged

53,pets_1,Find the number of dog pets that are raised by female students (with sex F).,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T2.petid  =  T3.petid WHERE T1.sex  =  'F' AND T3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Sex; Student.StuID,6,14,unchanged

54,pets_1,How many dog pets are raised by female students?,SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T2.petid  =  T3.petid WHERE T1.sex  =  'F' AND T3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Sex; Student.StuID,6,14,unchanged

55,pets_1,Find the number of distinct type of pets.,SELECT count(DISTINCT pettype) FROM pets,Pets.PetType,1,14,unchanged

56,pets_1,How many different types of pet are there?,SELECT count(DISTINCT pettype) FROM pets,Pets.PetType,1,14,unchanged

57,pets_1,Find the first name of students who have cat or dog pet.,SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' OR T3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Fname; Student.StuID,6,14,unchanged

58,pets_1,What are the first names of every student who has a cat or dog as a pet?,SELECT DISTINCT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' OR T3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Fname; Student.StuID,6,14,unchanged

59,pets_1,Find the first name of students who have both cat and dog pets .,select t1.fname from student as t1 join has_pet as t2 on t1.stuid  =  t2.stuid join pets as t3 on t3.petid  =  t2.petid where t3.pettype  =  'cat' intersect select t1.fname from student as t1 join has_pet as t2 on t1.stuid  =  t2.stuid join pets as t3 on t3.petid  =  t2.petid where t3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Fname; Student.StuID,6,14,unchanged

60,pets_1,What are the students' first names who have both cats and dogs as pets?,SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Fname; Student.StuID,6,14,unchanged

61,pets_1,Find the major and age of students who do not have a cat pet.,"SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')",Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Age; Student.Major; Student.StuID,7,14,unchanged

62,pets_1,"What major is every student who does not own a cat as a pet, and also how old are they?","SELECT major ,  age FROM student WHERE stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')",Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Age; Student.Major; Student.StuID,7,14,joinkey_added

63,pets_1,Find the id of students who do not have a cat pet.,SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.StuID,5,14,joinkey_added

64,pets_1,What are the ids of the students who do not own cats as pets?,SELECT stuid FROM student EXCEPT SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.StuID,5,14,joinkey_added

65,pets_1,Find the first name and age of students who have a dog but do not have a cat as a pet.,"SELECT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')",Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Age; Student.Fname; Student.StuID,7,14,unchanged

66,pets_1,What is the first name of every student who has a dog but does not have a cat?,"SELECT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'dog' AND T1.stuid NOT IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pettype  =  'cat')",Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Student.Age; Student.Fname; Student.StuID,7,14,unchanged

67,pets_1,Find the type and weight of the youngest pet.,"SELECT pettype ,  weight FROM pets ORDER BY pet_age LIMIT 1",Pets.PetType; Pets.pet_age; Pets.weight,3,14,unchanged

68,pets_1,"What type of pet is the youngest animal, and how much does it weigh?","SELECT pettype ,  weight FROM pets ORDER BY pet_age LIMIT 1",Pets.PetType; Pets.pet_age; Pets.weight,3,14,unchanged

69,pets_1,Find the id and weight of all pets whose age is older than 1.,"SELECT petid ,  weight FROM pets WHERE pet_age  >  1",Pets.PetID; Pets.pet_age; Pets.weight,3,14,unchanged

70,pets_1,What is the id and weight of every pet who is older than 1?,"SELECT petid ,  weight FROM pets WHERE pet_age  >  1",Pets.PetID; Pets.pet_age; Pets.weight,3,14,unchanged

71,pets_1,Find the average and maximum age for each type of pet.,"SELECT avg(pet_age) ,  max(pet_age) ,  pettype FROM pets GROUP BY pettype",Pets.PetType; Pets.pet_age,2,14,unchanged

72,pets_1,What is the average and maximum age for each pet type?,"SELECT avg(pet_age) ,  max(pet_age) ,  pettype FROM pets GROUP BY pettype",Pets.PetType; Pets.pet_age,2,14,unchanged

73,pets_1,Find the average weight for each pet type.,"SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype",Pets.PetType; Pets.weight,2,14,unchanged

74,pets_1,What is the average weight for each type of pet?,"SELECT avg(weight) ,  pettype FROM pets GROUP BY pettype",Pets.PetType; Pets.weight,2,14,unchanged

75,pets_1,Find the first name and age of students who have a pet.,"SELECT DISTINCT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid",Has_Pet.StuID; Student.Age; Student.Fname; Student.StuID,4,14,joinkey_added

76,pets_1,What are the different first names and ages of the students who do have pets?,"SELECT DISTINCT T1.fname ,  T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid",Has_Pet.StuID; Student.Age; Student.Fname; Student.StuID,4,14,unchanged

77,pets_1,Find the id of the pet owned by student whose last name is ‘Smith’.,SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.Lname  =  'Smith',Has_Pet.PetID; Has_Pet.StuID; Student.LName; Student.StuID,4,14,unchanged

78,pets_1,What is the id of the pet owned by the student whose last name is 'Smith'?,SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid WHERE T1.Lname  =  'Smith',Has_Pet.PetID; Has_Pet.StuID; Student.LName; Student.StuID,4,14,unchanged

79,pets_1,Find the number of pets for each student who has any pet and student id.,"SELECT count(*) ,  T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid",Has_Pet.StuID; Student.StuID,2,14,unchanged

80,pets_1,"For students who have pets , how many pets does each student have ? list their ids instead of names .","select count(*) ,  t1.stuid from student as t1 join has_pet as t2 on t1.stuid  =  t2.stuid group by t1.stuid",Has_Pet.StuID; Student.StuID,2,14,unchanged

81,pets_1,Find the first name and gender of student who have more than one pet.,"SELECT T1.fname ,  T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid HAVING count(*)  >  1",Has_Pet.StuID; Student.Fname; Student.Sex; Student.StuID,4,14,unchanged

82,pets_1,What is the first name and gender of the all the students who have more than one pet?,"SELECT T1.fname ,  T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid GROUP BY T1.stuid HAVING count(*)  >  1",Has_Pet.StuID; Student.Fname; Student.Sex; Student.StuID,4,14,unchanged

83,pets_1,Find the last name of the student who has a cat that is age 3.,SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pet_age  =  3 AND T3.pettype  =  'cat',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Pets.pet_age; Student.LName; Student.StuID,7,14,unchanged

84,pets_1,What is the last name of the student who has a cat that is 3 years old?,SELECT T1.lname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid  =  T2.stuid JOIN pets AS T3 ON T3.petid  =  T2.petid WHERE T3.pet_age  =  3 AND T3.pettype  =  'cat',Has_Pet.PetID; Has_Pet.StuID; Pets.PetID; Pets.PetType; Pets.pet_age; Student.LName; Student.StuID,7,14,unchanged

85,pets_1,Find the average age of students who do not have any pet .,select avg(age) from student where stuid not in (select stuid from has_pet),Has_Pet.StuID; Student.Age; Student.StuID,3,14,unchanged

86,pets_1,What is the average age for all students who do not own any pets ?,select avg(age) from student where stuid not in (select stuid from has_pet),Has_Pet.StuID; Student.Age; Student.StuID,3,14,unchanged

87,car_1,How many continents are there?,SELECT count(*) FROM CONTINENTS;,continents.ContId,1,23,count_star_pk_injected+empty_fixed

88,car_1,What is the number of continents?,SELECT count(*) FROM CONTINENTS;,continents.ContId,1,23,count_star_pk_injected+empty_fixed

89,car_1,"How many countries does each continent have? List the continent id, continent name and the number of countries.","SELECT T1.ContId ,  T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.Continent GROUP BY T1.ContId;",continents.ContId; continents.Continent; countries.Continent,3,23,joinkey_added
90,car_1,"For each continent, list its id, name, and how many countries it has?","SELECT T1.ContId ,  T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.Continent GROUP BY T1.ContId;",continents.ContId; continents.Continent; countries.Continent,3,23,joinkey_added
91,car_1,How many countries are listed?,SELECT count(*) FROM COUNTRIES;,countries.CountryId,1,23,count_star_pk_injected+empty_fixed
92,car_1,How many countries exist?,SELECT count(*) FROM COUNTRIES;,countries.CountryId,1,23,count_star_pk_injected+empty_fixed
93,car_1,"How many models does each car maker produce? List maker full name, id and the number.","SELECT T1.FullName ,  T1.Id ,  count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
94,car_1,"What is the full name of each car maker, along with its id and how many models it produces?","SELECT T1.FullName ,  T1.Id ,  count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
95,car_1,Which model of the car has the minimum horsepower?,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.horsepower ASC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Horsepower; cars_data.Id,4,23,unchanged
96,car_1,What is the model of the car with the smallest amount of horsepower?,SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.horsepower ASC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Horsepower; cars_data.Id,4,23,unchanged
97,car_1,Find the model of the car whose weight is below the average weight.,SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Weight  <  (SELECT avg(Weight) FROM CARS_DATA),car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight,4,23,unchanged
98,car_1,What is the model for the car with a weight smaller than the average?,SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Weight  <  (SELECT avg(Weight) FROM CARS_DATA),car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight,4,23,unchanged
99,car_1,Find the name of the makers that produced some cars in the year of 1970?,SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model JOIN CARS_DATA AS T4 ON T3.MakeId  =  T4.id WHERE T4.year  =  '1970';,car_makers.Id; car_makers.Maker; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Year; model_list.Maker; model_list.Model,8,23,unchanged
100,car_1,What is the name of the different car makers who produced a car in 1970?,SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model JOIN CARS_DATA AS T4 ON T3.MakeId  =  T4.id WHERE T4.year  =  '1970';,car_makers.Id; car_makers.Maker; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Year; model_list.Maker; model_list.Model,8,23,unchanged
101,car_1,Find the make and production time of the cars that were produced in the earliest year?,"SELECT T2.Make ,  T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Year  =  (SELECT min(YEAR) FROM CARS_DATA);",car_names.Make; car_names.MakeId; cars_data.Id; cars_data.Year,4,23,unchanged
102,car_1,What is the maker of the carr produced in the earliest year and what year was it?,"SELECT T2.Make ,  T1.Year FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Year  =  (SELECT min(YEAR) FROM CARS_DATA);",car_names.Make; car_names.MakeId; cars_data.Id; cars_data.Year,4,23,unchanged
103,car_1,Which distinct car models are the produced after 1980?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model  =  T2.model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.id WHERE T3.year  >  1980;,car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Year; model_list.Model,5,23,unchanged
104,car_1,What are the different models for the cards produced after 1980?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.model  =  T2.model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.id WHERE T3.year  >  1980;,car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Year; model_list.Model,5,23,unchanged
105,car_1,How many car makers are there in each continents? List the continent name and the count.,"SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;",car_makers.Country; continents.ContId; continents.Continent; countries.Continent; countries.CountryId,5,23,unchanged
106,car_1,What is the name of each continent and how many car makers are there in each one?,"SELECT T1.Continent ,  count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId  =  T2.continent JOIN car_makers AS T3 ON T2.CountryId  =  T3.Country GROUP BY T1.Continent;",car_makers.Country; continents.ContId; continents.Continent; countries.Continent; countries.CountryId,5,23,unchanged
107,car_1,Which of the countries has the most car makers? List the country name.,SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;,car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
108,car_1,What is the name of the country with the most car makers?,SELECT T2.CountryName FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId GROUP BY T1.Country ORDER BY Count(*) DESC LIMIT 1;,car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
109,car_1,How many car models are produced by each maker ? Only list the count and the maker full name .,"select count(*) ,  t2.fullname from model_list as t1 join car_makers as t2 on t1.maker  =  t2.id group by t2.id;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
110,car_1,What is the number of car models that are produced by each maker and what is the id and full name of each maker?,"SELECT Count(*) ,  T2.FullName ,  T2.id FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id GROUP BY T2.id;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
111,car_1,What is the accelerate of the car make amc hornet sportabout (sw)?,SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Make  =  'amc hornet sportabout (sw)';,car_names.Make; car_names.MakeId; cars_data.Accelerate; cars_data.Id,4,23,unchanged
112,car_1,How much does the car accelerate that makes amc hornet sportabout (sw)?,SELECT T1.Accelerate FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Make  =  'amc hornet sportabout (sw)';,car_names.Make; car_names.MakeId; cars_data.Accelerate; cars_data.Id,4,23,unchanged
113,car_1,How many car makers are there in france?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'france';,car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
114,car_1,What is the number of makers of care in France?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country  =  T2.CountryId WHERE T2.CountryName  =  'france';,car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
115,car_1,How many car models are produced in the usa?,SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id JOIN COUNTRIES AS T3 ON T2.Country  =  T3.CountryId WHERE T3.CountryName  =  'usa';,car_makers.Country; car_makers.Id; countries.CountryId; countries.CountryName; model_list.Maker,5,23,unchanged
116,car_1,What is the count of the car models produced in the United States?,SELECT count(*) FROM MODEL_LIST AS T1 JOIN CAR_MAKERS AS T2 ON T1.Maker  =  T2.Id JOIN COUNTRIES AS T3 ON T2.Country  =  T3.CountryId WHERE T3.CountryName  =  'usa';,car_makers.Country; car_makers.Id; countries.CountryId; countries.CountryName; model_list.Maker,5,23,unchanged
117,car_1,What is the average miles per gallon(mpg) of the cars with 4 cylinders?,SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders  =  4;,cars_data.Cylinders; cars_data.MPG,2,23,unchanged
118,car_1,What is the average miles per gallon of all the cards with 4 cylinders?,SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders  =  4;,cars_data.Cylinders; cars_data.MPG,2,23,unchanged
119,car_1,What is the smallest weight of the car produced with 8 cylinders on 1974 ?,select min(weight) from cars_data where cylinders  =  8 and year  =  1974,cars_data.Cylinders; cars_data.Weight; cars_data.Year,3,23,unchanged
120,car_1,What is the minimum weight of the car with 8 cylinders produced in 1974 ?,select min(weight) from cars_data where cylinders  =  8 and year  =  1974,cars_data.Cylinders; cars_data.Weight; cars_data.Year,3,23,unchanged
121,car_1,What are all the makers and models?,"SELECT Maker ,  Model FROM MODEL_LIST;",model_list.Maker; model_list.Model,2,23,unchanged
122,car_1,What are the makers and models?,"SELECT Maker ,  Model FROM MODEL_LIST;",model_list.Maker; model_list.Model,2,23,unchanged
123,car_1,What are the countries having at least one car maker? List name and id.,"SELECT T1.CountryName ,  T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >=  1;",car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
124,car_1,What are the names and ids of all countries with at least one car maker?,"SELECT T1.CountryName ,  T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.CountryId HAVING count(*)  >=  1;",car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
125,car_1,What is the number of the cars with horsepower more than 150?,SELECT count(*) FROM CARS_DATA WHERE horsepower  >  150;,cars_data.Horsepower,1,23,unchanged
126,car_1,What is the number of cars with a horsepower greater than 150?,SELECT count(*) FROM CARS_DATA WHERE horsepower  >  150;,cars_data.Horsepower,1,23,unchanged
127,car_1,What is the average weight of cars each year?,"SELECT avg(Weight) ,  YEAR FROM CARS_DATA GROUP BY YEAR;",cars_data.Weight; cars_data.Year,2,23,unchanged
128,car_1,What is the average weight and year for each year?,"SELECT avg(Weight) ,  YEAR FROM CARS_DATA GROUP BY YEAR;",cars_data.Weight; cars_data.Year,2,23,unchanged
129,car_1,Which countries in europe have at least 3 car manufacturers?,SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent  =  T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId  =  T3.Country WHERE T2.Continent  =  'europe' GROUP BY T1.CountryName HAVING count(*)  >=  3;,car_makers.Country; continents.ContId; continents.Continent; countries.Continent; countries.CountryId; countries.CountryName,6,23,unchanged
130,car_1,What are the names of all European countries with at least 3 manufacturers?,SELECT T1.CountryName FROM COUNTRIES AS T1 JOIN CONTINENTS AS T2 ON T1.Continent  =  T2.ContId JOIN CAR_MAKERS AS T3 ON T1.CountryId  =  T3.Country WHERE T2.Continent  =  'europe' GROUP BY T1.CountryName HAVING count(*)  >=  3;,car_makers.Country; continents.ContId; continents.Continent; countries.Continent; countries.CountryId; countries.CountryName,6,23,unchanged
131,car_1,What is the maximum horsepower and the make of the car models with 3 cylinders?,"SELECT T2.horsepower ,  T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.cylinders  =  3 ORDER BY T2.horsepower DESC LIMIT 1;",car_names.Make; car_names.MakeId; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,joinkey_added
132,car_1,What is the largest amount of horsepower for the models with 3 cylinders and what make is it?,"SELECT T2.horsepower ,  T1.Make FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.cylinders  =  3 ORDER BY T2.horsepower DESC LIMIT 1;",car_names.Make; car_names.MakeId; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,unchanged
133,car_1,"Which model saves the most gasoline? That is to say, have the maximum miles per gallon.",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id ORDER BY T2.mpg DESC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Id; cars_data.MPG,4,23,unchanged
134,car_1,What is the car model with the highest mpg ?,select t1.model from car_names as t1 join cars_data as t2 on t1.makeid  =  t2.id order by t2.mpg desc limit 1;,car_names.MakeId; car_names.Model; cars_data.Id; cars_data.MPG,4,23,unchanged
135,car_1,What is the average horsepower of the cars before 1980?,SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR  <  1980;,cars_data.Horsepower; cars_data.Year,2,23,unchanged
136,car_1,What is the average horsepower for all cars produced before 1980 ?,select avg(horsepower) from cars_data where year  <  1980;,cars_data.Horsepower; cars_data.Year,2,23,unchanged
137,car_1,What is the average edispl of the cars of model volvo?,SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model  =  'volvo';,car_names.MakeId; car_names.Model; cars_data.Edispl; cars_data.Id,4,23,unchanged
138,car_1,What is the average edispl for all volvos?,SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T1.Model  =  'volvo';,car_names.MakeId; car_names.Model; cars_data.Edispl; cars_data.Id,4,23,unchanged
139,car_1,What is the maximum accelerate for different number of cylinders?,"SELECT max(Accelerate) ,  Cylinders FROM CARS_DATA GROUP BY Cylinders;",cars_data.Accelerate; cars_data.Cylinders,2,23,unchanged
140,car_1,What is the maximum accelerate for all the different cylinders?,"SELECT max(Accelerate) ,  Cylinders FROM CARS_DATA GROUP BY Cylinders;",cars_data.Accelerate; cars_data.Cylinders,2,23,unchanged
141,car_1,Which model has the most version(make) of cars?,SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;,car_names.Model,1,23,unchanged
142,car_1,What model has the most different versions?,SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;,car_names.Model,1,23,unchanged
143,car_1,How many cars have more than 4 cylinders?,SELECT count(*) FROM CARS_DATA WHERE Cylinders  >  4;,cars_data.Cylinders,1,23,unchanged
144,car_1,What is the number of cars with more than 4 cylinders?,SELECT count(*) FROM CARS_DATA WHERE Cylinders  >  4;,cars_data.Cylinders,1,23,unchanged
145,car_1,how many cars were produced in 1980?,SELECT count(*) FROM CARS_DATA WHERE YEAR  =  1980;,cars_data.Year,1,23,unchanged
146,car_1,"In 1980, how many cars were made?",SELECT count(*) FROM CARS_DATA WHERE YEAR  =  1980;,cars_data.Year,1,23,unchanged
147,car_1,How many car models were produced by the maker with full name American Motor Company?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';,car_makers.FullName; car_makers.Id; model_list.Maker,3,23,joinkey_added
148,car_1,What is the number of car models created by the car maker American Motor Company?,SELECT count(*) FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker WHERE T1.FullName  =  'American Motor Company';,car_makers.FullName; car_makers.Id; model_list.Maker,3,23,joinkey_added
149,car_1,Which makers designed more than 3 car models? List full name and the id.,"SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
150,car_1,What are the names and ids of all makers with more than 3 models?,"SELECT T1.FullName ,  T1.Id FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >  3;",car_makers.FullName; car_makers.Id; model_list.Maker,3,23,unchanged
151,car_1,Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?,SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500;,car_makers.FullName; car_makers.Id; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight; model_list.Maker; model_list.Model,8,23,unchanged
152,car_1,What are the different models created by either the car maker General Motors or weighed more than 3500?,SELECT DISTINCT T2.Model FROM CAR_NAMES AS T1 JOIN MODEL_LIST AS T2 ON T1.Model  =  T2.Model JOIN CAR_MAKERS AS T3 ON T2.Maker  =  T3.Id JOIN CARS_DATA AS T4 ON T1.MakeId  =  T4.Id WHERE T3.FullName  =  'General Motors' OR T4.weight  >  3500;,car_makers.FullName; car_makers.Id; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight; model_list.Maker; model_list.Model,8,23,unchanged
153,car_1,In which years cars were produced weighing no less than 3000 and no more than 4000 ?,select distinct year from cars_data where weight between 3000 and 4000;,cars_data.Weight; cars_data.Year,2,23,unchanged
154,car_1,What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?,select distinct year from cars_data where weight between 3000 and 4000;,cars_data.Weight; cars_data.Year,2,23,unchanged
155,car_1,What is the horsepower of the car with the largest accelerate?,SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;,cars_data.Accelerate; cars_data.Horsepower,2,23,unchanged
156,car_1,What is the horsepower of the car with the greatest accelerate?,SELECT T1.horsepower FROM CARS_DATA AS T1 ORDER BY T1.accelerate DESC LIMIT 1;,cars_data.Accelerate; cars_data.Horsepower,2,23,unchanged
157,car_1,"For model volvo, how many cylinders does the car with the least accelerate have?",SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Model  =  'volvo' ORDER BY T1.accelerate ASC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Accelerate; cars_data.Cylinders; cars_data.Id,5,23,unchanged
158,car_1,"For a volvo model, how many cylinders does the version with least accelerate have?",SELECT T1.cylinders FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T2.Model  =  'volvo' ORDER BY T1.accelerate ASC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Accelerate; cars_data.Cylinders; cars_data.Id,5,23,unchanged
159,car_1,How many cars have a larger accelerate than the car with the largest horsepower?,SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );,cars_data.Accelerate; cars_data.Horsepower,2,23,unchanged
160,car_1,What is the number of cars with a greater accelerate than the one with the most horsepower?,SELECT COUNT(*) FROM CARS_DATA WHERE Accelerate  >  ( SELECT Accelerate FROM CARS_DATA ORDER BY Horsepower DESC LIMIT 1 );,cars_data.Accelerate; cars_data.Horsepower,2,23,unchanged
161,car_1,How many countries has more than 2 car makers ?,select count(*) from countries as t1 join car_makers as t2 on t1.countryid  =  t2.country group by t1.countryid having count(*)  >  2,car_makers.Country; countries.CountryId,2,23,unchanged
162,car_1,What is the number of countries with more than 2 car makers ?,select count(*) from countries as t1 join car_makers as t2 on t1.countryid  =  t2.country group by t1.countryid having count(*)  >  2,car_makers.Country; countries.CountryId,2,23,unchanged
163,car_1,How many cars has over 6 cylinders?,SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders  >  6;,cars_data.Cylinders,1,23,unchanged
164,car_1,What is the number of carsw ith over 6 cylinders?,SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders  >  6;,cars_data.Cylinders,1,23,unchanged
165,car_1,"For the cars with 4 cylinders, which model has the largest horsepower?",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,unchanged
166,car_1,"For all of the 4 cylinder cars, which model has the most horsepower?",SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId  =  T2.Id WHERE T2.Cylinders  =  4 ORDER BY T2.horsepower DESC LIMIT 1;,car_names.MakeId; car_names.Model; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,unchanged
167,car_1,"Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.","SELECT T2.MakeId ,  T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id  =  T2.MakeId WHERE T1.Horsepower  >  (SELECT min(Horsepower) FROM CARS_DATA) AND T1.Cylinders  <=  3;",car_names.Make; car_names.MakeId; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,unchanged
168,car_1,"Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?","select t2.makeid ,  t2.make from cars_data as t1 join car_names as t2 on t1.id  =  t2.makeid where t1.horsepower  >  (select min(horsepower) from cars_data) and t1.cylinders  <  4;",car_names.Make; car_names.MakeId; cars_data.Cylinders; cars_data.Horsepower; cars_data.Id,5,23,unchanged
169,car_1,What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?,select max(mpg) from cars_data where cylinders  =  8 or year  <  1980,cars_data.Cylinders; cars_data.MPG; cars_data.Year,3,23,unchanged
170,car_1,What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?,select max(mpg) from cars_data where cylinders  =  8 or year  <  1980,cars_data.Cylinders; cars_data.MPG; cars_data.Year,3,23,unchanged
171,car_1,Which models are lighter than 3500 but not built by the 'Ford Motor Company'?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T3.weight  <  3500 AND T4.FullName != 'Ford Motor Company';,car_makers.FullName; car_makers.Id; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight; model_list.Maker; model_list.Model,8,23,unchanged
172,car_1,What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?,SELECT DISTINCT T1.model FROM MODEL_LIST AS T1 JOIN CAR_NAMES AS T2 ON T1.Model  =  T2.Model JOIN CARS_DATA AS T3 ON T2.MakeId  =  T3.Id JOIN CAR_MAKERS AS T4 ON T1.Maker  =  T4.Id WHERE T3.weight  <  3500 AND T4.FullName != 'Ford Motor Company';,car_makers.FullName; car_makers.Id; car_names.MakeId; car_names.Model; cars_data.Id; cars_data.Weight; model_list.Maker; model_list.Model,8,23,unchanged
173,car_1,What are the name of the countries where there is not a single car maker?,SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId  =  T2.Country;,car_makers.Country; countries.CountryId; countries.CountryName,3,23,joinkey_added
174,car_1,What are the names of the countries with no car makers?,SELECT CountryName FROM countries EXCEPT SELECT T1.CountryName FROM countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.countryId  =  T2.Country;,car_makers.Country; countries.CountryId; countries.CountryName,3,23,unchanged
175,car_1,Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .,"select t1.id ,  t1.maker from car_makers as t1 join model_list as t2 on t1.id  =  t2.maker group by t1.id having count(*)  >=  2 intersect select t1.id ,  t1.maker from car_makers as t1 join model_list as t2 on t1.id  =  t2.maker join car_names as t3 on t2.model  =  t3.model group by t1.id having count(*)  >  3;",car_makers.Id; car_makers.Maker; car_names.Model; model_list.Maker; model_list.Model,5,23,unchanged
176,car_1,What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?,"SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker GROUP BY T1.Id HAVING count(*)  >=  2 INTERSECT SELECT T1.Id ,  T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id  =  T2.Maker JOIN CAR_NAMES AS T3 ON T2.model  =  T3.model GROUP BY T1.Id HAVING count(*)  >  3;",car_makers.Id; car_makers.Maker; car_names.Model; model_list.Maker; model_list.Model,5,23,joinkey_added
177,car_1,What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?,"SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country GROUP BY T1.countryId HAVING count(*)  >  3 UNION SELECT T1.countryId ,  T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId  =  T2.Country JOIN MODEL_LIST AS T3 ON T2.Id  =  T3.Maker WHERE T3.Model  =  'fiat';",car_makers.Country; car_makers.Id; countries.CountryId; countries.CountryName; model_list.Maker; model_list.Model,6,23,unchanged
178,car_1,What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?,"select t1.countryid ,  t1.countryname from countries as t1 join car_makers as t2 on t1.countryid  =  t2.country group by t1.countryid having count(*)  >  3 union select t1.countryid ,  t1.countryname from countries as t1 join car_makers as t2 on t1.countryid  =  t2.country join model_list as t3 on t2.id  =  t3.maker where t3.model  =  'fiat';",car_makers.Country; car_makers.Id; countries.CountryId; countries.CountryName; model_list.Maker; model_list.Model,6,23,unchanged
179,flight_2,"Which country does Airline ""JetBlue Airways"" belong to?","SELECT Country FROM AIRLINES WHERE Airline  =  ""JetBlue Airways""",airlines.Airline; airlines.Country,2,13,unchanged

180,flight_2,What country is Jetblue Airways affiliated with?,"SELECT Country FROM AIRLINES WHERE Airline  =  ""JetBlue Airways""",airlines.Airline; airlines.Country,2,13,unchanged

181,flight_2,"What is the abbreviation of Airline ""JetBlue Airways""?","SELECT Abbreviation FROM AIRLINES WHERE Airline  =  ""JetBlue Airways""",airlines.Abbreviation; airlines.Airline,2,13,unchanged

182,flight_2,Which abbreviation corresponds to Jetblue Airways?,"SELECT Abbreviation FROM AIRLINES WHERE Airline  =  ""JetBlue Airways""",airlines.Abbreviation; airlines.Airline,2,13,unchanged

183,flight_2,"List all airline names and their abbreviations in ""USA"".","SELECT Airline ,  Abbreviation FROM AIRLINES WHERE Country  =  ""USA""",airlines.Abbreviation; airlines.Airline; airlines.Country,3,13,unchanged

184,flight_2,What are the airline names and abbreviations for airlines in the USA?,"SELECT Airline ,  Abbreviation FROM AIRLINES WHERE Country  =  ""USA""",airlines.Abbreviation; airlines.Airline; airlines.Country,3,13,unchanged

185,flight_2,List the airport code and name in the city of Anthony.,"SELECT AirportCode ,  AirportName FROM AIRPORTS WHERE city  =  ""Anthony""",airports.AirportCode; airports.AirportName; airports.City,3,13,unchanged

186,flight_2,Give the airport code and airport name corresonding to the city Anthony.,"SELECT AirportCode ,  AirportName FROM AIRPORTS WHERE city  =  ""Anthony""",airports.AirportCode; airports.AirportName; airports.City,3,13,unchanged

187,flight_2,How many airlines do we have?,SELECT count(*) FROM AIRLINES,airlines.uid,1,13,count_star_pk_injected+empty_fixed

188,flight_2,What is the total number of airlines?,SELECT count(*) FROM AIRLINES,airlines.uid,1,13,count_star_pk_injected+empty_fixed

189,flight_2,How many airports do we have?,SELECT count(*) FROM AIRPORTS,airports.AirportCode,1,13,count_star_pk_injected+empty_fixed

190,flight_2,Return the number of  airports.,SELECT count(*) FROM AIRPORTS,airports.AirportCode,1,13,count_star_pk_injected+empty_fixed

191,flight_2,How many flights do we have?,SELECT count(*) FROM FLIGHTS,flights.Airline; flights.FlightNo,2,13,count_star_pk_injected+empty_fixed

192,flight_2,Return the number of flights.,SELECT count(*) FROM FLIGHTS,flights.Airline; flights.FlightNo,2,13,count_star_pk_injected+empty_fixed

193,flight_2,Which airline has abbreviation 'UAL'?,"SELECT Airline FROM AIRLINES WHERE Abbreviation  =  ""UAL""",airlines.Abbreviation; airlines.Airline,2,13,unchanged

194,flight_2,Give the airline with abbreviation 'UAL'.,"SELECT Airline FROM AIRLINES WHERE Abbreviation  =  ""UAL""",airlines.Abbreviation; airlines.Airline,2,13,unchanged

195,flight_2,How many airlines are from USA?,"SELECT count(*) FROM AIRLINES WHERE Country  =  ""USA""",airlines.Country,1,13,unchanged

196,flight_2,Return the number of airlines in the USA.,"SELECT count(*) FROM AIRLINES WHERE Country  =  ""USA""",airlines.Country,1,13,unchanged

197,flight_2,Which city and country is the Alton airport at?,"SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  ""Alton""",airports.AirportName; airports.City; airports.Country,3,13,unchanged

198,flight_2,Give the city and country for the Alton airport.,"SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  ""Alton""",airports.AirportName; airports.City; airports.Country,3,13,unchanged

199,flight_2,What is the airport name for airport 'AKO'?,"SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  ""AKO""",airports.AirportCode; airports.AirportName,2,13,unchanged

200,flight_2,Return the name of the airport with code 'AKO'.,"SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  ""AKO""",airports.AirportCode; airports.AirportName,2,13,unchanged

201,flight_2,What are airport names at City 'Aberdeen'?,"SELECT AirportName FROM AIRPORTS WHERE City = ""Aberdeen""",airports.AirportName; airports.City,2,13,unchanged

202,flight_2,What are the names of airports in Aberdeen?,"SELECT AirportName FROM AIRPORTS WHERE City = ""Aberdeen""",airports.AirportName; airports.City,2,13,unchanged

203,flight_2,How many flights depart from 'APG'?,"SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  ""APG""",flights.SourceAirport,1,13,unchanged

204,flight_2,Count the number of flights departing from 'APG'.,"SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  ""APG""",flights.SourceAirport,1,13,unchanged

205,flight_2,How many flights have destination ATO?,"SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  ""ATO""",flights.DestAirport,1,13,unchanged

206,flight_2,Count the number of flights into ATO.,"SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  ""ATO""",flights.DestAirport,1,13,unchanged

207,flight_2,How many flights depart from City Aberdeen?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.SourceAirport,3,13,unchanged

208,flight_2,Return the number of flights departing from Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.SourceAirport,3,13,unchanged

209,flight_2,How many flights arriving in Aberdeen city?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

210,flight_2,Return the number of flights arriving in Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

211,flight_2,How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  ""Ashley"" AND T3.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport; flights.SourceAirport,4,13,unchanged

212,flight_2,How many flights fly from Aberdeen to Ashley?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  ""Ashley"" AND T3.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport; flights.SourceAirport,4,13,unchanged

213,flight_2,How many flights does airline 'JetBlue Airways' have?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = ""JetBlue Airways""",airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

214,flight_2,Give the number of Jetblue Airways flights.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = ""JetBlue Airways""",airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

215,flight_2,How many 'United Airlines' flights go to Airport 'ASY'?,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  ""United Airlines"" AND T2.DestAirport  =  ""ASY""",airlines.Airline; airlines.uid; flights.Airline; flights.DestAirport,4,13,unchanged

216,flight_2,Count the number of United Airlines flights arriving in ASY Airport.,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  ""United Airlines"" AND T2.DestAirport  =  ""ASY""",airlines.Airline; airlines.uid; flights.Airline; flights.DestAirport,4,13,unchanged

217,flight_2,How many 'United Airlines' flights depart from Airport 'AHD'?,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  ""United Airlines"" AND T2.SourceAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

218,flight_2,Return the number of United Airlines flights leaving from AHD Airport.,"SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  ""United Airlines"" AND T2.SourceAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

219,flight_2,How many United Airlines flights go to City 'Aberdeen'?,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  ""Aberdeen"" AND T3.Airline  =  ""United Airlines""",airlines.Airline; airlines.uid; airports.AirportCode; airports.City; flights.Airline; flights.DestAirport,6,13,unchanged

220,flight_2,Count the number of United Airlines flights that arrive in Aberdeen.,"SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  ""Aberdeen"" AND T3.Airline  =  ""United Airlines""",airlines.Airline; airlines.uid; airports.AirportCode; airports.City; flights.Airline; flights.DestAirport,6,13,unchanged

221,flight_2,Which city has most number of arriving flights?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

222,flight_2,Which city has the most frequent destination airport?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

223,flight_2,Which city has most number of departing flights?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; airports.City; flights.SourceAirport,3,13,unchanged

224,flight_2,Which city is the most frequent source airport?,SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; airports.City; flights.SourceAirport,3,13,unchanged

225,flight_2,What is the code of airport that has the highest number of flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; flights.DestAirport; flights.SourceAirport,3,13,unchanged

226,flight_2,What is the airport code of the airport with the most flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1,airports.AirportCode; flights.DestAirport; flights.SourceAirport,3,13,unchanged

227,flight_2,What is the code of airport that has fewest number of flights?,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1,airports.AirportCode; flights.DestAirport; flights.SourceAirport,3,13,unchanged

228,flight_2,Give the code of the airport with the least flights.,SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1,airports.AirportCode; flights.DestAirport; flights.SourceAirport,3,13,unchanged

229,flight_2,Which airline has most number of flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

230,flight_2,What airline serves the most flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

231,flight_2,Find the abbreviation and country of the airline that has fewest number of flights?,"SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1",airlines.Abbreviation; airlines.Airline; airlines.Country; airlines.uid; flights.Airline,5,13,joinkey_added

232,flight_2,What is the abbreviation of the airilne has the fewest flights and what country is it in?,"SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1",airlines.Abbreviation; airlines.Airline; airlines.Country; airlines.uid; flights.Airline,5,13,joinkey_added

233,flight_2,What are airlines that have some flight departing from airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

234,flight_2,Which airlines have a flight with source airport AHD?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

235,flight_2,What are airlines that have flights arriving at airport 'AHD'?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.DestAirport,4,13,unchanged

236,flight_2,Which airlines have a flight with destination airport AHD?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  ""AHD""",airlines.Airline; airlines.uid; flights.Airline; flights.DestAirport,4,13,unchanged

237,flight_2,Find all airlines that have flights from both airports 'APG' and 'CVO'.,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""APG"" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""CVO""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

238,flight_2,Which airlines have departing flights from both APG and CVO airports?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""APG"" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""CVO""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

239,flight_2,Find all airlines that have flights from airport 'CVO' but not from 'APG'.,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""CVO"" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""APG""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

240,flight_2,Which airlines have departures from CVO but not from APG airports?,"SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""CVO"" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  ""APG""",airlines.Airline; airlines.uid; flights.Airline; flights.SourceAirport,4,13,unchanged

241,flight_2,Find all airlines that have at least 10 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

242,flight_2,Which airlines have at least 10 flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

243,flight_2,Find all airlines that have fewer than 200 flights.,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

244,flight_2,Which airlines have less than 200 flights?,SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200,airlines.Airline; airlines.uid; flights.Airline,3,13,unchanged

245,flight_2,"What are flight numbers of Airline ""United Airlines""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  ""United Airlines""",airlines.Airline; airlines.uid; flights.Airline; flights.FlightNo,4,13,unchanged

246,flight_2,Which flight numbers correspond to United Airlines flights?,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  ""United Airlines""",airlines.Airline; airlines.uid; flights.Airline; flights.FlightNo,4,13,unchanged

247,flight_2,"What are flight numbers of flights departing from Airport ""APG""?","SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  ""APG""",flights.FlightNo; flights.SourceAirport,2,13,unchanged

248,flight_2,Give the flight numbers of flights leaving from APG.,"SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  ""APG""",flights.FlightNo; flights.SourceAirport,2,13,unchanged

249,flight_2,"What are flight numbers of flights arriving at Airport ""APG""?","SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  ""APG""",flights.DestAirport; flights.FlightNo,2,13,unchanged

250,flight_2,Give the flight numbers of flights landing at APG.,"SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  ""APG""",flights.DestAirport; flights.FlightNo,2,13,unchanged

251,flight_2,"What are flight numbers of flights departing from City ""Aberdeen ""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.FlightNo; flights.SourceAirport,4,13,unchanged

252,flight_2,Give the flight numbers of flights leaving from Aberdeen.,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.FlightNo; flights.SourceAirport,4,13,unchanged

253,flight_2,"What are flight numbers of flights arriving at City ""Aberdeen""?","SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport; flights.FlightNo,4,13,unchanged

254,flight_2,Give the flight numbers of flights arriving in Aberdeen.,"SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  ""Aberdeen""",airports.AirportCode; airports.City; flights.DestAirport; flights.FlightNo,4,13,unchanged

255,flight_2,Find the number of flights landing in the city of Aberdeen or Abilene.,"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  ""Aberdeen"" OR T2.city  =  ""Abilene""",airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

256,flight_2,How many flights land in Aberdeen or Abilene?,"SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  ""Aberdeen"" OR T2.city  =  ""Abilene""",airports.AirportCode; airports.City; flights.DestAirport,3,13,unchanged

257,flight_2,Find the name of airports which do not have any flight in and out.,SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights),airports.AirportCode; airports.AirportName; flights.DestAirport; flights.SourceAirport,4,13,unchanged

258,flight_2,Which airports do not have departing or arriving flights?,SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights),airports.AirportCode; airports.AirportName; flights.DestAirport; flights.SourceAirport,4,13,unchanged

259,employee_hire_evaluation,How many employees are there?,SELECT count(*) FROM employee,employee.Employee_ID,1,17,count_star_pk_injected+empty_fixed

260,employee_hire_evaluation,Count the number of employees,SELECT count(*) FROM employee,employee.Employee_ID,1,17,count_star_pk_injected+empty_fixed

261,employee_hire_evaluation,Sort employee names by their age in ascending order.,SELECT name FROM employee ORDER BY age,employee.Age; employee.Name,2,17,unchanged

262,employee_hire_evaluation,List the names of employees and sort in ascending order of age.,SELECT name FROM employee ORDER BY age,employee.Age; employee.Name,2,17,unchanged

263,employee_hire_evaluation,What is the number of employees from each city?,"SELECT count(*) ,  city FROM employee GROUP BY city",employee.City,1,17,unchanged

264,employee_hire_evaluation,Count the number of employees for each city.,"SELECT count(*) ,  city FROM employee GROUP BY city",employee.City,1,17,unchanged

265,employee_hire_evaluation,Which cities do more than one employee under age 30 come from?,SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1,employee.Age; employee.City,2,17,unchanged

266,employee_hire_evaluation,Find the cities that have more than one employee under age 30.,SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1,employee.Age; employee.City,2,17,unchanged

267,employee_hire_evaluation,Find the number of shops in each location.,"SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION",shop.Location,1,17,unchanged

268,employee_hire_evaluation,How many shops are there in each location?,"SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION",shop.Location,1,17,unchanged

269,employee_hire_evaluation,Find the manager name and district of the shop whose number of products is the largest.,"SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1",shop.District; shop.Manager_name; shop.Number_products,3,17,unchanged

270,employee_hire_evaluation,What are the manager name and district of the shop that sells the largest number of products?,"SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1",shop.District; shop.Manager_name; shop.Number_products,3,17,unchanged

271,employee_hire_evaluation,find the minimum and maximum number of products of all stores.,"SELECT min(Number_products) ,  max(Number_products) FROM shop",shop.Number_products,1,17,unchanged

272,employee_hire_evaluation,What are the minimum and maximum number of products across all the shops?,"SELECT min(Number_products) ,  max(Number_products) FROM shop",shop.Number_products,1,17,unchanged

273,employee_hire_evaluation,"Return the name, location and district of all shops in descending order of number of products.","SELECT name ,  LOCATION ,  district FROM shop ORDER BY number_products DESC",shop.District; shop.Location; shop.Name; shop.Number_products,4,17,unchanged

274,employee_hire_evaluation,"Sort all the shops by number products in descending order, and return the name, location and district of each shop.","SELECT name ,  LOCATION ,  district FROM shop ORDER BY number_products DESC",shop.District; shop.Location; shop.Name; shop.Number_products,4,17,unchanged

275,employee_hire_evaluation,Find the names of stores whose number products is more than the average number of products.,SELECT name FROM shop WHERE number_products  >  (SELECT avg(number_products) FROM shop),shop.Name; shop.Number_products,2,17,unchanged

276,employee_hire_evaluation,Which shops' number products is above the average? Give me the shop names.,SELECT name FROM shop WHERE number_products  >  (SELECT avg(number_products) FROM shop),shop.Name; shop.Number_products,2,17,unchanged

277,employee_hire_evaluation,find the name of employee who was awarded the most times in the evaluation.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1,employee.Employee_ID; employee.Name; evaluation.Employee_ID,3,17,unchanged

278,employee_hire_evaluation,Which employee received the most awards in evaluations? Give me the employee name.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID GROUP BY t2.Employee_ID ORDER BY count(*) DESC LIMIT 1,employee.Employee_ID; employee.Name; evaluation.Employee_ID,3,17,unchanged

279,employee_hire_evaluation,Find the name of the employee who got the highest one time bonus.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1,employee.Employee_ID; employee.Name; evaluation.Bonus; evaluation.Employee_ID,4,17,unchanged

280,employee_hire_evaluation,Which employee received the biggest bonus? Give me the employee name.,SELECT t1.name FROM employee AS t1 JOIN evaluation AS t2 ON t1.Employee_ID  =  t2.Employee_ID ORDER BY t2.bonus DESC LIMIT 1,employee.Employee_ID; employee.Name; evaluation.Bonus; evaluation.Employee_ID,4,17,unchanged

281,employee_hire_evaluation,Find the names of employees who never won any award in the evaluation.,SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation),employee.Employee_ID; employee.Name; evaluation.Employee_ID,3,17,unchanged

282,employee_hire_evaluation,What are the names of the employees who never received any evaluation?,SELECT name FROM employee WHERE Employee_ID NOT IN (SELECT Employee_ID FROM evaluation),employee.Employee_ID; employee.Name; evaluation.Employee_ID,3,17,unchanged

283,employee_hire_evaluation,What is the name of the shop that is hiring the largest number of employees?,SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1,hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,joinkey_added

284,employee_hire_evaluation,Which shop has the most employees? Give me the shop name.,SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t1.shop_id ORDER BY count(*) DESC LIMIT 1,hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,joinkey_added

285,employee_hire_evaluation,Find the name of the shops that do not hire any employee.,SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring),hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,unchanged

286,employee_hire_evaluation,Which shops run with no employees? Find the shop names,SELECT name FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM hiring),hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,unchanged

287,employee_hire_evaluation,Find the number of employees hired in each shop; show the shop name as well.,"SELECT count(*) ,  t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t2.name",hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,unchanged

288,employee_hire_evaluation,"For each shop, return the number of employees working there and the name of the shop.","SELECT count(*) ,  t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id  =  t2.shop_id GROUP BY t2.name",hiring.Shop_ID; shop.Name; shop.Shop_ID,3,17,unchanged

289,employee_hire_evaluation,What is total bonus given in all evaluations?,SELECT sum(bonus) FROM evaluation,evaluation.Bonus,1,17,unchanged

290,employee_hire_evaluation,Find the total amount of bonus given in all the evaluations.,SELECT sum(bonus) FROM evaluation,evaluation.Bonus,1,17,unchanged

291,employee_hire_evaluation,Give me all the information about hiring.,SELECT * FROM hiring,hiring.Employee_ID,1,17,count_star_pk_injected+empty_fixed

292,employee_hire_evaluation,What is all the information about hiring?,SELECT * FROM hiring,hiring.Employee_ID,1,17,count_star_pk_injected+empty_fixed

293,employee_hire_evaluation,Which district has both stores with less than 3000 products and stores with more than 10000 products?,SELECT district FROM shop WHERE Number_products  <  3000 INTERSECT SELECT district FROM shop WHERE Number_products  >  10000,shop.District; shop.Number_products,2,17,unchanged

294,employee_hire_evaluation,Find the districts in which there are both shops selling less than 3000 products and shops selling more than 10000 products.,SELECT district FROM shop WHERE Number_products  <  3000 INTERSECT SELECT district FROM shop WHERE Number_products  >  10000,shop.District; shop.Number_products,2,17,unchanged

295,employee_hire_evaluation,How many different store locations are there?,SELECT count(DISTINCT LOCATION) FROM shop,shop.Location,1,17,unchanged

296,employee_hire_evaluation,Count the number of distinct store locations.,SELECT count(DISTINCT LOCATION) FROM shop,shop.Location,1,17,unchanged

297,cre_Doc_Template_Mgt,How many documents do we have?,SELECT count(*) FROM Documents,Documents.Document_ID,1,17,count_star_pk_injected+empty_fixed

298,cre_Doc_Template_Mgt,Count the number of documents.,SELECT count(*) FROM Documents,Documents.Document_ID,1,17,count_star_pk_injected+empty_fixed

299,cre_Doc_Template_Mgt,"List document IDs, document names, and document descriptions for all documents.","SELECT document_id ,  document_name ,  document_description FROM Documents",Documents.Document_Description; Documents.Document_ID; Documents.Document_Name,3,17,unchanged

300,cre_Doc_Template_Mgt,"What are the ids, names, and descriptions for all documents?","SELECT document_id ,  document_name ,  document_description FROM Documents",Documents.Document_Description; Documents.Document_ID; Documents.Document_Name,3,17,unchanged

301,cre_Doc_Template_Mgt,What is the document name and template id for document with description with the letter 'w' in it?,"SELECT document_name ,  template_id FROM Documents WHERE Document_Description LIKE ""%w%""",Documents.Document_Description; Documents.Document_Name; Documents.Template_ID,3,17,unchanged

302,cre_Doc_Template_Mgt,Return the names and template ids for documents that contain the letter w in their description.,"SELECT document_name ,  template_id FROM Documents WHERE Document_Description LIKE ""%w%""",Documents.Document_Description; Documents.Document_Name; Documents.Template_ID,3,17,unchanged

303,cre_Doc_Template_Mgt,"What is the document id, template id and description for document named ""Robbin CV""?","SELECT document_id ,  template_id ,  Document_Description FROM Documents WHERE document_name  =  ""Robbin CV""",Documents.Document_Description; Documents.Document_ID; Documents.Document_Name; Documents.Template_ID,4,17,unchanged

304,cre_Doc_Template_Mgt,"Return the document id, template id, and description for the document with the name Robbin CV.","SELECT document_id ,  template_id ,  Document_Description FROM Documents WHERE document_name  =  ""Robbin CV""",Documents.Document_Description; Documents.Document_ID; Documents.Document_Name; Documents.Template_ID,4,17,unchanged

305,cre_Doc_Template_Mgt,How many different templates do all document use?,SELECT count(DISTINCT template_id) FROM Documents,Documents.Template_ID,1,17,unchanged

306,cre_Doc_Template_Mgt,Count the number of different templates used for documents.,SELECT count(DISTINCT template_id) FROM Documents,Documents.Template_ID,1,17,unchanged

307,cre_Doc_Template_Mgt,How many documents are using the template with type code 'PPT'?,SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID  =  T2.Template_ID WHERE T2.Template_Type_Code  =  'PPT',Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

308,cre_Doc_Template_Mgt,Count the number of documents that use the PPT template type.,SELECT count(*) FROM Documents AS T1 JOIN Templates AS T2 ON T1.Template_ID  =  T2.Template_ID WHERE T2.Template_Type_Code  =  'PPT',Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

309,cre_Doc_Template_Mgt,Show all template ids and number of documents using each template.,"SELECT template_id ,  count(*) FROM Documents GROUP BY template_id",Documents.Template_ID,1,17,unchanged

310,cre_Doc_Template_Mgt,"What are all different template ids used for documents, and how many times were each of them used?","SELECT template_id ,  count(*) FROM Documents GROUP BY template_id",Documents.Template_ID,1,17,unchanged

311,cre_Doc_Template_Mgt,What is the id and type code for the template used by the most documents?,"SELECT T1.template_id ,  T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1",Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,joinkey_added

312,cre_Doc_Template_Mgt,Return the id and type code of the template that is used for the greatest number of documents.,"SELECT T1.template_id ,  T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_id ORDER BY count(*) DESC LIMIT 1",Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,joinkey_added

313,cre_Doc_Template_Mgt,Show ids for all templates that are used by more than one document.,SELECT template_id FROM Documents GROUP BY template_id HAVING count(*)  >  1,Documents.Template_ID,1,17,unchanged

314,cre_Doc_Template_Mgt,What are the template ids of any templates used in more than a single document?,SELECT template_id FROM Documents GROUP BY template_id HAVING count(*)  >  1,Documents.Template_ID,1,17,unchanged

315,cre_Doc_Template_Mgt,Show ids for all templates not used by any document.,SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents,Documents.Template_ID; Templates.Template_ID,2,17,joinkey_added

316,cre_Doc_Template_Mgt,What are the ids for templates that are not used in any documents?,SELECT template_id FROM Templates EXCEPT SELECT template_id FROM Documents,Documents.Template_ID; Templates.Template_ID,2,17,joinkey_added

317,cre_Doc_Template_Mgt,How many templates do we have?,SELECT count(*) FROM Templates,Templates.Template_ID,1,17,count_star_pk_injected+empty_fixed

318,cre_Doc_Template_Mgt,Count the number of templates.,SELECT count(*) FROM Templates,Templates.Template_ID,1,17,count_star_pk_injected+empty_fixed

319,cre_Doc_Template_Mgt,"Show template ids, version numbers, and template type codes for all templates.","SELECT template_id ,  version_number ,  template_type_code FROM Templates",Templates.Template_ID; Templates.Template_Type_Code; Templates.Version_Number,3,17,unchanged

320,cre_Doc_Template_Mgt,"What are the ids, version numbers, and type codes for each template?","SELECT template_id ,  version_number ,  template_type_code FROM Templates",Templates.Template_ID; Templates.Template_Type_Code; Templates.Version_Number,3,17,unchanged

321,cre_Doc_Template_Mgt,Show all distinct template type codes for all templates.,SELECT DISTINCT template_type_code FROM Templates,Templates.Template_Type_Code,1,17,unchanged

322,cre_Doc_Template_Mgt,What are the different template type codes?,SELECT DISTINCT template_type_code FROM Templates,Templates.Template_Type_Code,1,17,unchanged

323,cre_Doc_Template_Mgt,What are the ids of templates with template type code PP or PPT?,"SELECT template_id FROM Templates WHERE template_type_code  =  ""PP"" OR template_type_code  =  ""PPT""",Templates.Template_ID; Templates.Template_Type_Code,2,17,unchanged

324,cre_Doc_Template_Mgt,Return the ids of templates that have the code PP or PPT.,"SELECT template_id FROM Templates WHERE template_type_code  =  ""PP"" OR template_type_code  =  ""PPT""",Templates.Template_ID; Templates.Template_Type_Code,2,17,unchanged

325,cre_Doc_Template_Mgt,How many templates have template type code CV?,"SELECT count(*) FROM Templates WHERE template_type_code  =  ""CV""",Templates.Template_Type_Code,1,17,unchanged

326,cre_Doc_Template_Mgt,Count the number of templates of the type CV.,"SELECT count(*) FROM Templates WHERE template_type_code  =  ""CV""",Templates.Template_Type_Code,1,17,unchanged

327,cre_Doc_Template_Mgt,What is the version number and template type code for the template with version number later than 5?,"SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5",Templates.Template_Type_Code; Templates.Version_Number,2,17,unchanged

328,cre_Doc_Template_Mgt,Return the version numbers and template type codes of templates with a version number greater than 5.,"SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5",Templates.Template_Type_Code; Templates.Version_Number,2,17,unchanged

329,cre_Doc_Template_Mgt,Show all template type codes and number of templates for each.,"SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code",Templates.Template_Type_Code,1,17,unchanged

330,cre_Doc_Template_Mgt,"What are the different template type codes, and how many templates correspond to each?","SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code",Templates.Template_Type_Code,1,17,unchanged

331,cre_Doc_Template_Mgt,Which template type code has most number of templates?,SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1,Templates.Template_Type_Code,1,17,unchanged

332,cre_Doc_Template_Mgt,Return the type code of the template type that the most templates belong to.,SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1,Templates.Template_Type_Code,1,17,unchanged

333,cre_Doc_Template_Mgt,Show all template type codes with less than three templates.,SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3,Templates.Template_Type_Code,1,17,unchanged

334,cre_Doc_Template_Mgt,What are the codes of template types that have fewer than 3 templates?,SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3,Templates.Template_Type_Code,1,17,unchanged

335,cre_Doc_Template_Mgt,What the smallest version number and its template type code?,"SELECT min(Version_Number) ,  template_type_code FROM Templates",Templates.Template_Type_Code; Templates.Version_Number,2,17,unchanged

336,cre_Doc_Template_Mgt,"Return the lowest version number, along with its corresponding template type code.","SELECT min(Version_Number) ,  template_type_code FROM Templates",Templates.Template_Type_Code; Templates.Version_Number,2,17,unchanged

337,cre_Doc_Template_Mgt,"What is the template type code of the template used by document with the name ""Data base""?","SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  ""Data base""",Documents.Document_Name; Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

338,cre_Doc_Template_Mgt,Return the template type code of the template that is used by a document named Data base.,"SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  ""Data base""",Documents.Document_Name; Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

339,cre_Doc_Template_Mgt,Show all document names using templates with template type code BK.,"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  ""BK""",Documents.Document_Name; Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

340,cre_Doc_Template_Mgt,What are the names of documents that use templates with the code BK?,"SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  ""BK""",Documents.Document_Name; Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

341,cre_Doc_Template_Mgt,Show all template type codes and the number of documents using each type.,"SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code",Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

342,cre_Doc_Template_Mgt,"What are the different template type codes, and how many documents use each type?","SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code",Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

343,cre_Doc_Template_Mgt,Which template type code is used by most number of documents?,SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1,Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

344,cre_Doc_Template_Mgt,Return the code of the template type that is most commonly used in documents.,SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1,Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

345,cre_Doc_Template_Mgt,Show all template type codes that are not used by any document.,SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id,Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

346,cre_Doc_Template_Mgt,What are the codes of template types that are not used for any document?,SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id,Documents.Template_ID; Templates.Template_ID; Templates.Template_Type_Code,3,17,unchanged

347,cre_Doc_Template_Mgt,Show all template type codes and descriptions.,"SELECT template_type_code ,  template_type_description FROM Ref_template_types",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

348,cre_Doc_Template_Mgt,What are the type codes and descriptions for all template types?,"SELECT template_type_code ,  template_type_description FROM Ref_template_types",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

349,cre_Doc_Template_Mgt,"What is the template type descriptions for template type code ""AD"".","SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  ""AD""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

350,cre_Doc_Template_Mgt,Return the template type description of the template type with the code AD.,"SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  ""AD""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

351,cre_Doc_Template_Mgt,"What is the template type code for template type description ""Book"".","SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  ""Book""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

352,cre_Doc_Template_Mgt,"Return the type code of the template type with the description ""Book"".","SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  ""Book""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description,2,17,unchanged

353,cre_Doc_Template_Mgt,What are the distinct template type descriptions for the templates ever used by any document?,SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID,Documents.Template_ID; Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description; Templates.Template_ID; Templates.Template_Type_Code,5,17,unchanged

354,cre_Doc_Template_Mgt,Return the different descriptions for templates that have been used in a document.,SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID,Documents.Template_ID; Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description; Templates.Template_ID; Templates.Template_Type_Code,5,17,unchanged

355,cre_Doc_Template_Mgt,"What are the template ids with template type description ""Presentation"".","SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  ""Presentation""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

356,cre_Doc_Template_Mgt,Return the ids corresponding to templates with the description 'Presentation'.,"SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  ""Presentation""",Ref_Template_Types.Template_Type_Code; Ref_Template_Types.Template_Type_Description; Templates.Template_ID; Templates.Template_Type_Code,4,17,unchanged

357,cre_Doc_Template_Mgt,How many paragraphs in total?,SELECT count(*) FROM Paragraphs,Paragraphs.Paragraph_ID,1,17,count_star_pk_injected+empty_fixed

358,cre_Doc_Template_Mgt,Count the number of paragraphs.,SELECT count(*) FROM Paragraphs,Paragraphs.Paragraph_ID,1,17,count_star_pk_injected+empty_fixed

359,cre_Doc_Template_Mgt,How many paragraphs for the document with name 'Summer Show'?,SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show',Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,unchanged

360,cre_Doc_Template_Mgt,Count the number of paragraphs in the document named 'Summer Show'.,SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show',Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,unchanged

361,cre_Doc_Template_Mgt,Show paragraph details for paragraph with text 'Korea ' .,select other_details from paragraphs where paragraph_text like 'korea',Paragraphs.Other_Details; Paragraphs.Paragraph_Text,2,17,unchanged

362,cre_Doc_Template_Mgt,What are the details for the paragraph that includes the text 'Korea ' ?,select other_details from paragraphs where paragraph_text like 'korea',Paragraphs.Other_Details; Paragraphs.Paragraph_Text,2,17,unchanged

363,cre_Doc_Template_Mgt,Show all paragraph ids and texts for the document with name 'Welcome to NY'.,"SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID; Paragraphs.Paragraph_ID; Paragraphs.Paragraph_Text,5,17,unchanged

364,cre_Doc_Template_Mgt,What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?,"SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID; Paragraphs.Paragraph_ID; Paragraphs.Paragraph_Text,5,17,unchanged

365,cre_Doc_Template_Mgt,"Show all paragraph texts for the document ""Customer reviews"".","SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  ""Customer reviews""",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID; Paragraphs.Paragraph_Text,4,17,unchanged

366,cre_Doc_Template_Mgt,What are the paragraph texts for the document with the name 'Customer reviews'?,"SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  ""Customer reviews""",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID; Paragraphs.Paragraph_Text,4,17,unchanged

367,cre_Doc_Template_Mgt,Show all document ids and the number of paragraphs in each document. Order by document id.,"SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id",Paragraphs.Document_ID,1,17,unchanged

368,cre_Doc_Template_Mgt,"Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.","SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id",Paragraphs.Document_ID,1,17,unchanged

369,cre_Doc_Template_Mgt,"Show all document ids, names and the number of paragraphs in each document.","SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,joinkey_added

370,cre_Doc_Template_Mgt,"What are the ids and names of each document, as well as the number of paragraphs in each?","SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,joinkey_added

371,cre_Doc_Template_Mgt,List all document ids with at least two paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2,Paragraphs.Document_ID,1,17,unchanged

372,cre_Doc_Template_Mgt,What are the ids of documents that have 2 or more paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2,Paragraphs.Document_ID,1,17,unchanged

373,cre_Doc_Template_Mgt,What is the document id and name with greatest number of paragraphs?,"SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,joinkey_added

374,cre_Doc_Template_Mgt,Return the id and name of the document with the most paragraphs.,"SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1",Documents.Document_ID; Documents.Document_Name; Paragraphs.Document_ID,3,17,joinkey_added

375,cre_Doc_Template_Mgt,What is the document id with least number of paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1,Paragraphs.Document_ID,1,17,unchanged

376,cre_Doc_Template_Mgt,Return the id of the document with the fewest paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1,Paragraphs.Document_ID,1,17,unchanged

377,cre_Doc_Template_Mgt,What is the document id with 1 to 2 paragraphs?,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2,Paragraphs.Document_ID,1,17,unchanged

378,cre_Doc_Template_Mgt,Give the ids of documents that have between one and two paragraphs.,SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2,Paragraphs.Document_ID,1,17,unchanged

379,cre_Doc_Template_Mgt,Show the document id with paragraph text 'Brazil' and 'Ireland'.,SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland',Paragraphs.Document_ID; Paragraphs.Paragraph_Text,2,17,joinkey_added

380,cre_Doc_Template_Mgt,What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?,SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland',Paragraphs.Document_ID; Paragraphs.Paragraph_Text,2,17,joinkey_added

381,course_teach,How many teachers are there?,SELECT count(*) FROM teacher,teacher.Teacher_ID,1,10,count_star_pk_injected+empty_fixed

382,course_teach,What is the total count of teachers?,SELECT count(*) FROM teacher,teacher.Teacher_ID,1,10,count_star_pk_injected+empty_fixed

383,course_teach,List the names of teachers in ascending order of age.,SELECT Name FROM teacher ORDER BY Age ASC,teacher.Age; teacher.Name,2,10,unchanged

384,course_teach,What are the names of the teachers ordered by ascending age?,SELECT Name FROM teacher ORDER BY Age ASC,teacher.Age; teacher.Name,2,10,unchanged

385,course_teach,What are the age and hometown of teachers?,"SELECT Age ,  Hometown FROM teacher",teacher.Age; teacher.Hometown,2,10,unchanged

386,course_teach,What is the age and hometown of every teacher?,"SELECT Age ,  Hometown FROM teacher",teacher.Age; teacher.Hometown,2,10,unchanged

387,course_teach,List the name of teachers whose hometown is not `` Little Lever Urban District '' .,"select name from teacher where hometown != ""little lever urban district""",teacher.Hometown; teacher.Name,2,10,unchanged

388,course_teach,What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?,"select name from teacher where hometown != ""little lever urban district""",teacher.Hometown; teacher.Name,2,10,unchanged

389,course_teach,Show the name of teachers aged either 32 or 33?,SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33,teacher.Age; teacher.Name,2,10,unchanged

390,course_teach,What are the names of the teachers who are aged either 32 or 33?,SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33,teacher.Age; teacher.Name,2,10,unchanged

391,course_teach,What is the hometown of the youngest teacher?,SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1,teacher.Age; teacher.Hometown,2,10,unchanged

392,course_teach,Where is the youngest teacher from?,SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1,teacher.Age; teacher.Hometown,2,10,unchanged

393,course_teach,Show different hometown of teachers and the number of teachers from each hometown.,"SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown",teacher.Hometown,1,10,unchanged

394,course_teach,"For each hometown, how many teachers are there?","SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown",teacher.Hometown,1,10,unchanged

395,course_teach,List the most common hometown of teachers.,SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1,teacher.Hometown,1,10,unchanged

396,course_teach,What is the most commmon hometowns for teachers?,SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1,teacher.Hometown,1,10,unchanged

397,course_teach,Show the hometowns shared by at least two teachers.,SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2,teacher.Hometown,1,10,unchanged

398,course_teach,What are the towns from which at least two teachers come from?,SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2,teacher.Hometown,1,10,unchanged

399,course_teach,Show names of teachers and the courses they are arranged to teach.,"SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,joinkey_added

400,course_teach,What is the name of each teacher and what course they teach?,"SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,joinkey_added

401,course_teach,Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.,"SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID ORDER BY T3.Name",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,joinkey_added

402,course_teach,What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?,"SELECT T3.Name ,  T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID ORDER BY T3.Name",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,joinkey_added

403,course_teach,Show the name of the teacher for the math course.,"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID WHERE T2.Course  =  ""Math""",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,joinkey_added

404,course_teach,What are the names of the people who teach math courses?,"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID  =  T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID  =  T3.Teacher_ID WHERE T2.Course  =  ""Math""",course.Course; course.Course_ID; course_arrange.Course_ID; course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,6,10,unchanged

405,course_teach,Show names of teachers and the number of courses they teach.,"SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name",course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,joinkey_added

406,course_teach,What are the names of the teachers and how many courses do they teach?,"SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name",course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,joinkey_added

407,course_teach,Show names of teachers that teach at least two courses.,SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2,course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,joinkey_added

408,course_teach,What are the names of the teachers who teach at least two courses?,SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*)  >=  2,course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,unchanged

409,course_teach,List the names of teachers who have not been arranged to teach courses.,SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange),course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,unchanged

410,course_teach,What are the names of the teachers whose courses have not been arranged?,SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange),course_arrange.Teacher_ID; teacher.Name; teacher.Teacher_ID,3,10,unchanged

411,museum_visit,How many visitors below age 30 are there?,SELECT count(*) FROM visitor WHERE age  <  30,visitor.Age,1,12,unchanged

412,museum_visit,"Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.",SELECT name FROM visitor WHERE Level_of_membership  >  4 ORDER BY Level_of_membership DESC,visitor.Level_of_membership; visitor.Name,2,12,unchanged

413,museum_visit,What is the average age of the visitors whose membership level is not higher than 4?,SELECT avg(age) FROM visitor WHERE Level_of_membership  <=  4,visitor.Age; visitor.Level_of_membership,2,12,unchanged

414,museum_visit,"Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young.","SELECT name ,  Level_of_membership FROM visitor WHERE Level_of_membership  >  4 ORDER BY age DESC",visitor.Age; visitor.Level_of_membership; visitor.Name,3,12,unchanged

415,museum_visit,Find the id and name of the museum that has the most staff members?,"SELECT museum_id ,  name FROM museum ORDER BY num_of_staff DESC LIMIT 1",museum.Museum_ID; museum.Name; museum.Num_of_Staff,3,12,unchanged

416,museum_visit,Find the average number of staff working for the museums that were open before 2009.,SELECT avg(num_of_staff) FROM museum WHERE open_year  <  2009,museum.Num_of_Staff; museum.Open_Year,2,12,unchanged

417,museum_visit,What are the opening year and staff number of the museum named Plaza Museum?,"SELECT Num_of_Staff ,  Open_Year FROM museum WHERE name  =  'Plaza Museum'",museum.Name; museum.Num_of_Staff; museum.Open_Year,3,12,joinkey_added

418,museum_visit,find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.,SELECT name FROM museum WHERE num_of_staff  >  (SELECT min(num_of_staff) FROM museum WHERE open_year  >  2010),museum.Name; museum.Num_of_Staff; museum.Open_Year,3,12,unchanged

419,museum_visit,"find the id, name and age for visitors who visited some museums more than once.","SELECT t1.id ,  t1.name ,  t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t1.id HAVING count(*)  >  1",visit.visitor_ID; visitor.Age; visitor.ID; visitor.Name,4,12,joinkey_added

420,museum_visit,"What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?","SELECT t2.visitor_id ,  t1.name ,  t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1",visit.Total_spent; visit.visitor_ID; visitor.ID; visitor.Level_of_membership; visitor.Name,5,12,joinkey_added

421,museum_visit,What are the id and name of the museum visited most times?,"SELECT t2.Museum_ID ,  t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID  =  t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1",museum.Museum_ID; museum.Name; visit.Museum_ID,3,12,unchanged

422,museum_visit,What is the name of the museum that had no visitor yet?,SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit),museum.Museum_ID; museum.Name; visit.Museum_ID,3,12,unchanged

423,museum_visit,Find the name and age of the visitor who bought the most tickets at once.,"SELECT t1.name ,  t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1",visit.Num_of_Ticket; visit.visitor_ID; visitor.Age; visitor.ID; visitor.Name,5,12,unchanged

424,museum_visit,What are the average and maximum number of tickets bought in all visits?,"SELECT avg(num_of_ticket) ,  max(num_of_ticket) FROM visit",visit.Num_of_Ticket,1,12,unchanged

425,museum_visit,What is the total ticket expense of the visitors whose membership level is 1?,SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id WHERE t1.Level_of_membership  =  1,visit.Total_spent; visit.visitor_ID; visitor.ID; visitor.Level_of_membership,4,12,unchanged

426,museum_visit,What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?,SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  <  2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id  =  t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID  =  t2.Museum_ID WHERE t3.open_year  >  2011,museum.Museum_ID; museum.Open_Year; visit.Museum_ID; visit.visitor_ID; visitor.ID; visitor.Name,6,12,unchanged

427,museum_visit,Find the number of visitors who did not visit any museum opened after 2010.,SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID  =  t2.Museum_ID WHERE t1.open_year  >  2010),museum.Museum_ID; museum.Open_Year; visit.Museum_ID; visit.visitor_ID; visitor.ID,5,12,unchanged

428,museum_visit,How many museums were opened after 2013 or before 2008?,SELECT count(*) FROM museum WHERE open_year  >  2013 OR open_year  <  2008,museum.Open_Year,1,12,unchanged

429,wta_1,Find the total number of players.,SELECT count(*) FROM players,players.player_id,1,43,count_star_pk_injected+empty_fixed

430,wta_1,How many players are there?,SELECT count(*) FROM players,players.player_id,1,43,count_star_pk_injected+empty_fixed

431,wta_1,Find the total number of matches.,SELECT count(*) FROM matches,matches.loser_id,1,43,count_star_pk_injected+empty_fixed

432,wta_1,Count the number of matches.,SELECT count(*) FROM matches,matches.loser_id,1,43,count_star_pk_injected+empty_fixed

433,wta_1,List the first name and birth date of all players from the country with code USA.,"SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'",players.birth_date; players.country_code; players.first_name,3,43,unchanged

434,wta_1,What are the first names and birth dates of players from the USA?,"SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'",players.birth_date; players.country_code; players.first_name,3,43,unchanged

435,wta_1,Find the average age of losers and winners of all matches.,"SELECT avg(loser_age) ,  avg(winner_age) FROM matches",matches.loser_age; matches.winner_age,2,43,unchanged

436,wta_1,What are the average ages of losers and winners across matches?,"SELECT avg(loser_age) ,  avg(winner_age) FROM matches",matches.loser_age; matches.winner_age,2,43,unchanged

437,wta_1,Find the average rank of winners in all matches.,SELECT avg(winner_rank) FROM matches,matches.winner_rank,1,43,unchanged

438,wta_1,What is the average rank for winners in all matches?,SELECT avg(winner_rank) FROM matches,matches.winner_rank,1,43,unchanged

439,wta_1,Find the highest rank of losers in all matches.,SELECT min(loser_rank) FROM matches,matches.loser_rank,1,43,unchanged

440,wta_1,What is the best rank of losers across all matches?,SELECT min(loser_rank) FROM matches,matches.loser_rank,1,43,unchanged

441,wta_1,find the number of distinct country codes of all players.,SELECT count(DISTINCT country_code) FROM players,players.country_code,1,43,unchanged

442,wta_1,How many distinct countries do players come from?,SELECT count(DISTINCT country_code) FROM players,players.country_code,1,43,unchanged

443,wta_1,Find the number of distinct name of losers.,SELECT count(DISTINCT loser_name) FROM matches,matches.loser_name,1,43,unchanged

444,wta_1,How many different loser names are there?,SELECT count(DISTINCT loser_name) FROM matches,matches.loser_name,1,43,unchanged

445,wta_1,Find the name of tourney that has more than 10 matches.,SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10,matches.tourney_name,1,43,unchanged

446,wta_1,What are the names of tournaments that have more than 10 matches?,SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10,matches.tourney_name,1,43,unchanged

447,wta_1,List the names of all winners who played in both 2013 and 2016.,SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016,matches.winner_name; matches.year,2,43,joinkey_added

448,wta_1,What are the names of players who won in both 2013 and 2016?,SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016,matches.winner_name; matches.year,2,43,joinkey_added

449,wta_1,List the number of all matches who played in years of 2013 or 2016.,SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016,matches.year,1,43,unchanged

450,wta_1,How many matches were played in 2013 or 2016?,SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016,matches.year,1,43,unchanged

451,wta_1,What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?,"SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'WTA Championships' INTERSECT SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'Australian Open'",matches.tourney_name; matches.winner_id; players.country_code; players.first_name; players.player_id,5,43,joinkey_added

452,wta_1,What are the first names and country codes for players who won both the WTA Championships and the Australian Open?,"SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'WTA Championships' INTERSECT SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id WHERE T2.tourney_name  =  'Australian Open'",matches.tourney_name; matches.winner_id; players.country_code; players.first_name; players.player_id,5,43,unchanged

453,wta_1,Find the first name and country code of the oldest player.,"SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1",players.birth_date; players.country_code; players.first_name,3,43,unchanged

454,wta_1,What is the first name and country code of the oldest player?,"SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1",players.birth_date; players.country_code; players.first_name,3,43,unchanged

455,wta_1,List the first and last name of all players in the order of birth date.,"SELECT first_name ,  last_name FROM players ORDER BY birth_date",players.birth_date; players.first_name; players.last_name,3,43,unchanged

456,wta_1,"What are the full names of all players, sorted by birth date?","SELECT first_name ,  last_name FROM players ORDER BY birth_date",players.birth_date; players.first_name; players.last_name,3,43,unchanged

457,wta_1,List the first and last name of all players who are left / L hand in the order of birth date.,"SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date",players.birth_date; players.first_name; players.hand; players.last_name,4,43,unchanged

458,wta_1,"What are the full names of all left handed players, in order of birth date?","SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date",players.birth_date; players.first_name; players.hand; players.last_name,4,43,unchanged

459,wta_1,Find the first name and country code of the player who did the most number of tours.,"SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id ORDER BY T2.tours DESC LIMIT 1",players.country_code; players.first_name; players.player_id; rankings.player_id; rankings.tours,5,43,joinkey_added

460,wta_1,What is the first name and country code of the player with the most tours?,"SELECT T1.country_code ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id ORDER BY T2.tours DESC LIMIT 1",players.country_code; players.first_name; players.player_id; rankings.player_id; rankings.tours,5,43,unchanged

461,wta_1,Find the year that has the most number of matches.,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,matches.year,1,43,unchanged

462,wta_1,Which year had the most matches?,SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1,matches.year,1,43,unchanged

463,wta_1,Find the name and rank points of the winner who won the most times.,"SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1",matches.winner_name; matches.winner_rank_points,2,43,unchanged

464,wta_1,"What is the name of the winner who has won the most matches, and how many rank points does this player have?","SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1",matches.winner_name; matches.winner_rank_points,2,43,unchanged

465,wta_1,Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.,SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1,matches.tourney_name; matches.winner_name; matches.winner_rank_points,3,43,unchanged

466,wta_1,What is the name of the winner with the most rank points who participated in the Australian Open tournament?,SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1,matches.tourney_name; matches.winner_name; matches.winner_rank_points,3,43,unchanged

467,wta_1,find the names of loser and winner who played in the match with greatest number of minutes.,"SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1",matches.loser_name; matches.minutes; matches.winner_name,3,43,joinkey_added

468,wta_1,What are the names of the winner and loser who played in the longest match?,"SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1",matches.loser_name; matches.minutes; matches.winner_name,3,43,joinkey_added

469,wta_1,Find the average ranking for each player and their first name.,"SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name",players.first_name; players.player_id; rankings.player_id; rankings.ranking,4,43,joinkey_added

470,wta_1,"What are the first names of all players, and their average rankings?","SELECT avg(ranking) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name",players.first_name; players.player_id; rankings.player_id; rankings.ranking,4,43,joinkey_added

471,wta_1,Find the total ranking points for each player and their first name.,"SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name",players.first_name; players.player_id; rankings.player_id; rankings.ranking_points,4,43,joinkey_added

472,wta_1,"What are the first names of all players, and their total ranking points?","SELECT sum(ranking_points) ,  T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id  =  T2.player_id GROUP BY T1.first_name",players.first_name; players.player_id; rankings.player_id; rankings.ranking_points,4,43,joinkey_added

473,wta_1,find the number of players for each country.,"SELECT count(*) ,  country_code FROM players GROUP BY country_code",players.country_code,1,43,unchanged

474,wta_1,How many players are from each country?,"SELECT count(*) ,  country_code FROM players GROUP BY country_code",players.country_code,1,43,unchanged

475,wta_1,find the code of the country where has the greatest number of players.,SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1,players.country_code,1,43,unchanged

476,wta_1,What is the code of the country with the most players?,SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1,players.country_code,1,43,unchanged

477,wta_1,Find the codes of countries that have more than 50 players.,SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50,players.country_code,1,43,unchanged

478,wta_1,What are the codes of countries with more than 50 players?,SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50,players.country_code,1,43,unchanged

479,wta_1,Find the total number of tours for each ranking date.,"SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date",rankings.ranking_date; rankings.tours,2,43,unchanged

480,wta_1,How many total tours were there for each ranking date?,"SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date",rankings.ranking_date; rankings.tours,2,43,unchanged

481,wta_1,Find the number of matches happened in each year.,"SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR",matches.year,1,43,unchanged

482,wta_1,How many matches were played in each year?,"SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR",matches.year,1,43,unchanged

483,wta_1,Find the name and rank of the 3 youngest winners across all matches.,"SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3",matches.winner_age; matches.winner_name; matches.winner_rank,3,43,unchanged

484,wta_1,What are the names and ranks of the three youngest winners across all matches?,"SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3",matches.winner_age; matches.winner_name; matches.winner_rank,3,43,unchanged

485,wta_1,How many different winners both participated in the WTA Championships and were left handed?,SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L',matches.tourney_name; matches.winner_hand; matches.winner_name,3,43,unchanged

486,wta_1,Find the number of left handed winners who participated in the WTA Championships.,SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L',matches.tourney_name; matches.winner_hand; matches.winner_name,3,43,unchanged

487,wta_1,"Find the first name, country code and birth date of the winner who has the highest rank points in all matches.","SELECT T1.first_name ,  T1.country_code ,  T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1",matches.winner_id; matches.winner_rank_points; players.birth_date; players.country_code; players.first_name; players.player_id,6,43,unchanged

488,wta_1,"What is the first name, country code, and birth date of the player with the most winner rank points across all matches?","SELECT T1.first_name ,  T1.country_code ,  T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id  =  T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1",matches.winner_id; matches.winner_rank_points; players.birth_date; players.country_code; players.first_name; players.player_id,6,43,unchanged

489,wta_1,Find the number of players for each hand type.,"SELECT count(*) ,  hand FROM players GROUP BY hand",players.hand,1,43,unchanged

490,wta_1,How many players are there for each hand type?,"SELECT count(*) ,  hand FROM players GROUP BY hand",players.hand,1,43,unchanged

491,battle_death,How many ships ended up being 'Captured'?,SELECT count(*) FROM ship WHERE disposition_of_ship  =  'Captured',ship.disposition_of_ship,1,18,unchanged

492,battle_death,List the name and tonnage ordered by in descending alphaetical order for the names.,"SELECT name ,  tonnage FROM ship ORDER BY name DESC",ship.name; ship.tonnage,2,18,unchanged

493,battle_death,"List the name, date and result of each battle.","SELECT name ,  date FROM battle",battle.date; battle.name,2,18,unchanged

494,battle_death,What is maximum and minimum death toll caused each time?,"SELECT max(killed) ,  min(killed) FROM death",death.killed,1,18,unchanged

495,battle_death,What is the average number of injuries caused each time?,SELECT avg(injured) FROM death,death.injured,1,18,unchanged

496,battle_death,What are the death and injury situations caused by the ship with tonnage 't'?,"SELECT T1.killed ,  T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id WHERE T2.tonnage  =  't'",death.caused_by_ship_id; death.injured; death.killed; ship.id; ship.tonnage,5,18,unchanged

497,battle_death,What are the name and results of the battles when the bulgarian commander is not 'Boril',"SELECT name ,  RESULT FROM battle WHERE bulgarian_commander != 'Boril'",battle.bulgarian_commander; battle.name; battle.result,3,18,unchanged

498,battle_death,What are the different ids and names of the battles that lost any 'Brig' type shipes?,"SELECT DISTINCT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.ship_type  =  'Brig'",battle.id; battle.name; ship.lost_in_battle; ship.ship_type,4,18,unchanged

499,battle_death,What are the ids and names of the battles that led to more than 10 people killed in total.,"SELECT T1.id ,  T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle JOIN death AS T3 ON T2.id  =  T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed)  >  10",battle.id; battle.name; death.caused_by_ship_id; death.killed; ship.id; ship.lost_in_battle,6,18,unchanged

500,battle_death,What is the ship id and name that caused most total injuries?,"SELECT T2.id ,  T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id  =  T2.id GROUP BY T2.id ORDER BY count(*) DESC LIMIT 1",death.caused_by_ship_id; ship.id; ship.name,3,18,unchanged

501,battle_death,What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?,SELECT name FROM battle WHERE bulgarian_commander  =  'Kaloyan' AND latin_commander  =  'Baldwin I',battle.bulgarian_commander; battle.latin_commander; battle.name,3,18,unchanged

502,battle_death,How many different results are there for the battles?,SELECT count(DISTINCT RESULT) FROM battle,battle.result,1,18,unchanged

503,battle_death,How many battles did not lose any ship with tonnage '225'?,SELECT count(*) FROM battle WHERE id NOT IN ( SELECT lost_in_battle FROM ship WHERE tonnage  =  '225' );,battle.id; ship.lost_in_battle; ship.tonnage,3,18,unchanged

504,battle_death,List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta',"SELECT T1.name ,  T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.name  =  'Lettice' INTERSECT SELECT T1.name ,  T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.name  =  'HMS Atalanta'",battle.date; battle.id; battle.name; ship.lost_in_battle; ship.name,5,18,joinkey_added

505,battle_death,"Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.","SELECT name ,  RESULT ,  bulgarian_commander FROM battle EXCEPT SELECT T1.name ,  T1.result ,  T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id  =  T2.lost_in_battle WHERE T2.location  =  'English Channel'",battle.bulgarian_commander; battle.id; battle.name; battle.result; ship.location; ship.lost_in_battle,6,18,joinkey_added

506,battle_death,What are the notes of the death events which has substring 'East'?,SELECT note FROM death WHERE note LIKE '%East%',death.note,1,18,unchanged

507,student_transcripts_tracking,what are all the addresses including line 1 and line 2?,"SELECT line_1 ,  line_2 FROM addresses",Addresses.line_1; Addresses.line_2,2,56,unchanged

508,student_transcripts_tracking,What is the first and second line for all addresses?,"SELECT line_1 ,  line_2 FROM addresses",Addresses.line_1; Addresses.line_2,2,56,unchanged

509,student_transcripts_tracking,How many courses in total are listed?,SELECT count(*) FROM Courses,Courses.course_id,1,56,count_star_pk_injected+empty_fixed

510,student_transcripts_tracking,How many courses are there?,SELECT count(*) FROM Courses,Courses.course_id,1,56,count_star_pk_injected+empty_fixed

511,student_transcripts_tracking,How is the math course described?,SELECT course_description FROM Courses WHERE course_name  =  'math',Courses.course_description; Courses.course_name,2,56,unchanged

512,student_transcripts_tracking,What are the descriptions for all the math courses?,SELECT course_description FROM Courses WHERE course_name  =  'math',Courses.course_description; Courses.course_name,2,56,unchanged

513,student_transcripts_tracking,What is the zip code of the address in the city Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city  =  'Port Chelsea',Addresses.city; Addresses.zip_postcode,2,56,unchanged

514,student_transcripts_tracking,What is the zip code for Port Chelsea?,SELECT zip_postcode FROM Addresses WHERE city  =  'Port Chelsea',Addresses.city; Addresses.zip_postcode,2,56,unchanged

515,student_transcripts_tracking,Which department offers the most number of degrees? List department name and id.,"SELECT T2.department_name ,  T1.department_id FROM Degree_Programs AS T1 JOIN Departments AS T2 ON T1.department_id  =  T2.department_id GROUP BY T1.department_id ORDER BY count(*) DESC LIMIT 1",Degree_Programs.department_id; Departments.department_id; Departments.department_name,3,56,joinkey_added

516,student_transcripts_tracking,What is the name and id of the department with the most number of degrees ?,"select t2.department_name ,  t1.department_id from degree_programs as t1 join departments as t2 on t1.department_id  =  t2.department_id group by t1.department_id order by count(*) desc limit 1",Degree_Programs.department_id; Departments.department_id; Departments.department_name,3,56,joinkey_added

517,student_transcripts_tracking,How many departments offer any degree?,SELECT count(DISTINCT department_id) FROM Degree_Programs,Degree_Programs.department_id,1,56,unchanged

518,student_transcripts_tracking,How many different departments offer degrees?,SELECT count(DISTINCT department_id) FROM Degree_Programs,Degree_Programs.department_id,1,56,unchanged

519,student_transcripts_tracking,How many different degree names are offered?,SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs,Degree_Programs.degree_summary_name,1,56,unchanged

520,student_transcripts_tracking,How many different degrees are offered?,SELECT count(DISTINCT degree_summary_name) FROM Degree_Programs,Degree_Programs.degree_summary_name,1,56,unchanged

521,student_transcripts_tracking,How many degrees does the engineering department offer?,SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id  =  T2.department_id WHERE T1.department_name  =  'engineer',Degree_Programs.department_id; Departments.department_id; Departments.department_name,3,56,unchanged

522,student_transcripts_tracking,How many degrees does the engineering department have?,SELECT count(*) FROM Departments AS T1 JOIN Degree_Programs AS T2 ON T1.department_id  =  T2.department_id WHERE T1.department_name  =  'engineer',Degree_Programs.department_id; Departments.department_id; Departments.department_name,3,56,unchanged

523,student_transcripts_tracking,What are the names and descriptions of all the sections?,"SELECT section_name ,  section_description FROM Sections",Sections.section_description; Sections.section_name,2,56,unchanged

524,student_transcripts_tracking,What are the names and descriptions for all the sections?,"SELECT section_name ,  section_description FROM Sections",Sections.section_description; Sections.section_name,2,56,unchanged

525,student_transcripts_tracking,What are the names and id of courses having at most 2 sections?,"SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2",Courses.course_id; Courses.course_name; Sections.course_id,3,56,unchanged

526,student_transcripts_tracking,What are the names and ids of every course with less than 2 sections?,"SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2",Courses.course_id; Courses.course_name; Sections.course_id,3,56,unchanged

527,student_transcripts_tracking,List the section_name in reversed lexicographical order.,SELECT section_name FROM Sections ORDER BY section_name DESC,Sections.section_name,1,56,unchanged

528,student_transcripts_tracking,What are the names of the sections in reverse alphabetical order?,SELECT section_name FROM Sections ORDER BY section_name DESC,Sections.section_name,1,56,unchanged

529,student_transcripts_tracking,What is the semester which most student registered in? Show both the name and the id.,"SELECT T1.semester_name ,  T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id  =  T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1",Semesters.semester_id; Semesters.semester_name; Student_Enrolment.semester_id,3,56,unchanged

530,student_transcripts_tracking,"For each semester, what is the name and id of the one with the most students registered?","SELECT T1.semester_name ,  T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id  =  T2.semester_id GROUP BY T1.semester_id ORDER BY count(*) DESC LIMIT 1",Semesters.semester_id; Semesters.semester_name; Student_Enrolment.semester_id,3,56,unchanged

531,student_transcripts_tracking,What is the description of the department whose name has the substring the computer?,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%',Departments.department_description; Departments.department_name,2,56,unchanged

532,student_transcripts_tracking,What is the department description for the one whose name has the word computer?,SELECT department_description FROM Departments WHERE department_name LIKE '%computer%',Departments.department_description; Departments.department_name,2,56,unchanged

533,student_transcripts_tracking,"Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.","SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2",Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,5,56,unchanged

534,student_transcripts_tracking,"What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?","SELECT T1.first_name ,  T1.middle_name ,  T1.last_name ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id HAVING count(*)  =  2",Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,5,56,unchanged

535,student_transcripts_tracking,"Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.","SELECT DISTINCT T1.first_name ,  T1.middle_name ,  T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id  =  T3.degree_program_id WHERE T3.degree_summary_name  =  'Bachelor'",Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id; Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,8,56,unchanged

536,student_transcripts_tracking,"What are the first, middle, and last names for everybody enrolled in a Bachelors program?","SELECT DISTINCT T1.first_name ,  T1.middle_name ,  T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id  =  T3.degree_program_id WHERE T3.degree_summary_name  =  'Bachelor'",Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id; Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,8,56,unchanged

537,student_transcripts_tracking,Find the kind of program which most number of students are enrolled in?,SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1,Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id,3,56,unchanged

538,student_transcripts_tracking,What is the degree summary name that has the most number of students enrolled?,SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY count(*) DESC LIMIT 1,Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id,3,56,unchanged

539,student_transcripts_tracking,Find the program which most number of students are enrolled in. List both the id and the summary.,"SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1",Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id,3,56,unchanged

540,student_transcripts_tracking,What is the program id and the summary of the degree that has the most students enrolled?,"SELECT T1.degree_program_id ,  T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id GROUP BY T1.degree_program_id ORDER BY count(*) DESC LIMIT 1",Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id,3,56,unchanged

541,student_transcripts_tracking,"Which student has enrolled for the most times in any program? List the id, first name, middle name, last name, the number of enrollments and student id.","SELECT T1.student_id ,  T1.first_name ,  T1.middle_name ,  T1.last_name ,  count(*) ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,5,56,unchanged

542,student_transcripts_tracking,"What is the first, middle, and last name, along with the id and number of enrollments, for the student who enrolled the most in any program?","SELECT T1.student_id ,  T1.first_name ,  T1.middle_name ,  T1.last_name ,  count(*) ,  T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id  =  T2.student_id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1",Student_Enrolment.student_id; Students.first_name; Students.last_name; Students.middle_name; Students.student_id,5,56,joinkey_added

543,student_transcripts_tracking,Which semesters do not have any student enrolled? List the semester name.,SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ),Semesters.semester_id; Semesters.semester_name; Student_Enrolment.semester_id,3,56,unchanged

544,student_transcripts_tracking,What is the name of the semester with no students enrolled?,SELECT semester_name FROM Semesters WHERE semester_id NOT IN( SELECT semester_id FROM Student_Enrolment ),Semesters.semester_id; Semesters.semester_name; Student_Enrolment.semester_id,3,56,unchanged

545,student_transcripts_tracking,What are all the course names of the courses which ever have students enrolled in?,SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id,Courses.course_id; Courses.course_name; Student_Enrolment_Courses.course_id,3,56,unchanged

546,student_transcripts_tracking,What are the names of all courses that have some students enrolled?,SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id,Courses.course_id; Courses.course_name; Student_Enrolment_Courses.course_id,3,56,unchanged

547,student_transcripts_tracking,What's the name of the course with most number of enrollments?,SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1,Courses.course_id; Courses.course_name; Student_Enrolment_Courses.course_id,3,56,unchanged

548,student_transcripts_tracking,What is the name of the course with the most students enrolled?,SELECT  T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_name ORDER BY count(*) DESC LIMIT 1,Courses.course_id; Courses.course_name; Student_Enrolment_Courses.course_id,3,56,unchanged

549,student_transcripts_tracking,Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.,SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id  =  T2.address_id WHERE T2.state_province_county  =  'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id  =  T4.student_id,Addresses.address_id; Addresses.state_province_county; Student_Enrolment.student_id; Students.current_address_id; Students.last_name; Students.student_id,6,56,unchanged

550,student_transcripts_tracking,What are the last name of the students who live in North Carolina but have not registered in any degree programs?,SELECT T1.last_name FROM Students AS T1 JOIN Addresses AS T2 ON T1.current_address_id  =  T2.address_id WHERE T2.state_province_county  =  'NorthCarolina' EXCEPT SELECT DISTINCT T3.last_name FROM Students AS T3 JOIN Student_Enrolment AS T4 ON T3.student_id  =  T4.student_id,Addresses.address_id; Addresses.state_province_county; Student_Enrolment.student_id; Students.current_address_id; Students.last_name; Students.student_id,6,56,unchanged

551,student_transcripts_tracking,Show the date and id of the transcript with at least 2 course results.,"SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id HAVING count(*)  >=  2",Transcript_Contents.transcript_id; Transcripts.transcript_date; Transcripts.transcript_id,3,56,joinkey_added

552,student_transcripts_tracking,What is the date and id of the transcript with at least 2 courses listed?,"SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id HAVING count(*)  >=  2",Transcript_Contents.transcript_id; Transcripts.transcript_date; Transcripts.transcript_id,3,56,joinkey_added

553,student_transcripts_tracking,What is the phone number of the man with the first name Timmothy and the last name Ward?,SELECT cell_mobile_number FROM Students WHERE first_name  =  'Timmothy' AND last_name  =  'Ward',Students.cell_mobile_number; Students.first_name; Students.last_name,3,56,unchanged

554,student_transcripts_tracking,What is the mobile phone number of the student named Timmothy Ward ?,select cell_mobile_number from students where first_name  =  'timmothy' and last_name  =  'ward',Students.cell_mobile_number; Students.first_name; Students.last_name,3,56,unchanged

555,student_transcripts_tracking,"Who is the first student to register? List the first name, middle name and last name.","SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1",Students.date_first_registered; Students.first_name; Students.last_name; Students.middle_name,4,56,unchanged

556,student_transcripts_tracking,"What is the first, middle, and last name of the first student to register?","SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_first_registered ASC LIMIT 1",Students.date_first_registered; Students.first_name; Students.last_name; Students.middle_name,4,56,unchanged

557,student_transcripts_tracking,"Who is the earliest graduate of the school? List the first name, middle name and last name.","SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_left ASC LIMIT 1",Students.date_left; Students.first_name; Students.last_name; Students.middle_name,4,56,unchanged

558,student_transcripts_tracking,"What is the first, middle, and last name of the earliest school graduate?","SELECT first_name ,  middle_name ,  last_name FROM Students ORDER BY date_left ASC LIMIT 1",Students.date_left; Students.first_name; Students.last_name; Students.middle_name,4,56,unchanged

559,student_transcripts_tracking,Whose permanent address is different from his or her current address? List his or her first name.,SELECT first_name FROM Students WHERE current_address_id != permanent_address_id,Students.current_address_id; Students.first_name; Students.permanent_address_id,3,56,unchanged

560,student_transcripts_tracking,What is the first name of the student whose permanent address is different from his or her current one?,SELECT first_name FROM Students WHERE current_address_id != permanent_address_id,Students.current_address_id; Students.first_name; Students.permanent_address_id,3,56,unchanged

561,student_transcripts_tracking,Which address holds the most number of students currently? List the address id and all lines.,"SELECT T1.address_id ,  T1.line_1 ,  T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1",Addresses.address_id; Addresses.line_1; Addresses.line_2; Students.current_address_id,4,56,joinkey_added

562,student_transcripts_tracking,"What is the id, line 1, and line 2 of the address with the most students?","SELECT T1.address_id ,  T1.line_1 ,  T1.line_2 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id  =  T2.current_address_id GROUP BY T1.address_id ORDER BY count(*) DESC LIMIT 1",Addresses.address_id; Addresses.line_1; Addresses.line_2; Students.current_address_id,4,56,joinkey_added

563,student_transcripts_tracking,"On average, when were the transcripts printed?",SELECT avg(transcript_date) FROM Transcripts,Transcripts.transcript_date,1,56,unchanged

564,student_transcripts_tracking,What is the average transcript date?,SELECT avg(transcript_date) FROM Transcripts,Transcripts.transcript_date,1,56,unchanged

565,student_transcripts_tracking,When is the first transcript released? List the date and details.,"SELECT transcript_date ,  other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1",Transcripts.other_details; Transcripts.transcript_date,2,56,unchanged

566,student_transcripts_tracking,"What is the earliest date of a transcript release, and what details can you tell me?","SELECT transcript_date ,  other_details FROM Transcripts ORDER BY transcript_date ASC LIMIT 1",Transcripts.other_details; Transcripts.transcript_date,2,56,unchanged

567,student_transcripts_tracking,How many transcripts are released?,SELECT count(*) FROM Transcripts,Transcripts.transcript_id,1,56,count_star_pk_injected+empty_fixed

568,student_transcripts_tracking,How many transcripts are listed?,SELECT count(*) FROM Transcripts,Transcripts.transcript_id,1,56,count_star_pk_injected+empty_fixed

569,student_transcripts_tracking,What is the last transcript release date?,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1,Transcripts.transcript_date,1,56,unchanged

570,student_transcripts_tracking,When was the last transcript released?,SELECT transcript_date FROM Transcripts ORDER BY transcript_date DESC LIMIT 1,Transcripts.transcript_date,1,56,unchanged

571,student_transcripts_tracking,How many times at most can a course enrollment result show in different transcripts? Also show the course enrollment id.,"SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1",Transcript_Contents.student_course_id,1,56,unchanged

572,student_transcripts_tracking,What is the maximum number of times that a course shows up in different transcripts and what is that course's enrollment id?,"SELECT count(*) ,  student_course_id FROM Transcript_Contents GROUP BY student_course_id ORDER BY count(*) DESC LIMIT 1",Transcript_Contents.student_course_id,1,56,unchanged

573,student_transcripts_tracking,"Show the date of the transcript which shows the least number of results, also list the id.","SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1",Transcript_Contents.transcript_id; Transcripts.transcript_date; Transcripts.transcript_id,3,56,joinkey_added

574,student_transcripts_tracking,What is the date and id of the transcript with the least number of results?,"SELECT T2.transcript_date ,  T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id  =  T2.transcript_id GROUP BY T1.transcript_id ORDER BY count(*) ASC LIMIT 1",Transcript_Contents.transcript_id; Transcripts.transcript_date; Transcripts.transcript_id,3,56,joinkey_added

575,student_transcripts_tracking,Find the semester when both Master students and Bachelor students got enrolled in.,SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor',Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id; Student_Enrolment.semester_id,4,56,unchanged

576,student_transcripts_tracking,What is the id of the semester that had both Masters and Bachelors students enrolled?,SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Master' INTERSECT SELECT DISTINCT T2.semester_id FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id  =  T2.degree_program_id WHERE degree_summary_name  =  'Bachelor',Degree_Programs.degree_program_id; Degree_Programs.degree_summary_name; Student_Enrolment.degree_program_id; Student_Enrolment.semester_id,4,56,unchanged

577,student_transcripts_tracking,How many different addresses do the students currently live?,SELECT count(DISTINCT current_address_id) FROM Students,Students.current_address_id,1,56,unchanged

578,student_transcripts_tracking,What are the different addresses that have students living there?,SELECT count(DISTINCT current_address_id) FROM Students,Students.current_address_id,1,56,unchanged

579,student_transcripts_tracking,List all the student details in reversed lexicographical order.,SELECT other_student_details FROM Students ORDER BY other_student_details DESC,Students.other_student_details,1,56,unchanged

580,student_transcripts_tracking,What other details can you tell me about students in reverse alphabetical order?,SELECT other_student_details FROM Students ORDER BY other_student_details DESC,Students.other_student_details,1,56,unchanged

581,student_transcripts_tracking,Describe the section h.,SELECT section_description FROM Sections WHERE section_name  =  'h',Sections.section_description; Sections.section_name,2,56,unchanged

582,student_transcripts_tracking,What is the description for the section named h?,SELECT section_description FROM Sections WHERE section_name  =  'h',Sections.section_description; Sections.section_name,2,56,unchanged

583,student_transcripts_tracking,Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .,select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582',Addresses.address_id; Addresses.country; Students.cell_mobile_number; Students.first_name; Students.permanent_address_id,5,56,unchanged

584,student_transcripts_tracking,What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?,select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id  =  t2.address_id where t2.country  =  'haiti' or t1.cell_mobile_number  =  '09700166582',Addresses.address_id; Addresses.country; Students.cell_mobile_number; Students.first_name; Students.permanent_address_id,5,56,unchanged

585,tvshow,List the title of all cartoons in alphabetical order.,SELECT Title FROM Cartoon ORDER BY title,Cartoon.Title,1,25,unchanged

586,tvshow,What are the titles of the cartoons sorted alphabetically?,SELECT Title FROM Cartoon ORDER BY title,Cartoon.Title,1,25,unchanged

587,tvshow,"List all cartoon directed by ""Ben Jones"".","SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"";",Cartoon.Directed_by; Cartoon.Title,2,25,unchanged
588,tvshow,What are the names of all cartoons directed by Ben Jones?,"SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"";",Cartoon.Directed_by; Cartoon.Title,2,25,unchanged
589,tvshow,"How many cartoons were written by ""Joseph Kuhr""?","SELECT count(*) FROM Cartoon WHERE Written_by = ""Joseph Kuhr"";",Cartoon.Written_by,1,25,unchanged
590,tvshow,What is the number of cartoones written by Joseph Kuhr?,"SELECT count(*) FROM Cartoon WHERE Written_by = ""Joseph Kuhr"";",Cartoon.Written_by,1,25,unchanged
591,tvshow,list all cartoon titles and their directors ordered by their air date,"SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date",Cartoon.Directed_by; Cartoon.Original_air_date; Cartoon.Title,3,25,unchanged

592,tvshow,What is the name and directors of all the cartoons that are ordered by air date?,"SELECT title ,  Directed_by FROM Cartoon ORDER BY Original_air_date",Cartoon.Directed_by; Cartoon.Original_air_date; Cartoon.Title,3,25,unchanged

593,tvshow,"List the title of all cartoon directed by ""Ben Jones"" or ""Brandon Vietti"".","SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"" OR Directed_by = ""Brandon Vietti"";",Cartoon.Directed_by; Cartoon.Title,2,25,unchanged
594,tvshow,What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?,"SELECT Title FROM Cartoon WHERE Directed_by = ""Ben Jones"" OR Directed_by = ""Brandon Vietti"";",Cartoon.Directed_by; Cartoon.Title,2,25,unchanged
595,tvshow,Which country has the most of TV Channels? List the country and number of TV Channels it has.,"SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;",TV_Channel.Country,1,25,unchanged
596,tvshow,What is the country with the most number of TV Channels and how many does it have?,"SELECT Country ,  count(*) FROM TV_Channel GROUP BY Country ORDER BY count(*) DESC LIMIT 1;",TV_Channel.Country,1,25,unchanged
597,tvshow,List the number of different series names and contents in the TV Channel table.,"SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;",TV_Channel.Content; TV_Channel.series_name,2,25,unchanged
598,tvshow,How many different series and contents are listed in the TV Channel table?,"SELECT count(DISTINCT series_name) ,  count(DISTINCT content) FROM TV_Channel;",TV_Channel.Content; TV_Channel.series_name,2,25,unchanged
599,tvshow,"What is the content of TV Channel with serial name ""Sky Radio""?","SELECT Content FROM TV_Channel WHERE series_name = ""Sky Radio"";",TV_Channel.Content; TV_Channel.series_name,2,25,unchanged
600,tvshow,What is the content of the series Sky Radio?,"SELECT Content FROM TV_Channel WHERE series_name = ""Sky Radio"";",TV_Channel.Content; TV_Channel.series_name,2,25,unchanged
601,tvshow,"What is the Package Option of TV Channel with serial name ""Sky Radio""?","SELECT Package_Option FROM TV_Channel WHERE series_name = ""Sky Radio"";",TV_Channel.Package_Option; TV_Channel.series_name,2,25,unchanged
602,tvshow,What are the Package Options of the TV Channels whose series names are Sky Radio?,"SELECT Package_Option FROM TV_Channel WHERE series_name = ""Sky Radio"";",TV_Channel.Package_Option; TV_Channel.series_name,2,25,unchanged
603,tvshow,How many TV Channel using language English?,"SELECT count(*) FROM TV_Channel WHERE LANGUAGE = ""English"";",TV_Channel.Language,1,25,unchanged
604,tvshow,How many TV Channels use the English language?,"SELECT count(*) FROM TV_Channel WHERE LANGUAGE = ""English"";",TV_Channel.Language,1,25,unchanged
605,tvshow,List the language used least number of TV Channel. List language and number of TV Channel.,"SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;",TV_Channel.Language,1,25,unchanged
606,tvshow,What are the languages used by the least number of TV Channels and how many channels use it?,"SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE ORDER BY count(*) ASC LIMIT 1;",TV_Channel.Language,1,25,unchanged
607,tvshow,List each language and the number of TV Channels using it.,"SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE",TV_Channel.Language,1,25,unchanged

608,tvshow,"For each language, list the number of TV Channels that use it.","SELECT LANGUAGE ,  count(*) FROM TV_Channel GROUP BY LANGUAGE",TV_Channel.Language,1,25,unchanged

609,tvshow,"What is the TV Channel that shows the cartoon ""The Rise of the Blue Beetle!""? List the TV Channel's series name.","SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = ""The Rise of the Blue Beetle!"";",Cartoon.Channel; Cartoon.Title; TV_Channel.id; TV_Channel.series_name,4,25,unchanged

610,tvshow,"What is the series name of the TV Channel that shows the cartoon ""The Rise of the Blue Beetle""?","SELECT T1.series_name FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T2.Title = ""The Rise of the Blue Beetle!"";",Cartoon.Channel; Cartoon.Title; TV_Channel.id; TV_Channel.series_name,4,25,unchanged

611,tvshow,"List the title of all  Cartoons showed on TV Channel with series name ""Sky Radio"".","SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";",Cartoon.Channel; Cartoon.Title; TV_Channel.id; TV_Channel.series_name,4,25,unchanged

612,tvshow,"What is the title of all the cartools that are on the TV Channel with the series name ""Sky Radio""?","SELECT T2.Title FROM TV_Channel AS T1 JOIN Cartoon AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";",Cartoon.Channel; Cartoon.Title; TV_Channel.id; TV_Channel.series_name,4,25,unchanged

613,tvshow,List the Episode of all TV series sorted by rating.,SELECT Episode FROM TV_series ORDER BY rating,TV_series.Episode; TV_series.Rating,2,25,unchanged

614,tvshow,What are all of the episodes ordered by ratings?,SELECT Episode FROM TV_series ORDER BY rating,TV_series.Episode; TV_series.Rating,2,25,unchanged

615,tvshow,List top 3 highest Rating  TV series. List the TV series's Episode and Rating.,"SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;",TV_series.Episode; TV_series.Rating,2,25,unchanged
616,tvshow,What are 3 most highly rated episodes in the TV series table and what were those ratings?,"SELECT Episode ,  Rating FROM TV_series ORDER BY Rating DESC LIMIT 3;",TV_series.Episode; TV_series.Rating,2,25,unchanged
617,tvshow,What is minimum and maximum share of TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",TV_series.Share,1,25,unchanged
618,tvshow,What is the maximum and minimum share for the TV series?,"SELECT max(SHARE) , min(SHARE) FROM TV_series;",TV_series.Share,1,25,unchanged
619,tvshow,"What is the air date of TV series with Episode ""A Love of a Lifetime""?","SELECT Air_Date FROM TV_series WHERE Episode = ""A Love of a Lifetime"";",TV_series.Air_Date; TV_series.Episode,2,25,unchanged
620,tvshow,"When did the episode ""A Love of a Lifetime"" air?","SELECT Air_Date FROM TV_series WHERE Episode = ""A Love of a Lifetime"";",TV_series.Air_Date; TV_series.Episode,2,25,unchanged
621,tvshow,"What is Weekly Rank of TV series with Episode ""A Love of a Lifetime""?","SELECT Weekly_Rank FROM TV_series WHERE Episode = ""A Love of a Lifetime"";",TV_series.Episode; TV_series.Weekly_Rank,2,25,unchanged
622,tvshow,"What is the weekly rank for the episode ""A Love of a Lifetime""?","SELECT Weekly_Rank FROM TV_series WHERE Episode = ""A Love of a Lifetime"";",TV_series.Episode; TV_series.Weekly_Rank,2,25,unchanged
623,tvshow,"What is the TV Channel of TV series with Episode ""A Love of a Lifetime""? List the TV Channel's series name.","SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = ""A Love of a Lifetime"";",TV_Channel.id; TV_Channel.series_name; TV_series.Channel; TV_series.Episode,4,25,unchanged
624,tvshow,"What is the name of the series that has the episode ""A Love of a Lifetime""?","SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = ""A Love of a Lifetime"";",TV_Channel.id; TV_Channel.series_name; TV_series.Channel; TV_series.Episode,4,25,unchanged
625,tvshow,"List the Episode of all  TV series showed on TV Channel with series name ""Sky Radio"".","SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";",TV_Channel.id; TV_Channel.series_name; TV_series.Channel; TV_series.Episode,4,25,unchanged
626,tvshow,"What is the episode for the TV series named ""Sky Radio""?","SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = ""Sky Radio"";",TV_Channel.id; TV_Channel.series_name; TV_series.Channel; TV_series.Episode,4,25,unchanged
627,tvshow,Find the number of cartoons directed by each of the listed directors.,"SELECT count(*) ,  Directed_by FROM cartoon GROUP BY Directed_by",Cartoon.Directed_by,1,25,unchanged

628,tvshow,How many cartoons did each director create?,"SELECT count(*) ,  Directed_by FROM cartoon GROUP BY Directed_by",Cartoon.Directed_by,1,25,unchanged

629,tvshow,Find the production code and channel of the most recently aired cartoon .,"select production_code ,  channel from cartoon order by original_air_date desc limit 1",Cartoon.Channel; Cartoon.Original_air_date; Cartoon.Production_code,3,25,unchanged

630,tvshow,What is the produdction code and channel of the most recent cartoon ?,"select production_code ,  channel from cartoon order by original_air_date desc limit 1",Cartoon.Channel; Cartoon.Original_air_date; Cartoon.Production_code,3,25,unchanged

631,tvshow,Find the package choice and series name of the TV channel that has high definition TV.,"SELECT package_option ,  series_name FROM TV_Channel WHERE hight_definition_TV  =  ""yes""",TV_Channel.Hight_definition_TV; TV_Channel.Package_Option; TV_Channel.series_name,3,25,unchanged

632,tvshow,What are the package options and the name of the series for the TV Channel that supports high definition TV?,"SELECT package_option ,  series_name FROM TV_Channel WHERE hight_definition_TV  =  ""yes""",TV_Channel.Hight_definition_TV; TV_Channel.Package_Option; TV_Channel.series_name,3,25,unchanged

633,tvshow,which countries' tv channels are playing some cartoon written by Todd Casey?,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey',Cartoon.Channel; Cartoon.Written_by; TV_Channel.Country; TV_Channel.id,4,25,unchanged

634,tvshow,What are the countries that have cartoons on TV that were written by Todd Casey?,SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey',Cartoon.Channel; Cartoon.Written_by; TV_Channel.Country; TV_Channel.id,4,25,unchanged

635,tvshow,which countries' tv channels are not playing any cartoon written by Todd Casey?,SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey',Cartoon.Channel; Cartoon.Written_by; TV_Channel.Country; TV_Channel.id,4,25,unchanged

636,tvshow,What are the countries that are not playing cartoons written by Todd Casey?,SELECT country FROM TV_Channel EXCEPT SELECT T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.written_by  =  'Todd Casey',Cartoon.Channel; Cartoon.Written_by; TV_Channel.Country; TV_Channel.id,4,25,unchanged

637,tvshow,Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?,"SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'",Cartoon.Channel; Cartoon.Directed_by; TV_Channel.Country; TV_Channel.id; TV_Channel.series_name,5,25,joinkey_added

638,tvshow,What is the series name and country of all TV channels that are playing cartoons directed by Ben Jones and cartoons directed by Michael Chang?,"SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Michael Chang' INTERSECT SELECT T1.series_name ,  T1.country FROM TV_Channel AS T1 JOIN cartoon AS T2 ON T1.id = T2.Channel WHERE T2.directed_by  =  'Ben Jones'",Cartoon.Channel; Cartoon.Directed_by; TV_Channel.Country; TV_Channel.id; TV_Channel.series_name,5,25,joinkey_added

639,tvshow,find the pixel aspect ratio and nation of the tv channels that do not use English.,"SELECT Pixel_aspect_ratio_PAR ,  country FROM tv_channel WHERE LANGUAGE != 'English'",TV_Channel.Country; TV_Channel.Language; TV_Channel.Pixel_aspect_ratio_PAR,3,25,unchanged

640,tvshow,What is the pixel aspect ratio and country of origin for all TV channels that do not use English?,"SELECT Pixel_aspect_ratio_PAR ,  country FROM tv_channel WHERE LANGUAGE != 'English'",TV_Channel.Country; TV_Channel.Language; TV_Channel.Pixel_aspect_ratio_PAR,3,25,unchanged

641,tvshow,find id of the tv channels that from the countries where have more than two tv channels.,SELECT id FROM tv_channel GROUP BY country HAVING count(*)  >  2,TV_Channel.Country; TV_Channel.id,2,25,unchanged

642,tvshow,What are the ids of all tv channels that have more than 2 TV channels?,SELECT id FROM tv_channel GROUP BY country HAVING count(*)  >  2,TV_Channel.Country; TV_Channel.id,2,25,unchanged

643,tvshow,find the id of tv channels that do not play any cartoon directed by Ben Jones.,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones',Cartoon.Channel; Cartoon.Directed_by; TV_Channel.id,3,25,unchanged

644,tvshow,What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?,SELECT id FROM TV_Channel EXCEPT SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones',Cartoon.Channel; Cartoon.Directed_by; TV_Channel.id,3,25,unchanged

645,tvshow,find the package option of the tv channel that do not have any cartoon directed by Ben Jones.,SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'),Cartoon.Channel; Cartoon.Directed_by; TV_Channel.Package_Option; TV_Channel.id,4,25,unchanged

646,tvshow,What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?,SELECT package_option FROM TV_Channel WHERE id NOT IN (SELECT channel FROM cartoon WHERE directed_by  =  'Ben Jones'),Cartoon.Channel; Cartoon.Directed_by; TV_Channel.Package_Option; TV_Channel.id,4,25,unchanged

647,poker_player,How many poker players are there?,SELECT count(*) FROM poker_player,poker_player.Poker_Player_ID,1,11,count_star_pk_injected+empty_fixed

648,poker_player,Count the number of poker players.,SELECT count(*) FROM poker_player,poker_player.Poker_Player_ID,1,11,count_star_pk_injected+empty_fixed

649,poker_player,List the earnings of poker players in descending order.,SELECT Earnings FROM poker_player ORDER BY Earnings DESC,poker_player.Earnings,1,11,unchanged

650,poker_player,"What are the earnings of poker players, ordered descending by value?",SELECT Earnings FROM poker_player ORDER BY Earnings DESC,poker_player.Earnings,1,11,unchanged

651,poker_player,List the final tables made and the best finishes of poker players.,"SELECT Final_Table_Made ,  Best_Finish FROM poker_player",poker_player.Best_Finish; poker_player.Final_Table_Made,2,11,unchanged

652,poker_player,What are the final tables made and best finishes for all poker players?,"SELECT Final_Table_Made ,  Best_Finish FROM poker_player",poker_player.Best_Finish; poker_player.Final_Table_Made,2,11,unchanged

653,poker_player,What is the average earnings of poker players?,SELECT avg(Earnings) FROM poker_player,poker_player.Earnings,1,11,unchanged

654,poker_player,Return the average earnings across all poker players.,SELECT avg(Earnings) FROM poker_player,poker_player.Earnings,1,11,unchanged

655,poker_player,What is the money rank of the poker player with the highest earnings?,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1,poker_player.Earnings; poker_player.Money_Rank,2,11,unchanged

656,poker_player,Return the money rank of the player with the greatest earnings.,SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1,poker_player.Earnings; poker_player.Money_Rank,2,11,unchanged

657,poker_player,What is the maximum number of final tables made among poker players with earnings less than 200000?,SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000,poker_player.Earnings; poker_player.Final_Table_Made,2,11,unchanged

658,poker_player,Return the maximum final tables made across all poker players who have earnings below 200000.,SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000,poker_player.Earnings; poker_player.Final_Table_Made,2,11,unchanged

659,poker_player,What are the names of poker players?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID,people.Name; people.People_ID; poker_player.People_ID,3,11,unchanged

660,poker_player,Return the names of all the poker players.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID,people.Name; people.People_ID; poker_player.People_ID,3,11,unchanged

661,poker_player,What are the names of poker players whose earnings is higher than 300000?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000,people.Name; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

662,poker_player,Give the names of poker players who have earnings above 300000.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000,people.Name; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

663,poker_player,List the names of poker players ordered by the final tables made in ascending order.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made,people.Name; people.People_ID; poker_player.Final_Table_Made; poker_player.People_ID,4,11,unchanged

664,poker_player,"What are the names of poker players, ordered ascending by the number of final tables they have made?",SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made,people.Name; people.People_ID; poker_player.Final_Table_Made; poker_player.People_ID,4,11,unchanged

665,poker_player,What is the birth date of the poker player with the lowest earnings?,SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1,people.Birth_Date; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

666,poker_player,Return the birth date of the poker player with the lowest earnings.,SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1,people.Birth_Date; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

667,poker_player,What is the money rank of the tallest poker player?,SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1,people.Height; people.People_ID; poker_player.Money_Rank; poker_player.People_ID,4,11,unchanged

668,poker_player,Return the money rank of the poker player with the greatest height.,SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1,people.Height; people.People_ID; poker_player.Money_Rank; poker_player.People_ID,4,11,unchanged

669,poker_player,What is the average earnings of poker players with height higher than 200?,SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200,people.Height; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

670,poker_player,Give average earnings of poker players who are taller than 200.,SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200,people.Height; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

671,poker_player,What are the names of poker players in descending order of earnings?,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC,people.Name; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

672,poker_player,Return the names of poker players sorted by their earnings descending.,SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC,people.Name; people.People_ID; poker_player.Earnings; poker_player.People_ID,4,11,unchanged

673,poker_player,What are different nationalities of people and the corresponding number of people from each nation?,"SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality",people.Nationality,1,11,unchanged

674,poker_player,How many people are there of each nationality?,"SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality",people.Nationality,1,11,unchanged

675,poker_player,What is the most common nationality of people?,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1,people.Nationality,1,11,unchanged

676,poker_player,Give the nationality that is most common across all people.,SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1,people.Nationality,1,11,unchanged

677,poker_player,What are the nationalities that are shared by at least two people?,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2,people.Nationality,1,11,unchanged

678,poker_player,Return the nationalities for which there are two or more people.,SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2,people.Nationality,1,11,unchanged

679,poker_player,List the names and birth dates of people in ascending alphabetical order of name.,"SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC",people.Birth_Date; people.Name,2,11,unchanged

680,poker_player,"What are the names and birth dates of people, ordered by their names in alphabetical order?","SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC",people.Birth_Date; people.Name,2,11,unchanged

681,poker_player,"Show names of people whose nationality is not ""Russia"".","SELECT Name FROM people WHERE Nationality != ""Russia""",people.Name; people.Nationality,2,11,unchanged

682,poker_player,What are the names of people who are not from Russia?,"SELECT Name FROM people WHERE Nationality != ""Russia""",people.Name; people.Nationality,2,11,unchanged

683,poker_player,List the names of people that are not poker players.,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player),people.Name; people.People_ID; poker_player.People_ID,3,11,unchanged

684,poker_player,What are the names of people who do not play poker?,SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player),people.Name; people.People_ID; poker_player.People_ID,3,11,unchanged

685,poker_player,How many distinct nationalities are there?,SELECT count(DISTINCT Nationality) FROM people,people.Nationality,1,11,unchanged

686,poker_player,Count the number of different nationalities.,SELECT count(DISTINCT Nationality) FROM people,people.Nationality,1,11,unchanged

687,voter_1,How many states are there?,SELECT count(*) FROM area_code_state,AREA_CODE_STATE.area_code,1,9,count_star_pk_injected+empty_fixed

688,voter_1,"List the contestant numbers and names, ordered by contestant name descending.","SELECT contestant_number ,  contestant_name FROM contestants ORDER BY contestant_name DESC",CONTESTANTS.contestant_name; CONTESTANTS.contestant_number,2,9,unchanged

689,voter_1,"List the vote ids, phone numbers and states of all votes.","SELECT vote_id ,  phone_number ,  state FROM votes",VOTES.phone_number; VOTES.state; VOTES.vote_id,3,9,unchanged

690,voter_1,What are the maximum and minimum values of area codes?,"SELECT max(area_code) ,  min(area_code) FROM area_code_state",AREA_CODE_STATE.area_code,1,9,unchanged

691,voter_1,What is last date created of votes from the state 'CA'?,SELECT max(created) FROM votes WHERE state  =  'CA',VOTES.created; VOTES.state,2,9,unchanged

692,voter_1,What are the names of the contestants whose names are not 'Jessie Alloway',SELECT contestant_name FROM contestants WHERE contestant_name != 'Jessie Alloway',CONTESTANTS.contestant_name,1,9,unchanged

693,voter_1,What are the distinct states and create time of all votes?,"SELECT DISTINCT state ,  created FROM votes",VOTES.created; VOTES.state,2,9,unchanged

694,voter_1,What are the contestant numbers and names of the contestants who had at least two votes?,"SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number GROUP BY T1.contestant_number HAVING count(*)  >=  2",CONTESTANTS.contestant_name; CONTESTANTS.contestant_number; VOTES.contestant_number,3,9,unchanged

695,voter_1,"Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?","SELECT T1.contestant_number , T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number GROUP BY T1.contestant_number ORDER BY count(*) ASC LIMIT 1",CONTESTANTS.contestant_name; CONTESTANTS.contestant_number; VOTES.contestant_number,3,9,unchanged

696,voter_1,What are the number of votes from state 'NY' or 'CA'?,SELECT count(*) FROM votes WHERE state  =  'NY' OR state  =  'CA',VOTES.state,1,9,unchanged

697,voter_1,How many contestants did not get voted?,SELECT count(*) FROM contestants WHERE contestant_number NOT IN ( SELECT contestant_number FROM votes ),CONTESTANTS.contestant_number; VOTES.contestant_number,2,9,unchanged

698,voter_1,What is the area code in which the most voters voted?,SELECT T1.area_code FROM area_code_state AS T1 JOIN votes AS T2 ON T1.state  =  T2.state GROUP BY T1.area_code ORDER BY count(*) DESC LIMIT 1,AREA_CODE_STATE.area_code; AREA_CODE_STATE.state; VOTES.state,3,9,unchanged

699,voter_1,"What are the create dates, states, and phone numbers of the votes that were for the contestant named 'Tabatha Gehling'?","SELECT T2.created ,  T2.state ,  T2.phone_number FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number WHERE T1.contestant_name  =  'Tabatha Gehling'",CONTESTANTS.contestant_name; CONTESTANTS.contestant_number; VOTES.contestant_number; VOTES.created; VOTES.phone_number; VOTES.state,6,9,unchanged

700,voter_1,List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.,SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number JOIN area_code_state AS T3 ON T2.state  =  T3.state WHERE T1.contestant_name  =  'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number  =  T2.contestant_number JOIN area_code_state AS T3 ON T2.state  =  T3.state WHERE T1.contestant_name  =  'Kelly Clauss',AREA_CODE_STATE.area_code; AREA_CODE_STATE.state; CONTESTANTS.contestant_name; CONTESTANTS.contestant_number; VOTES.contestant_number; VOTES.state,6,9,unchanged

701,voter_1,Return the names of the contestants whose names contain the substring 'Al' .,"select contestant_name from contestants where contestant_name like ""%al%""",CONTESTANTS.contestant_name,1,9,unchanged

702,world_1,What are the names of all the countries that became independent after 1950?,SELECT Name FROM country WHERE IndepYear  >  1950,country.IndepYear; country.Name,2,24,unchanged

703,world_1,Give the names of the nations that were founded after 1950.,SELECT Name FROM country WHERE IndepYear  >  1950,country.IndepYear; country.Name,2,24,unchanged

704,world_1,How many countries have a republic as their form of government?,"SELECT count(*) FROM country WHERE GovernmentForm  =  ""Republic""",country.GovernmentForm,1,24,unchanged

705,world_1,How many countries have governments that are republics?,"SELECT count(*) FROM country WHERE GovernmentForm  =  ""Republic""",country.GovernmentForm,1,24,unchanged

706,world_1,What is the total surface area of the countries in the Caribbean region?,"SELECT sum(SurfaceArea) FROM country WHERE Region  =  ""Caribbean""",country.Region; country.SurfaceArea,2,24,unchanged

707,world_1,How much surface area do the countires in the Carribean cover together?,"SELECT sum(SurfaceArea) FROM country WHERE Region  =  ""Caribbean""",country.Region; country.SurfaceArea,2,24,unchanged

708,world_1,Which continent is Anguilla in?,"SELECT Continent FROM country WHERE Name  =  ""Anguilla""",country.Continent; country.Name,2,24,unchanged

709,world_1,What is the continent name which Anguilla belongs to?,"SELECT Continent FROM country WHERE Name  =  ""Anguilla""",country.Continent; country.Name,2,24,unchanged

710,world_1,Which region is the city Kabul located in?,"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Name  =  ""Kabul""",city.CountryCode; city.Name; country.Code; country.Region,4,24,unchanged

711,world_1,What region is Kabul in?,"SELECT Region FROM country AS T1 JOIN city AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Name  =  ""Kabul""",city.CountryCode; city.Name; country.Code; country.Region,4,24,unchanged

712,world_1,Which language is the most popular in Aruba?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Aruba"" ORDER BY Percentage DESC LIMIT 1",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,5,24,unchanged

713,world_1,What language is predominantly spoken in Aruba?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Aruba"" ORDER BY Percentage DESC LIMIT 1",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,5,24,unchanged

714,world_1,What are the population and life expectancies in Brazil?,"SELECT Population ,  LifeExpectancy FROM country WHERE Name  =  ""Brazil""",country.LifeExpectancy; country.Name; country.Population,3,24,unchanged

715,world_1,Give me Brazil’s population and life expectancies.,"SELECT Population ,  LifeExpectancy FROM country WHERE Name  =  ""Brazil""",country.LifeExpectancy; country.Name; country.Population,3,24,unchanged

716,world_1,What are the region and population of Angola?,"SELECT Population ,  Region FROM country WHERE Name  =  ""Angola""",country.Name; country.Population; country.Region,3,24,unchanged

717,world_1,What region does Angola belong to and what is its population?,"SELECT Population ,  Region FROM country WHERE Name  =  ""Angola""",country.Name; country.Population; country.Region,3,24,unchanged

718,world_1,What is the average expected life expectancy for countries in the region of Central Africa?,"SELECT avg(LifeExpectancy) FROM country WHERE Region  =  ""Central Africa""",country.LifeExpectancy; country.Region,2,24,unchanged

719,world_1,How long is the people’s average life expectancy in Central Africa?,"SELECT avg(LifeExpectancy) FROM country WHERE Region  =  ""Central Africa""",country.LifeExpectancy; country.Region,2,24,unchanged

720,world_1,What is the name of country that has the shortest life expectancy in Asia?,"SELECT Name FROM country WHERE Continent  =  ""Asia"" ORDER BY LifeExpectancy LIMIT 1",country.Continent; country.LifeExpectancy; country.Name,3,24,unchanged

721,world_1,Give the name of the country in Asia with the lowest life expectancy.,"SELECT Name FROM country WHERE Continent  =  ""Asia"" ORDER BY LifeExpectancy LIMIT 1",country.Continent; country.LifeExpectancy; country.Name,3,24,unchanged

722,world_1,What is the total population and maximum GNP in Asia?,"SELECT sum(Population) ,  max(GNP) FROM country WHERE Continent  =  ""Asia""",country.Continent; country.GNP; country.Population,3,24,unchanged

723,world_1,"How many people live in Asia, and what is the largest GNP among them?","SELECT sum(Population) ,  max(GNP) FROM country WHERE Continent  =  ""Asia""",country.Continent; country.GNP; country.Population,3,24,unchanged

724,world_1,What is the average life expectancy in African countries that are republics?,"SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  ""Africa"" AND GovernmentForm  =  ""Republic""",country.Continent; country.GovernmentForm; country.LifeExpectancy,3,24,unchanged

725,world_1,Give the average life expectancy for countries in Africa which are republics?,"SELECT avg(LifeExpectancy) FROM country WHERE Continent  =  ""Africa"" AND GovernmentForm  =  ""Republic""",country.Continent; country.GovernmentForm; country.LifeExpectancy,3,24,unchanged

726,world_1,What is the total surface area of the continents Asia and Europe?,"SELECT sum(SurfaceArea) FROM country WHERE Continent  =  ""Asia"" OR Continent  =  ""Europe""",country.Continent; country.SurfaceArea,2,24,unchanged

727,world_1,Give the total surface area covered by countries in Asia or Europe.,"SELECT sum(SurfaceArea) FROM country WHERE Continent  =  ""Asia"" OR Continent  =  ""Europe""",country.Continent; country.SurfaceArea,2,24,unchanged

728,world_1,How many people live in Gelderland district?,"SELECT sum(Population) FROM city WHERE District  =  ""Gelderland""",city.District; city.Population,2,24,unchanged

729,world_1,What is the total population of Gelderland district?,"SELECT sum(Population) FROM city WHERE District  =  ""Gelderland""",city.District; city.Population,2,24,unchanged

730,world_1,What is the average GNP and total population in all nations whose government is US territory?,"SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  ""US Territory""",country.GNP; country.GovernmentForm; country.Population,3,24,unchanged

731,world_1,Give the mean GNP and total population of nations which are considered US territory.,"SELECT avg(GNP) ,  sum(population) FROM country WHERE GovernmentForm  =  ""US Territory""",country.GNP; country.GovernmentForm; country.Population,3,24,unchanged

732,world_1,How many unique languages are spoken in the world?,SELECT count(DISTINCT LANGUAGE) FROM countrylanguage,countrylanguage.Language,1,24,unchanged

733,world_1,What is the number of distinct languages used around the world?,SELECT count(DISTINCT LANGUAGE) FROM countrylanguage,countrylanguage.Language,1,24,unchanged

734,world_1,How many type of governments are in Africa?,"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent  =  ""Africa""",country.Continent; country.GovernmentForm,2,24,unchanged

735,world_1,How many different forms of governments are there in Africa?,"SELECT count(DISTINCT GovernmentForm) FROM country WHERE Continent  =  ""Africa""",country.Continent; country.GovernmentForm,2,24,unchanged

736,world_1,What is the total number of languages used in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Aruba""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

737,world_1,How many languages are spoken in Aruba?,"SELECT COUNT(T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Aruba""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

738,world_1,How many official languages does Afghanistan have?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Afghanistan"" AND IsOfficial  =  ""T""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial,4,24,unchanged

739,world_1,How many official languages are spoken in Afghanistan?,"SELECT COUNT(*) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Name  =  ""Afghanistan"" AND IsOfficial  =  ""T""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial,4,24,unchanged

740,world_1,What is name of the country that speaks the largest number of languages?,SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1,country.Code; country.Name; countrylanguage.CountryCode,3,24,unchanged

741,world_1,Give the name of the nation that uses the greatest amount of languages.,SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name ORDER BY COUNT(*) DESC LIMIT 1,country.Code; country.Name; countrylanguage.CountryCode,3,24,unchanged

742,world_1,Which continent has the most diverse languages?,SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1,country.Code; country.Continent; countrylanguage.CountryCode,3,24,unchanged

743,world_1,Which continent speaks the most languages?,SELECT T1.Continent FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Continent ORDER BY COUNT(*) DESC LIMIT 1,country.Code; country.Continent; countrylanguage.CountryCode,3,24,unchanged

744,world_1,How many countries speak both English and Dutch?,"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""Dutch"")",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

745,world_1,What is the number of nations that use English and Dutch?,"SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""Dutch"")",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

746,world_1,What are the names of nations speak both English and French?,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""French""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

747,world_1,Give the names of nations that speak both English and French.,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""French""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

748,world_1,What are the names of nations where both English and French are official languages?,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" AND T2.IsOfficial  =  ""T"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""French"" AND T2.IsOfficial  =  ""T""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

749,world_1,Give the names of countries with English and French as official languages.,"SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" AND T2.IsOfficial  =  ""T"" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""French"" AND T2.IsOfficial  =  ""T""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

750,world_1,What is the number of distinct continents where Chinese is spoken?,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""Chinese""",country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

751,world_1,How many continents speak Chinese?,"SELECT COUNT( DISTINCT Continent) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""Chinese""",country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

752,world_1,What are the regions that use English or Dutch?,"SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" OR T2.Language  =  ""Dutch""",country.Code; country.Region; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

753,world_1,Which regions speak Dutch or English?,"SELECT DISTINCT T1.Region FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" OR T2.Language  =  ""Dutch""",country.Code; country.Region; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

754,world_1,What are the countries where either English or Dutch is the official language ?,"select t1.name from country as t1 join countrylanguage as t2 on t1.code  =  t2.countrycode where t2.language  =  ""english"" and isofficial  =  ""t"" union select t1.name from country as t1 join countrylanguage as t2 on t1.code  =  t2.countrycode where t2.language  =  ""dutch"" and isofficial  =  ""t""",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

755,world_1,Which countries have either English or Dutch as an official language?,"SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" AND IsOfficial  =  ""T"" UNION SELECT * FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""Dutch"" AND IsOfficial  =  ""T""",country.Code; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,4,24,hallucination_removed+joinkey_added

756,world_1,Which language is the most popular on the Asian continent?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  ""Asia"" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1",country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

757,world_1,What is the language that is used by the largest number of Asian nations?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.Continent  =  ""Asia"" GROUP BY T2.Language ORDER BY COUNT (*) DESC LIMIT 1",country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

758,world_1,Which languages are spoken by only one country in republic governments?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  ""Republic"" GROUP BY T2.Language HAVING COUNT(*)  =  1",country.Code; country.GovernmentForm; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

759,world_1,What languages are only used by a single country with a republic government?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.GovernmentForm  =  ""Republic"" GROUP BY T2.Language HAVING COUNT(*)  =  1",country.Code; country.GovernmentForm; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

760,world_1,Find the city with the largest population that uses English.,"SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  ""English"" ORDER BY T1.Population DESC LIMIT 1",city.CountryCode; city.Name; city.Population; countrylanguage.CountryCode; countrylanguage.Language,5,24,joinkey_added

761,world_1,What is the most populace city that speaks English?,"SELECT T1.Name ,  T1.Population FROM city AS T1 JOIN countrylanguage AS T2 ON T1.CountryCode  =  T2.CountryCode WHERE T2.Language  =  ""English"" ORDER BY T1.Population DESC LIMIT 1",city.CountryCode; city.Name; city.Population; countrylanguage.CountryCode; countrylanguage.Language,5,24,joinkey_added

762,world_1,"Find the name, population and expected life length of asian country with the largest area?","SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1",country.Continent; country.LifeExpectancy; country.Name; country.Population; country.SurfaceArea,5,24,unchanged

763,world_1,"What are the name, population, and life expectancy of the largest Asian country by land?","SELECT Name ,  Population ,  LifeExpectancy FROM country WHERE Continent  =  ""Asia"" ORDER BY SurfaceArea DESC LIMIT 1",country.Continent; country.LifeExpectancy; country.Name; country.Population; country.SurfaceArea,5,24,unchanged

764,world_1,What is average life expectancy in the countries where English is not the official language?,"SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" AND T2.IsOfficial  =  ""T"")",country.Code; country.LifeExpectancy; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,6,24,unchanged

765,world_1,Give the mean life expectancy of countries in which English is not the official language.,"SELECT avg(LifeExpectancy) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"" AND T2.IsOfficial  =  ""T"")",country.Code; country.LifeExpectancy; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,6,24,unchanged

766,world_1,What is the total number of people living in the nations that do not use English?,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"")",country.Code; country.Name; country.Population; countrylanguage.CountryCode; countrylanguage.Language,5,24,unchanged

767,world_1,How many people live in countries that do not speak English?,"SELECT sum(Population) FROM country WHERE Name NOT IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T2.Language  =  ""English"")",country.Code; country.Name; country.Population; countrylanguage.CountryCode; countrylanguage.Language,5,24,unchanged

768,world_1,What is the official language spoken in the country whose head of state is Beatrix?,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  ""Beatrix"" AND T2.IsOfficial  =  ""T""",country.Code; country.HeadOfState; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

769,world_1,What is the official language used in the country the name of whose head of state is Beatrix.,"SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE T1.HeadOfState  =  ""Beatrix"" AND T2.IsOfficial  =  ""T""",country.Code; country.HeadOfState; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

770,world_1,What is the total number of unique official languages spoken in the countries that are founded before 1930?,"SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  ""T""",country.Code; country.IndepYear; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

771,world_1,"For the countries founded before 1930, what is the total number of distinct official languages?","SELECT count(DISTINCT T2.Language) FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode WHERE  IndepYear  <  1930 AND T2.IsOfficial  =  ""T""",country.Code; country.IndepYear; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,5,24,unchanged

772,world_1,What are the countries that have greater surface area than any country in Europe?,"SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  ""Europe"")",country.Continent; country.Name; country.SurfaceArea,3,24,unchanged

773,world_1,Which countries have greater area than that of any country in Europe?,"SELECT Name FROM country WHERE SurfaceArea  >  (SELECT min(SurfaceArea) FROM country WHERE Continent  =  ""Europe"")",country.Continent; country.Name; country.SurfaceArea,3,24,unchanged

774,world_1,What are the African countries that have a  population less than any country in Asia?,"SELECT Name FROM country WHERE Continent  =  ""Africa""  AND population  <  (SELECT max(population) FROM country WHERE Continent  =  ""Asia"")",country.Continent; country.Name; country.Population,3,24,unchanged

775,world_1,Which African countries have a smaller population than that of any country in Asia?,"SELECT Name FROM country WHERE Continent  =  ""Africa""  AND population  <  (SELECT min(population) FROM country WHERE Continent  =  ""Asia"")",country.Continent; country.Name; country.Population,3,24,unchanged

776,world_1,Which Asian countries have a population that is larger than any country in Africa?,"SELECT Name FROM country WHERE Continent  =  ""Asia""  AND population  >  (SELECT max(population) FROM country WHERE Continent  =  ""Africa"")",country.Continent; country.Name; country.Population,3,24,unchanged

777,world_1,What are the Asian countries which have a population larger than that of any country in Africa?,"SELECT Name FROM country WHERE Continent  =  ""Asia""  AND population  >  (SELECT min(population) FROM country WHERE Continent  =  ""Africa"")",country.Continent; country.Name; country.Population,3,24,unchanged

778,world_1,What are the country codes for countries that do not speak English?,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  ""English""",countrylanguage.CountryCode; countrylanguage.Language,2,24,joinkey_added

779,world_1,Return the country codes for countries that do not speak English.,"SELECT CountryCode FROM countrylanguage EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  ""English""",countrylanguage.CountryCode; countrylanguage.Language,2,24,joinkey_added

780,world_1,What are the country codes of countries where people use languages other than English?,"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != ""English""",countrylanguage.CountryCode; countrylanguage.Language,2,24,joinkey_added

781,world_1,Give the country codes for countries in which people speak langauges that are not English.,"SELECT DISTINCT CountryCode FROM countrylanguage WHERE LANGUAGE != ""English""",countrylanguage.CountryCode; countrylanguage.Language,2,24,unchanged

782,world_1,What are the codes of the countries that do not speak English and whose government forms are not Republic?,"SELECT Code FROM country WHERE GovernmentForm != ""Republic"" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  ""English""",country.Code; country.GovernmentForm; countrylanguage.CountryCode; countrylanguage.Language,4,24,joinkey_added

783,world_1,Return the codes of countries that do not speak English and do not have Republics for governments.,"SELECT Code FROM country WHERE GovernmentForm != ""Republic"" EXCEPT SELECT CountryCode FROM countrylanguage WHERE LANGUAGE  =  ""English""",country.Code; country.GovernmentForm; countrylanguage.CountryCode; countrylanguage.Language,4,24,joinkey_added

784,world_1,Which cities are in European countries where English is not the official language?,SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English'),city.CountryCode; city.Name; country.Code; country.Continent; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,8,24,unchanged

785,world_1,What are the names of cities in Europe for which English is not the official language?,SELECT DISTINCT T2.Name FROM country AS T1 JOIN city AS T2 ON T2.CountryCode  =  T1.Code WHERE T1.Continent  =  'Europe' AND T1.Name NOT IN (SELECT T3.Name FROM country AS T3 JOIN countrylanguage AS T4 ON T3.Code  =  T4.CountryCode WHERE T4.IsOfficial  =  'T' AND T4.Language  =  'English'),city.CountryCode; city.Name; country.Code; country.Continent; country.Name; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,8,24,unchanged

786,world_1,Which unique cities are in Asian countries where Chinese is the official language ?,"select distinct t3.name from country as t1 join countrylanguage as t2 on t1.code  =  t2.countrycode join city as t3 on t1.code  =  t3.countrycode where t2.isofficial  =  't' and t2.language  =  'chinese' and t1.continent  =  ""asia""",city.CountryCode; city.Name; country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,7,24,unchanged

787,world_1,Return the different names of cities that are in Asia and for which Chinese is the official language.,"SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode JOIN city AS T3 ON T1.Code  =  T3.CountryCode WHERE T2.IsOfficial  =  'T' AND T2.Language  =  'Chinese' AND T1.Continent  =  ""Asia""",city.CountryCode; city.Name; country.Code; country.Continent; countrylanguage.CountryCode; countrylanguage.IsOfficial; countrylanguage.Language,7,24,unchanged

788,world_1,"What are the name, independence year, and surface area of the country with the smallest population?","SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1",country.IndepYear; country.Name; country.Population; country.SurfaceArea,4,24,unchanged

789,world_1,"Give the name, year of independence, and surface area of the country that has the lowest population.","SELECT Name ,  SurfaceArea ,  IndepYear FROM country ORDER BY Population LIMIT 1",country.IndepYear; country.Name; country.Population; country.SurfaceArea,4,24,unchanged

790,world_1,"What are the population, name and leader of the country with the largest area?","SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1",country.HeadOfState; country.Name; country.Population; country.SurfaceArea,4,24,unchanged

791,world_1,"Give the name, population, and head of state for the country that has the largest area.","SELECT Name ,  population ,  HeadOfState FROM country ORDER BY SurfaceArea DESC LIMIT 1",country.HeadOfState; country.Name; country.Population; country.SurfaceArea,4,24,unchanged

792,world_1,Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.,"SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

793,world_1,"What are the names of countries that speak more than 2 languages, as well as how many languages they speak?","SELECT COUNT(T2.Language) ,  T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code  =  T2.CountryCode GROUP BY T1.Name HAVING COUNT(*)  >  2",country.Code; country.Name; countrylanguage.CountryCode; countrylanguage.Language,4,24,unchanged

794,world_1,Find the number of cities in each district whose population is greater than the average population of cities?,"SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District",city.District; city.Population,2,24,unchanged

795,world_1,How many cities in each district have a population that is above the average population across all cities?,"SELECT count(*) ,  District FROM city WHERE Population  >  (SELECT avg(Population) FROM city) GROUP BY District",city.District; city.Population,2,24,unchanged

796,world_1,Find the government form name and total population for each government form whose average life expectancy is longer than 72.,"SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72",country.GovernmentForm; country.LifeExpectancy; country.Population,3,24,unchanged

797,world_1,What are the different government forms and what is the total population of each for government forms that have an average life expectancy greater than 72?,"SELECT sum(Population) ,  GovernmentForm FROM country GROUP BY GovernmentForm HAVING avg(LifeExpectancy)  >  72",country.GovernmentForm; country.LifeExpectancy; country.Population,3,24,unchanged

798,world_1,Find the average life expectancy and total population for each continent where the average life expectancy is shorter than 72?,"SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72",country.Continent; country.LifeExpectancy; country.Population,3,24,unchanged

799,world_1,"What are the different continents and the total popuation and average life expectancy corresponding to each, for continents that have an average life expectancy less than 72?","SELECT sum(Population) ,  avg(LifeExpectancy) ,  Continent FROM country GROUP BY Continent HAVING avg(LifeExpectancy)  <  72",country.Continent; country.LifeExpectancy; country.Population,3,24,unchanged

800,world_1,What are the names and areas of countries with the top 5 largest area?,"SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5",country.Name; country.SurfaceArea,2,24,unchanged

801,world_1,Return the names and surface areas of the 5 largest countries.,"SELECT Name ,  SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5",country.Name; country.SurfaceArea,2,24,unchanged

802,world_1,What are names of countries with the top 3 largest population?,SELECT Name FROM country ORDER BY Population DESC LIMIT 3,country.Name; country.Population,2,24,unchanged

803,world_1,Return the names of the 3 most populated countries.,SELECT Name FROM country ORDER BY Population DESC LIMIT 3,country.Name; country.Population,2,24,unchanged

804,world_1,What are the names of the nations with the 3 lowest populations?,SELECT Name FROM country ORDER BY Population ASC LIMIT 3,country.Name; country.Population,2,24,unchanged

805,world_1,Return the names of the 3 countries with the fewest people.,SELECT Name FROM country ORDER BY Population ASC LIMIT 3,country.Name; country.Population,2,24,unchanged

806,world_1,how many countries are in Asia?,"SELECT count(*) FROM country WHERE continent  =  ""Asia""",country.Continent,1,24,unchanged

807,world_1,Count the number of countries in Asia.,"SELECT count(*) FROM country WHERE continent  =  ""Asia""",country.Continent,1,24,unchanged

808,world_1,What are the names of the countries that are in the continent of Europe and have a population of 80000?,"SELECT Name FROM country WHERE continent  =  ""Europe"" AND Population  =  ""80000""",country.Continent; country.Name; country.Population,3,24,unchanged

809,world_1,Give the names of countries that are in Europe and have a population equal to 80000.,"SELECT Name FROM country WHERE continent  =  ""Europe"" AND Population  =  ""80000""",country.Continent; country.Name; country.Population,3,24,unchanged

810,world_1,What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?,"select sum(population) ,  avg(surfacearea) from country where continent  =  ""north america"" and surfacearea  >  3000",country.Continent; country.Population; country.SurfaceArea,3,24,unchanged

811,world_1,Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .,"select sum(population) ,  avg(surfacearea) from country where continent  =  ""north america"" and surfacearea  >  3000",country.Continent; country.Population; country.SurfaceArea,3,24,unchanged

812,world_1,What are the cities whose population is between 160000 and 900000?,SELECT name FROM city WHERE Population BETWEEN 160000 AND 900000,city.Name; city.Population,2,24,unchanged

813,world_1,Return the names of cities that have a population between 160000 and 900000 .,select name from city where population between 160000 and 900000,city.Name; city.Population,2,24,unchanged

814,world_1,Which language is spoken by the largest number of countries?,SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1,countrylanguage.Language,1,24,unchanged

815,world_1,Give the language that is spoken in the most countries.,SELECT LANGUAGE FROM countrylanguage GROUP BY LANGUAGE ORDER BY count(*) DESC LIMIT 1,countrylanguage.Language,1,24,unchanged

816,world_1,What is the language spoken by the largest percentage of people in each country?,"SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,unchanged

817,world_1,"What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?","SELECT LANGUAGE ,  CountryCode ,  max(Percentage) FROM countrylanguage GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,unchanged

818,world_1,What is the total number of countries where Spanish is spoken by the largest percentage of people?,"SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  ""Spanish"" GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,unchanged

819,world_1,Count the number of countries for which Spanish is the predominantly spoken language.,"SELECT count(*) ,   max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  ""Spanish"" GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,unchanged

820,world_1,What are the codes of countries where Spanish is spoken by the largest percentage of people?,"SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  ""Spanish"" GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,joinkey_added

821,world_1,Return the codes of countries for which Spanish is the predominantly spoken language.,"SELECT CountryCode ,  max(Percentage) FROM countrylanguage WHERE LANGUAGE  =  ""Spanish"" GROUP BY CountryCode",countrylanguage.CountryCode; countrylanguage.Language; countrylanguage.Percentage,3,24,joinkey_added

822,orchestra,How many conductors are there?,SELECT count(*) FROM conductor,conductor.Conductor_ID,1,23,count_star_pk_injected+empty_fixed

823,orchestra,Count the number of conductors.,SELECT count(*) FROM conductor,conductor.Conductor_ID,1,23,count_star_pk_injected+empty_fixed

824,orchestra,List the names of conductors in ascending order of age.,SELECT Name FROM conductor ORDER BY Age ASC,conductor.Age; conductor.Name,2,23,unchanged

825,orchestra,"What are the names of conductors, ordered by age?",SELECT Name FROM conductor ORDER BY Age ASC,conductor.Age; conductor.Name,2,23,unchanged

826,orchestra,"What are the names of conductors whose nationalities are not ""USA""?",SELECT Name FROM conductor WHERE Nationality != 'USA',conductor.Name; conductor.Nationality,2,23,unchanged

827,orchestra,"Return the names of conductors that do not have the nationality ""USA"".",SELECT Name FROM conductor WHERE Nationality != 'USA',conductor.Name; conductor.Nationality,2,23,unchanged

828,orchestra,What are the record companies of orchestras in descending order of years in which they were founded?,SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC,orchestra.Record_Company; orchestra.Year_of_Founded,2,23,unchanged

829,orchestra,"Return the record companies of orchestras, sorted descending by the years in which they were founded.",SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC,orchestra.Record_Company; orchestra.Year_of_Founded,2,23,unchanged

830,orchestra,What is the average attendance of shows?,SELECT avg(Attendance) FROM SHOW,show.Attendance,1,23,unchanged

831,orchestra,Return the average attendance across all shows.,SELECT avg(Attendance) FROM SHOW,show.Attendance,1,23,unchanged

832,orchestra,"What are the maximum and minimum share of performances whose type is not ""Live final"".","SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != ""Live final""",performance.Share; performance.Type,2,23,unchanged

833,orchestra,"Return the maximum and minimum shares for performances that do not have the type ""Live final"".","SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != ""Live final""",performance.Share; performance.Type,2,23,unchanged

834,orchestra,How many different nationalities do conductors have?,SELECT count(DISTINCT Nationality) FROM conductor,conductor.Nationality,1,23,unchanged

835,orchestra,Count the number of different nationalities of conductors.,SELECT count(DISTINCT Nationality) FROM conductor,conductor.Nationality,1,23,unchanged

836,orchestra,List names of conductors in descending order of years of work.,SELECT Name FROM conductor ORDER BY Year_of_Work DESC,conductor.Name; conductor.Year_of_Work,2,23,unchanged

837,orchestra,"What are the names of conductors, sorted descending by the number of years they have worked?",SELECT Name FROM conductor ORDER BY Year_of_Work DESC,conductor.Name; conductor.Year_of_Work,2,23,unchanged

838,orchestra,List the name of the conductor with the most years of work.,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1,conductor.Name; conductor.Year_of_Work,2,23,unchanged

839,orchestra,What is the name of the conductor who has worked the greatest number of years?,SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1,conductor.Name; conductor.Year_of_Work,2,23,unchanged

840,orchestra,Show the names of conductors and the orchestras they have conducted.,"SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID",conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID; orchestra.Orchestra,4,23,joinkey_added

841,orchestra,What are the names of conductors as well as the corresonding orchestras that they have conducted?,"SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID",conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID; orchestra.Orchestra,4,23,unchanged

842,orchestra,Show the names of conductors that have conducted more than one orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID,3,23,unchanged

843,orchestra,What are the names of conductors who have conducted at more than one orchestra?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID,3,23,unchanged

844,orchestra,Show the name of the conductor that has conducted the most number of orchestras.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID,3,23,unchanged

845,orchestra,What is the name of the conductor who has conducted the most orchestras?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID,3,23,unchanged

846,orchestra,Please show the name of the conductor that has conducted orchestras founded after 2008.,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID; orchestra.Year_of_Founded,4,23,unchanged

847,orchestra,What are the names of conductors who have conducted orchestras founded after the year 2008?,SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008,conductor.Conductor_ID; conductor.Name; orchestra.Conductor_ID; orchestra.Year_of_Founded,4,23,unchanged

848,orchestra,Please show the different record companies and the corresponding number of orchestras.,"SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company",orchestra.Record_Company,1,23,unchanged

849,orchestra,How many orchestras does each record company manage?,"SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company",orchestra.Record_Company,1,23,unchanged

850,orchestra,Please show the record formats of orchestras in ascending order of count.,SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC,orchestra.Major_Record_Format,1,23,unchanged

851,orchestra,"What are the major record formats of orchestras, sorted by their frequency?",SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC,orchestra.Major_Record_Format,1,23,unchanged

852,orchestra,List the record company shared by the most number of orchestras.,SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1,orchestra.Record_Company,1,23,unchanged

853,orchestra,What is the record company used by the greatest number of orchestras?,SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1,orchestra.Record_Company,1,23,unchanged

854,orchestra,List the names of orchestras that have no performance.,SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance),orchestra.Orchestra; orchestra.Orchestra_ID; performance.Orchestra_ID,3,23,unchanged

855,orchestra,What are the orchestras that do not have any performances?,SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance),orchestra.Orchestra; orchestra.Orchestra_ID; performance.Orchestra_ID,3,23,unchanged

856,orchestra,Show the record companies shared by orchestras founded before 2003 and after 2003.,SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003,orchestra.Record_Company; orchestra.Year_of_Founded,2,23,joinkey_added

857,orchestra,What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?,SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003,orchestra.Record_Company; orchestra.Year_of_Founded,2,23,joinkey_added

858,orchestra,"Find the number of orchestras whose record format is ""CD"" or ""DVD"".","SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  ""CD"" OR Major_Record_Format  =  ""DVD""",orchestra.Major_Record_Format,1,23,unchanged

859,orchestra,Count the number of orchestras that have CD or DVD as their record format.,"SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  ""CD"" OR Major_Record_Format  =  ""DVD""",orchestra.Major_Record_Format,1,23,unchanged

860,orchestra,Show the years in which orchestras that have given more than one performance are founded.,SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1,orchestra.Orchestra_ID; orchestra.Year_of_Founded; performance.Orchestra_ID,3,23,joinkey_added

861,orchestra,What are years of founding for orchestras that have had more than a single performance?,SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1,orchestra.Orchestra_ID; orchestra.Year_of_Founded; performance.Orchestra_ID,3,23,joinkey_added

862,network_1,How many high schoolers are there?,SELECT count(*) FROM Highschooler,Highschooler.ID,1,7,count_star_pk_injected+empty_fixed

863,network_1,Count the number of high schoolers.,SELECT count(*) FROM Highschooler,Highschooler.ID,1,7,count_star_pk_injected+empty_fixed

864,network_1,Show the names and grades of each high schooler.,"SELECT name ,  grade FROM Highschooler",Highschooler.grade; Highschooler.name,2,7,unchanged

865,network_1,What are the names and grades for each high schooler?,"SELECT name ,  grade FROM Highschooler",Highschooler.grade; Highschooler.name,2,7,unchanged

866,network_1,Show all the grades of the high schoolers.,SELECT grade FROM Highschooler,Highschooler.grade,1,7,unchanged

867,network_1,What is the grade of each high schooler?,SELECT grade FROM Highschooler,Highschooler.grade,1,7,unchanged

868,network_1,What grade is Kyle in?,"SELECT grade FROM Highschooler WHERE name  =  ""Kyle""",Highschooler.grade; Highschooler.name,2,7,unchanged

869,network_1,Return the grade for the high schooler named Kyle.,"SELECT grade FROM Highschooler WHERE name  =  ""Kyle""",Highschooler.grade; Highschooler.name,2,7,unchanged

870,network_1,Show the names of all high schoolers in grade 10.,SELECT name FROM Highschooler WHERE grade  =  10,Highschooler.grade; Highschooler.name,2,7,unchanged

871,network_1,What are the names of all high schoolers in grade 10?,SELECT name FROM Highschooler WHERE grade  =  10,Highschooler.grade; Highschooler.name,2,7,unchanged

872,network_1,Show the ID of the high schooler named Kyle.,"SELECT ID FROM Highschooler WHERE name  =  ""Kyle""",Highschooler.ID; Highschooler.name,2,7,unchanged

873,network_1,What is Kyle's id?,"SELECT ID FROM Highschooler WHERE name  =  ""Kyle""",Highschooler.ID; Highschooler.name,2,7,unchanged

874,network_1,How many high schoolers are there in grade 9 or 10?,SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10,Highschooler.grade,1,7,unchanged

875,network_1,Count the number of high schoolers in grades 9 or 10.,SELECT count(*) FROM Highschooler WHERE grade  =  9 OR grade  =  10,Highschooler.grade,1,7,unchanged

876,network_1,Show the number of high schoolers for each grade.,"SELECT grade ,  count(*) FROM Highschooler GROUP BY grade",Highschooler.grade,1,7,unchanged

877,network_1,How many high schoolers are in each grade?,"SELECT grade ,  count(*) FROM Highschooler GROUP BY grade",Highschooler.grade,1,7,unchanged

878,network_1,Which grade has the most high schoolers?,SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1,Highschooler.grade,1,7,unchanged

879,network_1,Return the grade that has the greatest number of high schoolers.,SELECT grade FROM Highschooler GROUP BY grade ORDER BY count(*) DESC LIMIT 1,Highschooler.grade,1,7,unchanged

880,network_1,Show me all grades that have at least 4 students.,SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4,Highschooler.grade,1,7,unchanged

881,network_1,Which grades have 4 or more high schoolers?,SELECT grade FROM Highschooler GROUP BY grade HAVING count(*)  >=  4,Highschooler.grade,1,7,unchanged

882,network_1,Show the student IDs and numbers of friends corresponding to each.,"SELECT student_id ,  count(*) FROM Friend GROUP BY student_id",Friend.student_id,1,7,unchanged

883,network_1,How many friends does each student have?,"SELECT student_id ,  count(*) FROM Friend GROUP BY student_id",Friend.student_id,1,7,unchanged

884,network_1,Show the names of high school students and their corresponding number of friends.,"SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id",Friend.student_id; Highschooler.ID; Highschooler.name,3,7,joinkey_added

885,network_1,What are the names of the high schoolers and how many friends does each have?,"SELECT T2.name ,  count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id",Friend.student_id; Highschooler.ID; Highschooler.name,3,7,joinkey_added

886,network_1,What is the name of the high schooler who has the greatest number of friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

887,network_1,Return the name of the high school student with the most friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

888,network_1,Show the names of high schoolers who have at least 3 friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

889,network_1,What are the names of high schoolers who have 3 or more friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  3,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

890,network_1,Show the names of all of the high schooler Kyle's friends.,"SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  ""Kyle""",Friend.friend_id; Friend.student_id; Highschooler.ID; Highschooler.name,4,7,unchanged

891,network_1,Return the names of friends of the high school student Kyle.,"SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id JOIN Highschooler AS T3 ON T1.friend_id  =  T3.id WHERE T2.name  =  ""Kyle""",Friend.friend_id; Friend.student_id; Highschooler.ID; Highschooler.name,4,7,unchanged

892,network_1,How many friends does the high school student Kyle have?,"SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  ""Kyle""",Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

893,network_1,Count the number of friends Kyle has.,"SELECT count(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  ""Kyle""",Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

894,network_1,Show ids of all students who do not have any friends.,SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend,Friend.student_id; Highschooler.ID,2,7,unchanged

895,network_1,What are the ids of high school students who do not have friends?,SELECT id FROM Highschooler EXCEPT SELECT student_id FROM Friend,Friend.student_id; Highschooler.ID,2,7,unchanged

896,network_1,Show names of all high school students who do not have any friends.,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

897,network_1,What are the names of students who have no friends?,SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id,Friend.student_id; Highschooler.ID; Highschooler.name,3,7,unchanged

898,network_1,Show the ids of high schoolers who have friends and are also liked by someone else.,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes,Friend.student_id; Likes.liked_id,2,7,unchanged

899,network_1,What are the ids of students who both have friends and are liked?,SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes,Friend.student_id; Likes.liked_id,2,7,unchanged

900,network_1,Show name of all students who have some friends and also are liked by someone else.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id,Friend.student_id; Highschooler.ID; Highschooler.name; Likes.liked_id,4,7,unchanged

901,network_1,What are the names of high schoolers who both have friends and are liked?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id  =  T2.id,Friend.student_id; Highschooler.ID; Highschooler.name; Likes.liked_id,4,7,unchanged

902,network_1,Count the number of likes for each student id.,"SELECT student_id ,  count(*) FROM Likes GROUP BY student_id",Likes.student_id,1,7,unchanged

903,network_1,How many likes correspond to each student id?,"SELECT student_id ,  count(*) FROM Likes GROUP BY student_id",Likes.student_id,1,7,unchanged

904,network_1,"Show the names of high schoolers who have likes, and numbers of likes for each.","SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id",Highschooler.ID; Highschooler.name; Likes.student_id,3,7,joinkey_added

905,network_1,"What are the names of high schoolers who have likes, and how many likes does each have?","SELECT T2.name ,  count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id",Highschooler.ID; Highschooler.name; Likes.student_id,3,7,joinkey_added

906,network_1,What is the name of the high schooler who has the greatest number of likes?,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1,Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

907,network_1,Give the name of the student with the most likes.,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1,Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

908,network_1,Show the names of students who have at least 2 likes.,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2,Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

909,network_1,What are the names of students who have 2 or more likes?,SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id GROUP BY T1.student_id HAVING count(*)  >=  2,Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

910,network_1,Show the names of students who have a grade higher than 5 and have at least 2 friends.,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2,Friend.student_id; Highschooler.ID; Highschooler.grade; Highschooler.name,4,7,unchanged

911,network_1,What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?,SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.grade  >  5 GROUP BY T1.student_id HAVING count(*)  >=  2,Friend.student_id; Highschooler.ID; Highschooler.grade; Highschooler.name,4,7,unchanged

912,network_1,How many likes does Kyle have?,"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  ""Kyle""",Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

913,network_1,Return the number of likes that the high schooler named Kyle has.,"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id WHERE T2.name  =  ""Kyle""",Highschooler.ID; Highschooler.name; Likes.student_id,3,7,unchanged

914,network_1,Find the average grade of all students who have some friends.,SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id),Friend.student_id; Highschooler.ID; Highschooler.grade,3,7,unchanged

915,network_1,What is the average grade of students who have friends?,SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id),Friend.student_id; Highschooler.ID; Highschooler.grade,3,7,unchanged

916,network_1,Find the minimum grade of students who have no friends.,SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id),Friend.student_id; Highschooler.ID; Highschooler.grade,3,7,joinkey_added

917,network_1,What is the lowest grade of students who do not have any friends?,SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id  =  T2.id),Friend.student_id; Highschooler.ID; Highschooler.grade,3,7,unchanged

918,dog_kennels,Which states have both owners and professionals living there?,SELECT state FROM Owners INTERSECT SELECT state FROM Professionals,Owners.state; Professionals.state,2,49,unchanged

919,dog_kennels,Find the states where both owners and professionals live.,SELECT state FROM Owners INTERSECT SELECT state FROM Professionals,Owners.state; Professionals.state,2,49,unchanged

920,dog_kennels,What is the average age of the dogs who have gone through any treatments?,SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments ),Dogs.age; Dogs.dog_id; Treatments.dog_id,3,49,unchanged

921,dog_kennels,Find the average age of the dogs who went through treatments.,SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments ),Dogs.age; Dogs.dog_id; Treatments.dog_id,3,49,unchanged

922,dog_kennels,"Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone.","SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2",Professionals.cell_number; Professionals.last_name; Professionals.professional_id; Professionals.state; Treatments.professional_id,5,49,joinkey_added

923,dog_kennels,"Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.","SELECT professional_id ,  last_name ,  cell_number FROM Professionals WHERE state  =  'Indiana' UNION SELECT T1.professional_id ,  T1.last_name ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >  2",Professionals.cell_number; Professionals.last_name; Professionals.professional_id; Professionals.state; Treatments.professional_id,5,49,joinkey_added

924,dog_kennels,Which dogs have not cost their owner more than 1000 for treatment ? List the dog names .,select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment)  >  1000 ),Dogs.dog_id; Dogs.name; Treatments.cost_of_treatment; Treatments.dog_id,4,49,unchanged

925,dog_kennels,What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?,select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment)  >  1000 ),Dogs.dog_id; Dogs.name; Treatments.cost_of_treatment; Treatments.dog_id,4,49,unchanged

926,dog_kennels,Which first names are used for professionals or owners but are not used as dog names?,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs,Dogs.name; Owners.first_name; Professionals.first_name,3,49,unchanged

927,dog_kennels,Find the first names that are used for professionals or owners but are not used as dog names.,SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs,Dogs.name; Owners.first_name; Professionals.first_name,3,49,unchanged

928,dog_kennels,"Which professional did not operate any treatment on dogs? List the professional's id, role and email.","SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id",Professionals.email_address; Professionals.professional_id; Professionals.role_code; Treatments.professional_id,4,49,joinkey_added

929,dog_kennels,"Give me the id, role and email of the professionals who did not perform any treatment on dogs.","SELECT professional_id ,  role_code ,  email_address FROM Professionals EXCEPT SELECT T1.professional_id ,  T1.role_code ,  T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id",Professionals.email_address; Professionals.professional_id; Professionals.role_code; Treatments.professional_id,4,49,joinkey_added

930,dog_kennels,"Which owner owns the most dogs? List the owner id, first name and last name.","SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1",Dogs.owner_id; Owners.first_name; Owners.last_name; Owners.owner_id,4,49,joinkey_added

931,dog_kennels,"Return the owner id, first name and last name of the owner who has the most dogs.","SELECT T1.owner_id ,  T2.first_name ,  T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id  =  T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1",Dogs.owner_id; Owners.first_name; Owners.last_name; Owners.owner_id,4,49,joinkey_added

932,dog_kennels,"Which professionals have done at least two treatments? List the professional's id, role, and first name.","SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2",Professionals.first_name; Professionals.professional_id; Professionals.role_code; Treatments.professional_id,4,49,unchanged

933,dog_kennels,"What are the id, role, and first name of the professionals who have performed two or more treatments?","SELECT T1.professional_id ,  T1.role_code ,  T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2",Professionals.first_name; Professionals.professional_id; Professionals.role_code; Treatments.professional_id,4,49,unchanged

934,dog_kennels,What is the name of the breed with the most dogs?,SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1,Breeds.breed_code; Breeds.breed_name; Dogs.breed_code,3,49,unchanged

935,dog_kennels,Which breed do the most dogs have? Give me the breed name.,SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code  =  T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1,Breeds.breed_code; Breeds.breed_name; Dogs.breed_code,3,49,unchanged

936,dog_kennels,Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.,"SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1",Dogs.dog_id; Dogs.owner_id; Owners.last_name; Owners.owner_id; Treatments.dog_id,5,49,unchanged

937,dog_kennels,Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.,"SELECT T1.owner_id ,  T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1",Dogs.dog_id; Dogs.owner_id; Owners.last_name; Owners.owner_id; Treatments.dog_id,5,49,unchanged

938,dog_kennels,What is the description of the treatment type that costs the least money in total?,SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1,Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.cost_of_treatment; Treatments.treatment_type_code,4,49,unchanged

939,dog_kennels,Give me the description of the treatment type whose total cost is the lowest.,SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1,Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.cost_of_treatment; Treatments.treatment_type_code,4,49,unchanged

940,dog_kennels,Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.,"SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1",Dogs.dog_id; Dogs.owner_id; Owners.owner_id; Owners.zip_code; Treatments.cost_of_treatment; Treatments.dog_id,6,49,unchanged

941,dog_kennels,Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.,"SELECT T1.owner_id ,  T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id JOIN Treatments AS T3 ON T2.dog_id  =  T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1",Dogs.dog_id; Dogs.owner_id; Owners.owner_id; Owners.zip_code; Treatments.cost_of_treatment; Treatments.dog_id,6,49,unchanged

942,dog_kennels,Which professionals have done at least two types of treatments? List the professional id and cell phone.,"SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2",Professionals.cell_number; Professionals.professional_id; Treatments.professional_id,3,49,unchanged

943,dog_kennels,Find the id and cell phone of the professionals who operate two or more types of treatments.,"SELECT T1.professional_id ,  T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id GROUP BY T1.professional_id HAVING count(*)  >=  2",Professionals.cell_number; Professionals.professional_id; Treatments.professional_id,3,49,unchanged

944,dog_kennels,What are the first name and last name of the professionals who have done treatment with cost below average?,"SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )",Professionals.first_name; Professionals.last_name; Treatments.cost_of_treatment,3,49,unchanged

945,dog_kennels,Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names.,"SELECT DISTINCT T1.first_name ,  T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment  <  ( SELECT avg(cost_of_treatment) FROM Treatments )",Professionals.first_name; Professionals.last_name; Treatments.cost_of_treatment,3,49,unchanged

946,dog_kennels,"List the date of each treatment, together with the first name of the professional who operated it.","SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id",Professionals.first_name; Professionals.professional_id; Treatments.date_of_treatment; Treatments.professional_id,4,49,joinkey_added

947,dog_kennels,What are the date and the operating professional's first name of each treatment?,"SELECT T1.date_of_treatment ,  T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id  =  T2.professional_id",Professionals.first_name; Professionals.professional_id; Treatments.date_of_treatment; Treatments.professional_id,4,49,joinkey_added

948,dog_kennels,List the cost of each treatment and the corresponding treatment type description.,"SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code",Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.cost_of_treatment; Treatments.treatment_type_code,4,49,joinkey_added

949,dog_kennels,What are the cost and treatment type description of each treatment?,"SELECT T1.cost_of_treatment ,  T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code  =  T2.treatment_type_code",Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.cost_of_treatment; Treatments.treatment_type_code,4,49,joinkey_added

950,dog_kennels,"List each owner's first name, last name, and the size of his for her dog.","SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id",Dogs.owner_id; Dogs.size_code; Owners.first_name; Owners.last_name; Owners.owner_id,5,49,joinkey_added

951,dog_kennels,"What are each owner's first name, last name, and the size of their dog?","SELECT T1.first_name ,  T1.last_name ,  T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id",Dogs.owner_id; Dogs.size_code; Owners.first_name; Owners.last_name; Owners.owner_id,5,49,joinkey_added

952,dog_kennels,List pairs of the owner's first name and the dogs's name.,"SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id",Dogs.name; Dogs.owner_id; Owners.first_name; Owners.owner_id,4,49,joinkey_added

953,dog_kennels,What are each owner's first name and their dogs's name?,"SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id",Dogs.name; Dogs.owner_id; Owners.first_name; Owners.owner_id,4,49,unchanged

954,dog_kennels,List the names of the dogs of the rarest breed and the treatment dates of them.,"SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )",Dogs.breed_code; Dogs.dog_id; Dogs.name; Treatments.date_of_treatment; Treatments.dog_id,5,49,unchanged

955,dog_kennels,Which dogs are of the rarest breed? Show their names and treatment dates.,"SELECT T1.name ,  T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id WHERE T1.breed_code  =  ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )",Dogs.breed_code; Dogs.dog_id; Dogs.name; Treatments.date_of_treatment; Treatments.dog_id,5,49,unchanged

956,dog_kennels,Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name.,"SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'",Dogs.name; Dogs.owner_id; Owners.first_name; Owners.owner_id; Owners.state,5,49,unchanged

957,dog_kennels,Find the first names of owners living in Virginia and the names of dogs they own.,"SELECT T1.first_name ,  T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T1.state  =  'Virginia'",Dogs.name; Dogs.owner_id; Owners.first_name; Owners.owner_id; Owners.state,5,49,unchanged

958,dog_kennels,What are the arriving date and the departing date of the dogs who have gone through a treatment?,"SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id",Dogs.date_arrived; Dogs.date_departed; Dogs.dog_id; Treatments.dog_id,4,49,unchanged

959,dog_kennels,Find the arriving date and the departing date of the dogs that received a treatment.,"SELECT DISTINCT T1.date_arrived ,  T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id  =  T2.dog_id",Dogs.date_arrived; Dogs.date_departed; Dogs.dog_id; Treatments.dog_id,4,49,unchanged

960,dog_kennels,List the last name of the owner owning the youngest dog.,SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs ),Dogs.age; Dogs.owner_id; Owners.last_name; Owners.owner_id,4,49,unchanged

961,dog_kennels,Who owns the youngest dog? Give me his or her last name.,SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id  =  T2.owner_id WHERE T2.age  =  ( SELECT max(age) FROM Dogs ),Dogs.age; Dogs.owner_id; Owners.last_name; Owners.owner_id,4,49,unchanged

962,dog_kennels,List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.,SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin',Professionals.email_address; Professionals.state,2,49,unchanged

963,dog_kennels,What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?,SELECT email_address FROM Professionals WHERE state  =  'Hawaii' OR state  =  'Wisconsin',Professionals.email_address; Professionals.state,2,49,unchanged

964,dog_kennels,What are the arriving date and the departing date of all the dogs?,"SELECT date_arrived ,  date_departed FROM Dogs",Dogs.date_arrived; Dogs.date_departed,2,49,unchanged

965,dog_kennels,List the arrival date and the departure date for all the dogs.,"SELECT date_arrived ,  date_departed FROM Dogs",Dogs.date_arrived; Dogs.date_departed,2,49,unchanged

966,dog_kennels,How many dogs went through any treatments?,SELECT count(DISTINCT dog_id) FROM Treatments,Treatments.dog_id,1,49,unchanged

967,dog_kennels,Count the number of dogs that went through a treatment.,SELECT count(DISTINCT dog_id) FROM Treatments,Treatments.dog_id,1,49,unchanged

968,dog_kennels,How many professionals have performed any treatment to dogs?,SELECT count(DISTINCT professional_id) FROM Treatments,Treatments.professional_id,1,49,unchanged

969,dog_kennels,Find the number of professionals who have ever treated dogs.,SELECT count(DISTINCT professional_id) FROM Treatments,Treatments.professional_id,1,49,unchanged

970,dog_kennels,"Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.","SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'",Professionals.city; Professionals.role_code; Professionals.state; Professionals.street,4,49,unchanged

971,dog_kennels,"Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.","SELECT role_code ,  street ,  city ,  state FROM professionals WHERE city LIKE '%West%'",Professionals.city; Professionals.role_code; Professionals.state; Professionals.street,4,49,unchanged

972,dog_kennels,"Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email.","SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'",Owners.email_address; Owners.first_name; Owners.last_name; Owners.state,4,49,unchanged

973,dog_kennels,"Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.","SELECT first_name ,  last_name ,  email_address FROM Owners WHERE state LIKE '%North%'",Owners.email_address; Owners.first_name; Owners.last_name; Owners.state,4,49,unchanged

974,dog_kennels,How many dogs have an age below the average?,SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs ),Dogs.age,1,49,unchanged

975,dog_kennels,Count the number of dogs of an age below the average.,SELECT count(*) FROM Dogs WHERE age  <  ( SELECT avg(age) FROM Dogs ),Dogs.age,1,49,unchanged

976,dog_kennels,How much does the most recent treatment cost?,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1,Treatments.cost_of_treatment; Treatments.date_of_treatment,2,49,unchanged

977,dog_kennels,Show me the cost of the most recently performed treatment.,SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1,Treatments.cost_of_treatment; Treatments.date_of_treatment,2,49,unchanged

978,dog_kennels,How many dogs have not gone through any treatment?,SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments ),Dogs.dog_id; Treatments.dog_id,2,49,unchanged

979,dog_kennels,Tell me the number of dogs that have not received any treatment .,select count(*) from dogs where dog_id not in ( select dog_id from treatments ),Dogs.dog_id; Treatments.dog_id,2,49,unchanged

980,dog_kennels,How many owners temporarily do not have any dogs?,SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ),Dogs.owner_id; Owners.owner_id,2,49,unchanged

981,dog_kennels,Find the number of owners who do not own any dogs at this moment.,SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs ),Dogs.owner_id; Owners.owner_id,2,49,unchanged

982,dog_kennels,How many professionals did not operate any treatment on dogs?,SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments ),Professionals.professional_id; Treatments.professional_id,2,49,unchanged

983,dog_kennels,Find the number of professionals who have not treated any dogs.,SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments ),Professionals.professional_id; Treatments.professional_id,2,49,unchanged

984,dog_kennels,"List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.","SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1",Dogs.abandoned_yn; Dogs.age; Dogs.name; Dogs.weight,4,49,unchanged

985,dog_kennels,"What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables.","SELECT name ,  age ,  weight FROM Dogs WHERE abandoned_yn  =  1",Dogs.abandoned_yn; Dogs.age; Dogs.name; Dogs.weight,4,49,unchanged

986,dog_kennels,What is the average age of all the dogs?,SELECT avg(age) FROM Dogs,Dogs.age,1,49,unchanged

987,dog_kennels,Compute the average age of all the dogs.,SELECT avg(age) FROM Dogs,Dogs.age,1,49,unchanged

988,dog_kennels,What is the age of the oldest dog?,SELECT max(age) FROM Dogs,Dogs.age,1,49,unchanged

989,dog_kennels,Tell me the age of the oldest dog.,SELECT max(age) FROM Dogs,Dogs.age,1,49,unchanged

990,dog_kennels,How much does each charge type costs? List both charge type and amount.,"SELECT charge_type ,  charge_amount FROM Charges",Charges.charge_amount; Charges.charge_type,2,49,unchanged

991,dog_kennels,List each charge type and its amount.,"SELECT charge_type ,  charge_amount FROM Charges",Charges.charge_amount; Charges.charge_type,2,49,unchanged

992,dog_kennels,How much does the most expensive charge type costs?,SELECT max(charge_amount) FROM Charges,Charges.charge_amount,1,49,unchanged

993,dog_kennels,What is the charge amount of the most expensive charge type?,SELECT max(charge_amount) FROM Charges,Charges.charge_amount,1,49,unchanged

994,dog_kennels,"List the email, cell phone and home phone of all the professionals.","SELECT email_address ,  cell_number ,  home_phone FROM professionals",Professionals.cell_number; Professionals.email_address; Professionals.home_phone,3,49,unchanged

995,dog_kennels,"What are the email, cell phone and home phone of each professional?","SELECT email_address ,  cell_number ,  home_phone FROM professionals",Professionals.cell_number; Professionals.email_address; Professionals.home_phone,3,49,unchanged

996,dog_kennels,What are all the possible breed type and size type combinations?,"SELECT DISTINCT breed_code ,  size_code FROM dogs",Dogs.breed_code; Dogs.size_code,2,49,unchanged

997,dog_kennels,Find the distinct breed type and size type combinations for dogs.,"SELECT DISTINCT breed_code ,  size_code FROM dogs",Dogs.breed_code; Dogs.size_code,2,49,unchanged

998,dog_kennels,List the first name of all the professionals along with the description of the treatment they have done.,"SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code",Professionals.first_name; Professionals.professional_id; Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.professional_id; Treatments.treatment_type_code,6,49,unchanged

999,dog_kennels,What are each professional's first name and description of the treatment they have performed?,"SELECT DISTINCT T1.first_name ,  T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id  =  T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code  =  T3.treatment_type_code",Professionals.first_name; Professionals.professional_id; Treatment_Types.treatment_type_code; Treatment_Types.treatment_type_description; Treatments.professional_id; Treatments.treatment_type_code,6,49,joinkey_added

1000,singer,How many singers are there?,SELECT count(*) FROM singer,singer.Singer_ID,1,10,count_star_pk_injected+empty_fixed

1001,singer,What is the count of singers?,SELECT count(*) FROM singer,singer.Singer_ID,1,10,count_star_pk_injected+empty_fixed

1002,singer,List the name of singers in ascending order of net worth.,SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC,singer.Name; singer.Net_Worth_Millions,2,10,unchanged

1003,singer,What are the names of singers ordered by ascending net worth?,SELECT Name FROM singer ORDER BY Net_Worth_Millions ASC,singer.Name; singer.Net_Worth_Millions,2,10,unchanged

1004,singer,What are the birth year and citizenship of singers?,"SELECT Birth_Year ,  Citizenship FROM singer",singer.Birth_Year; singer.Citizenship,2,10,unchanged

1005,singer,What are the birth years and citizenships of the singers?,"SELECT Birth_Year ,  Citizenship FROM singer",singer.Birth_Year; singer.Citizenship,2,10,unchanged

1006,singer,"List the name of singers whose citizenship is not ""France"".","SELECT Name FROM singer WHERE Citizenship != ""France""",singer.Citizenship; singer.Name,2,10,unchanged

1007,singer,What are the names of the singers who are not French citizens?,"SELECT Name FROM singer WHERE Citizenship != ""France""",singer.Citizenship; singer.Name,2,10,unchanged

1008,singer,Show the name of singers whose birth year is either 1948 or 1949?,SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949,singer.Birth_Year; singer.Name,2,10,unchanged

1009,singer,What are the names of the singers whose birth years are either 1948 or 1949?,SELECT Name FROM singer WHERE Birth_Year  =  1948 OR Birth_Year  =  1949,singer.Birth_Year; singer.Name,2,10,unchanged

1010,singer,What is the name of the singer with the largest net worth?,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1,singer.Name; singer.Net_Worth_Millions,2,10,unchanged

1011,singer,What is the name of the singer who is worth the most?,SELECT Name FROM singer ORDER BY Net_Worth_Millions DESC LIMIT 1,singer.Name; singer.Net_Worth_Millions,2,10,unchanged

1012,singer,Show different citizenship of singers and the number of singers of each citizenship.,"SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship",singer.Citizenship,1,10,unchanged

1013,singer,"For each citizenship, how many singers are from that country?","SELECT Citizenship ,  COUNT(*) FROM singer GROUP BY Citizenship",singer.Citizenship,1,10,unchanged

1014,singer,Please show the most common citizenship of singers.,SELECT Citizenship FROM singer GROUP BY Citizenship ORDER BY COUNT(*) DESC LIMIT 1,singer.Citizenship,1,10,unchanged

1015,singer,What is the most common singer citizenship ?,select citizenship from singer group by citizenship order by count(*) desc limit 1,singer.Citizenship,1,10,unchanged

1016,singer,Show different citizenships and the maximum net worth of singers of each citizenship.,"SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship",singer.Citizenship; singer.Net_Worth_Millions,2,10,unchanged

1017,singer,"For each citizenship, what is the maximum net worth?","SELECT Citizenship ,  max(Net_Worth_Millions) FROM singer GROUP BY Citizenship",singer.Citizenship; singer.Net_Worth_Millions,2,10,unchanged

1018,singer,Show titles of songs and names of singers.,"SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID",singer.Name; singer.Singer_ID; song.Singer_ID; song.Title,4,10,joinkey_added

1019,singer,What are the song titles and singer names?,"SELECT T2.Title ,  T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID",singer.Name; singer.Singer_ID; song.Singer_ID; song.Title,4,10,joinkey_added

1020,singer,Show distinct names of singers that have songs with sales more than 300000.,SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000,singer.Name; singer.Singer_ID; song.Sales; song.Singer_ID,4,10,unchanged

1021,singer,what are the different names of the singers that have sales more than 300000?,SELECT DISTINCT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID WHERE T2.Sales  >  300000,singer.Name; singer.Singer_ID; song.Sales; song.Singer_ID,4,10,unchanged

1022,singer,Show the names of singers that have more than one song.,SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1,singer.Name; singer.Singer_ID; song.Singer_ID,3,10,unchanged

1023,singer,What are the names of the singers that have more than one songs?,SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*)  >  1,singer.Name; singer.Singer_ID; song.Singer_ID,3,10,unchanged

1024,singer,Show the names of singers and the total sales of their songs.,"SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name",singer.Name; singer.Singer_ID; song.Sales; song.Singer_ID,4,10,unchanged

1025,singer,"For each singer name, what is the total sales for their songs?","SELECT T1.Name ,  sum(T2.Sales) FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID  =  T2.Singer_ID GROUP BY T1.Name",singer.Name; singer.Singer_ID; song.Sales; song.Singer_ID,4,10,unchanged

1026,singer,List the name of singers that do not have any song.,SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song),singer.Name; singer.Singer_ID; song.Singer_ID,3,10,joinkey_added

1027,singer,What is the sname of every sing that does not have any song?,SELECT Name FROM singer WHERE Singer_ID NOT IN (SELECT Singer_ID FROM song),singer.Name; singer.Singer_ID; song.Singer_ID,3,10,joinkey_added

1028,singer,Show the citizenship shared by singers with birth year before 1945 and after 1955.,SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955,singer.Birth_Year; singer.Citizenship,2,10,joinkey_added

1029,singer,What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?,SELECT Citizenship FROM singer WHERE Birth_Year  <  1945 INTERSECT SELECT Citizenship FROM singer WHERE Birth_Year  >  1955,singer.Birth_Year; singer.Citizenship,2,10,joinkey_added

1030,real_estate_properties,How many available features are there in total?,SELECT count(*) FROM Other_Available_Features,Other_Available_Features.feature_id,1,37,count_star_pk_injected+empty_fixed

1031,real_estate_properties,What is the feature type name of feature AirCon?,"SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code  =  T2.feature_type_code WHERE T1.feature_name  =  ""AirCon""",Other_Available_Features.feature_name; Other_Available_Features.feature_type_code; Ref_Feature_Types.feature_type_code; Ref_Feature_Types.feature_type_name,4,37,unchanged

1032,real_estate_properties,Show the property type descriptions of properties belonging to that code.,SELECT T2.property_type_description FROM Properties AS T1 JOIN Ref_Property_Types AS T2 ON T1.property_type_code  =  T2.property_type_code GROUP BY T1.property_type_code,Properties.property_type_code; Ref_Property_Types.property_type_code; Ref_Property_Types.property_type_description,3,37,joinkey_added

1033,real_estate_properties,What are the names of properties that are either houses or apartments with more than 1 room?,"SELECT property_name FROM Properties WHERE property_type_code  =  ""House"" UNION SELECT property_name FROM Properties WHERE property_type_code  =  ""Apartment"" AND room_count  >  1",Properties.property_name; Properties.property_type_code; Properties.room_count,3,37,unchanged