forked from jkkummerfeld/text2sql-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimdb.json
More file actions
2657 lines (2657 loc) · 96.1 KB
/
imdb.json
File metadata and controls
2657 lines (2657 loc) · 96.1 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
[
{
"difficulty": 1,
"query-split": "5",
"sentences": [
{
"question-split": "9",
"text": "What year is the movie \" movie_title0 \" from ?",
"variables": {
"movie_title0": "Dead Poets Society"
}
},
{
"question-split": "6",
"text": "What year was the movie \" movie_title0 \" produced",
"variables": {
"movie_title0": "The Imitation Game"
}
}
],
"sql": [
"SELECT MOVIEalias0.RELEASE_YEAR FROM MOVIE AS MOVIEalias0 WHERE MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "The Imitation Game",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 1,
"query-split": "0",
"sentences": [
{
"question-split": "4",
"text": "What year was \" actor_name0 \" born ?",
"variables": {
"actor_name0": "Ellen Page"
}
},
{
"question-split": "8",
"text": "In what year was \" actor_name0 \" born",
"variables": {
"actor_name0": "Benedict Cumberbatch"
}
}
],
"sql": [
"SELECT ACTORalias0.BIRTH_YEAR FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NAME = \"actor_name0\" ;"
],
"variables": [
{
"example": "Benedict Cumberbatch",
"location": "both",
"name": "actor_name0",
"type": "actor_name"
}
]
},
{
"difficulty": 1,
"query-split": "1",
"sentences": [
{
"question-split": "5",
"text": "What is the nationality of the actress \" actor_name0 \" ?",
"variables": {
"actor_name0": "Ellen Page"
}
},
{
"question-split": "8",
"text": "What is the nationality of the actor \" actor_name0 \" ?",
"variables": {
"actor_name0": "Christoph Waltz"
}
}
],
"sql": [
"SELECT ACTORalias0.NATIONALITY FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NAME = \"actor_name0\" ;"
],
"variables": [
{
"example": "Christoph Waltz",
"location": "both",
"name": "actor_name0",
"type": "actor_name"
}
]
},
{
"difficulty": 1,
"query-split": "5",
"sentences": [
{
"question-split": "4",
"text": "Find all movies produced in movie_release_year0",
"variables": {
"movie_release_year0": "2015"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM MOVIE AS MOVIEalias0 WHERE MOVIEalias0.RELEASE_YEAR = movie_release_year0 ;"
],
"variables": [
{
"example": "2015",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
}
]
},
{
"difficulty": 1,
"query-split": "9",
"sentences": [
{
"question-split": "2",
"text": "Find all actors born in \" actor_birth_city0 \"",
"variables": {
"actor_birth_city0": "Los Angeles"
}
},
{
"question-split": "0",
"text": "Find all actors born in actor_birth_city0",
"variables": {
"actor_birth_city0": "Milan"
}
},
{
"question-split": "9",
"text": "Which actors were born in actor_birth_city0",
"variables": {
"actor_birth_city0": "Tehran"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.BIRTH_CITY = \"actor_birth_city0\" ;"
],
"variables": [
{
"example": "Tehran",
"location": "both",
"name": "actor_birth_city0",
"type": "actor_birth_city"
}
]
},
{
"difficulty": 1,
"query-split": "0",
"sentences": [
{
"question-split": "7",
"text": "Find all actors who are from actor_nationality0",
"variables": {
"actor_nationality0": "Canada"
}
},
{
"question-split": "7",
"text": "Find all actors from actor_nationality0",
"variables": {
"actor_nationality0": "Italy"
}
},
{
"question-split": "9",
"text": "Give me the name of all the actors from actor_nationality0",
"variables": {
"actor_nationality0": "Afghanistan"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NATIONALITY = \"actor_nationality0\" ;"
],
"variables": [
{
"example": "Afghanistan",
"location": "both",
"name": "actor_nationality0",
"type": "actor_nationality"
}
]
},
{
"difficulty": 1,
"query-split": "8",
"sentences": [
{
"question-split": "6",
"text": "Find all actors who were born in actor_birth_year0",
"variables": {
"actor_birth_year0": "1984"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.BIRTH_YEAR = actor_birth_year0 ;"
],
"variables": [
{
"example": "1984",
"location": "both",
"name": "actor_birth_year0",
"type": "actor_birth_year"
}
]
},
{
"difficulty": 1,
"query-split": "3",
"sentences": [
{
"question-split": "8",
"text": "When was \" writer_name0 \" born ?",
"variables": {
"writer_name0": "Kevin Spacey"
}
},
{
"question-split": "9",
"text": "In what year was \" writer_name0 \" born ?",
"variables": {
"writer_name0": "Kevin Spacey"
}
}
],
"sql": [
"SELECT WRITERalias0.BIRTH_YEAR FROM WRITER AS WRITERalias0 WHERE WRITERalias0.NAME = \"writer_name0\" ;",
"SELECT ACTORalias0.BIRTH_YEAR FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NAME = \"actor_name0\" ;",
"SELECT DIRECTORalias0.BIRTH_YEAR FROM DIRECTOR AS DIRECTORalias0 WHERE DIRECTORalias0.NAME = \"director_name0\" ;",
"SELECT PRODUCERalias0.BIRTH_YEAR FROM PRODUCER AS PRODUCERalias0 WHERE PRODUCERalias0.NAME = \"producer_name0\" ;"
],
"variables": [
{
"example": "Kevin Spacey",
"location": "both",
"name": "writer_name0",
"type": "writer_name"
}
]
},
{
"difficulty": 1,
"query-split": "5",
"sentences": [
{
"question-split": "0",
"text": "Where is the birth place of \" writer_name0 \"",
"variables": {
"writer_name0": "Kevin Spacey"
}
},
{
"question-split": "0",
"text": "In what city was \" writer_name0 \" born ?",
"variables": {
"writer_name0": "Kevin Spacey"
}
}
],
"sql": [
"SELECT WRITERalias0.BIRTH_CITY FROM WRITER AS WRITERalias0 WHERE WRITERalias0.NAME = \"writer_name0\" ;",
"SELECT DIRECTORalias0.BIRTH_CITY FROM DIRECTOR AS DIRECTORalias0 WHERE DIRECTORalias0.NAME = \"director_name0\" ;",
"SELECT PRODUCERalias0.BIRTH_CITY FROM PRODUCER AS PRODUCERalias0 WHERE PRODUCERalias0.NAME = \"producer_name0\" ;",
"SELECT ACTORalias0.BIRTH_CITY FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NAME = \"actor_name0\" ;"
],
"variables": [
{
"example": "Kevin Spacey",
"location": "both",
"name": "writer_name0",
"type": "writer_name"
}
]
},
{
"difficulty": 1,
"query-split": "6",
"sentences": [
{
"question-split": "0",
"text": "What is the nationality of \" writer_name0 \" ?",
"variables": {
"writer_name0": "Kevin Spacey"
}
}
],
"sql": [
"SELECT WRITERalias0.NATIONALITY FROM WRITER AS WRITERalias0 WHERE WRITERalias0.NAME = \"writer_name0\" ;",
"SELECT DIRECTORalias0.NATIONALITY FROM DIRECTOR AS DIRECTORalias0 WHERE DIRECTORalias0.NAME = \"director_name0\" ;",
"SELECT PRODUCERalias0.NATIONALITY FROM PRODUCER AS PRODUCERalias0 WHERE PRODUCERalias0.NAME = \"producer_name0\" ;",
"SELECT ACTORalias0.NATIONALITY FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.NAME = \"actor_name0\" ;"
],
"variables": [
{
"example": "Kevin Spacey",
"location": "both",
"name": "writer_name0",
"type": "writer_name"
}
]
},
{
"difficulty": 1,
"query-split": "3",
"sentences": [
{
"question-split": "1",
"text": "How much was the budget of \" movie_title0 \"",
"variables": {
"movie_title0": "Finding Nemo"
}
}
],
"sql": [
"SELECT MOVIEalias0.BUDGET FROM MOVIE AS MOVIEalias0 WHERE MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "Finding Nemo",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "1",
"sentences": [
{
"question-split": "4",
"text": "Find all movies directed by \" director_name0 \" after movie_release_year0",
"variables": {
"director_name0": "Steven Spielberg",
"movie_release_year0": "2006"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND DIRECTORalias0.NAME = \"director_name0\" AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID AND MOVIEalias0.RELEASE_YEAR > movie_release_year0 ;"
],
"variables": [
{
"example": "Steven Spielberg",
"location": "both",
"name": "director_name0",
"type": "director_name"
},
{
"example": "2006",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
}
]
},
{
"difficulty": 2,
"query-split": "6",
"sentences": [
{
"question-split": "4",
"text": "Who is the director of the movie \" movie_title0 \" ?",
"variables": {
"movie_title0": "Catch Me If You Can"
}
},
{
"question-split": "3",
"text": "Who directed the movie \" movie_title0 \" ?",
"variables": {
"movie_title0": "Inglourious Basterds"
}
},
{
"question-split": "9",
"text": "List \" movie_title0 \" directors",
"variables": {
"movie_title0": "James Bond"
}
}
],
"sql": [
"SELECT DIRECTORalias0.NAME FROM DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "James Bond",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "3",
"sentences": [
{
"question-split": "4",
"text": "Find the actor who played \" cast_role0 \" in the movie \" movie_title0 \"",
"variables": {
"cast_role0": "Captain Miller",
"movie_title0": "Saving Private Ryan"
}
},
{
"question-split": "8",
"text": "Who acted \" cast_role0 \" in the movie \" movie_title0 \" ?",
"variables": {
"cast_role0": "John Nash",
"movie_title0": "A Beautiful Mind"
}
},
{
"question-split": "6",
"text": "Who was the actor that played \" cast_role0 \" in the movie \" movie_title0 \" ?",
"variables": {
"cast_role0": "Vinny Gambini",
"movie_title0": "My Cousin Vinny"
}
},
{
"question-split": "8",
"text": "Who acts as \" cast_role0 \" in the movie \" movie_title0 \" ?",
"variables": {
"cast_role0": "Alan Turing",
"movie_title0": "The Imitation Game"
}
},
{
"question-split": "0",
"text": "Who is the actor playing \" cast_role0 \" in \" movie_title0 \" ?",
"variables": {
"cast_role0": "Alan Turing",
"movie_title0": "The Imitation Game"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 , CAST AS CASTalias0 , MOVIE AS MOVIEalias0 WHERE CASTalias0.AID = ACTORalias0.AID AND CASTalias0.ROLE = \"cast_role0\" AND MOVIEalias0.MID = CASTalias0.MSID AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "Alan Turing",
"location": "both",
"name": "cast_role0",
"type": "cast_role"
},
{
"example": "The Imitation Game",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "7",
"sentences": [
{
"question-split": "3",
"text": "What is the genre of the movie \" movie_title0 \" ?",
"variables": {
"movie_title0": "Jurassic Park"
}
}
],
"sql": [
"SELECT GENREalias0.GENRE FROM CLASSIFICATION AS CLASSIFICATIONalias0 , GENRE AS GENREalias0 , MOVIE AS MOVIEalias0 WHERE GENREalias0.GID = CLASSIFICATIONalias0.GID AND MOVIEalias0.MID = CLASSIFICATIONalias0.MSID AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "Jurassic Park",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "2",
"sentences": [
{
"question-split": "7",
"text": "Who was the director of the movie movie_title0 from movie_release_year0 ?",
"variables": {
"movie_release_year0": "2015",
"movie_title0": "Joy"
}
}
],
"sql": [
"SELECT DIRECTORalias0.NAME FROM DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID AND MOVIEalias0.RELEASE_YEAR = movie_release_year0 AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "2015",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
},
{
"example": "Joy",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "4",
"sentences": [
{
"question-split": "1",
"text": "Find all movies written by \" writer_name0 \"",
"variables": {
"writer_name0": "Matt Damon"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM MOVIE AS MOVIEalias0 , WRITER AS WRITERalias0 , WRITTEN_BY AS WRITTEN_BYalias0 WHERE WRITERalias0.NAME = \"writer_name0\" AND WRITTEN_BYalias0.MSID = MOVIEalias0.MID AND WRITTEN_BYalias0.WID = WRITERalias0.WID ;"
],
"variables": [
{
"example": "Matt Damon",
"location": "both",
"name": "writer_name0",
"type": "writer_name"
}
]
},
{
"difficulty": 2,
"query-split": "2",
"sentences": [
{
"question-split": "5",
"text": "Find all movies written and produced by \" producer_name0 \"",
"variables": {
"producer_name0": "Woody Allen"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM MADE_BY AS MADE_BYalias0 , MOVIE AS MOVIEalias0 , PRODUCER AS PRODUCERalias0 , WRITER AS WRITERalias0 , WRITTEN_BY AS WRITTEN_BYalias0 WHERE MOVIEalias0.MID = MADE_BYalias0.MSID AND PRODUCERalias0.NAME = \"producer_name0\" AND PRODUCERalias0.PID = MADE_BYalias0.PID AND WRITERalias0.NAME = \"producer_name0\" AND WRITTEN_BYalias0.MSID = MOVIEalias0.MID AND WRITTEN_BYalias0.WID = WRITERalias0.WID ;"
],
"variables": [
{
"example": "Woody Allen",
"location": "both",
"name": "producer_name0",
"type": "producer_name"
}
]
},
{
"difficulty": 2,
"query-split": "3",
"sentences": [
{
"question-split": "3",
"text": "Find all movies featuring \" actor_name0 \"",
"variables": {
"actor_name0": "Kate Winslet"
}
},
{
"question-split": "3",
"text": "Find all movies featuring \" actor_name0 \"",
"variables": {
"actor_name0": "Benedict Cumberbatch"
}
},
{
"question-split": "3",
"text": "What are all the movies featuring \" actor_name0 \" ?",
"variables": {
"actor_name0": "Kerry Washington"
}
},
{
"question-split": "5",
"text": "Find all movies featuring \" actor_name0 \"",
"variables": {
"actor_name0": "Kevin Spacey"
}
},
{
"question-split": "3",
"text": "Find all movies in which \" actor_name0 \" appears",
"variables": {
"actor_name0": "Robin Wright"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM ACTOR AS ACTORalias0 , CAST AS CASTalias0 , MOVIE AS MOVIEalias0 WHERE ACTORalias0.NAME = \"actor_name0\" AND CASTalias0.AID = ACTORalias0.AID AND MOVIEalias0.MID = CASTalias0.MSID ;"
],
"variables": [
{
"example": "Robin Wright",
"location": "both",
"name": "actor_name0",
"type": "actor_name"
}
]
},
{
"difficulty": 2,
"query-split": "6",
"sentences": [
{
"question-split": "1",
"text": "What was the budget of the movie movie_title0 from movie_release_year0 ?",
"variables": {
"movie_release_year0": "2007",
"movie_title0": "Juno"
}
}
],
"sql": [
"SELECT MOVIEalias0.BUDGET FROM MOVIE AS MOVIEalias0 WHERE MOVIEalias0.RELEASE_YEAR = movie_release_year0 AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "2007",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
},
{
"example": "Juno",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "9",
"sentences": [
{
"question-split": "8",
"text": "Find all genre0 produced in year movie_release_year0",
"variables": {
"genre0": "comedies",
"movie_release_year0": "2015"
}
},
{
"question-split": "1",
"text": "List all the genre0 movies which released in movie_release_year0",
"variables": {
"genre0": "Sci-Fi",
"movie_release_year0": "2010"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM CLASSIFICATION AS CLASSIFICATIONalias0 , GENRE AS GENREalias0 , MOVIE AS MOVIEalias0 WHERE GENREalias0.GENRE = \"genre0\" AND GENREalias0.GID = CLASSIFICATIONalias0.GID AND MOVIEalias0.MID = CLASSIFICATIONalias0.MSID AND MOVIEalias0.RELEASE_YEAR = movie_release_year0 ;"
],
"variables": [
{
"example": "Sci-Fi",
"location": "both",
"name": "genre0",
"type": "genre"
},
{
"example": "2010",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
}
]
},
{
"difficulty": 2,
"query-split": "0",
"sentences": [
{
"question-split": "0",
"text": "Find all actors born in \" actor_birth_city0 \" after actor_birth_year0",
"variables": {
"actor_birth_city0": "Los Angeles",
"actor_birth_year0": "1980"
}
},
{
"question-split": "5",
"text": "Who are the actors born in \" actor_birth_city0 \" after actor_birth_year0 ?",
"variables": {
"actor_birth_city0": "New York City",
"actor_birth_year0": "1990"
}
},
{
"question-split": "1",
"text": "Find all actors from actor_birth_city0 born after actor_birth_year0",
"variables": {
"actor_birth_city0": "Austin",
"actor_birth_year0": "1980"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.BIRTH_CITY = \"actor_birth_city0\" AND ACTORalias0.BIRTH_YEAR > actor_birth_year0 ;"
],
"variables": [
{
"example": "Austin",
"location": "both",
"name": "actor_birth_city0",
"type": "actor_birth_city"
},
{
"example": "1980",
"location": "both",
"name": "actor_birth_year0",
"type": "actor_birth_year"
}
]
},
{
"difficulty": 2,
"query-split": "1",
"sentences": [
{
"question-split": "0",
"text": "Find all movies by directors born in \" director_birth_city0 \"",
"variables": {
"director_birth_city0": "Los Angeles"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE DIRECTORalias0.BIRTH_CITY = \"director_birth_city0\" AND DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID ;"
],
"variables": [
{
"example": "Los Angeles",
"location": "both",
"name": "director_birth_city0",
"type": "director_birth_city"
}
]
},
{
"difficulty": 2,
"query-split": "0",
"sentences": [
{
"question-split": "2",
"text": "What company produced the movie \" movie_title0 \" ?",
"variables": {
"movie_title0": "Juno"
}
}
],
"sql": [
"SELECT COMPANYalias0.NAME FROM COMPANY AS COMPANYalias0 , COPYRIGHT AS COPYRIGHTalias0 , MOVIE AS MOVIEalias0 WHERE COPYRIGHTalias0.CID = COMPANYalias0.ID AND MOVIEalias0.MID = COPYRIGHTalias0.MSID AND MOVIEalias0.TITLE = \"movie_title0\" ;"
],
"variables": [
{
"example": "Juno",
"location": "both",
"name": "movie_title0",
"type": "movie_title"
}
]
},
{
"difficulty": 2,
"query-split": "5",
"sentences": [
{
"question-split": "7",
"text": "Find all movies that were produced by company_name0",
"variables": {
"company_name0": "Netflix"
}
},
{
"question-split": "2",
"text": "Find all movies produced by company_name0",
"variables": {
"company_name0": "Netflix"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM COMPANY AS COMPANYalias0 , COPYRIGHT AS COPYRIGHTalias0 , MOVIE AS MOVIEalias0 WHERE COMPANYalias0.NAME = \"company_name0\" AND COPYRIGHTalias0.CID = COMPANYalias0.ID AND MOVIEalias0.MID = COPYRIGHTalias0.MSID ;"
],
"variables": [
{
"example": "Netflix",
"location": "both",
"name": "company_name0",
"type": "company_name"
}
]
},
{
"difficulty": 2,
"query-split": "2",
"sentences": [
{
"question-split": "1",
"text": "Find all actors who were born in \" actor_birth_city0 \" in actor_birth_year0",
"variables": {
"actor_birth_city0": "New York City",
"actor_birth_year0": "1984"
}
}
],
"sql": [
"SELECT ACTORalias0.NAME FROM ACTOR AS ACTORalias0 WHERE ACTORalias0.BIRTH_CITY = \"actor_birth_city0\" AND ACTORalias0.BIRTH_YEAR = actor_birth_year0 ;"
],
"variables": [
{
"example": "New York City",
"location": "both",
"name": "actor_birth_city0",
"type": "actor_birth_city"
},
{
"example": "1984",
"location": "both",
"name": "actor_birth_year0",
"type": "actor_birth_year"
}
]
},
{
"difficulty": 2,
"query-split": "7",
"sentences": [
{
"question-split": "9",
"text": "Find all movies about keyword0",
"variables": {
"keyword0": "Persians"
}
},
{
"question-split": "5",
"text": "Find all movies about keyword0",
"variables": {
"keyword0": "Autism"
}
},
{
"question-split": "9",
"text": "Find all movies about keyword0",
"variables": {
"keyword0": "Iraq war"
}
},
{
"question-split": "5",
"text": "What are the movies related to keyword0",
"variables": {
"keyword0": "nuclear weapons"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM KEYWORD AS KEYWORDalias0 , MOVIE AS MOVIEalias0 , TAGS AS TAGSalias0 WHERE KEYWORDalias0.KEYWORD = \"keyword0\" AND TAGSalias0.KID = KEYWORDalias0.ID AND TAGSalias0.MSID = MOVIEalias0.MID ;"
],
"variables": [
{
"example": "nuclear weapons",
"location": "both",
"name": "keyword0",
"type": "keyword"
}
]
},
{
"difficulty": 2,
"query-split": "0",
"sentences": [
{
"question-split": "6",
"text": "Find all movies produced by \" producer_name0 \" after movie_release_year0",
"variables": {
"movie_release_year0": "2010",
"producer_name0": "Walt Disney"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM COMPANY AS COMPANYalias0 , COPYRIGHT AS COPYRIGHTalias0 , MOVIE AS MOVIEalias0 WHERE COMPANYalias0.NAME = \"company_name0\" AND COPYRIGHTalias0.CID = COMPANYalias0.ID AND MOVIEalias0.MID = COPYRIGHTalias0.MSID AND MOVIEalias0.RELEASE_YEAR > movie_release_year0 ;",
"SELECT MOVIEalias0.TITLE FROM MADE_BY AS MADE_BYalias0 , MOVIE AS MOVIEalias0 , PRODUCER AS PRODUCERalias0 WHERE MOVIEalias0.MID = MADE_BYalias0.MSID AND MOVIEalias0.RELEASE_YEAR > movie_release_year0 AND PRODUCERalias0.NAME = \"producer_name0\" AND PRODUCERalias0.PID = MADE_BYalias0.PID ;"
],
"variables": [
{
"example": "2010",
"location": "both",
"name": "movie_release_year0",
"type": "movie_release_year"
},
{
"example": "Walt Disney",
"location": "both",
"name": "producer_name0",
"type": "producer_name"
}
]
},
{
"difficulty": 2,
"query-split": "7",
"sentences": [
{
"question-split": "0",
"text": "Which movies did \" director_name0 \" direct ?",
"variables": {
"director_name0": "Alfred Hitchcock"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND DIRECTORalias0.NAME = \"director_name0\" AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID ;"
],
"variables": [
{
"example": "Alfred Hitchcock",
"location": "both",
"name": "director_name0",
"type": "director_name"
}
]
},
{
"difficulty": 2,
"query-split": "3",
"sentences": [
{
"question-split": "6",
"text": "Find all movies directed by \" director_name0 \" and featuring \" actor_name0 \"",
"variables": {
"actor_name0": "Scarlett Johansson",
"director_name0": "Woody Allen"
}
},
{
"question-split": "5",
"text": "What are all the movies directed by \" director_name0 \" featuring \" actor_name0 \" ?",
"variables": {
"actor_name0": "Christoph Waltz",
"director_name0": "Quentin Tarantino"
}
},
{
"question-split": "4",
"text": "How many movies are there that are directed by \" director_name0 \" and featuring \" actor_name0 \" ?",
"variables": {
"actor_name0": "Matt Damon",
"director_name0": "Steven Spielberg"
}
},
{
"question-split": "2",
"text": "List all the movies directed by \" director_name0 \" in which \" actor_name0 \" played",
"variables": {
"actor_name0": "Taraneh Alidoosti",
"director_name0": "Asghar Farhadi"
}
}
],
"sql": [
"SELECT MOVIEalias0.TITLE FROM ACTOR AS ACTORalias0 , CAST AS CASTalias0 , DIRECTED_BY AS DIRECTED_BYalias0 , DIRECTOR AS DIRECTORalias0 , MOVIE AS MOVIEalias0 WHERE ACTORalias0.NAME = \"actor_name0\" AND CASTalias0.AID = ACTORalias0.AID AND DIRECTORalias0.DID = DIRECTED_BYalias0.DID AND DIRECTORalias0.NAME = \"director_name0\" AND MOVIEalias0.MID = CASTalias0.MSID AND MOVIEalias0.MID = DIRECTED_BYalias0.MSID ;"
],
"variables": [
{
"example": "Taraneh Alidoosti",
"location": "both",
"name": "actor_name0",
"type": "actor_name"
},
{