-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpre_process_results_dev
7303 lines (6268 loc) · 538 KB
/
pre_process_results_dev
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
/home/ursin/.local/share/virtualenvs/proton-2oP9uAK9/bin/python /home/ursin/development/PA3/proton/src/preprocessing/pre_process.py --data_path=data/spider/original/dev.json --ner_data_path=data/spider/ner_dev.json --table_path=data/spider/original/tables.json --database_path=data/spider/original/database --conceptNet=data/spider/conceptNet --output=data/spider/preprocessed_dev.json
Question: How many singers do we have?
SQL: SELECT count(*) FROM singer
Look for potential candidates "[('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001430 seconds.
Processed example 0 out of 1034
Question: What is the total number of singers?
SQL: SELECT count(*) FROM singer
Look for potential candidates "[('number', 0.75), ('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001391 seconds.
Processed example 1 out of 1034
Question: Show name, country, age for all singers ordered by age from the oldest to the youngest.
SQL: SELECT name , country , age FROM singer ORDER BY age DESC
Look for potential candidates "[('Show name', 0.75), ('Show', 0.75), ('name', 0.75), ('country', 0.75), ('age', 0.75), ('singers', 0.75), ('youngest', 0.75), ('oldest', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004192 seconds.
Processed example 2 out of 1034
Question: What are the names, countries, and ages for every singer in descending order of age?
SQL: SELECT name , country , age FROM singer ORDER BY age DESC
Look for potential candidates "[('names', 0.75), ('ages', 0.75), ('countries', 0.75), ('singer', 0.75), ('order', 0.75), ('age', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003190 seconds.
Processed example 3 out of 1034
Question: What is the average, minimum, and maximum age of all singers from France?
SQL: SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'
Look for potential candidates "[('France', 0.75), ('average', 0.75), ('age', 0.75), ('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('France', 'country', 'singer')]"
Elapsed time is 0.002206 seconds.
Processed example 4 out of 1034
Question: What is the average, minimum, and maximum age for all French singers?
SQL: SELECT avg(age) , min(age) , max(age) FROM singer WHERE country = 'France'
Look for potential candidates "[('French', 0.75), ('average', 0.75), ('age', 0.75), ('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002237 seconds.
Processed example 5 out of 1034
Question: Show the name and the release year of the song by the youngest singer.
SQL: SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1
Look for potential candidates "[('song', 0.75), ('name', 0.75), ('singer', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001740 seconds.
Processed example 6 out of 1034
Question: What are the names and release years for all the songs of the youngest singer?
SQL: SELECT song_name , song_release_year FROM singer ORDER BY age LIMIT 1
Look for potential candidates "[('names', 0.75), ('songs', 0.75), ('singer', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001773 seconds.
Processed example 7 out of 1034
Question: What are all distinct countries where singers above age 20 are from?
SQL: SELECT DISTINCT country FROM singer WHERE age > 20
Look for potential candidates "[('countries', 0.75), ('singers', 0.75), ('age', 0.75), ('20', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001942 seconds.
Processed example 8 out of 1034
Question: What are the different countries with singers above age 20?
SQL: SELECT DISTINCT country FROM singer WHERE age > 20
Look for potential candidates "[('countries', 0.75), ('singers', 0.75), ('age', 0.75), ('20', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001815 seconds.
Processed example 9 out of 1034
Question: Show all countries and the number of singers in each country.
SQL: SELECT country , count(*) FROM singer GROUP BY country
Look for potential candidates "[('number', 0.75), ('singers', 0.75), ('countries', 0.75), ('country', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002304 seconds.
Processed example 10 out of 1034
Question: How many singers are from each country?
SQL: SELECT country , count(*) FROM singer GROUP BY country
Look for potential candidates "[('singers', 0.75), ('country', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001557 seconds.
Processed example 11 out of 1034
Question: List all song names by singers above the average age.
SQL: SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)
Look for potential candidates "[('singers', 0.75), ('song names', 0.75), ('song', 0.75), ('names', 0.75), ('age', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002739 seconds.
Processed example 12 out of 1034
Question: What are all the song names by singers who are older than average?
SQL: SELECT song_name FROM singer WHERE age > (SELECT avg(age) FROM singer)
Look for potential candidates "[('singers', 0.75), ('song names', 0.75), ('song', 0.75), ('names', 0.75), ('average', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002738 seconds.
Processed example 13 out of 1034
Question: Show location and name for all stadiums with a capacity between 5000 and 10000.
SQL: SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
Look for potential candidates "[('Show location', 0.75), ('Show', 0.75), ('location', 0.75), ('name', 0.75), ('stadiums', 0.75), ('capacity', 0.75), ('10000', 1.0), ('5000', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003298 seconds.
Processed example 14 out of 1034
Question: What are the locations and names of all stations with capacity between 5000 and 10000?
SQL: SELECT LOCATION , name FROM stadium WHERE capacity BETWEEN 5000 AND 10000
Look for potential candidates "[('locations', 0.75), ('stations', 0.75), ('names', 0.75), ('capacity', 0.75), ('10000', 1.0), ('5000', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002397 seconds.
Processed example 15 out of 1034
Question: What is the maximum capacity and the average of all stadiums ?
SQL: select max(capacity), average from stadium
Look for potential candidates "[('capacity', 0.75), ('average', 0.75), ('stadiums', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001831 seconds.
Processed example 16 out of 1034
Question: What is the average and maximum capacities for all stadiums ?
SQL: select avg(capacity) , max(capacity) from stadium
Look for potential candidates "[('capacities', 0.75), ('average', 0.75), ('stadiums', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001795 seconds.
Processed example 17 out of 1034
Question: What is the name and capacity for the stadium with highest average attendance?
SQL: SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1
Look for potential candidates "[('name', 0.75), ('capacity', 0.75), ('stadium', 0.75), ('attendance', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002237 seconds.
Processed example 18 out of 1034
Question: What is the name and capacity for the stadium with the highest average attendance?
SQL: SELECT name , capacity FROM stadium ORDER BY average DESC LIMIT 1
Look for potential candidates "[('name', 0.75), ('capacity', 0.75), ('stadium', 0.75), ('attendance', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002314 seconds.
Processed example 19 out of 1034
Question: How many concerts are there in year 2014 or 2015?
SQL: SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015
Look for potential candidates "[('concerts', 0.75), ('2014', 1.0), ('2015', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer'), ('2015', 'year', 'concert')]"
Elapsed time is 0.001014 seconds.
Processed example 20 out of 1034
Question: How many concerts occurred in 2014 or 2015?
SQL: SELECT count(*) FROM concert WHERE YEAR = 2014 OR YEAR = 2015
Look for potential candidates "[('concerts', 0.75), ('2014', 1.0), ('2015', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer'), ('2015', 'year', 'concert')]"
Elapsed time is 0.000945 seconds.
Processed example 21 out of 1034
Question: Show the stadium name and the number of concerts in each stadium.
SQL: SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id
Look for potential candidates "[('number', 0.75), ('concerts', 0.75), ('stadium', 0.75), ('stadium name', 0.75), ('name', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002761 seconds.
Processed example 22 out of 1034
Question: For each stadium, how many concerts play there?
SQL: SELECT T2.name , count(*) FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id GROUP BY T1.stadium_id
Look for potential candidates "[('stadium', 0.75), ('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001407 seconds.
Processed example 23 out of 1034
Question: Show the stadium name and capacity with most number of concerts in year 2014 or after.
SQL: 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
Look for potential candidates "[('number', 0.75), ('capacity', 0.75), ('concerts', 0.75), ('stadium name', 0.75), ('stadium', 0.75), ('name', 0.75), ('2014', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer')]"
Elapsed time is 0.003279 seconds.
Processed example 24 out of 1034
Question: What is the name and capacity of the stadium with the most concerts after 2013 ?
SQL: 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
Look for potential candidates "[('name', 0.75), ('stadium', 0.75), ('capacity', 0.75), ('concerts', 0.75), ('2013', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2013', 'song release year', 'singer')]"
Elapsed time is 0.002355 seconds.
Processed example 25 out of 1034
Question: Which year has most number of concerts?
SQL: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Look for potential candidates "[('number', 0.75), ('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001325 seconds.
Processed example 26 out of 1034
Question: What is the year that had the most concerts?
SQL: SELECT YEAR FROM concert GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Look for potential candidates "[('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.000885 seconds.
Processed example 27 out of 1034
Question: Show the stadium names without any concert.
SQL: SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)
Look for potential candidates "[('stadium names', 0.75), ('stadium', 0.75), ('names', 0.75), ('concert', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002250 seconds.
Processed example 28 out of 1034
Question: What are the names of the stadiums without any concerts?
SQL: SELECT name FROM stadium WHERE stadium_id NOT IN (SELECT stadium_id FROM concert)
Look for potential candidates "[('names', 0.75), ('stadiums', 0.75), ('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.001771 seconds.
Processed example 29 out of 1034
Question: Show countries where a singer above age 40 and a singer below 30 are from.
SQL: SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30
Look for potential candidates "[('Show countries', 0.75), ('Show', 0.75), ('countries', 0.75), ('singer', 0.75), ('age', 0.75), ('40', 1.0), ('30', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002907 seconds.
Processed example 30 out of 1034
Question: Show names for all stadiums except for stadiums having a concert in year 2014.
SQL: 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
Look for potential candidates "[('Show names', 0.75), ('Show', 0.75), ('names', 0.75), ('stadiums', 0.75), ('concert', 0.75), ('2014', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer')]"
Elapsed time is 0.002820 seconds.
Processed example 31 out of 1034
Question: What are the names of all stadiums that did not have a concert in 2014?
SQL: 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
Look for potential candidates "[('stadiums', 0.75), ('names', 0.75), ('concert', 0.75), ('2014', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer')]"
Elapsed time is 0.001869 seconds.
Processed example 32 out of 1034
Question: Show the name and theme for all concerts and the number of singers in each concert.
SQL: 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
Look for potential candidates "[('name', 0.75), ('theme', 0.75), ('concerts', 0.75), ('number', 0.75), ('concert', 0.75), ('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003230 seconds.
Processed example 33 out of 1034
Question: What are the names , themes , and number of singers for every concert ?
SQL: 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
Look for potential candidates "[('names', 0.75), ('themes', 0.75), ('number', 0.75), ('concert', 0.75), ('singers', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002740 seconds.
Processed example 34 out of 1034
Question: List singer names and number of concerts for each singer.
SQL: 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
Look for potential candidates "[('List singer names', 0.75), ('List', 0.75), ('singer', 0.75), ('names', 0.75), ('List singer', 0.75), ('singer names', 0.75), ('number', 0.75), ('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004420 seconds.
Processed example 35 out of 1034
Question: What are the names of the singers and number of concerts for each person?
SQL: 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
Look for potential candidates "[('names', 0.75), ('singers', 0.75), ('number', 0.75), ('person', 0.75), ('concerts', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002768 seconds.
Processed example 36 out of 1034
Question: List all singer names in concerts in year 2014.
SQL: 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
Look for potential candidates "[('concerts', 0.75), ('singer names', 0.75), ('singer', 0.75), ('names', 0.75), ('2014', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer')]"
Elapsed time is 0.002531 seconds.
Processed example 37 out of 1034
Question: What are the names of the singers who performed in a concert in 2014?
SQL: 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
Look for potential candidates "[('singers', 0.75), ('names', 0.75), ('concert', 0.75), ('2014', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer')]"
Elapsed time is 0.001947 seconds.
Processed example 38 out of 1034
Question: what is the name and nation of the singer who have a song having 'Hey' in its name?
SQL: SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'
Look for potential candidates "[('Hey', 0.9), ('singer', 0.75), ('name', 0.75), ('nation', 0.75), ('song', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002732 seconds.
Processed example 39 out of 1034
Question: What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?
SQL: SELECT name , country FROM singer WHERE song_name LIKE '%Hey%'
Look for potential candidates "[('Hey', 0.9), ('name', 0.75), ('singer', 0.75), ('word', 0.75), ('country', 0.75), ('origin', 0.75), ('song', 0.75), ('title', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004219 seconds.
Processed example 40 out of 1034
Question: Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.
SQL: 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
Look for potential candidates "[('name', 0.75), ('stadiums', 0.75), ('concerts', 0.75), ('location', 0.75), ('2014', 1.0), ('2015', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer'), ('2015', 'year', 'concert')]"
Elapsed time is 0.002427 seconds.
Processed example 41 out of 1034
Question: What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?
SQL: 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
Look for potential candidates "[('concerts', 0.75), ('stadiums', 0.75), ('locations', 0.75), ('names', 0.75), ('2014', 1.0), ('2015', 1.0)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[('2014', 'year', 'concert'), ('2014', 'song release year', 'singer'), ('2015', 'year', 'concert')]"
Elapsed time is 0.002407 seconds.
Processed example 42 out of 1034
Question: Find the number of concerts happened in the stadium with the highest capacity .
SQL: select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)
Look for potential candidates "[('number', 0.75), ('concerts', 0.75), ('stadium', 0.75), ('capacity', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002324 seconds.
Processed example 43 out of 1034
Question: What are the number of concerts that occurred in the stadium with the largest capacity ?
SQL: select count(*) from concert where stadium_id = (select stadium_id from stadium order by capacity desc limit 1)
Look for potential candidates "[('concerts', 0.75), ('number', 0.75), ('stadium', 0.75), ('capacity', 0.75)]" in database concert_singer (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002385 seconds.
Processed example 44 out of 1034
Question: Find the number of pets whose weight is heavier than 10.
SQL: SELECT count(*) FROM pets WHERE weight > 10
Look for potential candidates "[('number', 0.75), ('weight', 0.75), ('pets', 0.75), ('10', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003744 seconds.
Processed example 45 out of 1034
Question: How many pets have a greater weight than 10?
SQL: SELECT count(*) FROM pets WHERE weight > 10
Look for potential candidates "[('pets', 0.75), ('weight', 0.75), ('10', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002606 seconds.
Processed example 46 out of 1034
Question: Find the weight of the youngest dog.
SQL: SELECT weight FROM pets ORDER BY pet_age LIMIT 1
Look for potential candidates "[('weight', 0.75), ('dog', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('dog', 'pet type', 'pets')]"
Elapsed time is 0.002468 seconds.
Processed example 47 out of 1034
Question: How much does the youngest dog weigh?
SQL: SELECT weight FROM pets ORDER BY pet_age LIMIT 1
Look for potential candidates "[('dog', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('dog', 'pet type', 'pets')]"
Elapsed time is 0.001440 seconds.
Processed example 48 out of 1034
Question: Find the maximum weight for each type of pet. List the maximum weight and pet type.
SQL: SELECT max(weight) , petType FROM pets GROUP BY petType
Look for potential candidates "[('List', 0.75), ('weight', 0.75), ('pet', 0.75), ('type', 0.75), ('pet type', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('Lisa', 'first name', 'student')]"
Elapsed time is 0.005875 seconds.
Processed example 49 out of 1034
Question: List the maximum weight and type for each type of pet.
SQL: SELECT max(weight) , petType FROM pets GROUP BY petType
Look for potential candidates "[('weight', 0.75), ('type', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003630 seconds.
Processed example 50 out of 1034
Question: Find number of pets owned by students who are older than 20.
SQL: SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
Look for potential candidates "[('number', 0.75), ('students', 0.75), ('pets', 0.75), ('20', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('20', 'age', 'student')]"
Elapsed time is 0.003702 seconds.
Processed example 51 out of 1034
Question: How many pets are owned by students that have an age greater than 20?
SQL: SELECT count(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.age > 20
Look for potential candidates "[('pets', 0.75), ('students', 0.75), ('age', 0.75), ('20', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('20', 'age', 'student')]"
Elapsed time is 0.003722 seconds.
Processed example 52 out of 1034
Question: Find the number of dog pets that are raised by female students (with sex F).
SQL: 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'
Look for potential candidates "[('F', 1.0), ('female', 1.0), ('number', 0.75), ('dog pets', 0.75), ('dog', 0.75), ('pets', 0.75), ('students', 0.75), ('sex', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('F', 'sex', 'student'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.006883 seconds.
Processed example 53 out of 1034
Question: How many dog pets are raised by female students?
SQL: 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'
Look for potential candidates "[('F', 1.0), ('female', 1.0), ('students', 0.75), ('dog pets', 0.75), ('dog', 0.75), ('pets', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('F', 'sex', 'student'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.004948 seconds.
Processed example 54 out of 1034
Question: Find the number of distinct type of pets.
SQL: SELECT count(DISTINCT pettype) FROM pets
Look for potential candidates "[('number', 0.75), ('type', 0.75), ('pets', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003455 seconds.
Processed example 55 out of 1034
Question: How many different types of pet are there?
SQL: SELECT count(DISTINCT pettype) FROM pets
Look for potential candidates "[('types', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.002538 seconds.
Processed example 56 out of 1034
Question: Find the first name of students who have cat or dog pet.
SQL: 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'
Look for potential candidates "[('students', 0.75), ('name', 0.75), ('cat', 0.75), ('dog pet', 0.75), ('dog', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.007068 seconds.
Processed example 57 out of 1034
Question: What are the first names of every student who has a cat or dog as a pet?
SQL: 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'
Look for potential candidates "[('student', 0.75), ('names', 0.75), ('cat', 0.75), ('pet', 0.75), ('dog', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.005850 seconds.
Processed example 58 out of 1034
Question: Find the first name of students who have both cat and dog pets .
SQL: 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'
Look for potential candidates "[('students', 0.75), ('name', 0.75), ('pets', 0.75), ('dog', 0.75), ('cat', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.005847 seconds.
Processed example 59 out of 1034
Question: What are the students' first names who have both cats and dogs as pets?
SQL: 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'
Look for potential candidates "[('students', 0.75), ('names', 0.75), ('cats', 0.75), ('pets', 0.75), ('dogs', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets'), ('cat', 'pet type', 'pets')]"
Elapsed time is 0.005944 seconds.
Processed example 60 out of 1034
Question: Find the major and age of students who do not have a cat pet.
SQL: 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')
Look for potential candidates "[('students', 0.75), ('age', 0.75), ('cat pet', 0.75), ('cat', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets')]"
Elapsed time is 0.005605 seconds.
Processed example 61 out of 1034
Question: What major is every student who does not own a cat as a pet, and also how old are they?
SQL: 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')
Look for potential candidates "[('student', 0.75), ('major', 0.75), ('cat', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets')]"
Elapsed time is 0.004888 seconds.
Processed example 62 out of 1034
Question: Find the id of students who do not have a cat pet.
SQL: 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'
Look for potential candidates "[('students', 0.75), ('id', 0.75), ('cat pet', 0.75), ('cat', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('cat', 'pet type', 'pets')]"
Elapsed time is 0.007177 seconds.
Processed example 63 out of 1034
Question: What are the ids of the students who do not own cats as pets?
SQL: 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'
Look for potential candidates "[('students', 0.75), ('ids', 0.75), ('pets', 0.75), ('cats', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('cat', 'pet type', 'pets')]"
Elapsed time is 0.006758 seconds.
Processed example 64 out of 1034
Question: Find the first name and age of students who have a dog but do not have a cat as a pet.
SQL: 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')
Look for potential candidates "[('students', 0.75), ('name', 0.75), ('age', 0.75), ('dog', 0.75), ('cat', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.006964 seconds.
Processed example 65 out of 1034
Question: What is the first name of every student who has a dog but does not have a cat?
SQL: 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')
Look for potential candidates "[('student', 0.75), ('name', 0.75), ('dog', 0.75), ('cat', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('1', 'pet age', 'pets'), ('dog', 'pet type', 'pets')]"
Elapsed time is 0.004869 seconds.
Processed example 66 out of 1034
Question: Find the type and weight of the youngest pet.
SQL: SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1
Look for potential candidates "[('type', 0.75), ('weight', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003575 seconds.
Processed example 67 out of 1034
Question: What type of pet is the youngest animal, and how much does it weigh?
SQL: SELECT pettype , weight FROM pets ORDER BY pet_age LIMIT 1
Look for potential candidates "[('type', 0.75), ('animal', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003506 seconds.
Processed example 68 out of 1034
Question: Find the id and weight of all pets whose age is older than 1.
SQL: SELECT petid , weight FROM pets WHERE pet_age > 1
Look for potential candidates "[('id', 0.75), ('age', 0.75), ('pets', 0.75), ('weight', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.005381 seconds.
Processed example 69 out of 1034
Question: What is the id and weight of every pet who is older than 1?
SQL: SELECT petid , weight FROM pets WHERE pet_age > 1
Look for potential candidates "[('id', 0.75), ('weight', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.004290 seconds.
Processed example 70 out of 1034
Question: Find the average and maximum age for each type of pet.
SQL: SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype
Look for potential candidates "[('age', 0.75), ('average', 0.75), ('pet', 0.75), ('type', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004646 seconds.
Processed example 71 out of 1034
Question: What is the average and maximum age for each pet type?
SQL: SELECT avg(pet_age) , max(pet_age) , pettype FROM pets GROUP BY pettype
Look for potential candidates "[('average', 0.75), ('age', 0.75), ('pet type', 0.75), ('pet', 0.75), ('type', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.005786 seconds.
Processed example 72 out of 1034
Question: Find the average weight for each pet type.
SQL: SELECT avg(weight) , pettype FROM pets GROUP BY pettype
Look for potential candidates "[('weight', 0.75), ('pet type', 0.75), ('pet', 0.75), ('type', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004693 seconds.
Processed example 73 out of 1034
Question: What is the average weight for each type of pet?
SQL: SELECT avg(weight) , pettype FROM pets GROUP BY pettype
Look for potential candidates "[('weight', 0.75), ('pet', 0.75), ('type', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.004167 seconds.
Processed example 74 out of 1034
Question: Find the first name and age of students who have a pet.
SQL: SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
Look for potential candidates "[('name', 0.75), ('students', 0.75), ('age', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.004790 seconds.
Processed example 75 out of 1034
Question: What are the different first names and ages of the students who do have pets?
SQL: SELECT DISTINCT T1.fname , T1.age FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid
Look for potential candidates "[('students', 0.75), ('ages', 0.75), ('names', 0.75), ('pets', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.004716 seconds.
Processed example 76 out of 1034
Question: Find the id of the pet owned by student whose last name is ‘Smith’.
SQL: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'
Look for potential candidates "[('Smith', 0.9), ('id', 0.75), ('student', 0.75), ('pet', 0.75), ('name', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('Smith', 'last name', 'student')]"
Elapsed time is 0.006568 seconds.
Processed example 77 out of 1034
Question: What is the id of the pet owned by the student whose last name is 'Smith'?
SQL: SELECT T2.petid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid WHERE T1.Lname = 'Smith'
Look for potential candidates "[('Smith', 0.9), ('student', 0.75), ('id', 0.75), ('pet', 0.75), ('name', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[('Smith', 'last name', 'student')]"
Elapsed time is 0.006755 seconds.
Processed example 78 out of 1034
Question: Find the number of pets for each student who has any pet and student id.
SQL: SELECT count(*) , T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid
Look for potential candidates "[('number', 0.75), ('student', 0.75), ('pets', 0.75), ('id', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.006535 seconds.
Processed example 79 out of 1034
Question: For students who have pets , how many pets does each student have ? list their ids instead of names .
SQL: select count(*) , t1.stuid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid
Look for potential candidates "[('students', 0.75), ('pets', 0.75), ('student', 0.75), ('ids', 0.75), ('names', 0.75)]" in database pets_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.006617 seconds.
Processed example 80 out of 1034
Question: Find the first name and gender of student who have more than one pet.
SQL: 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
Look for potential candidates "[('name', 0.75), ('student', 0.75), ('gender', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.004785 seconds.
Processed example 81 out of 1034
Question: What is the first name and gender of the all the students who have more than one pet?
SQL: 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
Look for potential candidates "[('students', 0.75), ('name', 0.75), ('gender', 0.75), ('pet', 0.75), ('1', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('1', 'pet age', 'pets')]"
Elapsed time is 0.004738 seconds.
Processed example 82 out of 1034
Question: Find the last name of the student who has a cat that is age 3.
SQL: 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'
Look for potential candidates "[('cat', 0.75), ('student', 0.75), ('name', 0.75), ('3', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('3', 'pet age', 'pets')]"
Elapsed time is 0.003654 seconds.
Processed example 83 out of 1034
Question: What is the last name of the student who has a cat that is 3 years old?
SQL: 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'
Look for potential candidates "[('student', 0.75), ('cat', 0.75), ('name', 0.75), ('3', 1.0)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[('cat', 'pet type', 'pets'), ('3', 'pet age', 'pets')]"
Elapsed time is 0.003767 seconds.
Processed example 84 out of 1034
Question: Find the average age of students who do not have any pet .
SQL: select avg(age) from student where stuid not in (select stuid from has_pet)
Look for potential candidates "[('students', 0.75), ('age', 0.75), ('pet', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003939 seconds.
Processed example 85 out of 1034
Question: What is the average age for all students who do not own any pets ?
SQL: select avg(age) from student where stuid not in (select stuid from has_pet)
Look for potential candidates "[('students', 0.75), ('age', 0.75), ('pets', 0.75)]" in database pets_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.003696 seconds.
Processed example 86 out of 1034
Question: How many continents are there?
SQL: SELECT count(*) FROM CONTINENTS;
Look for potential candidates "[('continents', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.016656 seconds.
Processed example 87 out of 1034
Question: What is the number of continents?
SQL: SELECT count(*) FROM CONTINENTS;
Look for potential candidates "[('number', 0.75), ('continents', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.031493 seconds.
Processed example 88 out of 1034
Question: How many countries does each continent have? List the continent id, continent name and the number of countries.
SQL: SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;
Look for potential candidates "[('List', 0.75), ('countries', 0.75), ('continent', 0.75), ('continent id', 0.75), ('id', 0.75), ('number', 0.75), ('continent name', 0.75), ('name', 0.75)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.136861 seconds.
Processed example 89 out of 1034
Question: For each continent, list its id, name, and how many countries it has?
SQL: SELECT T1.ContId , T1.Continent , count(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId;
Look for potential candidates "[('continent', 0.75), ('name', 0.75), ('id', 0.75), ('countries', 0.75)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.068600 seconds.
Processed example 90 out of 1034
Question: How many countries are listed?
SQL: SELECT count(*) FROM COUNTRIES;
Look for potential candidates "[('countries', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.016804 seconds.
Processed example 91 out of 1034
Question: How many countries exist?
SQL: SELECT count(*) FROM COUNTRIES;
Look for potential candidates "[('countries', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.016554 seconds.
Processed example 92 out of 1034
Question: How many models does each car maker produce? List maker full name, id and the number.
SQL: 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;
Look for potential candidates "[('List', 0.75), ('models', 0.75), ('car maker', 0.75), ('car', 0.75), ('maker', 0.75), ('List maker', 0.75), ('number', 0.75), ('name', 0.75), ('id', 0.75)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.152651 seconds.
Processed example 93 out of 1034
Question: What is the full name of each car maker, along with its id and how many models it produces?
SQL: 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;
Look for potential candidates "[('name', 0.75), ('car maker', 0.75), ('car', 0.75), ('maker', 0.75), ('id', 0.75), ('models', 0.75)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.102000 seconds.
Processed example 94 out of 1034
Question: Which model of the car has the minimum horsepower?
SQL: 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;
Look for potential candidates "[('model', 0.75), ('car', 0.75), ('horsepower', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.045422 seconds.
Processed example 95 out of 1034
Question: What is the model of the car with the smallest amount of horsepower?
SQL: 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;
Look for potential candidates "[('model', 0.75), ('car', 0.75), ('horsepower', 0.75), ('amount', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.061246 seconds.
Processed example 96 out of 1034
Question: Find the model of the car whose weight is below the average weight.
SQL: 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)
Look for potential candidates "[('model', 0.75), ('weight', 0.75), ('car', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046224 seconds.
Processed example 97 out of 1034
Question: What is the model for the car with a weight smaller than the average?
SQL: 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)
Look for potential candidates "[('model', 0.75), ('car', 0.75), ('weight', 0.75), ('average', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.060203 seconds.
Processed example 98 out of 1034
Question: Find the name of the makers that produced some cars in the year of 1970?
SQL: 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';
Look for potential candidates "[('name', 0.75), ('makers', 0.75), ('cars', 0.75), ('1970', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1970', 'weight', 'cars data'), ('1970', 'year', 'cars data')]"
Elapsed time is 0.048166 seconds.
Processed example 99 out of 1034
Question: What is the name of the different car makers who produced a car in 1970?
SQL: 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';
Look for potential candidates "[('car makers', 0.75), ('car', 0.75), ('makers', 0.75), ('name', 0.75), ('1970', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1970', 'weight', 'cars data'), ('1970', 'year', 'cars data')]"
Elapsed time is 0.067979 seconds.
Processed example 100 out of 1034
Question: Find the make and production time of the cars that were produced in the earliest year?
SQL: 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);
Look for potential candidates "[('make', 0.75), ('cars', 0.75), ('production', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046192 seconds.
Processed example 101 out of 1034
Question: What is the maker of the carr produced in the earliest year and what year was it?
SQL: 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);
Look for potential candidates "[('maker', 0.75), ('carr', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.030568 seconds.
Processed example 102 out of 1034
Question: Which distinct car models are the produced after 1980?
SQL: 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;
Look for potential candidates "[('car models', 0.75), ('car', 0.75), ('models', 0.75), ('1980', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1980', 'weight', 'cars data'), ('1980', 'year', 'cars data')]"
Elapsed time is 0.047209 seconds.
Processed example 103 out of 1034
Question: What are the different models for the cards produced after 1980?
SQL: 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;
Look for potential candidates "[('models', 0.75), ('cards', 0.75), ('1980', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1980', 'weight', 'cars data'), ('1980', 'year', 'cars data')]"
Elapsed time is 0.031806 seconds.
Processed example 104 out of 1034
Question: How many car makers are there in each continents? List the continent name and the count.
SQL: 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;
Look for potential candidates "[('List', 0.75), ('car makers', 0.75), ('car', 0.75), ('makers', 0.75), ('continents', 0.75), ('count', 0.75), ('continent name', 0.75), ('continent', 0.75), ('name', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.134572 seconds.
Processed example 105 out of 1034
Question: What is the name of each continent and how many car makers are there in each one?
SQL: 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;
Look for potential candidates "[('name', 0.75), ('continent', 0.75), ('car makers', 0.75), ('car', 0.75), ('makers', 0.75), ('one', 0.75), ('1', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.091356 seconds.
Processed example 106 out of 1034
Question: Which of the countries has the most car makers? List the country name.
SQL: 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;
Look for potential candidates "[('List', 0.75), ('countries', 0.75), ('car makers', 0.75), ('car', 0.75), ('makers', 0.75), ('country name', 0.75), ('country', 0.75), ('name', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.119454 seconds.
Processed example 107 out of 1034
Question: What is the name of the country with the most car makers?
SQL: 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;
Look for potential candidates "[('name', 0.75), ('country', 0.75), ('car makers', 0.75), ('car', 0.75), ('makers', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.075354 seconds.
Processed example 108 out of 1034
Question: How many car models are produced by each maker ? Only list the count and the maker full name .
SQL: select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;
Look for potential candidates "[('Only', 0.75), ('car models', 0.75), ('car', 0.75), ('models', 0.75), ('maker', 0.75), ('name', 0.75), ('count', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.103773 seconds.
Processed example 109 out of 1034
Question: What is the number of car models that are produced by each maker and what is the id and full name of each maker?
SQL: 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;
Look for potential candidates "[('car models', 0.75), ('car', 0.75), ('models', 0.75), ('number', 0.75), ('maker', 0.75), ('name', 0.75), ('id', 0.75)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[]"
Elapsed time is 0.119035 seconds.
Processed example 110 out of 1034
Question: What is the accelerate of the car make amc hornet sportabout (sw)?
SQL: 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)';
Look for potential candidates "[('car', 0.75), ('amc hornet', 0.75), ('amc', 0.75), ('hornet', 0.75), ('sportabout', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('amc', 'maker', 'car makers'), ('amc hornet', 'make', 'car names'), ('amc', 'model', 'model list')]"
Elapsed time is 0.078214 seconds.
Processed example 111 out of 1034
Question: How much does the car accelerate that makes amc hornet sportabout (sw)?
SQL: 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)';
Look for potential candidates "[('car', 0.75), ('hornet', 0.75), ('sportabout', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046973 seconds.
Processed example 112 out of 1034
Question: How many car makers are there in france?
SQL: SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';
Look for potential candidates "[('car makers', 0.75), ('car', 0.75), ('makers', 0.75), ('france', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('france', 'country name', 'countries')]"
Elapsed time is 0.060009 seconds.
Processed example 113 out of 1034
Question: What is the number of makers of care in France?
SQL: SELECT count(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france';
Look for potential candidates "[('France', 0.75), ('number', 0.75), ('makers', 0.75), ('care', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('france', 'country name', 'countries')]"
Elapsed time is 0.060451 seconds.
Processed example 114 out of 1034
Question: How many car models are produced in the usa?
SQL: 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';
Look for potential candidates "[('car models', 0.75), ('car', 0.75), ('models', 0.75), ('usa', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('usa', 'country name', 'countries')]"
Elapsed time is 0.060906 seconds.
Processed example 115 out of 1034
Question: What is the count of the car models produced in the United States?
SQL: 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';
Look for potential candidates "[('USA', 0.9), ('US', 0.9), ('United States', 0.9), ('United States of America', 0.9), ('count', 0.75), ('car models', 0.75), ('car', 0.75), ('models', 0.75), ('United', 0.75), ('States', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('usa', 'country name', 'countries')]"
Elapsed time is 0.151572 seconds.
Processed example 116 out of 1034
Question: What is the average miles per gallon(mpg) of the cars with 4 cylinders?
SQL: SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;
Look for potential candidates "[('cylinders', 0.75), ('cars', 0.75), ('4', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('4', 'cylinders', 'cars data')]"
Elapsed time is 0.033231 seconds.
Processed example 117 out of 1034
Question: What is the average miles per gallon of all the cards with 4 cylinders?
SQL: SELECT avg(mpg) FROM CARS_DATA WHERE Cylinders = 4;
Look for potential candidates "[('gallon', 0.75), ('cylinders', 0.75), ('cards', 0.75), ('4', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('4', 'cylinders', 'cars data')]"
Elapsed time is 0.047980 seconds.
Processed example 118 out of 1034
Question: What is the smallest weight of the car produced with 8 cylinders on 1974 ?
SQL: select min(weight) from cars_data where cylinders = 8 and year = 1974
Look for potential candidates "[('weight', 0.75), ('car', 0.75), ('cylinders', 0.75), ('1974', 1.0), ('8', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1974', 'year', 'cars data'), ('8', 'cylinders', 'cars data')]"
Elapsed time is 0.048709 seconds.
Processed example 119 out of 1034
Question: What is the minimum weight of the car with 8 cylinders produced in 1974 ?
SQL: select min(weight) from cars_data where cylinders = 8 and year = 1974
Look for potential candidates "[('weight', 0.75), ('car', 0.75), ('cylinders', 0.75), ('1974', 1.0), ('8', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1974', 'year', 'cars data'), ('8', 'cylinders', 'cars data')]"
Elapsed time is 0.048205 seconds.
Processed example 120 out of 1034
Question: What are all the makers and models?
SQL: SELECT Maker , Model FROM MODEL_LIST;
Look for potential candidates "[('makers', 0.75), ('models', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.030779 seconds.
Processed example 121 out of 1034
Question: What are the makers and models?
SQL: SELECT Maker , Model FROM MODEL_LIST;
Look for potential candidates "[('makers', 0.75), ('models', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.031529 seconds.
Processed example 122 out of 1034
Question: What are the countries having at least one car maker? List name and id.
SQL: 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;
Look for potential candidates "[('List', 0.75), ('countries', 0.75), ('car maker', 0.75), ('car', 0.75), ('maker', 0.75), ('id', 0.75), ('List name', 0.75), ('name', 0.75), ('1', 1.0)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[('1', 'cont id', 'continents'), ('1', 'make id', 'car names'), ('1', 'model id', 'model list'), ('1', 'country id', 'countries'), ('1', 'id', 'car makers')]"
Elapsed time is 0.139500 seconds.
Processed example 123 out of 1034
Question: What are the names and ids of all countries with at least one car maker?
SQL: 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;
Look for potential candidates "[('names', 0.75), ('countries', 0.75), ('ids', 0.75), ('car maker', 0.75), ('car', 0.75), ('maker', 0.75), ('1', 1.0)]" in database car_1 (include primary keys: True)
Confirmed the following candidates "[('1', 'cont id', 'continents'), ('1', 'make id', 'car names'), ('1', 'model id', 'model list'), ('1', 'country id', 'countries'), ('1', 'id', 'car makers')]"
Elapsed time is 0.104118 seconds.
Processed example 124 out of 1034
Question: What is the number of the cars with horsepower more than 150?
SQL: SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;
Look for potential candidates "[('number', 0.75), ('cars', 0.75), ('150', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('150', 'horsepower', 'cars data')]"
Elapsed time is 0.032505 seconds.
Processed example 125 out of 1034
Question: What is the number of cars with a horsepower greater than 150?
SQL: SELECT count(*) FROM CARS_DATA WHERE horsepower > 150;
Look for potential candidates "[('number', 0.75), ('cars', 0.75), ('horsepower', 0.75), ('150', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('150', 'horsepower', 'cars data')]"
Elapsed time is 0.047204 seconds.
Processed example 126 out of 1034
Question: What is the average weight of cars each year?
SQL: SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;
Look for potential candidates "[('weight', 0.75), ('cars', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.030939 seconds.
Processed example 127 out of 1034
Question: What is the average weight and year for each year?
SQL: SELECT avg(Weight) , YEAR FROM CARS_DATA GROUP BY YEAR;
Look for potential candidates "[('weight', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.015998 seconds.
Processed example 128 out of 1034
Question: Which countries in europe have at least 3 car manufacturers?
SQL: 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;
Look for potential candidates "[('countries', 0.75), ('car manufacturers', 0.75), ('car', 0.75), ('manufacturers', 0.75), ('europe', 0.75), ('3', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('europe', 'continent', 'continents'), ('3', 'cylinders', 'cars data')]"
Elapsed time is 0.078188 seconds.
Processed example 129 out of 1034
Question: What are the names of all European countries with at least 3 manufacturers?
SQL: 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;
Look for potential candidates "[('European', 0.75), ('names', 0.75), ('countries', 0.75), ('manufacturers', 0.75), ('3', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('3', 'cylinders', 'cars data'), ('europe', 'continent', 'continents')]"
Elapsed time is 0.063789 seconds.
Processed example 130 out of 1034
Question: What is the maximum horsepower and the make of the car models with 3 cylinders?
SQL: 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;
Look for potential candidates "[('horsepower', 0.75), ('make', 0.75), ('cylinders', 0.75), ('car models', 0.75), ('car', 0.75), ('models', 0.75), ('3', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('3', 'cylinders', 'cars data')]"
Elapsed time is 0.093339 seconds.
Processed example 131 out of 1034
Question: What is the largest amount of horsepower for the models with 3 cylinders and what make is it?
SQL: 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;
Look for potential candidates "[('amount', 0.75), ('models', 0.75), ('horsepower', 0.75), ('make', 0.75), ('cylinders', 0.75), ('3', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('3', 'cylinders', 'cars data')]"
Elapsed time is 0.078410 seconds.
Processed example 132 out of 1034
Question: Which model saves the most gasoline? That is to say, have the maximum miles per gallon.
SQL: 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;
Look for potential candidates "[('That', 0.75), ('model', 0.75), ('gasoline', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046685 seconds.
Processed example 133 out of 1034
Question: What is the car model with the highest mpg ?
SQL: 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;
Look for potential candidates "[('car model', 0.75), ('car', 0.75), ('model', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046833 seconds.
Processed example 134 out of 1034
Question: What is the average horsepower of the cars before 1980?
SQL: SELECT avg(horsepower) FROM CARS_DATA WHERE YEAR < 1980;
Look for potential candidates "[('horsepower', 0.75), ('cars', 0.75), ('1980', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1980', 'weight', 'cars data'), ('1980', 'year', 'cars data')]"
Elapsed time is 0.032769 seconds.
Processed example 135 out of 1034
Question: What is the average horsepower for all cars produced before 1980 ?
SQL: select avg(horsepower) from cars_data where year < 1980;
Look for potential candidates "[('horsepower', 0.75), ('cars', 0.75), ('1980', 1.0)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('1980', 'weight', 'cars data'), ('1980', 'year', 'cars data')]"
Elapsed time is 0.034444 seconds.
Processed example 136 out of 1034
Question: What is the average edispl of the cars of model volvo?
SQL: SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';
Look for potential candidates "[('edispl', 0.75), ('cars', 0.75), ('model volvo', 0.75), ('model', 0.75), ('volvo', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('Volvo', 'full name', 'car makers'), ('volvo', 'model', 'model list'), ('volvo', 'maker', 'car makers')]"
Elapsed time is 0.077138 seconds.
Processed example 137 out of 1034
Question: What is the average edispl for all volvos?
SQL: SELECT avg(T2.edispl) FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T1.Model = 'volvo';
Look for potential candidates "[('edispl', 0.75), ('volvos', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[('volvo', 'maker', 'car makers'), ('volvo', 'model', 'model list'), ('Volvo', 'full name', 'car makers')]"
Elapsed time is 0.031788 seconds.
Processed example 138 out of 1034
Question: What is the maximum accelerate for different number of cylinders?
SQL: SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;
Look for potential candidates "[('maximum', 0.75), ('cylinders', 0.75), ('number', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.046567 seconds.
Processed example 139 out of 1034
Question: What is the maximum accelerate for all the different cylinders?
SQL: SELECT max(Accelerate) , Cylinders FROM CARS_DATA GROUP BY Cylinders;
Look for potential candidates "[('maximum', 0.75), ('cylinders', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.031440 seconds.
Processed example 140 out of 1034
Question: Which model has the most version(make) of cars?
SQL: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;
Look for potential candidates "[('model', 0.75), ('version', 0.75), ('cars', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.045824 seconds.
Processed example 141 out of 1034
Question: What model has the most different versions?
SQL: SELECT Model FROM CAR_NAMES GROUP BY Model ORDER BY count(*) DESC LIMIT 1;
Look for potential candidates "[('model', 0.75), ('versions', 0.75)]" in database car_1 (include primary keys: False)
Confirmed the following candidates "[]"
Elapsed time is 0.031349 seconds.