Repository navigation
Expand file tree
/
Copy patharcwise_rescored_student-base.json
More file actions
3509 lines (3509 loc) · 145 KB
/
Copy patharcwise_rescored_student-base.json
File metadata and controls
3509 lines (3509 loc) · 145 KB
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
{
"source_report": "eval\\reports\\2026-07-22\\E_dense_fewshot_repair-student-base.json",
"summary": {
"original": {
"matched": 100,
"total": 200
},
"sql_only": {
"matched": 98,
"total": 199
},
"full": {
"matched": 90,
"total": 199
}
},
"per_difficulty": {
"original": {
"simple": {
"matched": 45,
"total": 67
},
"moderate": {
"matched": 42,
"total": 99
},
"challenging": {
"matched": 13,
"total": 34
}
},
"sql_only": {
"simple": {
"matched": 42,
"total": 67
},
"moderate": {
"matched": 42,
"total": 98
},
"challenging": {
"matched": 14,
"total": 34
}
},
"full": {
"simple": {
"matched": 40,
"total": 67
},
"moderate": {
"matched": 36,
"total": 98
},
"challenging": {
"matched": 14,
"total": 34
}
}
},
"transitions": {
"gained": [
{
"qid": 207,
"variant": "sql_only",
"difficulty": "challenging"
},
{
"qid": 207,
"variant": "full",
"difficulty": "challenging"
},
{
"qid": 260,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 260,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 634,
"variant": "sql_only",
"difficulty": "challenging"
},
{
"qid": 634,
"variant": "full",
"difficulty": "challenging"
},
{
"qid": 672,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 694,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 694,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 847,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 847,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 950,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 1029,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 1247,
"variant": "sql_only",
"difficulty": "challenging"
},
{
"qid": 1247,
"variant": "full",
"difficulty": "challenging"
},
{
"qid": 1251,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 1251,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 1254,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 1254,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 1422,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 1422,
"variant": "full",
"difficulty": "simple"
}
],
"lost": [
{
"qid": 36,
"variant": "sql_only",
"difficulty": "challenging"
},
{
"qid": 36,
"variant": "full",
"difficulty": "challenging"
},
{
"qid": 50,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 50,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 194,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 347,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 356,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 671,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 671,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 716,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 716,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 736,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 736,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 747,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 750,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 750,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 791,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 791,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 794,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 794,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 879,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 879,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 881,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 1037,
"variant": "sql_only",
"difficulty": "challenging"
},
{
"qid": 1037,
"variant": "full",
"difficulty": "challenging"
},
{
"qid": 1133,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 1133,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 1156,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 1376,
"variant": "sql_only",
"difficulty": "moderate"
},
{
"qid": 1376,
"variant": "full",
"difficulty": "moderate"
},
{
"qid": 1378,
"variant": "full",
"difficulty": "simple"
},
{
"qid": 1525,
"variant": "sql_only",
"difficulty": "simple"
},
{
"qid": 1525,
"variant": "full",
"difficulty": "simple"
}
],
"changed_gold": []
},
"records": [
{
"question_id": 5,
"db_id": "california_schools",
"difficulty": "simple",
"pred_sql": "SELECT COUNT(*) FROM satscores INNER JOIN schools ON satscores.cds = schools.CDSCode WHERE satscores.AvgScrMath > 400 AND schools.Virtual = 'F'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 25,
"db_id": "california_schools",
"difficulty": "moderate",
"pred_sql": "SELECT T2.FundingType FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T2.County = 'Riverside' AND T1.AvgScrMath > 400",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=6, |pred|=3",
"original_gold_rows": 6,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=6, |pred|=3",
"sql_only_gold_rows": 6,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=6, |pred|=3",
"full_gold_rows": 6,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 32,
"db_id": "california_schools",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(SUM(frpm.\"FRPM Count (K-12)\") AS REAL) * 100 / SUM(frpm.\"Enrollment (K-12)\") AS \"Eligible Free or Reduced Price Meal Rate\" FROM frpm INNER JOIN schools ON frpm.CDSCode = schools.CDSCode WHERE schools.\"Ownership Code\" = 66 ORDER BY frpm.\"Free Meal Count (K-12)\" DESC LIMIT 5",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: schools.Ownership Code\n[SQL: SELECT CAST(SUM(frpm.\"FRPM Count (K-12)\") AS REAL) * 100 / SUM(frpm.\"Enrollment (K-12)\") AS \"Eligible Free or Reduced Price Meal Rate\" FROM frpm INNER JOIN schools ON frpm.CDSCode = schools.CDSCode WHERE schools.\"Ownership Code\" = 66 ORDER BY frpm.\"Free Meal Count (K-12)\" DESC LIMIT 5]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 5,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 5,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 5,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 36,
"db_id": "california_schools",
"difficulty": "challenging",
"pred_sql": "SELECT T2.AdmFName1, T2.AdmLName1, T2.AdmFName2, T2.AdmLName2, T2.AdmFName3, T2.AdmLName3 FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.NumGE1500 > 0 ORDER BY T1.enroll12 DESC LIMIT 1",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "ordered row 0 mismatch: gold=('Andrew', 'Ishibashi', None, None, None, None), pred=('Michelle', 'King', None, None, None, None)",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "ordered row 0 mismatch: gold=('Andrew', 'Ishibashi', None, None, None, None), pred=('Michelle', 'King', None, None, None, None)",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 37,
"db_id": "california_schools",
"difficulty": "moderate",
"pred_sql": "SELECT T1.Street, T1.City, T1.Zip, T1.State FROM schools AS T1 JOIN satscores AS T2 ON T1.CDSCode = T2.cds WHERE T1.StatusType = 'Active' ORDER BY CAST(T2.NumGE1500 AS REAL) / T2.NumTstTakr ASC LIMIT 1",
"original_match": false,
"original_reason": "ordered row 0 mismatch: gold=('2125 Jefferson Avenue', 'Berkeley', 'CA', '94703-1414'), pred=('1900 Third Street', 'Alameda', '94501-1851', 'CA')",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=17, |pred|=1",
"sql_only_gold_rows": 17,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=17, |pred|=1",
"full_gold_rows": 17,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 39,
"db_id": "california_schools",
"difficulty": "simple",
"pred_sql": "SELECT AVG(NumTstTakr) FROM satscores WHERE cds IN (SELECT CDSCode FROM schools WHERE District LIKE '%Fresno%' AND STRFTIME('%Y', OpenDate) = '1980')",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 48,
"db_id": "california_schools",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T1.StatusType = 'Merged' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS Ratio FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.County = 'Orange' AND T1.DOC = 54 UNION ALL SELECT CAST(SUM(CASE WHEN T1.StatusType = 'Merged' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) AS Ratio FROM schools AS T1 INNER JOIN frpm AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.County = 'Orange' AND T1.DOC = 52",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 50,
"db_id": "california_schools",
"difficulty": "simple",
"pred_sql": "SELECT T2.Street, T2.School FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode WHERE T1.AvgScrMath IS NOT NULL ORDER BY T1.AvgScrMath DESC LIMIT 6, 1",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "ordered row 0 mismatch: gold=('5172 Orange Avenue', 'Oxford Academy'), pred=('25 Churchill Avenue', None)",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "ordered row 0 mismatch: gold=('5172 Orange Avenue', 'Oxford Academy'), pred=('25 Churchill Avenue', None)",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 77,
"db_id": "california_schools",
"difficulty": "moderate",
"pred_sql": "SELECT T2.School, CAST(T1.Frpm_Count_Ages_5_17 AS REAL) * 100 / T1.Enrollment_Ages_5_17 AS \"Percent (%) Eligible FRPM (Ages 5-17)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.Low_Grade = 'K' AND T2.High_Grade = '9'",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: T1.Frpm_Count_Ages_5_17\n[SQL: SELECT T2.School, CAST(T1.Frpm_Count_Ages_5_17 AS REAL) * 100 / T1.Enrollment_Ages_5_17 AS \"Percent (%) Eligible FRPM (Ages 5-17)\" FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.County = 'Los Angeles' AND T2.Low_Grade = 'K' AND T2.High_Grade = '9']\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 2,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 2,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 2,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 92,
"db_id": "financial",
"difficulty": "simple",
"pred_sql": "SELECT COUNT(*) FROM district WHERE district_id IN (SELECT district_id FROM client JOIN disp ON client.client_id = disp.client_id WHERE gender = 'F' GROUP BY district_id HAVING AVG(disp.A11) BETWEEN 6000 AND 10000)",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: disp.A11\n[SQL: SELECT COUNT(*) FROM district WHERE district_id IN (SELECT district_id FROM client JOIN disp ON client.client_id = disp.client_id WHERE gender = 'F' GROUP BY district_id HAVING AVG(disp.A11) BETWEEN 6000 AND 10000)]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 1,
"full_gold_changed": true
},
{
"question_id": 98,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT T1.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount ASC LIMIT 1",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1
},
{
"question_id": 99,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT T1.account_id, T1.amount FROM loan AS T1 JOIN account AS T2 ON T1.account_id = T2.account_id WHERE T1.duration > 12 AND STRFTIME('%Y', T2.date) = '1993' ORDER BY T1.amount DESC LIMIT 1",
"original_match": false,
"original_reason": "ordered row 0 mismatch: gold=(10451,), pred=(10451, 482940)",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "ordered row 0 mismatch: gold=(10451,), pred=(10451, 482940)",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "ordered row 0 mismatch: gold=(10451,), pred=(10451, 482940)",
"full_gold_rows": 1
},
{
"question_id": 112,
"db_id": "financial",
"difficulty": "simple",
"pred_sql": "SELECT T2.A2 FROM client AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id WHERE T1.gender = 'F' AND T1.birth_date = '1976-01-29'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 115,
"db_id": "financial",
"difficulty": "challenging",
"pred_sql": "SELECT CAST(COUNT(CASE WHEN T1.gender = 'M' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.client_id) AS percentage FROM client AS T1 JOIN disp AS T2 ON T1.client_id = T2.client_id JOIN account AS T3 ON T2.account_id = T3.account_id JOIN district AS T4 ON T3.district_id = T4.district_id WHERE T4.A3 = 'south Bohemia'",
"original_match": false,
"original_reason": "ordered row 0 mismatch: gold=(44.26229508196721,), pred=(48.08988764044944,)",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "ordered row 0 mismatch: gold=(40.0,), pred=(48.08988764044944,)",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "ordered row 0 mismatch: gold=(40.0,), pred=(48.08988764044944,)",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 118,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T1.status = 'C' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM loan AS T1 WHERE T1.amount < 100000",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1
},
{
"question_id": 120,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT T1.account_id, COUNT(*) AS frequency FROM account AS T1 JOIN disp AS T2 ON T1.account_id = T2.account_id JOIN district AS T3 ON T1.district_id = T3.district_id WHERE T3.A3 = 'east Bohemia' AND T1.date BETWEEN '1995-01-01' AND '2000-12-31' GROUP BY T1.account_id",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=364, |pred|=364",
"original_gold_rows": 364
},
{
"question_id": 125,
"db_id": "financial",
"difficulty": "challenging",
"pred_sql": "SELECT T3.A2, T3.A3, ((T3.A13 - T3.A12) / T3.A12) * 100 AS unemployment_rate_increment FROM loan AS T1 JOIN account AS T2 ON T1.account_id = T2.account_id JOIN district AS T3 ON T2.district_id = T3.district_id WHERE T1.status = 'D'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=29, |pred|=30",
"original_gold_rows": 45,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=28, |pred|=30",
"sql_only_gold_rows": 43,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=28, |pred|=30",
"full_gold_rows": 43,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 138,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT COUNT(client_id) FROM client WHERE district_id IN (SELECT district_id FROM trans WHERE date LIKE '1995%' ORDER BY SUM(CASE WHEN A15 IS NOT NULL THEN 1 ELSE 0 END) DESC LIMIT 1 OFFSET 1)",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: A15\n[SQL: SELECT COUNT(client_id) FROM client WHERE district_id IN (SELECT district_id FROM trans WHERE date LIKE '1995%' ORDER BY SUM(CASE WHEN A15 IS NOT NULL THEN 1 ELSE 0 END) DESC LIMIT 1 OFFSET 1)]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 1
},
{
"question_id": 159,
"db_id": "financial",
"difficulty": "simple",
"pred_sql": "SELECT trans.amount FROM trans JOIN account ON trans.account_id = account.account_id JOIN disp ON account.account_id = disp.account_id WHERE disp.client_id = 3356 AND trans.operation = 'VYBER'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=140, |pred|=66",
"original_gold_rows": 140,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=140, |pred|=66",
"sql_only_gold_rows": 140,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=140, |pred|=66",
"full_gold_rows": 140,
"sql_only_gold_changed": true
},
{
"question_id": 168,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(COUNT(CASE WHEN T1.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 JOIN account AS T2 ON T1.client_id = T2.client_id WHERE T2.date BETWEEN (SELECT MIN(date) FROM account WHERE district_id IN (SELECT district_id FROM district GROUP BY district_id HAVING AVG(A11) > 10000)) AND (SELECT MAX(date) FROM account WHERE district_id IN (SELECT district_id FROM district GROUP BY district_id HAVING AVG(A11) > 10000))",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: T2.client_id\n[SQL: SELECT CAST(COUNT(CASE WHEN T1.gender = 'F' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 JOIN account AS T2 ON T1.client_id = T2.client_id WHERE T2.date BETWEEN (SELECT MIN(date) FROM account WHERE district_id IN (SELECT district_id FROM district GROUP BY district_id HAVING AVG(A11) > 10000)) AND (SELECT MAX(date) FROM account WHERE district_id IN (SELECT district_id FROM district GROUP BY district_id HAVING AVG(A11) > 10000))]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 1
},
{
"question_id": 169,
"db_id": "financial",
"difficulty": "challenging",
"pred_sql": "SELECT ((SUM(CASE WHEN strftime('%Y', T1.date) = '1997' THEN T1.amount ELSE 0 END) - SUM(CASE WHEN strftime('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END)) / SUM(CASE WHEN strftime('%Y', T1.date) = '1996' THEN T1.amount ELSE 0 END)) * 100 AS growth_rate FROM loan AS T1 JOIN disp AS T2 ON T1.account_id = T2.account_id JOIN client AS T3 ON T2.client_id = T3.client_id WHERE T3.gender = 'M'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 173,
"db_id": "financial",
"difficulty": "challenging",
"pred_sql": "SELECT COUNT(*) AS request_count, SUM(CASE WHEN k_symbol = 'SIPO' THEN amount ELSE 0 END) AS total_debit_amount FROM trans WHERE account_id = 3",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 189,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT T1.account_id FROM account AS T1 JOIN disp AS T2 ON T1.account_id = T2.account_id JOIN client AS T3 ON T2.client_id = T3.client_id WHERE T3.gender = 'F' GROUP BY T1.account_id ORDER BY MIN(T3.birth_date) ASC, AVG(T1.balance) ASC LIMIT 1",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: T1.balance\n[SQL: SELECT T1.account_id FROM account AS T1 JOIN disp AS T2 ON T1.account_id = T2.account_id JOIN client AS T3 ON T2.client_id = T3.client_id WHERE T3.gender = 'F' GROUP BY T1.account_id ORDER BY MIN(T3.birth_date) ASC, AVG(T1.balance) ASC LIMIT 1]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "pred execution failed",
"full_gold_rows": 1
},
{
"question_id": 192,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT AVG(loan.amount) AS avg_loan_amount FROM loan JOIN trans ON loan.account_id = trans.account_id WHERE loan.status = 'C'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 194,
"db_id": "financial",
"difficulty": "moderate",
"pred_sql": "SELECT T1.client_id, strftime('%Y', 'now') - strftime('%Y', T1.birth_date) AS age FROM client AS T1 JOIN disp AS T2 ON T1.client_id = T2.client_id JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T3.type = 'gold' AND T2.type = 'OWNER'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 88,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 88,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=88, |pred|=88",
"full_gold_rows": 88,
"full_gold_changed": true
},
{
"question_id": 207,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT DISTINCT T3.element FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id2 = T3.atom_id WHERE T1.bond_type = '='",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=13, |pred|=5",
"original_gold_rows": 13,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 5,
"full_match": true,
"full_reason": "",
"full_gold_rows": 5,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 208,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'h' GROUP BY T2.label ORDER BY COUNT(T2.label) DESC LIMIT 1",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1
},
{
"question_id": 219,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T1.label = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.bond_id) AS percent FROM molecule AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '#'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1,
"full_gold_changed": true
},
{
"question_id": 227,
"db_id": "toxicology",
"difficulty": "simple",
"pred_sql": "SELECT CAST(SUM(CASE WHEN label = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(molecule_id) AS percent FROM molecule",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 230,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT T1.label, T3.element FROM molecule AS T1 JOIN atom AS T3 ON T1.molecule_id = T3.molecule_id WHERE T1.molecule_id = 'TR060'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=5, |pred|=5",
"original_gold_rows": 5,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=5, |pred|=5",
"sql_only_gold_rows": 5,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=5, |pred|=5",
"full_gold_rows": 5
},
{
"question_id": 232,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT molecule_id FROM molecule WHERE molecule_id IN (SELECT molecule_id FROM bond WHERE bond_type = '-') AND label = '-' ORDER BY molecule_id LIMIT 3",
"original_match": true,
"original_reason": "",
"original_gold_rows": 3,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 3,
"full_match": true,
"full_reason": "",
"full_gold_rows": 3
},
{
"question_id": 236,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT T1.bond_type, T2.atom_id, T2.atom_id2 FROM bond AS T1 JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.bond_id = 'TR001_6_9'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 2,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 2,
"full_match": true,
"full_reason": "",
"full_gold_rows": 2
},
{
"question_id": 239,
"db_id": "toxicology",
"difficulty": "simple",
"pred_sql": "SELECT COUNT(bond_id) FROM connected WHERE atom_id LIKE 'TR%_19'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1
},
{
"question_id": 253,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT T1.element FROM atom AS T1 JOIN connected AS T2 ON T1.atom_id = T2.atom_id JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '#'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 4,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 4,
"full_match": true,
"full_reason": "",
"full_gold_rows": 4
},
{
"question_id": 260,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT COUNT(*) FROM atom WHERE molecule_id IN (SELECT molecule_id FROM bond WHERE bond_type = '#' AND molecule_id IN (SELECT molecule_id FROM atom WHERE element = 'p' OR element = 'br'))",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 1,
"full_match": true,
"full_reason": "",
"full_gold_rows": 1,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 268,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT T3.element FROM bond AS T1 JOIN connected AS T2 ON T1.bond_id = T2.bond_id JOIN atom AS T3 ON T2.atom_id2 = T3.atom_id WHERE T1.bond_id = 'TR001_10_11'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 2,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 2,
"full_match": true,
"full_reason": "",
"full_gold_rows": 2
},
{
"question_id": 273,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T3.element = 'cl' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.molecule_id) AS percentage FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN atom AS T3 ON T2.molecule_id = T3.molecule_id WHERE T1.label = '+'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 282,
"db_id": "toxicology",
"difficulty": "challenging",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T1.element = 'h' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.element) AS ratio, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR006'",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"sql_only_gold_rows": 1,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"full_gold_rows": 1
},
{
"question_id": 327,
"db_id": "toxicology",
"difficulty": "moderate",
"pred_sql": "SELECT T1.label FROM molecule AS T1 JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '-' GROUP BY T1.molecule_id HAVING COUNT(T2.atom_id) > 5",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=186, |pred|=1",
"original_gold_rows": 186,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=186, |pred|=1",
"sql_only_gold_rows": 186,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=186, |pred|=1",
"full_gold_rows": 186
},
{
"question_id": 347,
"db_id": "card_games",
"difficulty": "moderate",
"pred_sql": "SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'",
"original_match": true,
"original_reason": "",
"original_gold_rows": 23,
"sql_only_match": true,
"sql_only_reason": "",
"sql_only_gold_rows": 23,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=76, |pred|=23",
"full_gold_rows": 76,
"full_gold_changed": true
},
{
"question_id": 349,
"db_id": "card_games",
"difficulty": "moderate",
"pred_sql": "SELECT T1.name, T1.artist, T1.isPromo FROM cards AS T1 JOIN rulings AS T2 ON T1.uuid = T2.uuid GROUP BY T1.id ORDER BY COUNT(T2.uuid) DESC LIMIT 1",
"original_match": false,
"original_reason": "set mismatch (unique rows differ): |gold|=1, |pred|=1",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "set mismatch (unique rows differ): |gold|=2, |pred|=1",
"sql_only_gold_rows": 2,
"full_match": false,
"full_reason": "set mismatch (unique rows differ): |gold|=2, |pred|=1",
"full_gold_rows": 2,
"sql_only_gold_changed": true,
"full_gold_changed": true
},
{
"question_id": 352,
"db_id": "card_games",
"difficulty": "moderate",
"pred_sql": "SELECT CAST(SUM(CASE WHEN T1.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) AS percentage FROM set_translations AS T1 INNER JOIN cards AS T2 ON T1.setCode = T2.set_code",
"original_match": false,
"pred_exec_error": "(sqlite3.OperationalError) no such column: T2.set_code\n[SQL: SELECT CAST(SUM(CASE WHEN T1.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) AS percentage FROM set_translations AS T1 INNER JOIN cards AS T2 ON T1.setCode = T2.set_code]\n(Background on this error at: https://sqlalche.me/e/20/e3q8)",
"original_reason": "pred execution failed",
"original_gold_rows": 1,
"sql_only_match": false,
"sql_only_reason": "pred execution failed",
"sql_only_gold_rows": 1,